From rcc
Detects existing Claude Code agent systems, assesses maturity levels from components like CLAUDE.md and .claude/, and routes to setup or migration workflows. Triggers on 'setup agent' or 'migrate agent system'.
npx claudepluginhub wayne930242/reflexive-claude-codeThis skill uses the workspace's default tool permissions.
**Migrating agent systems IS routing to the correct workflow based on project state.**
Creates Claude Code agents from scratch or by adapting templates. Guides requirements gathering, template selection, and file generation following Anthropic best practices (v2.1.63+).
Guides creation, design, implementation, and validation of specialized Claude agents using templates, archetypes (analyzer, reviewer), scaffolding, and workflows.
Designs Claude Code agents using patterns like single-purpose specialists, workflow orchestrators, context adapters, and resource processors; guides tool selection, model choice, and extended context integration.
Share bugs, ideas, or general feedback.
Migrating agent systems IS routing to the correct workflow based on project state.
Detect whether an agent system already exists, then invoke the appropriate skill chain. This skill is a thin router — all logic lives in the specialized skills.
Core principle: Detect, don't assume. Route, don't implement.
Violating the letter of the rules is violating the spirit of the rules.
Pattern: Tree
Handoff: auto-invoke
Next: analyzing-agent-systems | brainstorming-workflows
Chain: main
Before ANY action, create task list using TaskCreate:
TaskCreate for EACH task below:
- Subject: "[migrating-agent-systems] Task N: <action>"
- ActiveForm: "<doing action>"
Tasks:
Announce: "Created 2 tasks. Starting execution..."
Execution rules:
TaskUpdate status="in_progress" BEFORE starting each taskTaskUpdate status="completed" ONLY after verification passesTaskList to confirm all completedGoal: Determine the project's agent system maturity level, not just presence/absence.
Check for Claude Code components:
CLAUDE.md (project root).claude/ directory.claude/rules/ directory.claude/settings.json.claude/skills/ directoryCheck for other AI tool configurations:
.cursorrules (Cursor).github/copilot-instructions.md (GitHub Copilot).windsurfrules (Windsurf).aider.conf.yml (Aider)Check for existing conventions:
.editorconfig.eslintrc*, .prettierrc*, ruff.toml, etc.).github/workflows/, .gitlab-ci.yml)Maturity classification:
| Level | Criteria | Route |
|---|---|---|
| None | No components found | → brainstorming-workflows |
| Seed | Only other AI tool configs exist (.cursorrules, etc.) — no Claude Code components | → brainstorming-workflows (import existing configs as starting context) |
| Partial | Has CLAUDE.md or rules but missing skills/hooks | → analyzing-agent-systems |
| Established | Has CLAUDE.md + rules + at least one skill or hook | → analyzing-agent-systems |
For Seed level: Record which other AI configs exist and their content summary — these become input for the brainstorming step to avoid re-discovering known conventions.
Verification: Clear maturity classification with evidence (which components found, which missing).
Goal: Invoke the correct starting skill based on maturity level.
Language recommendation (all routes): Before routing, advise the user: "All skills, rules, CLAUDE.md, and prompt files should be written in English for best model performance. Use your native language only in CLAUDE.md communication rules (e.g., 'respond in Traditional Chinese'). Shall I proceed in English for all agent system files?"
If None:
brainstorming-workflows skillIf Seed (other AI configs found):
.cursorrules, copilot instructions, etc.)brainstorming-workflows skill, passing the config summary as pre-loaded contextIf Partial or Established:
analyzing-agent-systems skillVerification: Correct skill invoked based on maturity level, with appropriate context passed.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to bypass the specialized skills. Route correctly.
| Excuse | Reality |
|---|---|
| "Skip detection" | Hidden configs exist. Always check. |
| "Build without analyzing" | Existing systems have history. Analyze first. |
| "Handle here" | This skill is a router. Logic lives in specialized skills. |
| "Skip brainstorming" | Assumptions about workflows lead to misfit systems. |
| "Ignore other AI configs" | .cursorrules and copilot instructions contain validated conventions worth importing. |
| "Has CLAUDE.md = established" | Quality matters more than presence. A 3-line CLAUDE.md is seed-level at best. |
digraph migrate_agent {
rankdir=TB;
start [label="Setup/migrate\nagent system", shape=doublecircle];
detect [label="Task 1: Detect\nand assess", shape=box];
maturity [label="Maturity\nlevel?", shape=diamond];
import_cfg [label="Import other\nAI configs", shape=box, style=filled, fillcolor="#ffffcc"];
brainstorm [label="Invoke\nbrainstorming-workflows", shape=box, style=filled, fillcolor="#ccffcc"];
analyze [label="Invoke\nanalyzing-agent-systems", shape=box, style=filled, fillcolor="#ccffcc"];
done [label="Routed to\nskill chain", shape=doublecircle];
start -> detect;
detect -> maturity;
maturity -> brainstorm [label="none"];
maturity -> import_cfg [label="seed"];
maturity -> analyze [label="partial /\nestablished"];
import_cfg -> brainstorm;
brainstorm -> done;
analyze -> done;
}
| Step | Skill | Purpose |
|---|---|---|
| 0 | analyzing-agent-systems | Scan + 10-category weakness detection (if partial/established) |
| 1 | brainstorming-workflows | Role-based workflow exploration + simplicity assessment |
| 2 | planning-agent-systems | Architecture flowchart + dependency-driven component planning |
| 3 | applying-agent-systems | Invoke writing-* skills per phase |
| 4 | refactoring-agent-systems | Review + cleanup |