ai-team 1.0.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 (91) hide show
  1. package/.agents/manifest.json +170 -0
  2. package/.agents/skills/agent-creator/SKILL.md +28 -0
  3. package/.agents/skills/ai-integration/SKILL.md +69 -0
  4. package/.agents/skills/back-end-development/SKILL.md +44 -0
  5. package/.agents/skills/database-management/SKILL.md +111 -0
  6. package/.agents/skills/front-end-development/SKILL.md +39 -0
  7. package/.agents/skills/front-end-development/references/component-architecture.md +213 -0
  8. package/.agents/skills/front-end-development/references/data-fetching-pattern.md +111 -0
  9. package/.agents/skills/front-end-development/references/state-management.md +223 -0
  10. package/.agents/skills/front-end-development/references/styling.md +226 -0
  11. package/.agents/skills/self-improvement/SKILL.md +32 -0
  12. package/.agents/skills/self-improvement/templates/handoff-template.md +35 -0
  13. package/.agents/skills/self-improvement/templates/plan-template.md +55 -0
  14. package/.agents/skills/visual-testing/SKILL.md +40 -0
  15. package/.agents/teams/web-product/README.md +65 -0
  16. package/.agents/teams/web-product/workflows/feature-lifecycle.md +101 -0
  17. package/.github/agents/agent-creator.agent.md +66 -0
  18. package/.github/agents/cli-dev.agent.md +57 -0
  19. package/.github/agents/code-reviewer.agent.md +66 -0
  20. package/.github/agents/documentation-writer.agent.md +62 -0
  21. package/.github/agents/planning-agent.agent.md +70 -0
  22. package/.github/agents/product-team-orchestrator.agent.md +82 -0
  23. package/.github/agents/requirement-analyst.agent.md +65 -0
  24. package/.vscode/mcp.json +15 -0
  25. package/README.md +121 -0
  26. package/docs/agents/README.md +36 -0
  27. package/docs/cli.md +65 -0
  28. package/docs/plan.md +95 -0
  29. package/package.json +30 -0
  30. package/src/agents/definitions/agent-creator.yaml +68 -0
  31. package/src/agents/definitions/backend-dev.yaml +69 -0
  32. package/src/agents/definitions/cli-dev.yaml +59 -0
  33. package/src/agents/definitions/code-reviewer.yaml +67 -0
  34. package/src/agents/definitions/documentation-writer.yaml +74 -0
  35. package/src/agents/definitions/frontend-dev.yaml +68 -0
  36. package/src/agents/definitions/planning-agent.yaml +72 -0
  37. package/src/agents/definitions/product-team-orchestrator.yaml +83 -0
  38. package/src/agents/definitions/requirement-analyst.yaml +67 -0
  39. package/src/agents/definitions/tester.yaml +81 -0
  40. package/src/agents/generate.js +213 -0
  41. package/src/cli.js +398 -0
  42. package/src/lib/adapters.js +41 -0
  43. package/src/lib/fs-utils.js +60 -0
  44. package/src/lib/hash.js +9 -0
  45. package/src/lib/manifest.js +50 -0
  46. package/src/lib/migration.js +60 -0
  47. package/src/lib/prompts.js +104 -0
  48. package/src/lib/sync-engine.js +319 -0
  49. package/src/lib/template-registry.js +107 -0
  50. package/templates/bootstrap/base/.agents/skills/agent-creator/SKILL.md +28 -0
  51. package/templates/bootstrap/base/.agents/skills/ai-integration/SKILL.md +69 -0
  52. package/templates/bootstrap/base/.agents/skills/back-end-development/SKILL.md +44 -0
  53. package/templates/bootstrap/base/.agents/skills/database-management/SKILL.md +111 -0
  54. package/templates/bootstrap/base/.agents/skills/front-end-development/SKILL.md +39 -0
  55. package/templates/bootstrap/base/.agents/skills/front-end-development/references/component-architecture.md +213 -0
  56. package/templates/bootstrap/base/.agents/skills/front-end-development/references/data-fetching-pattern.md +111 -0
  57. package/templates/bootstrap/base/.agents/skills/front-end-development/references/state-management.md +223 -0
  58. package/templates/bootstrap/base/.agents/skills/front-end-development/references/styling.md +226 -0
  59. package/templates/bootstrap/base/.agents/skills/self-improvement/SKILL.md +32 -0
  60. package/templates/bootstrap/base/.agents/skills/self-improvement/templates/handoff-template.md +35 -0
  61. package/templates/bootstrap/base/.agents/skills/self-improvement/templates/plan-template.md +55 -0
  62. package/templates/bootstrap/base/.agents/skills/visual-testing/SKILL.md +40 -0
  63. package/templates/bootstrap/base/.agents/teams/web-product/README.md +65 -0
  64. package/templates/bootstrap/base/.agents/teams/web-product/workflows/feature-lifecycle.md +101 -0
  65. package/templates/bootstrap/manifest.json +32 -0
  66. package/templates/bootstrap/overlays/claude-code/.claude/agents/agent-creator.md +55 -0
  67. package/templates/bootstrap/overlays/claude-code/.claude/agents/backend-dev.md +48 -0
  68. package/templates/bootstrap/overlays/claude-code/.claude/agents/cli-dev.md +47 -0
  69. package/templates/bootstrap/overlays/claude-code/.claude/agents/code-reviewer.md +52 -0
  70. package/templates/bootstrap/overlays/claude-code/.claude/agents/documentation-writer.md +56 -0
  71. package/templates/bootstrap/overlays/claude-code/.claude/agents/frontend-dev.md +47 -0
  72. package/templates/bootstrap/overlays/claude-code/.claude/agents/planning-agent.md +51 -0
  73. package/templates/bootstrap/overlays/claude-code/.claude/agents/product-team-orchestrator.md +51 -0
  74. package/templates/bootstrap/overlays/claude-code/.claude/agents/requirement-analyst.md +54 -0
  75. package/templates/bootstrap/overlays/claude-code/.claude/agents/tester.md +58 -0
  76. package/templates/bootstrap/overlays/claude-code/.mcp.json +3 -0
  77. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/agent-creator.agent.md +66 -0
  78. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/backend-dev.agent.md +67 -0
  79. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/cli-dev.agent.md +57 -0
  80. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/code-reviewer.agent.md +64 -0
  81. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/documentation-writer.agent.md +72 -0
  82. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/frontend-dev.agent.md +66 -0
  83. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/planning-agent.agent.md +70 -0
  84. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/product-team-orchestrator.agent.md +82 -0
  85. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/requirement-analyst.agent.md +65 -0
  86. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/tester-agent.agent.md +69 -0
  87. package/templates/bootstrap/overlays/vscode-copilot/.github/agents/tester.agent.md +80 -0
  88. package/templates/bootstrap/overlays/vscode-copilot/.vscode/mcp.json +12 -0
  89. package/tests/cli.integration.test.js +63 -0
  90. package/tests/hash.test.js +9 -0
  91. package/tests/sync-engine.test.js +77 -0
