Rules
Rules are markdown files that provide guidance to AI agents. They are embedded directly into provider files (like CLAUDE.md or AGENTS.md) under a ## Rules section during sync.
Structure
Section titled “Structure”my-capability/└── rules/ ├── coding-standards.md └── architecture.mdFormat
Section titled “Format”Each rule file should start with a ### header (ideally the rule name), followed by the rule content:
### Coding Standards
- Use camelCase for variables- Keep functions small and focused- Prefer async/await over callbacksThe ### header is recommended so rules are properly organized under the ## Rules section in the output.
Example output
Section titled “Example output”When synced, rules appear in your provider file like this:
## Rules
### Coding Standards
- Use camelCase for variables- Keep functions small and focused
### Architecture Guidelines
- Keep components small and focused- Use dependency injectionProgrammatic rules
Section titled “Programmatic rules”You can also define rules programmatically in your capability’s index.ts:
import type { CapabilityExport } from "@omnidev-ai/core";
export default { rules: [ "### Release Checklist\n\n- [ ] Tests pass\n- [ ] Changelog updated" ]} satisfies CapabilityExport;