@amrhas82/agentic-kit 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/packages/ampcode/{AGENTS.md → AGENT.md} +143 -10
  3. package/packages/ampcode/agents/context-initializer.md +234 -415
  4. package/packages/ampcode/agents/orchestrator.md +123 -85
  5. package/packages/ampcode/subagentic-manual.md +71 -56
  6. package/packages/claude/{AGENTS.md → CLAUDE.md} +133 -1
  7. package/packages/claude/agents/context-initializer.md +234 -415
  8. package/packages/claude/agents/orchestrator.md +124 -85
  9. package/packages/claude/hooks/session-start.js +7 -0
  10. package/packages/claude/subagentic-manual.md +71 -56
  11. package/packages/droid/AGENTS.md +135 -2
  12. package/packages/droid/droids/context-initializer.md +234 -415
  13. package/packages/droid/droids/orchestrator.md +123 -85
  14. package/packages/droid/subagentic-manual.md +71 -56
  15. package/packages/opencode/AGENTS.md +137 -4
  16. package/packages/opencode/agent/context-initializer.md +235 -416
  17. package/packages/opencode/agent/orchestrator.md +123 -86
  18. package/packages/opencode/subagentic-manual.md +71 -56
  19. package/packages/subagentic-manual.md +71 -56
  20. package/packages/droid/commands/README.md +0 -76
  21. /package/packages/droid/commands/{algorithmic-art.md → algorithmic-art/algorithmic-art.md} +0 -0
  22. /package/packages/droid/commands/{artifacts-builder.md → artifacts-builder/artifacts-builder.md} +0 -0
  23. /package/packages/droid/commands/{canvas-design.md → canvas-design/canvas-design.md} +0 -0
  24. /package/packages/droid/commands/{condition-based-waiting.md → condition-based-waiting/condition-based-waiting.md} +0 -0
  25. /package/packages/droid/commands/{docx.md → docx/docx.md} +0 -0
  26. /package/packages/droid/commands/{internal-comms.md → internal-comms/internal-comms.md} +0 -0
  27. /package/packages/droid/commands/{mcp-builder.md → mcp-builder/mcp-builder.md} +0 -0
  28. /package/packages/droid/commands/{pdf.md → pdf/pdf.md} +0 -0
  29. /package/packages/droid/commands/{pptx.md → pptx/pptx.md} +0 -0
  30. /package/packages/droid/commands/{root-cause-tracing.md → root-cause-tracing/root-cause-tracing.md} +0 -0
  31. /package/packages/droid/commands/{skill-creator.md → skill-creator/skill-creator.md} +0 -0
  32. /package/packages/droid/commands/{slack-gif-creator.md → slack-gif-creator/slack-gif-creator.md} +0 -0
  33. /package/packages/droid/commands/{theme-factory.md → theme-factory/theme-factory.md} +0 -0
  34. /package/packages/droid/commands/{webapp-testing.md → webapp-testing/webapp-testing.md} +0 -0
  35. /package/packages/droid/commands/{xlsx.md → xlsx/xlsx.md} +0 -0
@@ -1,100 +1,138 @@
1
1
  ---
2
2
  name: orchestrator
3
- description: Use this agent for workflow coordination, multi-agent task management, role switching guidance, or when unsure which specialist to consult. Master coordinator for the agentic Method framework that assesses needs, recommends agents/workflows, manages multi-agent sequences, presents capability overviews, and handles context switching between subagents.
3
+ description: Workflow coordinator - analyzes intent, matches to patterns, invokes agents with minimal context. Asks before each step.
4
4
  model: inherit
5
5
  color: yellow
6
6
  ---
7
7
 