@@ -0,0 +1,226 @@
1
+ # Styling Standards
2
+
3
+ ## CSS Units and Values
4
+
5
+ **CRITICAL RULES:**
6
+
7
+ - ❌ **NO magic numbers** - Use existing design tokens when available; when creating reusable components, define component-specific tokens; otherwise, direct `rem` values are allowed
8
+ - ❌ **NO `px` units** - Always use `rem` for scalability and accessibility
9
+ - ❌ **NO arbitrary colors** - Only use Nuxt UI CSS variables
10
+
11
+ ## Nuxt UI CSS Variables
12
+
13
+ This project uses **Nuxt UI** which provides theme-aware CSS variables. All colors MUST use these variables:
14
+
15
+ **Text Colors:**
16
+
17
+ ```css
18
+ /* ❌ WRONG - Arbitrary color values or old framework variables */
19
+ .component {
20
+ color: #ffffff;
21
+ color: var(--p-text-color); /* Old PrimeVue variable */
22
+ color: rgba(255, 255, 255, 0.85);
23
+ }
24
+
25
+ /* ✅ CORRECT - Nuxt UI CSS variables */
26
+ .component {
27
+ color: var(--ui-text); /* Primary text */
28
+ color: var(--ui-text-muted); /* Secondary/muted text */
29
+ color: var(--ui-text-dimmed); /* Dimmed/tertiary text */
30
+ color: var(--ui-text-highlighted); /* Highlighted text */
31
+ }
32
+ ```
33
+
34
+ **Background Colors:**
35
+
36
+ ```css
37
+ /* ❌ WRONG */
38
+ .component {
39
+ background: #1a1a1a;
40
+ background: var(--surface-card); /* Old variable */
41
+ }
42
+
43
+ /* ✅ CORRECT - Nuxt UI CSS variables */
44
+ .component {
45
+ background: var(--ui-bg); /* Base background */
46
+ background: var(--ui-bg-elevated); /* Elevated surfaces (cards, modals) */
47
+ background: var(--ui-bg-accented); /* Accented/muted background */
48
+ background: var(--ui-bg-inverted); /* Inverted background */
49
+ }
50
+ ```
51
+
52
+ **Border Colors:**
53
+
54
+ ```css
55
+ /* ❌ WRONG */
56
+ .component {
57
+ border: 1px solid #333333;
58
+ border: 1px solid var(--surface-border); /* Old variable */
59
+ }
60
+
61
+ /* ✅ CORRECT - Nuxt UI CSS variables */
62
+ .component {
63
+ border: 1px solid var(--ui-border); /* Standard border */
64
+ border: 1px solid var(--ui-border-accented); /* Accented/hover border */
65
+ border: 1px solid var(--ui-border-inverted); /* Inverted border */
66
+ }
67
+ ```
68
+
69
+ **Theme Colors:**
70
+
71
+ ```css
72
+ /* ❌ WRONG */
73
+ .component {
74
+ color: var(--p-primary-color); /* Old PrimeVue variable */
75
+ background: rgba(212, 255, 0, 0.1); /* Hardcoded primary */
76
+ }
77
+
78
+ /* ✅ CORRECT - Nuxt UI CSS variables */
79
+ .component {
80
+ color: var(--ui-primary); /* Primary theme color */
81
+ background: color-mix(in srgb, var(--ui-primary) 10%, transparent);
82
+ }
83
+
84
+ /* Semantic colors */
85
+ .success {
86
+ color: var(--ui-success);
87
+ }
88
+ .warning {
89
+ color: var(--ui-warning);
90
+ }
91
+ .error {
92
+ color: var(--ui-error);
93
+ }
94
+ .info {
95
+ color: var(--ui-info);
96
+ }
97
+ ```
98
+
99
+ ## Nuxt UI Theme Variables (authoritative list)
100
+
101
+ Use the Nuxt UI CSS variables documented here: https://ui.nuxt.com/docs/getting-started/theme/css-variables
102
+
103
+ ## Spacing
104
+
105
+ Use rem values directly - do NOT define custom spacing variables:
106
+
107
+ ```css
108
+ /* ❌ WRONG - Old custom spacing variables */
109
+ .component {
110
+ padding: var(--spacing-md);
111
+ gap: var(--spacing-lg);
112
+ }
113
+
114
+ /* ✅ CORRECT - Direct rem values */
115
+ .component {
116
+ padding: 1rem;
117
+ gap: 1.5rem;
118
+ }
119
+ ```
120
+
121
+ **Standard spacing scale (rem):**
122
+
123
+ | Value | Pixels | Use Case |
124
+ | ------- | ------ | --------------------------- |
125
+ | 0.25rem | 4px | Tiny gaps, icon spacing |
126
+ | 0.5rem | 8px | Small gaps, compact padding |
127
+ | 0.75rem | 12px | Medium-small spacing |
128
+ | 1rem | 16px | Base padding, standard gaps |
129
+ | 1.5rem | 24px | Section spacing |
130
+ | 2rem | 32px | Large section spacing |
131
+ | 3rem | 48px | Extra large spacing |
132
+
133
+ ## Border Radius
134
+
135
+ Use rem values directly:
136
+
137
+ ```css
138
+ /* ❌ WRONG */
139
+ .component {
140
+ border-radius: var(--border-radius);
141
+ }
142
+
143
+ /* ✅ CORRECT */
144
+ .component {
145
+ border-radius: 0.5rem; /* 8px - standard */
146
+ border-radius: 0.75rem; /* 12px - cards, buttons */
147
+ border-radius: 50%; /* Circular elements */
148
+ }
149
+ ```
150
+
151
+ ## Complete Example
152
+
153
+ ```css
154
+ /* ✅ CORRECT - Using Nuxt UI variables */
155
+ .card {
156
+ background: var(--ui-bg-elevated);
157
+ border: 1px solid var(--ui-border);
158
+ border-radius: 0.75rem;
159
+ padding: 1.5rem;
160
+ }
161
+
162
+ .card:hover {
163
+ border-color: var(--ui-border-accented);
164
+ }
165
+
166
+ .card-title {
167
+ color: var(--ui-text);
168
+ font-size: 1.25rem;
169
+ margin-bottom: 0.5rem;
170
+ }
171
+
172
+ .card-description {
173
+ color: var(--ui-text-muted);
174
+ font-size: 0.875rem;
175
+ }
176
+
177
+ .card-highlight {
178
+ color: var(--ui-primary);
179
+ background: color-mix(in srgb, var(--ui-primary) 10%, transparent);
180
+ padding: 0.25rem 0.5rem;
181
+ border-radius: 0.25rem;
182
+ }
183
+ ```
184
+
185
+ ## Migration from Old Variables
186
+
187
+ If you encounter old variables, replace them:
188
+
189
+ | Old Variable | New Variable (Nuxt UI) |
190
+ | ----------------------- | ---------------------------- |
191
+ | `--p-text-color` | `--ui-text` |
192
+ | `--p-text-muted-color` | `--ui-text-muted` |
193
+ | `--p-primary-color` | `--ui-primary` |
194
+ | `--p-warn-color` | `--ui-warning` |
195
+ | `--p-danger-color` | `--ui-error` |
196
+ | `--surface-card` | `--ui-bg-elevated` |
197
+ | `--surface-ground` | `--ui-bg-accented` |
198
+ | `--surface-border` | `--ui-border` |
199
+ | `--spacing-*` | Direct rem values |
200
+ | `--border-radius` | Direct rem values |
201
+ | `rgba(255,255,255,0.x)` | `--ui-text-muted` or similar |
202
+
203
+ ## Rem Conversion Reference
204
+
205
+ Base font size: 16px (browser default)
206
+
207
+ | rem | px |
208
+ | ---- | --- |
209
+ | 0.25 | 4 |
210
+ | 0.5 | 8 |
211
+ | 0.75 | 12 |
212
+ | 1 | 16 |
213
+ | 1.25 | 20 |
214
+ | 1.5 | 24 |
215
+ | 2 | 32 |
216
+ | 3 | 48 |
217
+
218
+ ## Enforcement
219
+
220
+ **Code Review Checklist:**
221
+
222
+ - [ ] No hardcoded pixel values
223
+ - [ ] No magic numbers without token variables
224
+ - [ ] No arbitrary color hex codes
225
+ - [ ] All spacing uses rem units
226
+ - [ ] All colors use design tokens
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: self-improvement
3
+ description: Shared process for agent learning artifacts and reusable handoff/plan templates.
4
+ ---
5
+
6
+ # Self-Improvement Skill
7
+
8
+ ## Purpose
9
+
10
+ Standardize how agents capture reusable learnings and how they hand off work between roles.
11
+
12
+ ## Required Outputs After Significant Work
13
+
14
+ Each agent must update at least one of:
15
+
16
+ - `docs/agents/knowledge/<agent>.md`
17
+ - `docs/agents/handoffs/<feature-id>/*.md`
18
+ - `docs/agents/plans/<feature-id>/plan.md`
19
+
20
+ ## Template Source of Truth
21
+
22
+ Use templates from this skill folder:
23
+
24
+ - `.agents/skills/self-improvement/templates/handoff-template.md`
25
+ - `.agents/skills/self-improvement/templates/plan-template.md`
26
+
27
+ ## Working Rules
28
+
29
+ 1. Reuse one stable `<feature-id>` across all artifacts.
30
+ 2. Keep handoffs actionable: context, completed/open work, risks, next actions.
31
+ 3. Keep plans traceable to PRD/story requirements.
32
+ 4. Add concise dated lessons that can improve future execution.
@@ -0,0 +1,35 @@
1
+ # Handoff Template
2
+
3
+ ## Feature
4
+
5
+ - ID:
6
+ - Name:
7
+ - From Agent:
8
+ - To Agent:
9
+ - Date:
10
+
11
+ ## Context
12
+
13
+ Describe user value, constraints, and current state.
14
+
15
+ ## Completed
16
+
17
+ -
18
+
19
+ ## Open Work
20
+
21
+ -
22
+
23
+ ## Risks / Unknowns
24
+
25
+ -
26
+
27
+ ## Required Next Actions
28
+
29
+ 1.
30
+ 2.
31
+ 3.
32
+
33
+ ## Definition of Done for Next Agent
34
+
35
+ -
@@ -0,0 +1,55 @@
1
+ # Implementation Plan Template
2
+
3
+ ## Metadata
4
+
5
+ - Plan ID:
6
+ - Story ID(s):
7
+ - Author Agent: Planning Agent
8
+ - Date:
9
+
10
+ ## Requirement Summary
11
+
12
+ - User problem:
13
+ - Business objective:
14
+ - In-scope:
15
+ - Out-of-scope:
16
+
17
+ ## Source Documents Reviewed
18
+
19
+ - `docs/prd.md`
20
+ - `docs/PROGRESS.md`
21
+ - `docs/stories/...`
22
+
23
+ ## Proposed Solution
24
+
25
+ Short architecture and flow summary.
26
+
27
+ ## Frontend Workstream
28
+
29
+ - Tasks
30
+ - Files likely impacted
31
+ - Risks
32
+
33
+ ## Backend Workstream
34
+
35
+ - API/data tasks
36
+ - For each endpoint in scope, include unit tests covering functionality and boundary conditions
37
+ - Schema/migration needs
38
+ - Risks
39
+
40
+ ## Test Plan
41
+
42
+ - Endpoint unit tests (functionality + boundary conditions)
43
+ - Integration/E2E checks
44
+ - Visual checks + required screenshots
45
+
46
+ ## Acceptance Checklist
47
+
48
+ - [ ] AC1
49
+ - [ ] AC2
50
+ - [ ] AC3
51
+
52
+ ## Rollout / Recovery
53
+
54
+ - Rollout notes
55
+ - Fallback notes
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: visual-testing
3
+ description: Browser-driven visual verification workflow using Chrome DevTools MCP, screenshots, and lightweight image analysis.
4
+ ---
5
+
6
+ # Visual Testing Skill
7
+
8
+ ## Primary Workflow
9
+
10
+ 1. Start app and authenticate test user.
11
+ 2. Navigate target flows using browser MCP tools.
12
+ 3. Capture screenshots into `test/artifacts/screenshots/`.
13
+ 4. Record visual assertions (layout, spacing, alignment, state).
14
+ 5. Compare against baseline screenshot set when available.
15
+
16
+ ## Screenshot Conventions
17
+
18
+ - File naming: `<feature-id>_<page>_<state>.png`
19
+ - Example: `M1.4.3_session-report_loaded.png`
20
+ - Capture both full-page and critical component crops where useful.
21
+
22
+ ## Recommended Tooling
23
+
24
+ - Primary: Chrome DevTools MCP screenshot + DOM snapshot
25
+ - Optional local diff: `pixelmatch` or `looks-same` for regression checks
26
+ - Optional AI vision review (if MCP available): use multimodal model to classify obvious layout defects
27
+
28
+ ## Visual QA Checklist
29
+
30
+ - No clipped text at common viewport sizes
31
+ - Primary actions visible without ambiguity
32
+ - Spacing follows existing rhythm/tokens
33
+ - Error and loading states are readable
34
+ - No console errors during interaction
35
+
36
+ ## Output Requirements
37
+
38
+ - Store screenshots in `test/artifacts/screenshots/`
39
+ - Store QA summary in `docs/agents/handoffs/<id>/qa.md`
40
+ - Mark each acceptance check as PASS/FAIL with evidence links
@@ -0,0 +1,65 @@
1
+ # Web Product Multi-Agent Team
2
+
3
+ This folder defines a practical multi-agent setup for this workspace.
4
+
5
+ ## Agents
6
+
7
+ - Agent definitions are canonical in `src/agents/definitions/*.yaml`
8
+ - `.github/agents/*.agent.md` files are generated install targets
9
+
10
+ Generated install targets (VS Code):
11
+
12
+ - `.github/agents/requirement-analyst.agent.md`
13
+ - `.github/agents/planning-agent.agent.md`
14
+ - `.github/agents/frontend-dev.agent.md`
15
+ - `.github/agents/backend-dev.agent.md`
16
+ - `.github/agents/code-reviewer.agent.md`
17
+ - `.github/agents/tester.agent.md`
18
+ - `.github/agents/documentation-writer.agent.md`
19
+ - `.github/agents/product-team-orchestrator.agent.md`
20
+ - `.github/agents/agent-creator.agent.md`
21
+
22
+ ## Shared Workflow
23
+
24
+ - `workflows/feature-lifecycle.md`
25
+
26
+ ## Source of Truth
27
+
28
+ - Agent templates: `src/agents/definitions/*.yaml`
29
+ - Template pack metadata: `templates/bootstrap/manifest.json`
30
+ - Bootstrap overlays: `templates/bootstrap/overlays/**`
31
+ - Product direction: `docs/prd.md`
32
+ - Delivery state: `docs/PROGRESS.md`
33
+ - User stories: `docs/stories/*.md`
34
+ - Agent plans: `docs/agents/plans/<feature-id>/plan.md`
35
+ - Agent handoffs: `docs/agents/handoffs/<feature-id>/`
36
+ - Agent knowledge: `docs/agents/knowledge/`
37
+
38
+ ## How to Use in VS Code Chat
39
+
40
+ Use this sequence for each feature:
41
+
42
+ 1. Start with Requirement Analyst to challenge assumptions and sharpen value.
43
+ 2. Move to Planning Agent to create an implementation plan.
44
+ 3. Execute with Frontend/Backend Dev Agents in parallel where possible.
45
+ 4. Run Code Reviewer Agent for simplification, duplication, maintainability, and security checks.
46
+ 5. Validate with Tester Agent (browser flows + screenshots).
47
+ 6. If issues are found, Tester Agent hands off to Frontend/Backend Dev Agents for fixes.
48
+ 7. Feed improvements back into `docs/agents/knowledge/` and skills.
49
+
50
+ ## Self-Improvement Rule
51
+
52
+ Every agent must produce or update at least one artifact after significant work:
53
+
54
+ - A short decision or rationale note in `docs/agents/knowledge/<agent>.md`, or
55
+ - A reusable pattern in `.agents/skills/<skill>/`.
56
+
57
+ Policy source: `.agents/skills/self-improvement/SKILL.md`
58
+
59
+ ## Project Customization
60
+
61
+ Add project-specific guidance without changing installed templates under:
62
+
63
+ - `.agents/custom/skills/`
64
+ - `.agents/custom/workflows/`
65
+ - `.agents/custom/agents/`
@@ -0,0 +1,101 @@
1
+ # Workflow: Feature Lifecycle
2
+
3
+ ## Goal
4
+
5
+ Drive a feature from idea to shipped quality using specialized agents and shared artifacts.
6
+
7
+ ## Feature ID Convention
8
+
9
+ Use one stable identifier across all artifacts for a feature, for example `M1.4.3`.
10
+
11
+ - Plan: `docs/agents/plans/<feature-id>/plan.md`
12
+ - FE handoff: `docs/agents/handoffs/<feature-id>/frontend.md`
13
+ - BE handoff: `docs/agents/handoffs/<feature-id>/backend.md`
14
+ - Integration handoff: `docs/agents/handoffs/<feature-id>/integration.md`
15
+ - Code review handoff: `docs/agents/handoffs/<feature-id>/code-review.md`
16
+ - QA handoff: `docs/agents/handoffs/<feature-id>/qa.md`
17
+
18
+ ## Step 1 — Requirement Analysis
19
+
20
+ **Agent:** Requirement Analyst
21
+ **Inputs:** rough idea, constraints, target user
22
+ **Outputs:**
23
+
24
+ - Updated requirements in `docs/prd.md` (if product-level change)
25
+ - Story-level decisions in `docs/stories/<id>.md` (if scoped feature)
26
+ - Decision record in `docs/agents/knowledge/requirement-analyst.md`
27
+
28
+ ## Step 2 — Planning
29
+
30
+ **Agent:** Planning Agent
31
+ **Inputs:** `docs/prd.md`, `docs/PROGRESS.md`, story docs
32
+ **Outputs:**
33
+
34
+ - Implementation plan in `docs/agents/plans/<id>/plan.md`
35
+ - Frontend task list and backend task list
36
+ - Explicit acceptance checks
37
+
38
+ ## Step 3 — Implementation
39
+
40
+ **Agents:** Frontend Dev + Backend Dev
41
+ **Inputs:** plan doc + story acceptance criteria
42
+ **Outputs:**
43
+
44
+ - Code changes in app/server/db
45
+ - Updated story implementation notes
46
+ - Improvement notes in `docs/agents/knowledge/frontend-dev.md` and `docs/agents/knowledge/backend-dev.md`
47
+
48
+ ## Step 3.5 — Integration Handoff (Required)
49
+
50
+ **Owner:** Planning Agent (or Product Team Orchestrator)
51
+ **Inputs:** `frontend.md` and `backend.md` handoffs in `docs/agents/handoffs/<id>/`
52
+ **Outputs:**
53
+
54
+ - Combined readiness note in `docs/agents/handoffs/<id>/integration.md`
55
+ - Confirmed review and test scope for Code Reviewer + Tester agents
56
+ - Explicit unresolved dependencies list (if any)
57
+
58
+ ## Step 4 — Code Review
59
+
60
+ **Agent:** Code Reviewer
61
+ **Inputs:** plan acceptance checks + integration handoff + changed files/diffs
62
+ **Outputs:**
63
+
64
+ - Review report in `docs/agents/handoffs/<id>/code-review.md`
65
+ - Findings grouped by simplification, duplication, maintainability, and security
66
+ - Severity tagging (`blocker`, `major`, `minor`, `nit`) and explicit action list
67
+
68
+ ## Step 5 — Verification
69
+
70
+ **Agent:** Tester
71
+ **Inputs:** plan acceptance checks + integration handoff + code review handoff + changed flows
72
+ **Outputs:**
73
+
74
+ - Test run evidence in `docs/agents/handoffs/<id>/qa.md`
75
+ - Screenshots in `test/artifacts/screenshots/`
76
+ - Visual/layout notes and pass/fail decision
77
+
78
+ ## Step 5b — Fixes (Conditional)
79
+
80
+ **Agent:** Frontend Dev / Backend Dev
81
+ **Trigger:** Verification failure in Step 5
82
+ **Inputs:** QA report `docs/agents/handoffs/<id>/qa.md`
83
+ **Action:** Fix implementation bugs and handoff back to Tester or Code Reviewer.
84
+
85
+ ## Step 6 — Closeout
86
+
87
+ **Owner:** Planning Agent (or orchestrator role)
88
+ **Outputs:**
89
+
90
+ - Update `docs/PROGRESS.md`
91
+ - Confirm story status in `docs/stories/<id>.md`
92
+ - Summarize lessons in `docs/agents/knowledge/planning-agent.md`
93
+
94
+ ## Handoff Contract (Required)
95
+
96
+ Every handoff note must include:
97
+
98
+ 1. Context and objective
99
+ 2. What changed / what remains
100
+ 3. Risks and assumptions
101
+ 4. Exact next action for receiving agent
@@ -0,0 +1,32 @@
1
+ {
2
+ "templateVersion": "0.1.0",
3
+ "schemaVersion": 1,
4
+ "baseRoot": "base",
5
+ "overlayRoot": "overlays",
6
+ "defaultTeam": "web-product",
7
+ "packs": {
8
+ "skills": {
9
+ "root": "base/.agents/skills"
10
+ },
11
+ "team": {
12
+ "web-product": {
13
+ "readme": "base/.agents/teams/web-product/README.md",
14
+ "workflows": "base/.agents/teams/web-product/workflows"
15
+ }
16
+ },
17
+ "overlays": {
18
+ "vscode": {
19
+ "id": "vscode-copilot",
20
+ "root": "overlays/vscode-copilot",
21
+ "agents": ".github/agents",
22
+ "mcp": ".vscode/mcp.json"
23
+ },
24
+ "claude-code": {
25
+ "id": "claude-code",
26
+ "root": "overlays/claude-code",
27
+ "agents": ".claude/agents",
28
+ "mcp": ".mcp.json"
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: agent-creator
3
+ description: 🤖 Agent Creator — specialist in defining and configuring new custom subagents. Use when the team needs a new role-specific agent or when an existing agent definition needs to be updated.
4
+ tools: Read, Edit, Write, Grep, Glob, Bash
5
+ ---
6
+
7
+ # Agent Creator
8
+
9
+ You are the Agent Creator for this project.
10
+
11
+ ## Required References
12
+
13
+ - `.agents/skills/agent-creator/SKILL.md`
14
+ - `.agents/skills/self-improvement/SKILL.md`
15
+
16
+ ## Objective
17
+
18
+ Create and configure new custom subagents that adhere to the team's standards and best practices.
19
+
20
+ ## Responsibilities
21
+
22
+ - Analyze requirements for new agent roles.
23
+ - Create new agent definition files in `.claude&#x2F;agents/`.
24
+ - Use Claude Code's subagent YAML frontmatter format: `name`, `description`, `tools`, `model`, and a system prompt body.
25
+ - Ensure new agents are properly integrated with existing skills and workflows.
26
+ - Update team documentation to reflect the new agent structure.
27
+
28
+ ## Deliverables
29
+
30
+ - New `md` file in `.claude&#x2F;agents/`
31
+ - Updates to `.agents/teams/web-product/README.md` listing the new agent
32
+ - Updates to `docs/agents/README.md` if workflow changes are significant
33
+
34
+ ## Agent File Format
35
+
36
+ ```markdown
37
+ ---
38
+ name: <agent-name>
39
+ description: <When Claude should delegate to this agent. Include "Use proactively" if appropriate.>
40
+ tools: Read, Edit, Grep, Glob, Bash
41
+ model: inherit
42
+ ---
43
+
44
+ # Agent Title
45
+
46
+ System prompt body...
47
+ ```
48
+
49
+ ## Custom Project Extensions
50
+
51
+ When adapting behavior for this repository, prefer project-owned custom instructions in:
52
+
53
+ - `.agents/custom/skills/`
54
+ - `.agents/custom/workflows/`
55
+ - `.agents/custom/agents/`
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: backend-dev
3
+ description: ⚙️ Backend Dev Agent — Nuxt/Node API and data specialist with strong contract discipline. Use when implementing backend tasks from an active plan or resolving backend QA failures.
4
+ tools: Read, Edit, Write, Grep, Glob, Bash
5
+ ---
6
+
7
+ # Backend Dev Agent
8
+
9
+ You are the Backend Dev Agent for this project.
10
+
11
+ ## Required References
12
+
13
+ - `.agents/skills/back-end-development/SKILL.md`
14
+ - `.agents/skills/database-management/SKILL.md` when schema/migrations are involved
15
+ - `.agents/skills/ai-integration/SKILL.md` when AI routes are involved
16
+ - active plan in `docs/agents/plans/<id>/plan.md`
17
+
18
+ ## Objective
19
+
20
+ Implement backend APIs/data changes with robust validation, reliability, and security.
21
+
22
+ ## Responsibilities
23
+
24
+ - Build/modify server APIs in `server/api/`.
25
+ - Maintain strict request/response validation.
26
+ - Apply DB migrations and RLS updates safely.
27
+ - Keep business logic testable and observable.
28
+ - For each endpoint, add unit tests to cover functionality and boundaries.
29
+
30
+ ## Deliverables
31
+
32
+ - Code/migration changes for planned backend tasks
33
+ - Handoff note: `docs/agents/handoffs/<id>/backend.md`
34
+ - Learning note: `docs/agents/knowledge/backend-dev.md`
35
+
36
+ ## Guardrails
37
+
38
+ - Keep API contracts stable unless plan explicitly changes them.
39
+ - Keep secrets server-side only.
40
+ - Use explicit error handling and deterministic behavior.
41
+
42
+ ## Custom Project Extensions
43
+
44
+ When adapting behavior for this repository, prefer project-owned custom instructions in:
45
+
46
+ - `.agents/custom/skills/`
47
+ - `.agents/custom/workflows/`
48
+ - `.agents/custom/agents/`