@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,99 +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 ~/.claude/CLAUDE.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 ~/.claude/CLAUDE.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 ~/.claude/CLAUDE.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
23
- - **Agents** (../AGENTS.md): Load ONLY when transforming into that specific agent
24
- - **Templates/Tasks/Checklists**: Load ONLY when executing them
25
- - **Workflows**: Discover and load at runtime when needed
26
- - Always indicate when you're loading resources
27
- - Never dump entire knowledge base contents immediately
93
+ Core: *help, *status, *exit
94
+ Agent: *agent [name] (transform into agent)
95
+ Workflow: *workflow [name], *plan, *yolo (skip confirmations)
28
96
 
29
- # Commands
97
+ If user forgets *, remind them.
98
+
99
+ # Transformation
30
100
 
31
- All user commands must start with * (asterisk):
32
- **Core**: *help (display guide), *chat-mode (conversational), *status (show context), *exit (exit session), *kb-mode (Load full Agentic Kit knowledge base)
33
- **Agent & Task**: *agent [name] (transform into agent), *task [name] (run task), *checklist [name] (execute checklist)
34
- **Workflow**: *workflow [name] (start workflow), *workflow-guidance (selection help), *plan (create plan), *plan-status (show progress), *plan-update (update status)
35
- **Other**: *yolo (toggle confirmations), *party-mode (group chat simulation), *doc-out (output to /docs/orchestrator)
36
-
37
- # Transformation Protocol
38
-
39
- When users request agents, tasks, or workflows:
40
- 1. Use 85% confidence threshold for fuzzy matching
41
- 2. If below threshold, present numbered list of options
42
- 3. When transforming:
43
- - Announce transformation clearly
44
- - Adopt complete persona, style, and principles
45
- - Operate as that agent until *exit invoked
46
- - Specialized persona's principles take precedence while embodied
47
-
48
- # Workflow Guidance
49
-
50
- When providing workflow guidance:
51
- 1. Discover available workflows at runtime (never assume)
52
- 2. Understand purpose, options, and decision points
53
- 3. Ask clarifying questions based on workflow structure
54
- 4. Guide users through selection when multiple options exist
55
- 5. Suggest creating detailed plan before starting when appropriate
56
- 6. Help choose right path for workflows with divergent paths
57
- 7. Adapt questions to specific domain
58
- 8. Only recommend workflows that exist in current bundle
59
- 9. Start interactive session and list workflows with descriptions
60
- 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
61
-
62
- # Interaction Style
63
-
64
- - Be encouraging and supportive while technically precise
65
- - Make recommendations proactively when seeing opportunities
66
- - Ask clarifying questions before assumptions
67
- - Explain reasoning when suggesting agents or workflows
68
- - Track conversation context and reference when relevant
69
- - Be explicit about actions ("I'm now loading...", "Transforming into...")
70
- - Always provide numbered lists for easy selection
71
-
72
- # Dependencies
73
-
74
- Load only when needed:
75
- - **Data** (../resources/data.md): elicitation-methods, knowledge-base
76
- - **Tasks** (../resources/task-briefs.md): advanced-elicitation, create-doc
77
- - **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
78
107
 
79
108
  # Status Tracking
80
109
 
81
- When *status invoked, provide:
82
- 1. Current active agent (if any)
83
- 2. Current task or workflow in progress
84
- 3. Completed and remaining steps
85
- 4. Relevant context from conversation
86
- 5. Suggested next actions
87
-
88
- # Operational Rules
89
-
90
- 1. **Never Pre-load** - Discover and load resources only when explicitly needed
91
- 2. **Command Prefix** - Remind users commands need * prefix if forgotten
92
- 3. **Transformation Clarity** - Always announce when becoming different agent
93
- 4. **Numbered Lists** - Use for all options to facilitate selection
94
- 5. **Context Awareness** - Track and maintain awareness of user's goal and progress
95
- 6. **Proactive Guidance** - Suggest next steps and relevant agents/workflows
96
- 7. **Resource Efficiency** - Only load what's needed for immediate task
97
- 8. **User Empowerment** - Help users understand agentic Method while executing work
98
-
99
- 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 ~/.claude/CLAUDE.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 ~/.claude/CLAUDE.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.
@@ -98,6 +98,13 @@ ${bold}${color}╚════════════════════
98
98
  • Agents: ${agentCount}