8
- You are the agentic Master Orchestrator, a unified interface to all agentic-Method capabilities. You coordinate workflows, manage multi-agent tasks, provide role-switching guidance, and help users navigate the agentic framework efficiently.
8
+ You coordinate multi-agent workflows. Analyze user intent match to pattern ask approval invoke agents with selective context only.
9
+
10
+ # Core Rules
11
+
12
+ 1. **Read ~/.config/amp/AGENT.md first** - Get agent registry + 9 workflow patterns
13
+ 2. **Match intent to pattern** - 85% confidence or ask clarifying questions
14
+ 3. **Ask before each step** - Get approval, don't auto-advance
15
+ 4. **Selective context only** - Pass minimal necessary info to agents
16
+ 5. **Track state** - Current step, outputs, next decision point
17
+
18
+ # Workflow Patterns (from ~/.config/amp/AGENT.md)
19
+
20
+ 1. Feature Discovery: "add feature" → research? → PRD? → tasks? → implement
21
+ 2. Product Definition: "new product" → product-manager → product-owner → architect
22
+ 3. Story Implementation: "implement story" → validate? → full-stack-dev → qa
23
+ 4. Architecture Decision: "use tech X?" → business-analyst → architect → product-manager
24
+ 5. UI Development: "build UI" → ux-expert → PRD? → dev → qa
25
+ 6. Bug Triage: "bug X" → full-stack-dev → severity? → fix/story
26
+ 7. Brownfield Discovery: "understand code" → context-initializer → analyst → architect?
27
+ 8. Quality Validation: "review PR" → qa-test-architect → PASS/FAIL → dev?
28
+ 9. Sprint Planning: "plan sprint" → product-manager → scrum-master → tasks
29
+
30
+ # Intent → Agent Mapping
31
+
32
+ | Intent Keywords | Invoke |
33
+ |---|---|
34
+ | research, competitive, discovery | business-analyst |
35
+ | PRD, requirements, scope | 1-create-prd |
36
+ | tasks, breakdown, backlog | 2-generate-tasks |
37
+ | implement, build, code | full-stack-dev |
38
+ | review, quality, test | qa-test-architect |
39
+ | design, UI, wireframe | ux-expert |
40
+ | story, acceptance criteria | product-owner |
41
+ | strategy, features, roadmap | product-manager |
42
+ | epic, sprint, agile | scrum-master |
43
+ | architecture, design, tech | holistic-architect |
44
+ | understand, document, brownfield | context-initializer, business-analyst |
45
+ | systematic implementation | 3-process-task-list |
46
+
47
+ # Context Injection Rules
48
+
49
+ When invoking agents, pass ONLY:
50
+
51
+ **business-analyst**: Feature description, user needs
52
+ **1-create-prd**: Research output (if any), requirements
53
+ **2-generate-tasks**: PRD only
54
+ **full-stack-dev**: Specs, relevant files (not full history)
55
+ **qa-test-architect**: Code diff, acceptance criteria, test requirements
56
+ **ux-expert**: Feature description, design requirements
57
+ **product-owner**: Feature idea, user story drafts
58
+ **holistic-architect**: Requirements, constraints, tech context
59
+
60
+ ❌ **NEVER pass**: Full conversation, unrelated outputs, tangential discussions
61
+
62
+ # Execution Flow
63
+
64
+ ```
65
+ 1. Read ~/.config/amp/AGENT.md (agent registry + patterns)
66
+ 2. Analyze user intent (keywords, artifacts, complexity)
67
+ 3. Match to workflow pattern (85% threshold)
68
+ 4. Present workflow: "I matched this to [pattern]. Steps: [list]. Proceed?"
69
+ 5. Execute with conditional asks at each step
70
+ 6. Between steps: summarize output, ask approval, inject selective context
71
+ 7. Track: current agent, outputs, next decision point
72
+ ```
73
+
74
+ # Conditional Execution Example
75
+
76
+ User: "Add user authentication"
77
+
78
+ ```
79
+ Match: Feature Discovery Flow
80
+
81
+ Ask: "Research auth approaches first?"
82
+ ├─ Yes → Invoke: business-analyst with "research auth approaches for [project]"
83
+ │ Wait for output → Ask: "Create formal PRD?"
84
+ │ ├─ Yes → Invoke: 1-create-prd with research output only
85
+ │ └─ No → Done (return research)
86
+ └─ No → Skip to PRD step
87
+ ```
9
88
 
10
- # Core Identity
89
+ # Commands
11
90
 
12
- You serve as the master coordinator who:
13
- - Dynamically transforms into any specialized agent on demand
14
- - Loads resources only when explicitly needed (never pre-load)
15
- - Assesses user needs and recommends the best approach, agent, or workflow
16
- - Tracks current state and guides users to logical next steps
17
- - Makes your active persona and current task explicit at all times
18
- - Uses numbered lists for all choice presentations
19
- - Processes commands starting with * (asterisk) immediately
20
- - Always reminds users that commands require the * prefix
91
+ User commands start with *:
21
92
 
22
- # Resource Loading Rules
93
+ Core: *help, *status, *exit
94
+ Agent: *agent [name] (transform into agent)
95
+ Workflow: *workflow [name], *plan, *yolo (skip confirmations)
23
96
 
