一键导入
intelligence-add-rule
Create new intelligence rule
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new intelligence rule
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 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.