From rcc
Analyzes Claude Code agent systems for weaknesses by scanning CLAUDE.md, rules, hooks, skills, agents against 10 categories and producing severity-rated reports.
npx claudepluginhub wayne930242/reflexive-claude-codeThis skill uses the workspace's default tool permissions.
**Analyzing agent systems IS systematic weakness detection across all agent components.**
Reviews Claude agent system components including CLAUDE.md, skills, rules, hooks, and subagents by collecting inventory, invoking dedicated reviewer agents, generating reports, and awaiting user confirmation.
Audits Claude Code agents for violations, gaps, and improvements across 7 dimensions like description quality and frontmatter, outputting structured repair plans.
Audits Claude subagent configurations in .claude/agents/ for frontmatter completeness, tool assignment security, privilege risks, and naming consistency.
Share bugs, ideas, or general feedback.
Analyzing agent systems IS systematic weakness detection across all agent components.
Scan every component (CLAUDE.md, rules, hooks, skills, agents), check against 10 weakness categories, produce a severity-rated report.
Core principle: You cannot fix what you haven't measured. Analyze before changing anything.
Violating the letter of the rules is violating the spirit of the rules.
Pattern: Chain
Handoff: user-confirmation
Next: brainstorming-workflows
Chain: main
Before ANY action, create task list using TaskCreate:
TaskCreate for EACH task below:
- Subject: "[analyzing-agent-systems] Task N: <action>"
- ActiveForm: "<doing action>"
Tasks:
Announce: "Created 4 tasks. Starting execution..."
Execution rules:
TaskUpdate status="in_progress" BEFORE starting each taskTaskUpdate status="completed" ONLY after verification passesTaskList to confirm all completedGoal: Find all agent system components in the project.
Scan locations:
CLAUDE.md (project root and .claude/).claude/rules/**/*.md.claude/settings.json (hooks section).claude/skills/ or plugin skill directories.claude/agents/ or subagent definitions~/.claude/rules/ (user-level rules)~/.claude/CLAUDE.md (user-level constitution)~/.claude/skills/ (user-level skills).cursorrules, .github/copilot-instructions.md, .windsurfrules (other AI tool configs).editorconfig, linter configs (conventions that should be mirrored)For each component found, record:
User-root gap analysis:
Compare ~/.claude/rules/ against .claude/rules/:
settings.local.json for sensitive data?Verification: Complete inventory of all components with paths, types, and scope. Gap analysis between user-root and project level documented.
Goal: Check every component against the 10-category weakness checklist.
CRITICAL: Read references/weakness-checklist.md for the full checklist.
For each weakness found, record:
Severity guidelines:
| Severity | Criteria |
|---|---|
| CRITICAL | Blocks normal operation, causes errors, security risk |
| WARNING | Degrades experience, causes confusion, maintenance burden |
| INFO | Minor improvement, cosmetic, nice-to-have |
Cross-component checks:
Verification: Every checklist item evaluated. At least one pass through each category.
Goal: Write structured report to docs/agent-system/{timestamp}-analysis.md.
CRITICAL: Read references/report-template.md for the full report format.
Verification: Report written with all findings categorized by severity.
Goal: Show the user the full analysis and get confirmation.
Present ALL findings with detail. Do NOT summarize into brief bullet points:
Anti-pattern: "Found 3 critical issues, 2 warnings" without explaining what they are is NOT presenting. The user must see enough detail to understand each finding.
Wait for user confirmation before proceeding.
Handoff: After user confirms:
brainstorming-workflows skill, pass analysis report path as contextThese thoughts mean you're rationalizing. STOP and reconsider:
| Thought | Reality |
|---|---|
| "I know the issues" | Systematic checklist catches what intuition misses. |
| "Only major issues matter" | INFO issues compound. Document everything. |
| "Skip the report" | Reports enable before/after comparison. Essential for refactoring. |
| "Cross-checks take too long" | Cross-component issues are the hardest to find later. Check now. |
| "One pass is enough" | Different categories reveal different issues. Check all 10. |
digraph analyze_agent {
rankdir=TB;
start [label="Analyze agent\nsystem", shape=doublecircle];
scan [label="Task 1: Scan\ncomponents", shape=box];
weakness [label="Task 2: Run\nweakness analysis", shape=box];
report [label="Task 3: Produce\nanalysis report", shape=box];
present [label="Task 4: Present\nfindings", shape=box];
confirm [label="User\nconfirms?", shape=diamond];
handoff [label="Invoke\nbrainstorming-workflows", shape=box];
done [label="Analysis complete", shape=doublecircle];
start -> scan;
scan -> weakness;
weakness -> report;
report -> present;
present -> confirm;
confirm -> handoff [label="continue"];
confirm -> done [label="stop here"];
handoff -> done;
}