con un clic
intelligence-add-rule
Create new intelligence rule
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Create new intelligence rule
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Create new specialized agent
Audit the intelligence layer for duplication, drift, size, hardcoded paths and framing
Disable IDE adapter and clean up output
Enable IDE adapter for intelligence-sync
Capture session lessons and apply to intelligence/ after approval
Create new skill
| name | intelligence-add-rule |
| description | Create new intelligence rule |
| argument-hint | <name> [paths-glob] |
Determine rule name from domain (the scope is required):
intelligence/rules/. If a rule file covers the target area (e.g., backend.md, frontend.md), extend it. Introduce a new domain only when the scope is materially different from all existing rules.intelligence/config.yaml → project.name (e.g., <codename>.md)backend.mdfrontend.mddevops.mdcore.mdtests.mdcontext.mdapps/billing, services/auth), prefer the component name as the rule name (billing.md, auth.md).Check existing rules: Read intelligence/rules/ to detect overlapping scope — favor extending an existing rule over creating a new one.
Determine scope:
paths: frontmatterpaths: in frontmatter)Analyze codebase: Read source files matching the scope to extract:
Create rule: Write intelligence/rules/<name>.md:
---
paths:
- "<glob-pattern>"
---
Write body with sections: REQUIRED → Invariants → Architecture → Build & Test → Examples → Patterns to recognize and replace (optional)
Update config.yaml if needed: Add source path to sources.rules if rule is in a new directory not yet listed.
Run /intelligence-sync to distribute to all enabled IDE targets.