@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amrhas82/agentic-kit",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Comprehensive toolkit for AI-driven software development with 13 specialized agents and 22 powerful skills. Interactive multi-tool installer supports Claude, Opencode, Ampcode, and Droid. Available in 3 variants: Lite (3 agents, 510 KB), Standard (13 agents, 8 skills, 8.4 MB), Pro (13 agents, 22 skills, 9 MB)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,21 +1,37 @@
1
- # Global Amp ./agents
1
+ # Global Amp Agents
2
2
 
3
3
  This file defines specialized agent personas available globally across all Amp workspaces, and provides guidance and memory for your coding CLI.
4
4
 
5
- # AmpCode sub./agents and Tasks (Amp)
5
+ # MANDATORY: Orchestrator-First Routing Pattern
6
6
 
7
- Ampcode reads ./agents.md during initialization and uses it as part of its system prompt for the session.
7
+ **System Instruction for Ampcode**:
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
+
21
+ # AmpCode subagents and Tasks (Amp)
22
+
23
+ Ampcode reads AGENT.md during initialization and uses it as part of its system prompt for the session.
8
24
 
9
25
  ## How To Use with Amp
10
26
 
11
- Activate ./agents by mentioning their ID in your prompts:
12
- - `"As full-stack-dev, implement the login feature"`
13
- - `"invoke subagent qa-test-architect"`
14
- - Copy/paste `ampcode` subfolders in this project to ~/.config/amp and Opencode will read and access ./agents from ~/.config/opencode/agent and tasks from ~~/.config/amp/resources/tasks-brief.md,
27
+ Activate agents by mentioning their ID in your prompts:
28
+ - `"@qa-test-architect review this code"`
29
+ - Copy/paste `ampcode` subfolders in this project to ~/.config/amp and Ampcode will read and access agents from ~/.config/amp/agents and tasks from ~~/.config/amp/resources/tasks-brief.md,
30
+ - 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.
15
31
 
16
32
  Note
17
- - Orchestrators/master run as mode: primary; other ./agents as mode: sub./agents.
18
- - All ./agents have enbaled tools: write, edit, bash.
33
+ - Orchestrators/master run as mode: primary; other agents as mode: subagents.
34
+ - All agents have enbaled tools: write, edit, bash.
19
35
 
20
36
  ## Agents
21
37
 
@@ -38,6 +54,123 @@ Note
38
54
  | Business Analyst | business-analyst | Market research, competitive analysis, project briefs |
39
55
  | Context Initializer | context-initializer | Use to initialize Ampcode context for new/existing projects, discover and organize documentation, create AGENT.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
173
+
41
174
  ## Agent Details
42
175
 
43
176
  ### 1-Create PRD (id: 1-create-prd)
@@ -116,7 +249,7 @@ Source: [./agents/holistic-architect.md](./agents/holistic-architect.md)
116
249
  ### Context Initializer (id: context-initializer)
117
250
  Source: [./agents/context-initializer.md](./agents/context-initializer.md)
118
251
 
119
- - 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
252
+ - When to use: Use to initialize Ampcode context for new/existing projects, discover and organize documentation, create AGENT.md and KNOWLEDGE_BASE.md for optimal token-efficient memory
120
253
  - How to activate: Mention "@context-initializer" or "As context-initializer, ..." to get role-aligned behavior
121
254
  - Full definition: open the source file above (content not embedded)
122
255