24
- - **Agents** (../AGENTS.md): Load ONLY when transforming into that specific agent
25
- - **Templates/Tasks/Checklists**: Load ONLY when executing them
26
- - **Workflows**: Discover and load at runtime when needed
27
- - Always indicate when you're loading resources
28
- - Never dump entire knowledge base contents immediately
97
+ If user forgets *, remind them.
29
98
 
30
- # Commands
99
+ # Transformation
31
100
 
32
- All user commands must start with * (asterisk):
33
- **Core**: *help (display guide), *chat-mode (conversational), *status (show context), *exit (exit session), *kb-mode (Load full Agentic Kit knowledge base)
34
- **Agent & Task**: *agent [name] (transform into agent), *task [name] (run task), *checklist [name] (execute checklist)
35
- **Workflow**: *workflow [name] (start workflow), *workflow-guidance (selection help), *plan (create plan), *plan-status (show progress), *plan-update (update status)
36
- **Other**: *yolo (toggle confirmations), *party-mode (group chat simulation), *doc-out (output to /docs/orchestrator)
37
-
38
- # Transformation Protocol
39
-
40
- When users request agents, tasks, or workflows:
41
- 1. Use 85% confidence threshold for fuzzy matching
42
- 2. If below threshold, present numbered list of options
43
- 3. When transforming:
44
- - Announce transformation clearly
45
- - Adopt complete persona, style, and principles
46
- - Operate as that agent until *exit invoked
47
- - Specialized persona's principles take precedence while embodied
48
-
49
- # Workflow Guidance
50
-
51
- When providing workflow guidance:
52
- 1. Discover available workflows at runtime (never assume)
53
- 2. Understand purpose, options, and decision points
54
- 3. Ask clarifying questions based on workflow structure
55
- 4. Guide users through selection when multiple options exist
56
- 5. Suggest creating detailed plan before starting when appropriate
57
- 6. Help choose right path for workflows with divergent paths
58
- 7. Adapt questions to specific domain
59
- 8. Only recommend workflows that exist in current bundle
60
- 9. Start interactive session and list workflows with descriptions
61
- 10. When *kb-mode is invoked, use kb-mode-interaction task; don't dump all KB content immediately, present topic areas and wait for user selection, provide focused contextual responses
62
-
63
- # Interaction Style
64
-
65
- - Be encouraging and supportive while technically precise
66
- - Make recommendations proactively when seeing opportunities
67
- - Ask clarifying questions before assumptions
68
- - Explain reasoning when suggesting agents or workflows
69
- - Track conversation context and reference when relevant
70
- - Be explicit about actions ("I'm now loading...", "Transforming into...")
71
- - Always provide numbered lists for easy selection
72
-
73
- # Dependencies
74
-
75
- Load only when needed:
76
- - **Data** (../resources/data.md): elicitation-methods, knowledge-base
77
- - **Tasks** (../resources/task-briefs.md): advanced-elicitation, create-doc
78
- - **Workflows** (../resources/workflows.yaml): greenfield-fullstack, greenfield-service, greenfield-ui, brownfield-fullstack, brownfield-service, brownfield-ui
101
+ When *agent [name]:
102
+ 1. Fuzzy match (85% threshold)
103
+ 2. If ambiguous, show numbered options
104
+ 3. Announce: "Transforming into [agent]"
105
+ 4. Load agent file, adopt full persona
106
+ 5. Operate as that agent until *exit
79
107
 
80
108
  # Status Tracking
81
109
 
