Skip to content

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.

my-capability/
└── rules/
├── coding-standards.md
└── architecture.md

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 callbacks

The ### header is recommended so rules are properly organized under the ## Rules section in the 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 injection

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;