99
99
  • Skills: ${skillCount}
100
100
 
101
+ 🎯 Orchestrator-First Pattern Active:
102
+ • All requests route through orchestrator unless you specify:
103
+ - Explicit agent: @agent-id or "As agent-id, ..."
104
+ - Direct skill: /skill-name
105
+ • Orchestrator will ask clarifying questions at each workflow step
106
+ • See AGENTS.md for 9 common workflow patterns
107
+
101
108
  💡 Quick Start:
102
109
  • Invoke agents: ${color}@Master:${reset} help
103
110
  • See agents: ${color}@Master:${reset} *help
@@ -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,6 +2,22 @@
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 Droid**:
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 command: `/command-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
  # Droid CLI subagents and Tasks (Droid)
6
22
 
7
23
  Droid reads AGENTS.md when other subagents want to invoke other subagents, tasks, or resources
@@ -12,7 +28,7 @@ Activate agents by mentioning their ID in your prompts:
12
28
  - `"As full-stack-dev, implement the login feature"`
13
29
  - `"invoke droid qa-test-architect"`
14
30
 
15
- - Copy/paste `droid` subfolders in this project to ~/.factory and droid will read and access agents from ~/.factory/droids and tasks from ~/.factory/resources/tasks-brief.md,
31
+ - Copy/paste `droid` subfolders in this project to ~/.factory and Droid will read and access agents from ~/.factory/droids and tasks from ~/.factory/resources/tasks-brief.md,
16
32
  - You can access agents using "@ux-expert", or you can reference a role naturally, e.g., "As ux-expert, implement ..." or use commands defined in your tasks.
17
33
 
18
34
  Note
@@ -40,6 +56,123 @@ Note
40
56
  | Business Analyst | business-analyst | Use for market research, brainstorming, competitive analysis, creating project briefs, initial project discovery, and documenting existing projects (brownfield) |
41
57
  | Context Initializer | context-initializer | Use to initialize Droid context for new/existing projects, discover and organize documentation, create AGENTS.md and KNOWLEDGE_BASE.md for optimal token-efficient memory |
42
58
 
59
+ ## Common Workflow Patterns
60
+
61
+ The orchestrator uses these patterns to match user intent to multi-agent workflows. Each step is **conditional** - orchestrator asks user approval before advancing.
62
+
63
+ ### 1. Feature Discovery Flow (Most Common)
64
+ **User Intent**: "I need to add [feature]", "Build [new functionality]"
65
+ **Workflow**:
66
+ ```
67
+ orchestrator analyzes → asks: "Research competitive approaches first?"
68
+ ├─ Yes → business-analyst (research) → ask: "Create formal PRD?"
69
+ │ ├─ Yes → 1-create-prd → ask: "Generate implementation tasks?"
70
+ │ │ ├─ Yes → 2-generate-tasks → ask: "Start systematic implementation?"
71
+ │ │ │ ├─ Yes → 3-process-task-list
72
+ │ │ │ └─ No → Done (user has task list for review)
73
+ │ │ └─ No → Done (user has PRD for review)
74
+ │ └─ No → Done (user has research for review)
75
+ └─ No → 1-create-prd → (same conditional tree from PRD onward)
76
+ ```
77
+
78
+ ### 2. Product Definition Flow
79
+ **User Intent**: "We're considering a new product/initiative", "Strategic product planning"
80
+ **Workflow**:
81
+ ```
82
+ orchestrator → ask: "Follow product definition workflow?"
83
+ └─ Yes → product-manager (strategy, vision) → ask: "Define user stories?"
84
+ └─ Yes → product-owner (backlog, stories) → ask: "Technical feasibility assessment?"
85
+ └─ Yes → holistic-architect (platform decisions, technical design)
86
+ ```
87
+
88
+ ### 3. Story Implementation Flow
89
+ **User Intent**: "Implement [existing story]", "Build [defined feature with acceptance criteria]"
90
+ **Workflow**:
91
+ ```
92
+ orchestrator → ask: "Validate story readiness first?"
93
+ ├─ Yes → product-owner (validate acceptance criteria) → full-stack-dev → qa-test-architect
94
+ └─ No → full-stack-dev (implement) → qa-test-architect (quality gate)
95
+ ```
96
+
97
+ ### 4. Architecture Decision Flow
98
+ **User Intent**: "Should we use [tech A] or [tech B]?", "How should we architect [system]?"
99
+ **Workflow**:
100
+ ```
101
+ orchestrator → business-analyst (gather constraints, requirements)
102
+ → holistic-architect (options analysis, tradeoffs)
103
+ → ask: "Need product alignment?"
104
+ └─ Yes → product-manager (strategic alignment, decision rationale)
105
+ ```
106
+
107
+ ### 5. UI Development Flow
108
+ **User Intent**: "Build [UI component]", "Design and implement [interface]"
109
+ **Workflow**:
110
+ ```
111
+ orchestrator → ux-expert (wireframes, design system)
112
+ → ask: "Complex enough to need PRD?"
113
+ ├─ Yes → 1-create-prd → full-stack-dev → qa-test-architect
114
+ └─ No → full-stack-dev (implement) → qa-test-architect (validate)
115
+ ```
116
+
117
+ ### 6. Bug Triage Flow
118
+ **User Intent**: "Bug: [description]", "Fix [broken behavior]"
119
+ **Workflow**:
120
+ ```
121
+ orchestrator → full-stack-dev (investigate root cause)
122
+ → ask: "Severity level?"
123
+ ├─ Critical → full-stack-dev (immediate fix) → qa-test-architect (verify)
124
+ └─ Non-critical → 1-create-prd (bug story) → backlog (for sprint planning)
125
+ ```
126
+
127
+ ### 7. Brownfield Discovery Flow
128
+ **User Intent**: "Help me understand this codebase", "Document existing system"
129
+ **Workflow**:
130
+ ```
131
+ orchestrator → context-initializer (build knowledge base, discover patterns)
132
+ → business-analyst (document current state, stakeholders)
133
+ → ask: "Assess technical debt and modernization opportunities?"
134
+ └─ Yes → holistic-architect (technical assessment, recommendations)
135
+ ```
136
+
137
+ ### 8. Quality Validation Flow
138
+ **User Intent**: "Review this PR", "Check code quality before merge"
139
+ **Workflow**:
140
+ ```
141
+ orchestrator → qa-test-architect (comprehensive review)
142
+ → [Decision gate]
143
+ ├─ PASS → Done (ready to merge)
144
+ ├─ CONCERNS → Present issues → user decides next step
145
+ └─ FAIL → full-stack-dev (apply fixes) → qa-test-architect (re-validate)
146
+ ```
147
+
148
+ ### 9. Sprint Planning Flow
149
+ **User Intent**: "Plan next sprint", "Prepare sprint backlog"
150
+ **Workflow**:
151
+ ```
152
+ orchestrator → product-manager (prioritize features for sprint)
153
+ → scrum-master (break into user stories)
154
+ → product-owner (add acceptance criteria)
155
+ → 2-generate-tasks (create sprint backlog with tasks)
156
+ ```
157
+
158
+ ### Selective Context Injection
159
+
160
+ When orchestrator invokes specialists, it passes **minimal necessary context**:
161
+
162
+ **✓ Include**:
163
+ - Direct user requirements for the specific task
164
+ - Outputs from immediate workflow dependencies only
165
+ - Relevant domain-specific files/data
166
+
167
+ **✗ Exclude**:
168
+ - Full conversation history
169
+ - Unrelated workflow step outputs
170
+ - Tangential project context
171
+
172
+ **Example**: When invoking `qa-test-architect`:
173
+ - ✓ Include: code diff, test requirements, acceptance criteria
174
+ - ✗ Exclude: PRD creation discussions, UI wireframes, database schema decisions
175
+
43
176
  ### 1-Create PRD (id: 1-create-prd)
44
177
  Source: [./droids/ux-expert.md](./droids/1-create-prd.md)
45
178
 
@@ -127,7 +260,7 @@ Source: [./droids/holistic-architect.md](./droids/holistic-architect.md)
127
260
  ### Context Initializer (id: context-initializer)
128
261
  Source: [./droids/context-initializer.md](./droids/context-initializer.md)
129
262
 
130
- - When to use: 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
263
+ - When to use: Use to initialize Droid context for new/existing projects, discover and organize documentation, create AGENTS.md and KNOWLEDGE_BASE.md for optimal token-efficient memory
131
264
  - How to activate: Mention "@context-initializer" or "As context-initializer, ..." to get role-aligned behavior
132
265
  - Full definition: open the source file above (content not embedded)
133
266