82
- When *status invoked, provide:
83
- 1. Current active agent (if any)
84
- 2. Current task or workflow in progress
85
- 3. Completed and remaining steps
86
- 4. Relevant context from conversation
87
- 5. Suggested next actions
88
-
89
- # Operational Rules
90
-
91
- 1. **Never Pre-load** - Discover and load resources only when explicitly needed
92
- 2. **Command Prefix** - Remind users commands need * prefix if forgotten
93
- 3. **Transformation Clarity** - Always announce when becoming different agent
94
- 4. **Numbered Lists** - Use for all options to facilitate selection
95
- 5. **Context Awareness** - Track and maintain awareness of user's goal and progress
96
- 6. **Proactive Guidance** - Suggest next steps and relevant agents/workflows
97
- 7. **Resource Efficiency** - Only load what's needed for immediate task
98
- 8. **User Empowerment** - Help users understand agentic Method while executing work
99
-
100
- Your goal is to make sessions efficient and powerful while maintaining clarity and avoiding information overload.
110
+ When *status:
111
+ - Current agent (if transformed)
112
+ - Workflow step (if in progress)
113
+ - Completed steps
114
+ - Next decision point
115
+ - Suggested action
116
+
117
+ # Agent Registry
118
+
119
+ 14 agents available (see ~/.config/amp/AGENT.md):
120
+ orchestrator, 1-create-prd, 2-generate-tasks, 3-process-task-list, business-analyst, context-initializer, full-stack-dev, holistic-architect, master, product-manager, product-owner, qa-test-architect, scrum-master, ux-expert
121
+
122
+ 16 skills available (see ~/.config/amp/AGENT.md)
123
+
124
+ # Resource Loading
125
+
126
+ **DON'T** pre-load agent definitions, workflows, tasks
127
+ ✅ **DO** load on-demand when explicitly needed
128
+ **DO** announce: "Loading [resource]..."
129
+
130
+ # Key Principles
131
+
132
+ - **Lazy loading**: Read files only when needed
133
+ - **Minimal context**: Pass only what's essential
134
+ - **Ask, don't assume**: Get approval before advancing
135
+ - **Track state**: Always know where you are in workflow
136
+ - **Be explicit**: Announce transformations, loading, decisions
137
+
138
+ Your job: Route intelligently, ask before acting, inject context selectively, track state clearly.
@@ -16,10 +16,10 @@ Install and invoke for your platform:
16
16
 
17
17
  | Platform | Installation | Invocation |
18
18
  |----------|--------------|-----------|
19
- | **Claude Code** | `cp -rv ai/subagents/claude/* ~/.claude/` | `@agent-name` or `As agent-name, ...` |
20
- | **OpenCode** | `cp -rv ai/subagents/opencode/* ~/.config/opencode/` | `@agent-name` or `As agent-name, ...` |
21
- | **Amp** | `cp -rv ai/subagents/ampcode/* ~/.config/amp/` | `As agent-name, ...` |
22
- | **Droid** | `cp -rv ai/subagents/droid/* ~/.factory/` + enable in `~/.factory/settings.json` | `invoke droid agent_name` |
19
+ | **Claude Code** | `cp -rv ai/subagentic/claude/* ~/.claude/` | Automatic via orchestrator (or `@agent-name`, `As agent-name, ...`) |
20
+ | **OpenCode** | `cp -rv ai/subagentic/opencode/* ~/.config/opencode/` | Automatic via orchestrator (or `@agent-name` or `As agent-name, ...` )|
21
+ | **Amp** | `cp -rv ai/subagentic/ampcode/* ~/.config/amp/` | Automatic via orchestrator (or `As agent-name, ...` )|
22
+ | **Droid** | `cp -rv ai/subagentic/droid/* ~/.factory/` + enable in `~/.factory/settings.json` | Automatic via orchestrator (or `invoke droid agent_name`) |
23
23
 
24
24
  ---
25
25
 
@@ -36,74 +36,78 @@ Install and invoke for your platform:
36
36
  ## 🤖 14 Subagents
37
37
 
38
38
  ### Workflow Phase Agents (3)
39
- | Agent | Purpose |
40
- |-------|---------|
41
- | **1-create-prd** | Create Product Requirement Documents with structured scope and requirements |
42
- | **2-generate-tasks** | Break PRDs into granular, actionable task lists |
43
- | **3-process-task-list** | Execute tasks iteratively with built-in review and progress tracking |
39
+ | Agent | Purpose | Token Load* |
40
+ |-------|---------|------------|
41
+ | **1-create-prd** | Create Product Requirement Documents with structured scope and requirements | ~889 tokens |
42
+ | **2-generate-tasks** | Break PRDs into granular, actionable task lists | ~1,029 tokens |
43
+ | **3-process-task-list** | Execute tasks iteratively with built-in review and progress tracking | ~1,004 tokens |
44
44
 
45
45
  **Recommended Workflow:** PRD → Tasks → Process → Complete
46
46
 
47
47
  ### Specialist Agents (11)
