From rcc
Orchestrates agent system component creation by sequentially invoking writing-claude-md, writing-rules, writing-hooks, writing-skills, and writing-subagents from a plan. Use after plan confirmation or on 'apply agent plan'.
npx claudepluginhub wayne930242/reflexive-claude-codeThis skill uses the workspace's default tool permissions.
**Applying agent systems IS orchestrating writing-* skill invocations in the correct order.**
Plans agent system components to create/modify/delete from analysis reports and workflows: designs DOT architecture flowcharts using Anthropic patterns, checks reuse, gets user confirmation.
Guides creation of Claude Code agents via 5 phases: analyze requirements and type, design architecture with patterns/skills, create files/frontmatter, validate, refine iteratively.
Generates markdown agent files with YAML frontmatter for Claude Code, configuring system prompts, tools, and isolation for autonomous task delegation in plugins.
Share bugs, ideas, or general feedback.
Applying agent systems IS orchestrating writing- skill invocations in the correct order.*
Read the component plan, invoke the appropriate writing-* skill for each component, verify each one succeeds before moving to the next.
Core principle: Never create components directly. Always invoke the writing-* skill. Skills encode best practices that direct creation bypasses.
Violating the letter of the rules is violating the spirit of the rules.
Pattern: Chain
Handoff: user-confirmation
Next: reviewing-agent-systems
Chain: main
Before ANY action, create task list using TaskCreate:
TaskCreate for EACH task below:
- Subject: "[applying-agent-systems] Task N: <action>"
- ActiveForm: "<doing action>"
Tasks:
Announce: "Created N tasks. Starting execution..."
Execution rules:
TaskUpdate status="in_progress" BEFORE starting each taskTaskUpdate status="completed" ONLY after verification passesTaskList to confirm all completedGoal: Load the component plan and prepare execution order.
Read: docs/agent-system/*-plan.md (most recent)
Create a TaskCreate for each component in the plan's execution order:
Verification: All components from plan have corresponding tasks.
Goal: For each component in order, invoke the correct writing-* skill.
Execution order (MUST follow):
writing-claude-mdwriting-rules (one per rule)writing-hooks (one per hook)writing-skills (one per skill)writing-subagents (one per agent)For each component:
CRITICAL CONSTRAINTS:
.claude/ directories.Verification: Each component exists and passes the writing-* skill's own validation.
Goal: Verify all components work together.
Checklist:
paths: globs.claude/settings.jsonHandoff: "所有元件已建立並驗證。要進行品質審查嗎?"
reviewing-agent-systems skillVerification: All checklist items pass.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to bypass quality gates. Follow the process.
| Excuse | Reality |
|---|---|
| "Write directly" | Writing-* skills encode TDD + review. Bypass = weak components. |
| "Use subagent" | Subagents can't write to .claude/. Will silently fail. |
| "Parallel creation" | Components depend on each other. CLAUDE.md before rules before hooks. |
| "Skip verification" | Integration issues only appear when components interact. Verify. |
| "Better idea" | The plan was user-approved. Discuss changes, don't silently deviate. |
digraph apply_agent {
rankdir=TB;
start [label="Apply agent\nsystem", shape=doublecircle];
read [label="Task 1: Read\ncomponent plan", shape=box];
claude_md [label="Create\nCLAUDE.md", shape=box];
rules [label="Create\nrules", shape=box];
hooks [label="Create\nhooks", shape=box];
skills [label="Create\nskills", shape=box];
agents [label="Create\nagents", shape=box];
verify [label="Verify system\nintegration", shape=box];
pass [label="All\npassed?", shape=diamond];
handoff [label="Invoke\nreviewing-agent-systems", shape=box];
done [label="Apply complete", shape=doublecircle];
start -> read;
read -> claude_md;
claude_md -> rules;
rules -> hooks;
hooks -> skills;
skills -> agents;
agents -> verify;
verify -> pass;
pass -> handoff [label="yes"];
pass -> claude_md [label="no\nfix failed"];
handoff -> done;
}