Use this guide to craft AI instructions for DataPact and similar projects.
Use this template for your .github/copilot-instructions.md and other AI instruction files.
- Be specific - Reference actual code files and patterns from your codebase
- Explain the why - Document design decisions and architectural patterns
- Show examples - Use real examples from fixtures or test cases
- Cover workflows - Include build, test, and debug commands
- List conventions - Document project-specific naming and structure patterns
- Describe integrations - Explain how components communicate
Organize instructions as:
- Big picture architecture (read multiple files to understand)
- Critical workflows (build, test, debug, deploy)
- Project conventions (naming, patterns, structure)
- Integration points (how components talk)
- External dependencies (what systems it connects to)
- Include profiling (
datapact profile) andprofile_dataframe()in workflows. - Document rule severity metadata (WARN/ERROR) and CLI overrides.
- Document schema drift policy (
schema.extra_columns.severity). - Document SLA checks (
sla.min_rows,sla.max_rows, and freshness rules). - Document chunked validation options (
--chunksize,--sample-rows,--sample-frac). - Document custom rule plugins (
--plugin,rules.custom,custom_rules). - Document report sinks (
--report-sink,--report-webhook-url,--report-webhook-header). - Document policy packs (
policies,overrides). - Document database sources (
--db-type,--db-table,--db-query,--db-path). - Document ODCS compatibility (
--contract-format odcs,--odcs-object). - Document contract providers (DataPact vs ODCS provider dispatch).
- Document normalization (
flattenmetadata and noop-by-default behavior).