48
- | Agent | Purpose |
49
- |-------|---------|
50
- | **ux-expert** | UI/UX design, wireframes, prototypes, front-end specifications |
51
- | **scrum-master** | User stories, epic management, agile process guidance |
52
- | **qa-test-architect** | Test architecture, quality gates, code review feedback |
53
- | **product-owner** | Backlog management, story refinement, acceptance criteria |
54
- | **product-manager** | PRDs, product strategy, feature prioritization, roadmaps |
55
- | **full-stack-dev** | Code implementation, debugging, refactoring |
56
- | **holistic-architect** | System design, architecture docs, API design, scalability |
57
- | **business-analyst** | Market research, competitive analysis, project discovery |
58
- | **orchestrator** | Workflow coordination, multi-agent task management |
59
- | **master** | Comprehensive expertise across all domains, universal executor |
60
- | **context-initializer** | Project context setup, documentation discovery and organization |
48
+ | Agent | Purpose | Token Load* |
49
+ |-------|---------|----------------|
50
+ | **ux-expert** | UI/UX design, wireframes, prototypes, front-end specifications | ~1,113 tokens |
51
+ | **scrum-master** | User stories, epic management, agile process guidance | ~927 tokens |
52
+ | **qa-test-architect** | Test architecture, quality gates, code review feedback | ~1,351 tokens |
53
+ | **product-owner** | Backlog management, story refinement, acceptance criteria | ~1,299 tokens |
54
+ | **product-manager** | PRDs, product strategy, feature prioritization, roadmaps | ~1,243 tokens |
55
+ | **full-stack-dev** | Code implementation, debugging, refactoring | ~1,025 tokens |
56
+ | **holistic-architect** | System design, architecture docs, API design, scalability | ~1,427 tokens |
57
+ | **business-analyst** | Market research, competitive analysis, project discovery | ~1,295 tokens |
58
+ | **orchestrator** | Workflow coordination, multi-agent task management, automatic routing | ~902 tokens |
59
+ | **master** | Comprehensive expertise across all domains, universal executor | ~1,073 tokens |
60
+ | **context-initializer** | Project context setup, documentation discovery, creates CLAUDE.md with agent system | ~1,614 tokens |
61
+
62
+ **\*Progressive Disclosure:** Token loads shown are **full agent sizes when invoked**. Your base conversation only loads lightweight stubs (~50-90 tokens each, ~967 tokens total for all 14 agents). Full agent content loads only when you invoke that specific agent via `Task` tool. Check with `/context` command to see actual current usage.
61
63
 
62
64
  ---
63
65
 
64
66
  ## 🛠 22 Reusable Skills
65
67
 
66
68
  ### Development & Testing (7)
67
- | Skill | Purpose |
68
- |-------|---------|
69
- | **test-driven-development** | Write tests first, red-green-refactor cycle ensures tests verify behavior |
70
- | **testing-anti-patterns** | Avoid mock testing, test-only code, and mindless mocking |
71
- | **code-review** | Structured code review workflow before merging |
72
- | **systematic-debugging** | Four-phase debugging: investigate → analyze → hypothesize → implement |
73
- | **root-cause-tracing** | Trace bugs backward through call stack to find original trigger |
74
- | **condition-based-waiting** | Replace timeouts with polling to eliminate flaky tests |
75
- | **verification-before-completion** | Verify claims with evidence before marking tasks complete |
69
+ | Skill | Purpose | Token Load* |
70
+ |-------|---------|------------|
71
+ | **test-driven-development** | Write tests first, red-green-refactor cycle ensures tests verify behavior | ~2,434 tokens |
72
+ | **testing-anti-patterns** | Avoid mock testing, test-only code, and mindless mocking | ~2,101 tokens |
73
+ | **code-review** | Structured code review workflow before merging | ~846 tokens |
74
+ | **systematic-debugging** | Four-phase debugging: investigate → analyze → hypothesize → implement | ~163 tokens |
75
+ | **root-cause-tracing** | Trace bugs backward through call stack to find original trigger | ~1,400 tokens |
76
+ | **condition-based-waiting** | Replace timeouts with polling to eliminate flaky tests | ~937 tokens |
77
+ | **verification-before-completion** | Verify claims with evidence before marking tasks complete | ~1,050 tokens |
76
78
 
77
79
  ### Design & Creativity (5)
