skills/assistant/agent-add-rule/SKILL.md
Add a new rule, convention, or instruction to the project's agent configuration. Analyzes the rule and helps decide placement: root CLAUDE.md (universal rules), docs/agents/ files (topic-specific guidance), or a new skill (complex workflows). Use when users say: '/agent-add-rule', 'add a rule', 'add convention', 'new coding standard', 'add instruction for claude', 'update claude.md with'.
npx skillsauth add ravnhq/ai-toolkit agent-add-ruleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add a new rule or convention to the right location in the progressive disclosure structure.
Static (root CLAUDE.md) — loaded every conversation. Token cost paid on every conversation.
Semi-dynamic (docs/agents/) — linked from root. Token cost paid only when Claude reads it.
Fully dynamic (skills) — metadata only in context. Token cost paid only when triggered.
Ask the user: "What rule or convention do you want to add?"
Accept free text. If the user already provided it (e.g., /agent-add-rule always use snake_case for database columns), skip this step.
Read:
Understand what already exists so you don't duplicate or contradict.
Apply this decision tree:
Does the agent consistently get this wrong WITHOUT being told?
├── NO → Skip. The rule costs tokens and is not needed.
│
├── YES → Does it apply to EVERY task?
│ ├── YES → Root CLAUDE.md (static)
│ │ Examples: package manager, multi-tenancy, project scripts
│ │
│ └── NO → docs/agents/ file (semi-dynamic)
│ Examples: lint rules, test thresholds, API conventions
│
└── Is it a repeatable workflow or procedural knowledge?
├── YES → Skill (fully dynamic)
│ Examples: deployment process, PR review checklist, migration procedure
│
└── NO → Skip. The rule is not needed.
Key questions to ask the user:
Present the recommended placement with reasoning:
Recommendation: Add to docs/agents/guardrails.md
Reasoning:
- This is a data handling rule, not a universal workflow rule
- It applies only when working with the database
- guardrails.md already covers data isolation patterns
- Adding to root would cost tokens on every conversation unnecessarily
Ask the user to confirm or override. If they override, respect their choice but note the trade-off:
Based on confirmed placement:
If root CLAUDE.md:
If existing docs/agents/ file:
If new docs/agents/ file:
- API Conventions (docs/agents/api-conventions.md) — REST patterns, error response format, paginationIf skill:
/agent-skill-creator to scaffold itUser: "Always use pnpm, never npm"
Classification: Agent gets this wrong without being told + applies to every task → Root
Action: Add to Key Rules section in CLAUDE.md
User: "API responses must always include a requestId field"
Classification: Agent sometimes misses this + only applies to API work → Semi-dynamic
Action: Add to docs/agents/guardrails.md or create docs/agents/api-conventions.md
User: "When deploying, always run migrations first, then build, then deploy to staging, verify, then production"
Classification: Repeatable multi-step procedure → Fully dynamic (skill)
Action: Suggest /agent-skill-creator to create a deployment skill
User: "Always use const instead of let"
Classification: ESLint already enforces this → Not needed
Response: "ESLint already enforces this via the prefer-const rule. Adding it to agent instructions would cost tokens without benefit. Skip?"
User: "Add a new convention that API responses must include a request ID and put it in the right agent config location."
Expected behavior: Use agent-add-rule guidance to classify placement, confirm with the user, and apply the rule in the appropriate location.
User: "Implement a feature flag system for staged rollouts in our backend service."
Expected behavior: Do not prioritize agent-add-rule; use an implementation-focused skill/workflow instead.
testing
Transform user requests into detailed, precise prompts for AI models. Use when users say 'promptify', 'promptify this', 'rewrite this prompt', 'make this prompt better/more specific', or explicitly request prompt engineering or improvement of their request for better AI responses.
tools
Manage AI skills from the Ravn AI Toolkit via corvus CLI — install, update, remove, search, and configure skills for any project. Use when: (1) Installing AI skills into a project, (2) Updating installed skills to latest versions, (3) Browsing or searching available skills, (4) Configuring global or per-project skill sets, (5) Troubleshooting corvus setup. Triggers on: "install skills", "add skills", "update skills", "corvus", "skill manager", "browse skills", "set up AI rules".
development
Generate a gallery of design variations for a UI component. Takes an existing component (referenced by name, pasted code, or screenshot) and produces N distinct rendered alternatives in a single comparison page. Use when exploring visual directions, generating mockups, comparing design approaches for a component, creating A/B candidates, or when anyone says "show me options" or "give me variations" for a UI element.
tools
Create custom QA agent personalities for project-specific testing needs. Guided builder that asks about the specialty, tools, and test scenarios, then generates a personality file and registers it in the QA config. Trigger on "create a QA personality", "add a custom test agent", "build a webhook tester", or when the user needs a project-specific QA agent. Also triggered by /qa-create-personality.