Domain Contract Authoring
Use this skill when shaping a domain contract repo, not when only consuming one.
Workflow
- Start with the narrowest useful domain slice.
- Create the minimum contract structure:
contract.yamlAGENTS.md- one checklist or domain doc
- one rule root
- one validator path or placeholder
- Keep machine-readable facts and human workflow guidance separate.
- Validate the contract with the framework tools before adding more breadth.
Templates
assets/contract.yaml.templateassets/AGENTS.md.templateassets/CHECKLIST.md.template
References
Read references/commands.md for the authoring and validation loop.
Read references/gotchas.md before broadening the contract scope.
Read references/response-template.md when you need the model to explain changes under domain constraints instead of only narrating implementation steps.
Output Expectations
- Prefer a narrow, runnable vertical slice over a broad abstract contract.
- Explain which files are source-of-truth versus reviewer guidance.
- Call out any placeholder validator or facts file explicitly.
- When evaluating a contract-guided coding response, require four things in the written answer:
- rule basis
- untouched safety boundaries
- concrete verification evidence
- scope justification
Source: Gavin0099/ai-governance-framework — distributed by TomeVault.