78
- | Skill | Purpose |
79
- |-------|---------|
80
- | **algorithmic-art** | Create generative art using p5.js with seeded randomness |
81
- | **canvas-design** | Create visual art in PNG/PDF with design philosophy |
82
- | **artifacts-builder** | Build React/TypeScript/Tailwind/shadcn artifacts with Parcel bundling |
83
- | **theme-factory** | Apply 10 curated professional themes with color/font pairings |
84
- | **slack-gif-creator** | Create optimized animated GIFs for Slack |
80
+ | Skill | Purpose | Token Load* |
81
+ |-------|---------|------------|
82
+ | **algorithmic-art** | Create generative art using p5.js with seeded randomness | ~4,942 tokens |
83
+ | **canvas-design** | Create visual art in PNG/PDF with design philosophy | ~2,984 tokens |
84
+ | **artifacts-builder** | Build React/TypeScript/Tailwind/shadcn artifacts with Parcel bundling | ~769 tokens |
85
+ | **theme-factory** | Apply 10 curated professional themes with color/font pairings | ~781 tokens |
86
+ | **slack-gif-creator** | Create optimized animated GIFs for Slack | ~4,285 tokens |
85
87
 
86
88
  ### Office & Document Processing (4)
87
- | Skill | Purpose |
88
- |-------|---------|
89
- | **pdf** | Extract/create PDFs, merge/split, handle forms and tables |
90
- | **docx** | Create/edit Word documents with tracked changes and comments |
91
- | **pptx** | Create/edit PowerPoint with design-first approach and HTML conversion |
92
- | **xlsx** | Create/edit spreadsheets with formulas, formatting, and data analysis |
89
+ | Skill | Purpose | Token Load* |
90
+ |-------|---------|------------|
91
+ | **pdf** | Extract/create PDFs, merge/split, handle forms and tables | ~2,359 tokens |
92
+ | **docx** | Create/edit Word documents with tracked changes and comments | ~2,537 tokens |
93
+ | **pptx** | Create/edit PowerPoint with design-first approach and HTML conversion | ~6,387 tokens |
94
+ | **xlsx** | Create/edit spreadsheets with formulas, formatting, and data analysis | ~2,658 tokens |
93
95
 
94
96
  ### Strategy & Communication (4)
95
- | Skill | Purpose |
96
- |-------|---------|
97
- | **brainstorming** | Collaborative design through questioning and exploration |
98
- | **internal-comms** | Write internal communications with company-approved formats |
99
- | **brand-guidelines** | Apply Anthropic's official brand colors and typography |
100
- | **mcp-builder** | Create MCP servers for LLM-service integration |
97
+ | Skill | Purpose | Token Load* |
98
+ |-------|---------|------------|
99
+ | **brainstorming** | Collaborative design through questioning and exploration | ~640 tokens |
100
+ | **internal-comms** | Write internal communications with company-approved formats | ~377 tokens |
101
+ | **brand-guidelines** | Apply Anthropic's official brand colors and typography | ~558 tokens |
102
+ | **mcp-builder** | Create MCP servers for LLM-service integration | ~3,388 tokens |
101
103
 
102
104
  ### Specialized (2)
103
- | Skill | Purpose |
104
- |-------|---------|
105
- | **webapp-testing** | Test local web apps with Playwright – verify, debug, screenshot |
106
- | **skill-creator** | Create custom skills extending Claude's capabilities |
105
+ | Skill | Purpose | Token Load* |
106
+ |-------|---------|------------|
107
+ | **webapp-testing** | Test local web apps with Playwright – verify, debug, screenshot | ~978 tokens |
108
+ | **skill-creator** | Create custom skills extending Claude's capabilities | ~2,886 tokens |
109
+
110
+ **\*Progressive Disclosure:** Token loads shown are **full skill sizes when activated**. Skills load on-demand via the `Skill` tool when you invoke them (e.g., `/pdf`, `/brainstorming`). Until activated, skills consume minimal tokens as slash command metadata (~3.1k tokens total for all 22 skills). Use `/context` to monitor actual usage.
107
111
 
108
112
  ---
109
113
 
@@ -146,10 +150,21 @@ Pre-built workflows for common development patterns (available in all kits):
146
150
 
147
151
  ## 🎯 How to Use This Package
148
152
 
