/rcc:analyzing-agent-systemsfrom rcc
Scans project structure and agent system components, runs 11-category weakness analysis, and produces actionable restructuring recommendations.
Ships in rcc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyzing agent systems IS understanding the project context, detecting weaknesses, and producing actionable restructuring recommendations.
Scan the project structure, inventory every agent component (CLAUDE.md, rules, hooks, skills, agents), check against 11 weakness categories, generate restructuring recommendations, and produce a severity-rated report.
Core principle: Analyze the project first, then the agent system. Recommendations without project context are guesses.
Pattern: Chain
Handoff: user-confirmation
Next: planning-agent-systems (if recommendations are clear) or brainstorming-workflows (if more exploration needed)
Chain: main
Follow task initialization protocol.
Tasks:
Announce: "Created 6 tasks. Starting execution..."
Goal: Understand the project before analyzing its agent system.
Important: Read references/project-scanning.md for the full scanning guide.
Scan areas:
Record findings in Project Overview format:
Verification: Project overview complete with all aspects filled.
Goal: 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 11-category weakness checklist.
Important: Read references/weakness-checklist.md for the full 11-category 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:
Pipeline checks:
Verification: Every checklist item evaluated. At least one pass through each category. Pipeline checks complete.
Goal: Transform weakness findings and project overview into actionable recommendations.
Important: Read references/restructuring-guide.md for the full recommendation guide.
Generate recommendations by type:
Merge recommendations:
Extract recommendations:
Pipeline recommendations:
Traceability requirement: Every recommendation must trace to a specific weakness finding or project characteristic. Do NOT generate recommendations that lack a traced reason.
Record for each recommendation:
Verification: All recommendations have type, affected files, traced reason, and priority.
Goal: Write structured report to .rcc/{timestamp}-analysis.md.
Important: Read references/report-template.md for the full 6-section report format.
Report sections:
Rules Health Summary (include in report):
## Rules Health Summary
| Metric | Value | Status |
|-------------------------------|-------|--------|
| CLAUDE.md lines | | |
| Global rules count / lines | | |
| Session-start total lines | | |
| Path-scoped rules | | |
| Rules with procedural content | | |
| Dead glob patterns | | |
Thresholds: CLAUDE.md > 200 lines = WARNING. Session-start total > 300 = WARNING. Any dead glob = WARNING.
Verification: Report written with all 6 sections complete.
Goal: Show the user the full analysis AND restructuring recommendations.
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, ask user to choose next step:
planning-agent-systems skill, pass analysis report path as contextbrainstorming-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. |
| "I know the project type" | package.json alone doesn't tell you it's a monorepo. Scan properly. |
| "Only major issues matter" | INFO issues compound. Document everything. |
| "Skip the report" | Reports enable before/after comparison. Essential for refactoring. |
| "Skip project scanning" | Recommendations without project context are guesses. Scan first. |
| "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 11. |
| "Recommendations are obvious" | Obvious to you isn't obvious to the user. Document with traceability. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wayne930242/reflexive-claude-code --plugin rcc23 skills in this plugin
/advising-architectureValidates component-type choices for agent system work, classifying knowledge as CLAUDE.md vs rule vs skill vs agent vs hook and checking for conflicts. Use when starting any skill/agent/rule workflow to validate approach. Use when classifying knowledge type. Use when checking for component conflicts./applying-agent-systemsBuilds agent system components from a confirmed component plan. Use when executing a component plan to build agent system elements. Use when called by planning-agent-systems after plan is confirmed. Use when user says "apply agent plan", "build agent system"./brainstorming-workflowsExplores user workflows through targeted questions about pipeline modes, pain points, routine tasks, and human intervention points to inform agent system design. Use when exploring workflows after analysis. Use when user says "explore workflows", "brainstorm workflows", "what should I automate". Use when called by analyzing-agent-systems./creating-pluginsScaffolds a new Claude Code plugin package with manifest, skills, agents, and marketplace entry. Use when creating a new Claude Code plugin package. Use when user says "create plugin", "new plugin", "scaffold plugin", "plugin template"./dispatching-parallel-agentsFans out work across multiple agents — same prompt to many for Best-of-N, different prompts for parallel exploration, or a scout before committing. Use when user says "parallel agents", "fan out", "best of N", "scout", "race", "vote", "spawn workers"./fetching-claude-docsFetches the current official Claude Code component spec from code.claude.com, returning verbatim excerpts so designs never drift from stale memory. Use PROACTIVELY before writing or modifying any Claude Code component (subagent, skill, hook, rule, slash command, plugin manifest, settings.json, MCP config). Use when user asks 'what is the official spec for X', 'is this the right way to do Y', 'check Anthropic docs for Z'. MUST BE USED at Task 0 of writing-subagents, writing-skills, writing-hooks, writing-rules, writing-claude-md before any design decision.Other plugins' skills for the same job