From dev-workflow
Use when Claude exhibited unexpected behavior, for periodic rule health checks, or after adding new rules. Audits CLAUDE.md rules from the AI execution perspective for conflicts, loopholes, gaps, and redundancies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:audit-rulesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill dispatches the `dev-workflow:rules-auditor` agent to audit CLAUDE.md rules in a separate context so it starts with a fresh, unbiased perspective.
This skill dispatches the dev-workflow:rules-auditor agent to audit CLAUDE.md rules in a separate context so it starts with a fresh, unbiased perspective.
Collect the following before dispatching:
~/.claude/CLAUDE.mdCLAUDE.md in project root (may not exist)~/.claude/plugins/*/*/.claude-plugin/plugin.json to find installed pluginshooks/hooks.json (if exists) — extract hook events, matchers, and script pathsskills/*/SKILL.md — extract frontmatter description field from eachPlugin: {name}
Hooks:
- {Event}({Matcher}): {description from script comment}
- ...
Skills:
- {name}: "{description from frontmatter}"
- ...
Use the Agent tool to launch the dev-workflow:rules-auditor agent with all gathered context. Structure the task prompt as:
Audit CLAUDE.md rules with the following inputs:
Deviation description: {description or "periodic check"}
Global CLAUDE.md: ~/.claude/CLAUDE.md
Project CLAUDE.md: {path or "none"}
Installed plugin behaviors:
{compiled plugin behavior summary, or "No plugins installed"}
When the agent completes:
Decisions: line for N+M total, count actual DP-\d+ entries in headings. If mismatch, prepend warning to report: ⚠️ 报告声称 {N+M} 个决策点,实际只列了 {actual} 个。以实际条目为准。Decisions: count.
## Decisions section from the reportblocking decision: present to user via AskUserQuestion with options from the decision pointrecommended decisions: present as a group via a single AskUserQuestion. Critical: all DP content must be inside the question field — text printed before AskUserQuestion gets visually covered by the question widget. Read each recommended DP's full block (heading + Context + Options + Recommendation) from the report and concatenate them verbatim in the question field, separated by \n---\n. End with: \n\n全部接受推荐,还是逐个审查?npx claudepluginhub n0rvyn/indie-toolkit --plugin dev-workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.