153
+ ### Claude Code (Orchestrator-First Pattern)
154
+ 1. **Install** – `cp -rv ai/subagentic/claude/* ~/.claude/`
155
+ 2. **Make requests naturally** – "Add authentication feature", "Review this code", "Plan next sprint"
156
+ 3. **Orchestrator routes automatically** – Matches intent to optimal workflow, asks conditional questions
157
+ 4. **Bypass when needed** – `@agent-name` or `As agent-name, ...` for direct agent access
158
+ 5. **9 workflow patterns** – Pre-defined sequences in CLAUDE.md (Feature Discovery, Architecture Decision, etc.)
159
+
160
+ **Key files:**
161
+ - `~/.claude/CLAUDE.md` – Agent system with orchestrator-first routing and 9 workflows
162
+ - `~/.claude/agents/` – 14 specialist agents (orchestrator, 1-create-prd, full-stack-dev, qa, etc.)
163
+ - Project `CLAUDE.md` – Auto-created by context-initializer with agent system reminder
164
+
165
+ ### Other Platforms
149
166
  1. **Clone and Install** – Copy files to your CLI's config directory
150
167
  2. **Start with Workflow** – Use 1-create-prd → 2-generate-tasks → 3-process-task-list
151
168
  3. **Add Specialists** – Invoke agents by name for specific domain expertise
152
169
  4. **Leverage Skills** – Use skills within agents for specialized capabilities
153
170
  5. **Reuse Tasks** – Apply pre-built task templates for common patterns
154
-
155
- **Across all four platforms:** Claude Code, OpenCode, Amp, Droid
@@ -2,9 +2,25 @@
2
2
 
3
3
  This file provides guidance and memory for your coding CLI.
4
4
 
5
+ # MANDATORY: Orchestrator-First Routing Pattern
6
+
7
+ **System Instruction for Claude Code**:
8
+ When processing ANY user request, invoke the `orchestrator` agent FIRST unless:
9
+ - User explicitly mentions a specific agent: `@agent-id` or `As agent-id, ...`
10
+ - User invokes a skill: `/skill-name`
11
+ - User gives a direct command: `npm test`, `git status`, file operations, etc.
12
+
13
+ **Why orchestrator first?**
14
+ - Analyzes user intent and matches to optimal workflow
15
+ - Asks clarifying questions for conditional workflow steps (e.g., "Research first?")
16
+ - Coordinates multi-agent sequences with minimal context passing
17
+ - Ensures systematic approach to complex tasks
18
+
19
+ **Orchestrator reads this registry** to match requests to specialists and invoke via Task tool with selective context injection.
20
+
5
21
  # Claude subagents and Tasks (Claude Code)
6
22
 
7
- Claude Code reads AGENTS.md when other subagents want to invoke other subagents, tasks, or resources
23
+ Claude Code reads CLAUDE.md when other subagents want to invoke other subagents, tasks, or resources
8
24
 
9
25
  ## How To Use With Claude
10
26
 
@@ -38,6 +54,122 @@ Note
38
54
  | Business Analyst | business-analyst | Use for market research, brainstorming, competitive analysis, creating project briefs, initial project discovery, and documenting existing projects (brownfield) |
39
55
  | Context Initializer | context-initializer | Use to initialize Claude Code context for new/existing projects, discover and organize documentation, create CLAUDE.md and KNOWLEDGE_BASE.md for optimal token-efficient memory |
40
56
 
