agentic-sdlc 1.0.0 → 1.5.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.
- package/.agent/ide-integration/INTEGRATION-SUMMARY.md +309 -0
- package/.agent/ide-integration/KIRO-IDE.md +381 -0
- package/.agent/ide-integration/README.md +256 -209
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +327 -0
- package/.agent/knowledge-base/HOW-IT-WORKS.md +365 -0
- package/.agent/knowledge-base/INDEX.md +43 -0
- package/.agent/knowledge-base/README.md +47 -7
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +1146 -0
- package/.agent/knowledge-base/architecture/README.md +98 -0
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +56 -0
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +198 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +646 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +945 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +310 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +324 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +242 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +148 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +58 -0
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +46 -0
- package/.agent/knowledge-base/features/README.md +83 -0
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +311 -0
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +673 -0
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +459 -0
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +80 -0
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +56 -0
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +527 -0
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +491 -0
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +299 -0
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +555 -0
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +519 -0
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +74 -0
- package/.agent/rules/AUTO-LEARNING.md +418 -0
- package/.agent/rules/ai-enforcement.md +11 -0
- package/.agent/rules/artifacts.md +77 -58
- package/.agent/rules/git-workflow.md +25 -65
- package/.agent/rules/global.md +18 -13
- package/.agent/skills/role-ba.md +76 -0
- package/.agent/skills/role-brain.md +470 -0
- package/.agent/skills/role-dev.md +338 -0
- package/.agent/skills/role-devops.md +122 -0
- package/.agent/skills/role-orchestrator.md +223 -0
- package/.agent/skills/role-pm.md +258 -0
- package/.agent/skills/role-po.md +237 -0
- package/.agent/skills/role-qa.md +81 -0
- package/.agent/skills/role-reporter.md +117 -0
- package/.agent/skills/role-sa.md +277 -0
- package/.agent/skills/role-seca.md +294 -0
- package/.agent/skills/role-stakeholder.md +105 -0
- package/.agent/skills/role-tester.md +294 -0
- package/.agent/skills/role-uiux.md +264 -0
- package/.agent/templates/CHANGELOG-Template.md +83 -0
- package/.agent/templates/Knowledge-Entry-Template.md +3 -0
- package/.agent/workflows/brain.md +84 -53
- package/.agent/workflows/compound.md +51 -0
- package/.agent/workflows/cycle.md +61 -0
- package/.agent/workflows/emergency.md +114 -0
- package/.agent/workflows/explore.md +147 -0
- package/.agent/workflows/housekeeping.md +105 -0
- package/.agent/workflows/metrics.md +179 -0
- package/.agent/workflows/orchestrator.md +68 -0
- package/.agent/workflows/preflight.md +35 -0
- package/.agent/workflows/release.md +153 -0
- package/.agent/workflows/route.md +160 -0
- package/.agent/workflows/sprint.md +125 -0
- package/.agent/workflows/validate.md +146 -0
- package/CHANGELOG.md +349 -6
- package/README.md +171 -86
- package/bin/CROSS-PLATFORM-CLI.md +526 -0
- package/bin/README.md +525 -0
- package/bin/cli.js +65 -90
- package/bin/kb +34 -0
- package/bin/kb.bat +28 -0
- package/bin/kb_cli.py +226 -0
- package/bin/lib/README.md +411 -0
- package/bin/lib/__init__.py +7 -0
- package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
- package/bin/lib/kb_add.py +203 -0
- package/bin/lib/kb_common.py +224 -0
- package/bin/lib/kb_compound.py +250 -0
- package/bin/lib/kb_index.py +193 -0
- package/bin/lib/kb_list.py +144 -0
- package/bin/lib/kb_search.py +121 -0
- package/bin/lib/kb_stats.py +153 -0
- package/docs/AGENT-MANAGEMENT-GUIDE.md +298 -0
- package/docs/ARCHITECTURE-OVERVIEW.md +350 -0
- package/docs/BRAIN-ARCHITECTURE.md +396 -0
- package/docs/COMPOUND-ENGINEERING-SETUP.md +326 -0
- package/docs/KNOWLEDGE-BASE-GUIDE.md +330 -0
- package/docs/KNOWLEDGE-BASE-SIMPLE.md +248 -0
- package/docs/MONOREPO-ARCHITECTURE.md +492 -0
- package/docs/PROJECT-DOCUMENTATION-INDEX.md +540 -0
- package/docs/SDLC-Diagram.md +235 -0
- package/docs/analysis/Workflow-Optimization-Diagram.md +524 -0
- package/docs/analysis/Workflows-Deep-Analysis-2026-01-03.md +604 -0
- package/docs/architecture/{brain.md → BRAIN.md} +1 -1
- package/docs/global/Master-Documentation.md +307 -0
- package/docs/global/reports/Final-Approval-Report.md +257 -0
- package/docs/guides/AUTO-LEARNING-COMPLETE-GUIDE.md +519 -0
- package/docs/guides/AUTO-LEARNING-SYSTEM.md +322 -0
- package/docs/guides/LEARNING-FLOW.md +0 -0
- package/docs/guides/MCP-QUICK-REFERENCE.md +104 -0
- package/docs/guides/MCP-SETUP.md +139 -0
- package/docs/guides/QUICK-START.md +4 -0
- package/docs/guides/ROLE-COMMUNICATION-SYSTEM.md +71 -0
- package/docs/reports/Metrics-Dashboard-2026-01-02.md +66 -0
- package/docs/reports/Metrics-Dashboard-2026-01-04.md +68 -0
- package/docs/reports/UIUX-Design-Skills-Research-Report-2026.md +91 -0
- package/docs/reports/Validation-Report-2026-01-04.md +23 -0
- package/docs/research-reports/research-20260103-101315.json +95 -0
- package/docs/research-reports/research-20260103-101315.md +78 -0
- package/docs/research-reports/research-20260103-183837.json +95 -0
- package/docs/research-reports/research-20260103-183837.md +78 -0
- package/docs/research-reports/research-20260103-190346.json +100 -0
- package/docs/research-reports/research-20260103-190346.md +83 -0
- package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
- package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
- package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
- package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
- package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
- package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
- package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
- package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
- package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
- package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
- package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
- package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
- package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
- package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
- package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
- package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
- package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
- package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
- package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
- package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
- package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
- package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
- package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
- package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
- package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
- package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
- package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
- package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
- package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
- package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
- package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
- package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
- package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
- package/docs/sprints/sprint-6/.brain-state.json +29 -0
- package/package.json +92 -16
- package/.agent/ide-integration/aider-commands.md +0 -40
- package/.agent/ide-integration/cline-config.json +0 -108
- package/.agent/ide-integration/cursor-rules.md +0 -63
- package/.agent/ide-integration/github-copilot-instructions.md +0 -75
- package/.agent/ide-integration/vscode-commands.json +0 -190
- package/.agent/ide-integration/windsurf-cascade.md +0 -125
- package/.agent/knowledge-base/index.md +0 -202
- package/.agent/legacy/roles/designer.md +0 -311
- package/.agent/legacy/roles/dev.md +0 -177
- package/.agent/legacy/roles/devops.md +0 -146
- package/.agent/legacy/roles/orchestrator.md +0 -339
- package/.agent/legacy/roles/pm.md +0 -120
- package/.agent/legacy/roles/po.md +0 -89
- package/.agent/legacy/roles/qa.md +0 -108
- package/.agent/legacy/roles/reporter.md +0 -70
- package/.agent/legacy/roles/sa.md +0 -118
- package/.agent/legacy/roles/seca.md +0 -112
- package/.agent/legacy/roles/stakeholder.md +0 -111
- package/.agent/legacy/roles/tester.md +0 -129
- package/.agent/rules/global.md.bak +0 -154
- package/.agent/usage.md +0 -653
- package/.agent/workflows/auto.md +0 -35
- package/.agent/workflows/dev.md +0 -30
- package/.agent/workflows/devops.md +0 -28
- package/.agent/workflows/kb-search.md +0 -22
- package/.agent/workflows/pm.md +0 -42
- package/.agent/workflows/po.md +0 -21
- package/.agent/workflows/qa.md +0 -31
- package/.agent/workflows/reporter.md +0 -21
- package/.agent/workflows/sa.md +0 -51
- package/.agent/workflows/seca.md +0 -21
- package/.agent/workflows/stakeholder.md +0 -26
- package/.agent/workflows/tester.md +0 -21
- package/.agent/workflows/uiux.md +0 -38
- package/.cursorrules +0 -49
- package/.env.template +0 -10
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
- package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
- package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
- package/.github/copilot-instructions.md +0 -60
- package/bin/commands/create.js +0 -96
- package/bin/commands/help.js +0 -69
- package/bin/commands/ide.js +0 -116
- package/bin/commands/init-kb.js +0 -74
- package/bin/commands/install.js +0 -68
- package/bin/commands/list.js +0 -35
- package/bin/graph_brain.py +0 -86
- package/bin/sync_github.py +0 -75
- package/bin/utils/args-parser.js +0 -33
- package/bin/utils/colors.js +0 -21
- package/bin/verify_neo4j.py +0 -25
- /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
- /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
- /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
- /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# Agent Management Guide
|
|
2
|
+
|
|
3
|
+
Quick reference for managing `.agent/` directory items.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The `tools/agent/manage.py` script helps you create, list, validate, and manage items in the `.agent/` directory.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
### List Items
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# List all roles
|
|
15
|
+
npm run agent:list role
|
|
16
|
+
|
|
17
|
+
# List all workflows
|
|
18
|
+
npm run agent:list workflow
|
|
19
|
+
|
|
20
|
+
# List all templates
|
|
21
|
+
npm run agent:list template
|
|
22
|
+
|
|
23
|
+
# List all rules
|
|
24
|
+
npm run agent:list rule
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Create New Items
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Create a new role
|
|
31
|
+
npm run agent:create role architect
|
|
32
|
+
|
|
33
|
+
# Create a new workflow
|
|
34
|
+
npm run agent:create workflow deploy
|
|
35
|
+
|
|
36
|
+
# Create a new template
|
|
37
|
+
npm run agent:create template api-spec
|
|
38
|
+
|
|
39
|
+
# Create a new rule
|
|
40
|
+
npm run agent:create rule deployment
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Validate Items
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Validate a role
|
|
47
|
+
npm run agent:validate role dev
|
|
48
|
+
|
|
49
|
+
# Validate a workflow
|
|
50
|
+
npm run agent:validate workflow cycle
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Show Item Info
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Show role information
|
|
57
|
+
npm run agent:info role pm
|
|
58
|
+
|
|
59
|
+
# Show workflow information
|
|
60
|
+
npm run agent:info workflow cycle
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Item Types
|
|
64
|
+
|
|
65
|
+
### Roles
|
|
66
|
+
- **Location:** `.agent/roles/`
|
|
67
|
+
- **Naming:** `role-{name}.md`
|
|
68
|
+
- **Purpose:** Define AI agent roles
|
|
69
|
+
|
|
70
|
+
### Workflows
|
|
71
|
+
- **Location:** `.agent/workflows/`
|
|
72
|
+
- **Naming:** `{name}.md`
|
|
73
|
+
- **Purpose:** Define workflow processes
|
|
74
|
+
|
|
75
|
+
### Templates
|
|
76
|
+
- **Location:** `.agent/templates/`
|
|
77
|
+
- **Naming:** `{name}.md`
|
|
78
|
+
- **Purpose:** Document templates
|
|
79
|
+
|
|
80
|
+
### Rules
|
|
81
|
+
- **Location:** `.agent/rules/`
|
|
82
|
+
- **Naming:** `{name}.md`
|
|
83
|
+
- **Purpose:** Define rules and constraints
|
|
84
|
+
|
|
85
|
+
## Common Tasks
|
|
86
|
+
|
|
87
|
+
### Create a New Role
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# 1. Create the role
|
|
91
|
+
npm run agent:create role architect
|
|
92
|
+
|
|
93
|
+
# 2. Edit the file
|
|
94
|
+
# Open .agent/roles/role-architect.md and customize
|
|
95
|
+
|
|
96
|
+
# 3. Validate it
|
|
97
|
+
npm run agent:validate role architect
|
|
98
|
+
|
|
99
|
+
# 4. Add to Kiro steering (optional)
|
|
100
|
+
# Create .kiro/steering/role-architect.md as reference
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Create a New Workflow
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 1. Create the workflow
|
|
107
|
+
npm run agent:create workflow deploy
|
|
108
|
+
|
|
109
|
+
# 2. Edit the file
|
|
110
|
+
# Open .agent/workflows/deploy.md and customize
|
|
111
|
+
|
|
112
|
+
# 3. Validate it
|
|
113
|
+
npm run agent:validate workflow deploy
|
|
114
|
+
|
|
115
|
+
# 4. Create supporting script (optional)
|
|
116
|
+
# Create tools/workflows/deploy.py if needed
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Audit All Items
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# List all items
|
|
123
|
+
npm run agent:list role
|
|
124
|
+
npm run agent:list workflow
|
|
125
|
+
npm run agent:list template
|
|
126
|
+
npm run agent:list rule
|
|
127
|
+
|
|
128
|
+
# Validate critical items
|
|
129
|
+
npm run agent:validate role pm
|
|
130
|
+
npm run agent:validate role dev
|
|
131
|
+
npm run agent:validate workflow cycle
|
|
132
|
+
npm run agent:validate workflow emergency
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Templates
|
|
136
|
+
|
|
137
|
+
Each item type has a template with:
|
|
138
|
+
|
|
139
|
+
### Role Template
|
|
140
|
+
- Identity and responsibilities
|
|
141
|
+
- Workflow steps
|
|
142
|
+
- Deliverables
|
|
143
|
+
- Integration points
|
|
144
|
+
- Commands and examples
|
|
145
|
+
|
|
146
|
+
### Workflow Template
|
|
147
|
+
- Purpose and trigger
|
|
148
|
+
- Prerequisites
|
|
149
|
+
- Step-by-step process
|
|
150
|
+
- Decision points
|
|
151
|
+
- Success criteria
|
|
152
|
+
|
|
153
|
+
### Template Template
|
|
154
|
+
- Document information
|
|
155
|
+
- Content sections
|
|
156
|
+
- Guidelines
|
|
157
|
+
- Next steps
|
|
158
|
+
|
|
159
|
+
### Rule Template
|
|
160
|
+
- Scope and priority
|
|
161
|
+
- Individual rules
|
|
162
|
+
- Rationale
|
|
163
|
+
- Enforcement
|
|
164
|
+
- Exceptions
|
|
165
|
+
|
|
166
|
+
## Integration
|
|
167
|
+
|
|
168
|
+
### With npm
|
|
169
|
+
|
|
170
|
+
Already configured in `package.json`:
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"scripts": {
|
|
174
|
+
"agent:list": "python tools/agent/manage.py list",
|
|
175
|
+
"agent:create": "python tools/agent/manage.py create",
|
|
176
|
+
"agent:validate": "python tools/agent/manage.py validate",
|
|
177
|
+
"agent:info": "python tools/agent/manage.py info"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### With Kiro IDE
|
|
183
|
+
|
|
184
|
+
Create custom commands or hooks to trigger agent management.
|
|
185
|
+
|
|
186
|
+
### Direct Python
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
python tools/agent/manage.py list role
|
|
190
|
+
python tools/agent/manage.py create role architect
|
|
191
|
+
python tools/agent/manage.py validate workflow cycle
|
|
192
|
+
python tools/agent/manage.py info template project-plan
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Validation Checks
|
|
196
|
+
|
|
197
|
+
### All Items
|
|
198
|
+
- ✅ File exists and not empty
|
|
199
|
+
- ✅ Has markdown headers
|
|
200
|
+
- ✅ Has tags
|
|
201
|
+
|
|
202
|
+
### Role-Specific
|
|
203
|
+
- ✅ Has @ROLE mention
|
|
204
|
+
- ✅ Has Responsibilities section
|
|
205
|
+
- ✅ Has Workflow section
|
|
206
|
+
|
|
207
|
+
### Workflow-Specific
|
|
208
|
+
- ✅ Has Steps section
|
|
209
|
+
- ✅ Has Success Criteria
|
|
210
|
+
|
|
211
|
+
## Best Practices
|
|
212
|
+
|
|
213
|
+
1. **Always validate** after creating or editing
|
|
214
|
+
2. **Use templates** as starting point
|
|
215
|
+
3. **Follow naming conventions** for consistency
|
|
216
|
+
4. **Add tags** for searchability
|
|
217
|
+
5. **Cross-reference** related items
|
|
218
|
+
6. **Document integration** with other roles/workflows
|
|
219
|
+
|
|
220
|
+
## Examples
|
|
221
|
+
|
|
222
|
+
### Example 1: Add New Role
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# Create architect role
|
|
226
|
+
npm run agent:create role architect
|
|
227
|
+
|
|
228
|
+
# Edit .agent/roles/role-architect.md
|
|
229
|
+
# Add responsibilities, workflow, deliverables
|
|
230
|
+
|
|
231
|
+
# Validate
|
|
232
|
+
npm run agent:validate role architect
|
|
233
|
+
|
|
234
|
+
# Create Kiro steering reference
|
|
235
|
+
echo "See .agent/roles/role-architect.md" > .kiro/steering/role-architect.md
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Example 2: Create Deployment Workflow
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
# Create workflow
|
|
242
|
+
npm run agent:create workflow deploy
|
|
243
|
+
|
|
244
|
+
# Edit .agent/workflows/deploy.md
|
|
245
|
+
# Define steps, decision points, success criteria
|
|
246
|
+
|
|
247
|
+
# Validate
|
|
248
|
+
npm run agent:validate workflow deploy
|
|
249
|
+
|
|
250
|
+
# Create supporting script
|
|
251
|
+
# Create tools/workflows/deploy.py if automation needed
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Example 3: Add API Spec Template
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
# Create template
|
|
258
|
+
npm run agent:create template api-spec
|
|
259
|
+
|
|
260
|
+
# Edit .agent/templates/api-spec.md
|
|
261
|
+
# Define sections and guidelines
|
|
262
|
+
|
|
263
|
+
# Validate
|
|
264
|
+
npm run agent:validate template api-spec
|
|
265
|
+
|
|
266
|
+
# Use in workflow
|
|
267
|
+
# Reference in role documentation
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## Troubleshooting
|
|
271
|
+
|
|
272
|
+
### "Unknown item type"
|
|
273
|
+
- Use: `role`, `workflow`, `template`, or `rule`
|
|
274
|
+
|
|
275
|
+
### "Already exists"
|
|
276
|
+
- Item with that name already exists
|
|
277
|
+
- Use different name or edit existing
|
|
278
|
+
|
|
279
|
+
### "Not found"
|
|
280
|
+
- Check spelling
|
|
281
|
+
- Use `list` command to see available items
|
|
282
|
+
|
|
283
|
+
### Validation fails
|
|
284
|
+
- Review required sections
|
|
285
|
+
- Check for proper markdown formatting
|
|
286
|
+
- Ensure tags are present
|
|
287
|
+
|
|
288
|
+
## See Also
|
|
289
|
+
|
|
290
|
+
- **Detailed Documentation:** `tools/agent/README.md`
|
|
291
|
+
- **Agent Directory:** `.agent/README.md`
|
|
292
|
+
- **Tools Overview:** `tools/README.md`
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
**Version:** 1.0.0
|
|
297
|
+
**Created:** 2026-01-02
|
|
298
|
+
**Purpose:** Quick reference for agent management
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# TeamLifecycle Architecture Overview
|
|
2
|
+
|
|
3
|
+
## System Architecture
|
|
4
|
+
|
|
5
|
+
The TeamLifecycle SDLC workflow system is organized with a clear separation between source documentation and IDE integration.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
9
|
+
│ USER INTERACTION │
|
|
10
|
+
│ (Kiro IDE / Chat) │
|
|
11
|
+
└────────────────────┬────────────────────────────────────────┘
|
|
12
|
+
│
|
|
13
|
+
▼
|
|
14
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
15
|
+
│ .kiro/steering/ │
|
|
16
|
+
│ (Lightweight References) │
|
|
17
|
+
│ ┌──────────────────────────────────────────────────────┐ │
|
|
18
|
+
│ │ role-brain.md → .agent/roles/role-brain.md │ │
|
|
19
|
+
│ │ role-pm.md → .agent/roles/role-pm.md │ │
|
|
20
|
+
│ │ role-dev.md → .agent/roles/role-dev.md │ │
|
|
21
|
+
│ │ ... (all roles) │ │
|
|
22
|
+
│ └──────────────────────────────────────────────────────┘ │
|
|
23
|
+
└────────────────────┬────────────────────────────────────────┘
|
|
24
|
+
│
|
|
25
|
+
▼
|
|
26
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
27
|
+
│ .agent/ │
|
|
28
|
+
│ (SOURCE OF TRUTH) │
|
|
29
|
+
│ ┌──────────────────────────────────────────────────────┐ │
|
|
30
|
+
│ │ roles/ - Full role documentation │ │
|
|
31
|
+
│ │ workflows/ - Workflow implementations │ │
|
|
32
|
+
│ │ knowledge-base/ - Compound learning system │ │
|
|
33
|
+
│ │ templates/ - Document templates │ │
|
|
34
|
+
│ │ rules/ - Global rules │ │
|
|
35
|
+
│ └──────────────────────────────────────────────────────┘ │
|
|
36
|
+
└────────────────────┬────────────────────────────────────────┘
|
|
37
|
+
│
|
|
38
|
+
▼
|
|
39
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
40
|
+
│ docs/ │
|
|
41
|
+
│ (Generated Artifacts) │
|
|
42
|
+
│ ┌──────────────────────────────────────────────────────┐ │
|
|
43
|
+
│ │ sprints/sprint-N/ │ │
|
|
44
|
+
│ │ ├── plans/ - Project plans │ │
|
|
45
|
+
│ │ ├── designs/ - Design specs │ │
|
|
46
|
+
│ │ ├── reviews/ - QA/Security reports │ │
|
|
47
|
+
│ │ ├── logs/ - Dev/DevOps logs │ │
|
|
48
|
+
│ │ └── reports/ - Final reports │ │
|
|
49
|
+
│ └──────────────────────────────────────────────────────┘ │
|
|
50
|
+
└─────────────────────────────────────────────────────────────┘
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Directory Structure
|
|
54
|
+
|
|
55
|
+
### `.agent/` - Source of Truth
|
|
56
|
+
All core documentation, roles, workflows, and knowledge base.
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
.agent/
|
|
60
|
+
├── README.md # Architecture explanation
|
|
61
|
+
├── CONFIG.md # Configuration guide
|
|
62
|
+
├── USAGE.md # Usage instructions
|
|
63
|
+
├── roles/ # Full role documentation
|
|
64
|
+
│ ├── role-brain.md # Master orchestrator
|
|
65
|
+
│ ├── role-pm.md # Project Manager
|
|
66
|
+
│ ├── role-po.md # Product Owner
|
|
67
|
+
│ ├── role-sa.md # System Analyst
|
|
68
|
+
│ ├── role-uiux.md # UI/UX Designer
|
|
69
|
+
│ ├── role-qa.md # Quality Assurance
|
|
70
|
+
│ ├── role-seca.md # Security Analyst
|
|
71
|
+
│ ├── role-dev.md # Developer
|
|
72
|
+
│ ├── role-devops.md # DevOps Engineer
|
|
73
|
+
│ ├── role-tester.md # Tester
|
|
74
|
+
│ ├── role-reporter.md # Reporter
|
|
75
|
+
│ ├── role-stakeholder.md # Stakeholder
|
|
76
|
+
│ └── role-orchestrator.md # Orchestrator
|
|
77
|
+
├── workflows/ # Workflow implementations
|
|
78
|
+
│ ├── cycle.md # Complete task lifecycle
|
|
79
|
+
│ ├── explore.md # Deep investigation
|
|
80
|
+
│ ├── compound.md # Knowledge capture
|
|
81
|
+
│ ├── emergency.md # Critical incident response
|
|
82
|
+
│ ├── housekeeping.md # Cleanup and maintenance
|
|
83
|
+
│ └── route.md # Workflow selection
|
|
84
|
+
├── knowledge-base/ # Compound learning system
|
|
85
|
+
│ ├── INDEX.md # Searchable index
|
|
86
|
+
│ ├── bugs/ # Bug patterns
|
|
87
|
+
│ ├── features/ # Feature implementations
|
|
88
|
+
│ ├── architecture/ # Architecture decisions
|
|
89
|
+
│ ├── security/ # Security fixes
|
|
90
|
+
│ └── performance/ # Optimizations
|
|
91
|
+
├── templates/ # Document templates
|
|
92
|
+
│ ├── project-plan.md
|
|
93
|
+
│ ├── architecture-spec.md
|
|
94
|
+
│ ├── uiux-spec.md
|
|
95
|
+
│ └── ...
|
|
96
|
+
└── rules/ # Global rules
|
|
97
|
+
├── global-rules.md
|
|
98
|
+
├── critical-patterns.md
|
|
99
|
+
└── compound-learning.md
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### `.kiro/steering/` - IDE Integration
|
|
103
|
+
Lightweight reference files that point to `.agent/` source.
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
.kiro/steering/
|
|
107
|
+
├── README.md # Steering guide
|
|
108
|
+
├── 00-teamlifecycle-overview.md # Always loaded
|
|
109
|
+
├── global-rules.md # Always loaded
|
|
110
|
+
├── critical-patterns.md # Always loaded
|
|
111
|
+
├── compound-learning.md # Always loaded
|
|
112
|
+
├── workflow-enhancements.md # Always loaded
|
|
113
|
+
├── workflow-routing.md # Always loaded
|
|
114
|
+
├── role-brain.md # Reference → .agent/roles/
|
|
115
|
+
├── role-pm.md # Reference → .agent/roles/
|
|
116
|
+
├── role-po.md # Reference → .agent/roles/
|
|
117
|
+
├── role-sa.md # Reference → .agent/roles/
|
|
118
|
+
├── role-uiux.md # Reference → .agent/roles/
|
|
119
|
+
├── role-qa.md # Reference → .agent/roles/
|
|
120
|
+
├── role-seca.md # Reference → .agent/roles/
|
|
121
|
+
├── role-dev.md # Reference → .agent/roles/
|
|
122
|
+
├── role-devops.md # Reference → .agent/roles/
|
|
123
|
+
├── role-tester.md # Reference → .agent/roles/
|
|
124
|
+
├── role-reporter.md # Reference → .agent/roles/
|
|
125
|
+
├── role-stakeholder.md # Reference → .agent/roles/
|
|
126
|
+
└── role-orchestrator.md # Reference → .agent/roles/
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### `docs/` - Generated Artifacts
|
|
130
|
+
Sprint-specific deliverables and documentation.
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
docs/
|
|
134
|
+
├── SDLC-Diagram.md # Mermaid workflow diagrams
|
|
135
|
+
├── BRAIN-ARCHITECTURE.md # BRAIN technical docs
|
|
136
|
+
├── ARCHITECTURE-OVERVIEW.md # This file
|
|
137
|
+
└── sprints/
|
|
138
|
+
└── sprint-N/
|
|
139
|
+
├── plans/ # PM, PO artifacts
|
|
140
|
+
├── designs/ # SA, UIUX artifacts
|
|
141
|
+
├── reviews/ # QA, SECA artifacts
|
|
142
|
+
├── logs/ # DEV, DEVOPS, TESTER artifacts
|
|
143
|
+
└── reports/ # REPORTER, STAKEHOLDER artifacts
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Component Roles
|
|
147
|
+
|
|
148
|
+
### 🧠 BRAIN - Master Orchestrator
|
|
149
|
+
- **Location:** `.agent/roles/role-brain.md`
|
|
150
|
+
- **Purpose:** Root-level controller that strictly manages all workflow execution
|
|
151
|
+
- **Commands:** `/status`, `/validate`, `/auto-execute`, `/rollback`, `/force-transition`
|
|
152
|
+
- **States:** 13 workflow states from IDLE to COMPLETE
|
|
153
|
+
- **Enforcement:** No phase skipping, approval gates, artifact validation
|
|
154
|
+
|
|
155
|
+
### 👥 Roles (12 Total)
|
|
156
|
+
Each role has:
|
|
157
|
+
- **Full documentation** in `.agent/roles/role-[name].md`
|
|
158
|
+
- **Lightweight reference** in `.kiro/steering/role-[name].md`
|
|
159
|
+
- **Clear responsibilities** and artifact requirements
|
|
160
|
+
- **Strict rules** and communication templates
|
|
161
|
+
|
|
162
|
+
### 🔄 Workflows (6 Enhanced)
|
|
163
|
+
- **`/cycle`** - Complete task lifecycle (< 4 hours)
|
|
164
|
+
- **`/explore`** - Deep investigation for complex features
|
|
165
|
+
- **`/compound`** - Capture knowledge after solving problems
|
|
166
|
+
- **`/emergency`** - Critical incident response
|
|
167
|
+
- **`/housekeeping`** - Cleanup and maintenance
|
|
168
|
+
- **`/route`** - Intelligent workflow selection
|
|
169
|
+
|
|
170
|
+
### 📚 Knowledge Base
|
|
171
|
+
- **Location:** `.agent/knowledge-base/`
|
|
172
|
+
- **Purpose:** Compound learning system
|
|
173
|
+
- **Structure:** YAML frontmatter + categorized entries
|
|
174
|
+
- **Integration:** Search-first workflow, auto-compounding
|
|
175
|
+
|
|
176
|
+
## Workflow Execution
|
|
177
|
+
|
|
178
|
+
### Standard SDLC Flow
|
|
179
|
+
```
|
|
180
|
+
IDLE
|
|
181
|
+
↓
|
|
182
|
+
PLANNING (@PM)
|
|
183
|
+
↓
|
|
184
|
+
PLAN_APPROVAL (User Gate 🚪)
|
|
185
|
+
↓
|
|
186
|
+
DESIGNING (@SA + @UIUX + @PO in parallel)
|
|
187
|
+
↓
|
|
188
|
+
DESIGN_REVIEW (@QA + @SECA in parallel)
|
|
189
|
+
↓
|
|
190
|
+
DEVELOPMENT (@DEV + @DEVOPS in parallel)
|
|
191
|
+
↓
|
|
192
|
+
TESTING (@TESTER)
|
|
193
|
+
↓
|
|
194
|
+
BUG_FIXING (@DEV) ←→ TESTING (if bugs found)
|
|
195
|
+
↓
|
|
196
|
+
DEPLOYMENT (@DEVOPS)
|
|
197
|
+
↓
|
|
198
|
+
REPORTING (@REPORTER)
|
|
199
|
+
↓
|
|
200
|
+
FINAL_REVIEW (@STAKEHOLDER)
|
|
201
|
+
↓
|
|
202
|
+
FINAL_APPROVAL (User Gate 🚪)
|
|
203
|
+
↓
|
|
204
|
+
COMPLETE ✅
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Approval Gates
|
|
208
|
+
1. **Gate 1:** Project Plan Approval (after PLANNING)
|
|
209
|
+
2. **Gate 2:** Design Approval (after DESIGN_REVIEW, if issues found)
|
|
210
|
+
3. **Gate 3:** Final Delivery Approval (after FINAL_REVIEW)
|
|
211
|
+
|
|
212
|
+
### Parallel Execution
|
|
213
|
+
- **Design Phase:** @SA + @UIUX + @PO work simultaneously
|
|
214
|
+
- **Review Phase:** @QA + @SECA work simultaneously
|
|
215
|
+
- **Development Phase:** @DEV + @DEVOPS work simultaneously
|
|
216
|
+
|
|
217
|
+
## Key Principles
|
|
218
|
+
|
|
219
|
+
### 1. Single Source of Truth
|
|
220
|
+
- All documentation in `.agent/`
|
|
221
|
+
- IDE files are lightweight references
|
|
222
|
+
- Update once, reference everywhere
|
|
223
|
+
|
|
224
|
+
### 2. Strict Workflow Enforcement
|
|
225
|
+
- BRAIN enforces diagram flow
|
|
226
|
+
- No phase skipping allowed
|
|
227
|
+
- Approval gates are mandatory
|
|
228
|
+
- Artifact validation required
|
|
229
|
+
|
|
230
|
+
### 3. Compound Learning
|
|
231
|
+
- Every solution becomes knowledge
|
|
232
|
+
- Search-first workflow
|
|
233
|
+
- Auto-compounding triggers
|
|
234
|
+
- Metrics tracking
|
|
235
|
+
|
|
236
|
+
### 4. IDE Agnostic
|
|
237
|
+
- Core logic in `.agent/`
|
|
238
|
+
- Works with any IDE
|
|
239
|
+
- Portable and maintainable
|
|
240
|
+
- Easy to extend
|
|
241
|
+
|
|
242
|
+
## Usage Examples
|
|
243
|
+
|
|
244
|
+
### Example 1: Start New Project
|
|
245
|
+
```
|
|
246
|
+
User: @BRAIN - Build a todo app with React
|
|
247
|
+
|
|
248
|
+
🧠 BRAIN: Initializing workflow...
|
|
249
|
+
State: IDLE → PLANNING
|
|
250
|
+
Activating @PM...
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Example 2: Check Status
|
|
254
|
+
```
|
|
255
|
+
User: @BRAIN /status
|
|
256
|
+
|
|
257
|
+
📊 Workflow Status
|
|
258
|
+
Current State: DESIGNING
|
|
259
|
+
Progress: 3/12 (25%)
|
|
260
|
+
Next Gate: Design Approval
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Example 3: Small Task
|
|
264
|
+
```
|
|
265
|
+
User: @DEV /cycle - Fix login button on mobile
|
|
266
|
+
|
|
267
|
+
Executing cycle workflow:
|
|
268
|
+
1. Search KB for similar issues
|
|
269
|
+
2. Plan fix
|
|
270
|
+
3. Implement
|
|
271
|
+
4. Test
|
|
272
|
+
5. Compound knowledge
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Example 4: Full Automation
|
|
276
|
+
```
|
|
277
|
+
User: @ORCHESTRATOR --mode=full-auto
|
|
278
|
+
Build authentication system
|
|
279
|
+
|
|
280
|
+
Executing full SDLC workflow...
|
|
281
|
+
Will pause at approval gates.
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## Benefits
|
|
285
|
+
|
|
286
|
+
✅ **Strict Enforcement** - No shortcuts or rule violations
|
|
287
|
+
✅ **Complete Traceability** - Full history of all transitions
|
|
288
|
+
✅ **Error Recovery** - Safe rollback mechanisms
|
|
289
|
+
✅ **Parallel Optimization** - Automatic parallel execution
|
|
290
|
+
✅ **Quality Gates** - Mandatory validation at each phase
|
|
291
|
+
✅ **Compound Learning** - Automatic knowledge capture
|
|
292
|
+
✅ **IDE Agnostic** - Works with any tool
|
|
293
|
+
✅ **Maintainable** - Single source of truth
|
|
294
|
+
|
|
295
|
+
## Integration Points
|
|
296
|
+
|
|
297
|
+
### With Kiro IDE
|
|
298
|
+
- Steering files auto-loaded
|
|
299
|
+
- Role activation via `@ROLE` mentions
|
|
300
|
+
- Workflow commands via `/command`
|
|
301
|
+
- MCP tools integration
|
|
302
|
+
|
|
303
|
+
### With Git
|
|
304
|
+
- Atomic commits per task
|
|
305
|
+
- Conventional commit format
|
|
306
|
+
- GitHub Issue references
|
|
307
|
+
- Branch management
|
|
308
|
+
|
|
309
|
+
### With MCP Tools
|
|
310
|
+
- GitHub MCP - Issue tracking
|
|
311
|
+
- Playwright - E2E testing
|
|
312
|
+
- Browser - UI verification
|
|
313
|
+
- Memory - Knowledge persistence
|
|
314
|
+
|
|
315
|
+
## Metrics & Monitoring
|
|
316
|
+
|
|
317
|
+
### Workflow Metrics
|
|
318
|
+
- Phase durations
|
|
319
|
+
- Approval gate status
|
|
320
|
+
- Iteration counts
|
|
321
|
+
- Efficiency scores
|
|
322
|
+
|
|
323
|
+
### Compound Metrics
|
|
324
|
+
- Total KB entries
|
|
325
|
+
- Time saved
|
|
326
|
+
- Reuse rate
|
|
327
|
+
- Coverage percentage
|
|
328
|
+
|
|
329
|
+
### Quality Metrics
|
|
330
|
+
- Bug counts by priority
|
|
331
|
+
- Test coverage
|
|
332
|
+
- Security issues
|
|
333
|
+
- Performance improvements
|
|
334
|
+
|
|
335
|
+
## Future Enhancements
|
|
336
|
+
|
|
337
|
+
1. **AI-Powered Predictions** - Predict phase durations
|
|
338
|
+
2. **Auto-Recovery** - Automatic error recovery
|
|
339
|
+
3. **Workflow Templates** - Pre-configured workflows
|
|
340
|
+
4. **Real-time Dashboard** - Visual progress tracking
|
|
341
|
+
5. **Integration APIs** - External tool integration
|
|
342
|
+
6. **Custom Rules** - User-defined validation
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
**Version:** 1.0.0
|
|
347
|
+
**Created:** 2026-01-02
|
|
348
|
+
**Status:** Active
|
|
349
|
+
**Philosophy:** Single source of truth, strict enforcement, compound learning
|
|
350
|
+
|