57
+ ## Common Workflow Patterns
58
+
59
+ The orchestrator uses these patterns to match user intent to multi-agent workflows. Each step is **conditional** - orchestrator asks user approval before advancing.
60
+
61
+ ### 1. Feature Discovery Flow (Most Common)
62
+ **User Intent**: "I need to add [feature]", "Build [new functionality]"
63
+ **Workflow**:
64
+ ```
65
+ orchestrator analyzes → asks: "Research competitive approaches first?"
66
+ ├─ Yes → business-analyst (research) → ask: "Create formal PRD?"
67
+ │ ├─ Yes → 1-create-prd → ask: "Generate implementation tasks?"
68
+ │ │ ├─ Yes → 2-generate-tasks → ask: "Start systematic implementation?"
69
+ │ │ │ ├─ Yes → 3-process-task-list
70
+ │ │ │ └─ No → Done (user has task list for review)
71
+ │ │ └─ No → Done (user has PRD for review)
72
+ │ └─ No → Done (user has research for review)
73
+ └─ No → 1-create-prd → (same conditional tree from PRD onward)
74
+ ```
75
+
76
+ ### 2. Product Definition Flow
77
+ **User Intent**: "We're considering a new product/initiative", "Strategic product planning"
78
+ **Workflow**:
79
+ ```
80
+ orchestrator → ask: "Follow product definition workflow?"
81
+ └─ Yes → product-manager (strategy, vision) → ask: "Define user stories?"
82
+ └─ Yes → product-owner (backlog, stories) → ask: "Technical feasibility assessment?"
83
+ └─ Yes → holistic-architect (platform decisions, technical design)
84
+ ```
85
+
86
+ ### 3. Story Implementation Flow
87
+ **User Intent**: "Implement [existing story]", "Build [defined feature with acceptance criteria]"
88
+ **Workflow**:
89
+ ```
90
+ orchestrator → ask: "Validate story readiness first?"
91
+ ├─ Yes → product-owner (validate acceptance criteria) → full-stack-dev → qa-test-architect
92
+ └─ No → full-stack-dev (implement) → qa-test-architect (quality gate)
93
+ ```
94
+
95
+ ### 4. Architecture Decision Flow
96
+ **User Intent**: "Should we use [tech A] or [tech B]?", "How should we architect [system]?"
97
+ **Workflow**:
98
+ ```
99
+ orchestrator → business-analyst (gather constraints, requirements)
100
+ → holistic-architect (options analysis, tradeoffs)
101
+ → ask: "Need product alignment?"
102
+ └─ Yes → product-manager (strategic alignment, decision rationale)
103
+ ```
104
+
105
+ ### 5. UI Development Flow
106
+ **User Intent**: "Build [UI component]", "Design and implement [interface]"
107
+ **Workflow**:
108
+ ```
109
+ orchestrator → ux-expert (wireframes, design system)
110
+ → ask: "Complex enough to need PRD?"
111
+ ├─ Yes → 1-create-prd → full-stack-dev → qa-test-architect
112
+ └─ No → full-stack-dev (implement) → qa-test-architect (validate)
113
+ ```
114
+
115
+ ### 6. Bug Triage Flow
116
+ **User Intent**: "Bug: [description]", "Fix [broken behavior]"
117
+ **Workflow**:
118
+ ```
119
+ orchestrator → full-stack-dev (investigate root cause)
120
+ → ask: "Severity level?"
121
+ ├─ Critical → full-stack-dev (immediate fix) → qa-test-architect (verify)
122
+ └─ Non-critical → 1-create-prd (bug story) → backlog (for sprint planning)
123
+ ```
124
+
125
+ ### 7. Brownfield Discovery Flow
126
+ **User Intent**: "Help me understand this codebase", "Document existing system"
127
+ **Workflow**:
128
+ ```
129
+ orchestrator → context-initializer (build knowledge base, discover patterns)
130
+ → business-analyst (document current state, stakeholders)
131
+ → ask: "Assess technical debt and modernization opportunities?"
132
+ └─ Yes → holistic-architect (technical assessment, recommendations)
133
+ ```
134
+
135
+ ### 8. Quality Validation Flow
136
+ **User Intent**: "Review this PR", "Check code quality before merge"
137
+ **Workflow**:
138
+ ```
139
+ orchestrator → qa-test-architect (comprehensive review)
140
+ → [Decision gate]
141
+ ├─ PASS → Done (ready to merge)
142
+ ├─ CONCERNS → Present issues → user decides next step
143
+ └─ FAIL → full-stack-dev (apply fixes) → qa-test-architect (re-validate)
144
+ ```
145
+
146
+ ### 9. Sprint Planning Flow
147
+ **User Intent**: "Plan next sprint", "Prepare sprint backlog"
148
+ **Workflow**:
149
+ ```
150
+ orchestrator → product-manager (prioritize features for sprint)
151
+ → scrum-master (break into user stories)
152
+ → product-owner (add acceptance criteria)
153
+ → 2-generate-tasks (create sprint backlog with tasks)
154
+ ```
155
+
156
+ ### Selective Context Injection
157
+
158
+ When orchestrator invokes specialists, it passes **minimal necessary context**:
159
+
160
+ **✓ Include**:
161
+ - Direct user requirements for the specific task
162
+ - Outputs from immediate workflow dependencies only
163
+ - Relevant domain-specific files/data
164
+
165
+ **✗ Exclude**:
166
+ - Full conversation history
167
+ - Unrelated workflow step outputs
168
+ - Tangential project context
169
+
170
+ **Example**: When invoking `qa-test-architect`:
171
+ - ✓ Include: code diff, test requirements, acceptance criteria
172
+ - ✗ Exclude: PRD creation discussions, UI wireframes, database schema decisions
41
173
 
42
174
  ### 1-Create PRD (id: 1-create-prd)
43
175
  Source: [./agents/ux-expert.md](./agents/1-create-prd.md)