agentic-sdlc 1.5.1 → 1.8.1
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/rules/agent-execution.md +55 -0
- package/.agent/rules/ai-enforcement.md +4 -3
- package/.agent/rules/artifacts.md +79 -77
- package/.agent/rules/auto-learning.md +78 -0
- package/.agent/rules/code-quality.md +40 -0
- package/.agent/rules/git-workflow.md +44 -24
- package/.agent/rules/global.md +10 -6
- package/.agent/rules/naming-conventions.md +55 -0
- package/.agent/skills/role-ba.md +6 -2
- package/.agent/skills/role-brain.md +5 -1
- package/.agent/skills/role-cloud.md +38 -0
- package/.agent/skills/role-dev.md +31 -5
- package/.agent/skills/role-devops.md +9 -0
- package/.agent/skills/role-game.md +35 -0
- package/.agent/skills/role-mobile.md +55 -0
- package/.agent/skills/role-orchestrator.md +4 -0
- package/.agent/skills/role-pm.md +4 -0
- package/.agent/skills/role-po.md +4 -0
- package/.agent/skills/role-reporter.md +4 -0
- package/.agent/skills/role-research.md +78 -0
- package/.agent/skills/role-sa.md +4 -0
- package/.agent/skills/role-seca.md +4 -0
- package/.agent/skills/role-stakeholder.md +4 -0
- package/.agent/skills/role-tester.md +15 -3
- package/.agent/skills/role-uiux.md +4 -0
- package/.agent/templates/CHANGELOG-Template.md +2 -2
- package/.agent/templates/Design-Verification-Report-Template.md +4 -4
- package/.agent/templates/DevOps-Plan-Template.md +7 -0
- package/.agent/templates/Specification-Template.md +38 -0
- package/.agent/templates/ab-comparison-report.md +175 -0
- package/.agent/templates/observer-report.md +131 -0
- package/.agent/templates/quality-score-report.md +197 -0
- package/.agent/templates/self-learning-digest.md +268 -0
- package/.agent/templates/system-health-report.md +330 -0
- package/.agent/workflows/ab.md +101 -0
- package/.agent/workflows/autogen.md +65 -0
- package/.agent/workflows/brain.md +52 -42
- package/.agent/workflows/commit.md +61 -0
- package/.agent/workflows/cycle.md +36 -15
- package/.agent/workflows/debug.md +123 -0
- package/.agent/workflows/deep-search.md +82 -0
- package/.agent/workflows/docs.md +144 -0
- package/.agent/workflows/emergency.md +17 -15
- package/.agent/workflows/explore.md +15 -9
- package/.agent/workflows/housekeeping.md +24 -11
- package/.agent/workflows/metrics.md +14 -12
- package/.agent/workflows/monitor.md +98 -0
- package/.agent/workflows/observe.md +84 -0
- package/.agent/workflows/onboarding.md +135 -0
- package/.agent/workflows/orchestrator.md +21 -14
- package/.agent/workflows/planning.md +126 -0
- package/.agent/workflows/refactor.md +132 -0
- package/.agent/workflows/release.md +19 -12
- package/.agent/workflows/review.md +99 -0
- package/.agent/workflows/score.md +104 -0
- package/.agent/workflows/sprint.md +16 -14
- package/.agent/workflows/validate.md +13 -11
- package/.agent/workflows/worktree.md +154 -0
- package/CHANGELOG.md +88 -0
- package/README.md +12 -4
- package/bin/cli.js +143 -13
- package/docs/.brain-health-history.json +42 -0
- package/docs/.brain-improvements.json +53 -0
- package/docs/.brain-learner-log.json +27 -0
- package/docs/.brain-scores.json +310 -0
- package/docs/architecture/system-flow.mermaid +81 -0
- package/docs/artifacts/2026-01-05-enforcement-gates-plan.md +80 -0
- package/docs/artifacts/2026-01-05-workflow-analysis.md +231 -0
- package/docs/artifacts/README.md +26 -0
- package/docs/guides/MCP-GUIDE.md +1 -0
- package/docs/reports/2026-01-05-autogen-evaluation.md +64 -0
- package/docs/reports/2026-01-05-brain-layer-analysis.md +109 -0
- package/docs/reports/2026-01-05-repository-audit.md +253 -0
- package/docs/reports/Metrics-Dashboard-2026-01-08.md +29 -0
- package/docs/reports/Metrics-Dashboard-Final.md +29 -0
- package/docs/reports/Validation-Report-2026-01-05.md +40 -0
- package/docs/reports/Validation-Report-2026-01-08.md +40 -0
- package/docs/reports/worktrunk-audit.md +94 -0
- package/docs/solutions/README.md +96 -0
- package/docs/walkthroughs/2026-01-05-audit-implementation.md +36 -0
- package/docs/walkthroughs/2026-01-05-autonomy-release.md +54 -0
- package/docs/walkthroughs/2026-01-05-enforcement-gates.md +33 -0
- package/docs/walkthroughs/2026-01-05-judge-enhancement.md +30 -0
- package/docs/walkthroughs/2026-01-05-landing-page-orchestrator.md +52 -0
- package/docs/walkthroughs/2026-01-05-validation.md +32 -0
- package/docs/walkthroughs/2026-01-05-workflow-audit.md +89 -0
- package/docs/walkthroughs/2026-01-05-workflow-refactoring.md +44 -0
- package/docs/walkthroughs/2026-01-06-worktrunk-integration.md +41 -0
- package/docs/walkthroughs/README.md +25 -0
- package/package.json +33 -19
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +0 -327
- package/.agent/knowledge-base/HOW-IT-WORKS.md +0 -365
- package/.agent/knowledge-base/INDEX.md +0 -43
- package/.agent/knowledge-base/README.md +0 -242
- package/.agent/knowledge-base/architecture/.gitkeep +0 -1
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +0 -1146
- package/.agent/knowledge-base/architecture/README.md +0 -98
- package/.agent/knowledge-base/bugs/.gitkeep +0 -1
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +0 -56
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +0 -198
- package/.agent/knowledge-base/features/.gitkeep +0 -1
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +0 -646
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +0 -945
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +0 -310
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +0 -324
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +0 -242
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +0 -148
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +0 -58
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +0 -46
- package/.agent/knowledge-base/features/README.md +0 -83
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +0 -311
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +0 -673
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +0 -459
- package/.agent/knowledge-base/performance/.gitkeep +0 -1
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +0 -80
- package/.agent/knowledge-base/platform-specific/.gitkeep +0 -1
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +0 -56
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +0 -527
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +0 -491
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +0 -299
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +0 -555
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +0 -519
- package/.agent/knowledge-base/security/.gitkeep +0 -1
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +0 -74
- package/.agent/rules/AUTO-LEARNING.md +0 -418
- package/.agent/rules/KNOWLEDGE-BASE.md +0 -45
- package/.agent/skills/role-qa.md +0 -81
- package/.agent/workflows/compound.md +0 -51
- package/.agent/workflows/preflight.md +0 -35
- package/.agent/workflows/route.md +0 -160
- package/bin/kb +0 -34
- package/bin/kb.bat +0 -28
- package/bin/kb_cli.py +0 -226
- package/bin/lib/README.md +0 -411
- package/bin/lib/__init__.py +0 -7
- 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 +0 -203
- package/bin/lib/kb_common.py +0 -224
- package/bin/lib/kb_compound.py +0 -250
- package/bin/lib/kb_index.py +0 -193
- package/bin/lib/kb_list.py +0 -144
- package/bin/lib/kb_search.py +0 -121
- package/bin/lib/kb_stats.py +0 -153
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
# 🧠 Automatic Knowledge Base Learning System
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
This system automatically captures and stores knowledge from every task, issue, and bug fix to build project intelligence over time.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 🔄 Auto-Learning Triggers
|
|
9
|
-
|
|
10
|
-
### Mandatory Knowledge Capture
|
|
11
|
-
The following events **MUST** trigger automatic knowledge base entry creation:
|
|
12
|
-
|
|
13
|
-
| Event | Trigger Condition | Auto-Create Entry |
|
|
14
|
-
|-------|------------------|-------------------|
|
|
15
|
-
| **Bug Fixed** | Any bug with priority medium+ | ✅ Yes |
|
|
16
|
-
| **Multiple Attempts** | Task required 3+ attempts | ✅ Yes |
|
|
17
|
-
| **Error Pattern** | Same error occurred 2+ times | ✅ Yes |
|
|
18
|
-
| **Complex Feature** | Implementation took 4+ hours | ✅ Yes |
|
|
19
|
-
| **Security Issue** | Any security vulnerability found | ✅ Yes |
|
|
20
|
-
| **Performance Fix** | Performance optimization applied | ✅ Yes |
|
|
21
|
-
| **Integration Issue** | Third-party integration problem | ✅ Yes |
|
|
22
|
-
| **Platform Issue** | Platform-specific problem solved | ✅ Yes |
|
|
23
|
-
| **Architecture Decision** | Major design decision made | ✅ Yes |
|
|
24
|
-
| **Rollback Event** | Deployment rolled back | ✅ Yes |
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 📝 Auto-Learning Workflow
|
|
29
|
-
|
|
30
|
-
### Step 1: Detection (Automatic)
|
|
31
|
-
When any agent completes a task, they MUST check if it meets learning criteria:
|
|
32
|
-
|
|
33
|
-
```markdown
|
|
34
|
-
### Knowledge Base Check
|
|
35
|
-
- [ ] Bug priority: [critical/high/medium/low]
|
|
36
|
-
- [ ] Attempts required: [number]
|
|
37
|
-
- [ ] Similar issues before: [yes/no]
|
|
38
|
-
- [ ] Implementation complexity: [simple/moderate/complex]
|
|
39
|
-
- [ ] Security impact: [yes/no]
|
|
40
|
-
- [ ] Performance impact: [yes/no]
|
|
41
|
-
|
|
42
|
-
**Auto-Learn Required:** [YES/NO]
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Step 2: Capture (Automatic)
|
|
46
|
-
If auto-learn is required, immediately create knowledge entry:
|
|
47
|
-
|
|
48
|
-
```markdown
|
|
49
|
-
## Auto-Generated Knowledge Entry
|
|
50
|
-
|
|
51
|
-
**Entry ID:** KB-[YYYY-MM-DD]-[###]-[auto-title]
|
|
52
|
-
**Category:** [bugs/features/architecture/security/performance/platform]
|
|
53
|
-
**Severity:** [critical/high/medium/low]
|
|
54
|
-
**Auto-Generated:** Yes
|
|
55
|
-
**Source:** [Task ID / Issue ID / Bug ID]
|
|
56
|
-
|
|
57
|
-
### Problem
|
|
58
|
-
[Auto-extracted from task description]
|
|
59
|
-
|
|
60
|
-
### Context
|
|
61
|
-
- Sprint: [N]
|
|
62
|
-
- Component: [name]
|
|
63
|
-
- Technology: [stack]
|
|
64
|
-
- Platform: [web/mobile/desktop/cli]
|
|
65
|
-
|
|
66
|
-
### Solution Applied
|
|
67
|
-
[Auto-extracted from implementation]
|
|
68
|
-
|
|
69
|
-
### Root Cause
|
|
70
|
-
[To be filled by agent]
|
|
71
|
-
|
|
72
|
-
### Prevention
|
|
73
|
-
[To be filled by agent]
|
|
74
|
-
|
|
75
|
-
### Tags
|
|
76
|
-
#auto-learned #[category] #[technology] #[severity]
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Step 3: Index Update (Automatic)
|
|
80
|
-
Automatically update `knowledge-base/index.md`:
|
|
81
|
-
|
|
82
|
-
```markdown
|
|
83
|
-
| KB-[date]-[###] | [Title] | [Category] | [Severity] | [Tags] | [Date] | Auto |
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Step 4: Cross-Reference (Automatic)
|
|
87
|
-
Link to related entries:
|
|
88
|
-
- Search for similar keywords
|
|
89
|
-
- Link to related bugs/features
|
|
90
|
-
- Update related entries with new insights
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
## 🎯 Role-Specific Auto-Learning
|
|
95
|
-
|
|
96
|
-
### @DEV - Development Learning
|
|
97
|
-
**Auto-capture when:**
|
|
98
|
-
- Bug fixed (any priority)
|
|
99
|
-
- Code refactoring completed
|
|
100
|
-
- Performance optimization applied
|
|
101
|
-
- Integration implemented
|
|
102
|
-
|
|
103
|
-
**Knowledge Type:** Code patterns, bug fixes, optimizations
|
|
104
|
-
|
|
105
|
-
### @DEVOPS - Infrastructure Learning
|
|
106
|
-
**Auto-capture when:**
|
|
107
|
-
- Deployment issue resolved
|
|
108
|
-
- Configuration changed
|
|
109
|
-
- Infrastructure scaled
|
|
110
|
-
- Monitoring alert triggered
|
|
111
|
-
|
|
112
|
-
**Knowledge Type:** Deployment patterns, infrastructure issues
|
|
113
|
-
|
|
114
|
-
### @TESTER - Testing Learning
|
|
115
|
-
**Auto-capture when:**
|
|
116
|
-
- Test failure pattern identified
|
|
117
|
-
- Edge case discovered
|
|
118
|
-
- Test automation challenge solved
|
|
119
|
-
- Regression bug found
|
|
120
|
-
|
|
121
|
-
**Knowledge Type:** Test patterns, edge cases, regression patterns
|
|
122
|
-
|
|
123
|
-
### @SECA - Security Learning
|
|
124
|
-
**Auto-capture when:**
|
|
125
|
-
- Security vulnerability found
|
|
126
|
-
- Security scan issue resolved
|
|
127
|
-
- Authentication/authorization issue fixed
|
|
128
|
-
- Data protection measure implemented
|
|
129
|
-
|
|
130
|
-
**Knowledge Type:** Security vulnerabilities, attack patterns, fixes
|
|
131
|
-
|
|
132
|
-
### @SA - Architecture Learning
|
|
133
|
-
**Auto-capture when:**
|
|
134
|
-
- Architecture decision made
|
|
135
|
-
- Design pattern applied
|
|
136
|
-
- Scalability issue addressed
|
|
137
|
-
- Technology choice made
|
|
138
|
-
|
|
139
|
-
**Knowledge Type:** Architecture patterns, design decisions
|
|
140
|
-
|
|
141
|
-
### @UIUX - Design Learning
|
|
142
|
-
**Auto-capture when:**
|
|
143
|
-
- UX issue identified and fixed
|
|
144
|
-
- Accessibility improvement made
|
|
145
|
-
- Design pattern applied
|
|
146
|
-
- User feedback incorporated
|
|
147
|
-
|
|
148
|
-
**Knowledge Type:** UX patterns, accessibility solutions
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## 🤖 Automated Knowledge Entry Template
|
|
153
|
-
|
|
154
|
-
Every agent MUST use this template for auto-learning:
|
|
155
|
-
|
|
156
|
-
```markdown
|
|
157
|
-
---
|
|
158
|
-
id: KB-[YYYY-MM-DD]-[###]
|
|
159
|
-
title: [Auto-Generated Title]
|
|
160
|
-
category: [bugs/features/architecture/security/performance/platform]
|
|
161
|
-
severity: [critical/high/medium/low]
|
|
162
|
-
auto-generated: true
|
|
163
|
-
source-task: [Task/Issue/Bug ID]
|
|
164
|
-
sprint: [N]
|
|
165
|
-
date: [YYYY-MM-DD]
|
|
166
|
-
author: [@ROLE]
|
|
167
|
-
tags: [#tag1, #tag2, #tag3]
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
# [Title]
|
|
171
|
-
|
|
172
|
-
## 📋 Metadata
|
|
173
|
-
- **Entry ID:** KB-[YYYY-MM-DD]-[###]
|
|
174
|
-
- **Category:** [Category]
|
|
175
|
-
- **Severity:** [Severity]
|
|
176
|
-
- **Sprint:** [N]
|
|
177
|
-
- **Date:** [YYYY-MM-DD]
|
|
178
|
-
- **Author:** [@ROLE]
|
|
179
|
-
- **Source:** [Task/Issue/Bug ID]
|
|
180
|
-
- **Auto-Generated:** Yes
|
|
181
|
-
|
|
182
|
-
## 🔍 Problem Description
|
|
183
|
-
[Clear description of the problem encountered]
|
|
184
|
-
|
|
185
|
-
## 🌍 Context
|
|
186
|
-
- **Component:** [Component name]
|
|
187
|
-
- **Technology:** [Tech stack]
|
|
188
|
-
- **Platform:** [web/mobile/desktop/cli]
|
|
189
|
-
- **Environment:** [dev/staging/production]
|
|
190
|
-
- **Related Files:** [List of files]
|
|
191
|
-
|
|
192
|
-
## 🚨 Symptoms
|
|
193
|
-
- [Symptom 1]
|
|
194
|
-
- [Symptom 2]
|
|
195
|
-
- [Symptom 3]
|
|
196
|
-
|
|
197
|
-
## 🔬 Root Cause Analysis
|
|
198
|
-
[Detailed explanation of why the issue occurred]
|
|
199
|
-
|
|
200
|
-
## ✅ Solution Applied
|
|
201
|
-
[Step-by-step solution that worked]
|
|
202
|
-
|
|
203
|
-
```code
|
|
204
|
-
[Code snippets if applicable]
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## 🛡️ Prevention Measures
|
|
208
|
-
- [ ] [Prevention measure 1]
|
|
209
|
-
- [ ] [Prevention measure 2]
|
|
210
|
-
- [ ] [Prevention measure 3]
|
|
211
|
-
|
|
212
|
-
## 📊 Impact Assessment
|
|
213
|
-
- **Severity:** [critical/high/medium/low]
|
|
214
|
-
- **Affected Users:** [number/percentage]
|
|
215
|
-
- **Downtime:** [duration]
|
|
216
|
-
- **Data Loss:** [yes/no]
|
|
217
|
-
|
|
218
|
-
## 🔗 Related Entries
|
|
219
|
-
- [KB-YYYY-MM-DD-###] - [Related entry title]
|
|
220
|
-
- [KB-YYYY-MM-DD-###] - [Related entry title]
|
|
221
|
-
|
|
222
|
-
## 📚 References
|
|
223
|
-
- [Documentation link]
|
|
224
|
-
- [Stack Overflow link]
|
|
225
|
-
- [GitHub issue link]
|
|
226
|
-
|
|
227
|
-
## 🏷️ Tags
|
|
228
|
-
#auto-learned #[category] #[technology] #[severity] #sprint-[N]
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
*Auto-generated by @[ROLE] on [YYYY-MM-DD]*
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
## 🔍 Auto-Search Before Starting
|
|
237
|
-
|
|
238
|
-
Before starting ANY task, agents MUST:
|
|
239
|
-
|
|
240
|
-
1. **Search Knowledge Base**
|
|
241
|
-
```markdown
|
|
242
|
-
### Knowledge Base Search
|
|
243
|
-
- Keywords: [list keywords]
|
|
244
|
-
- Category: [category]
|
|
245
|
-
- Technology: [tech]
|
|
246
|
-
- Results: [number] entries found
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
2. **Review Relevant Entries**
|
|
250
|
-
- Read top 3 most relevant entries
|
|
251
|
-
- Check for similar patterns
|
|
252
|
-
- Adapt solutions to current context
|
|
253
|
-
|
|
254
|
-
3. **Document Search Results**
|
|
255
|
-
```markdown
|
|
256
|
-
### KB Search Results
|
|
257
|
-
- **KB-[date]-[###]:** [Title] - [Relevance: high/medium/low]
|
|
258
|
-
- **KB-[date]-[###]:** [Title] - [Relevance: high/medium/low]
|
|
259
|
-
- **Applicable Solutions:** [yes/no]
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
## 📈 Learning Metrics
|
|
265
|
-
|
|
266
|
-
Track these metrics in `knowledge-base/index.md`:
|
|
267
|
-
|
|
268
|
-
| Metric | Description | Target |
|
|
269
|
-
|--------|-------------|--------|
|
|
270
|
-
| **Total Entries** | Number of KB entries | Growing |
|
|
271
|
-
| **Auto-Generated** | Percentage auto-created | >80% |
|
|
272
|
-
| **Reuse Rate** | Entries referenced in tasks | >50% |
|
|
273
|
-
| **Resolution Time** | Average time to fix similar issues | Decreasing |
|
|
274
|
-
| **Recurrence Rate** | Same issue occurring again | <10% |
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
## 🎯 Quality Standards for Auto-Learning
|
|
279
|
-
|
|
280
|
-
Every auto-generated entry MUST include:
|
|
281
|
-
|
|
282
|
-
- ✅ Clear problem description
|
|
283
|
-
- ✅ Reproducible steps (if applicable)
|
|
284
|
-
- ✅ Root cause analysis
|
|
285
|
-
- ✅ Working solution with code
|
|
286
|
-
- ✅ Prevention measures
|
|
287
|
-
- ✅ Proper categorization
|
|
288
|
-
- ✅ Relevant tags
|
|
289
|
-
- ✅ Cross-references
|
|
290
|
-
|
|
291
|
-
---
|
|
292
|
-
|
|
293
|
-
## 🔄 Continuous Improvement
|
|
294
|
-
|
|
295
|
-
### Weekly Review
|
|
296
|
-
Every Friday, @REPORTER MUST:
|
|
297
|
-
1. Review all auto-generated entries from the week
|
|
298
|
-
2. Verify completeness and quality
|
|
299
|
-
3. Add missing details
|
|
300
|
-
4. Update cross-references
|
|
301
|
-
5. Archive duplicates
|
|
302
|
-
|
|
303
|
-
### Monthly Analysis
|
|
304
|
-
Every month-end, @REPORTER MUST:
|
|
305
|
-
1. Analyze learning metrics
|
|
306
|
-
2. Identify knowledge gaps
|
|
307
|
-
3. Consolidate similar entries
|
|
308
|
-
4. Update index and categories
|
|
309
|
-
5. Generate learning report
|
|
310
|
-
|
|
311
|
-
### Quarterly Optimization
|
|
312
|
-
Every quarter, @PM + @REPORTER MUST:
|
|
313
|
-
1. Review entire knowledge base
|
|
314
|
-
2. Archive outdated entries
|
|
315
|
-
3. Refactor categories if needed
|
|
316
|
-
4. Update templates
|
|
317
|
-
5. Train team on new patterns
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
## 🚀 Integration with Workflow
|
|
322
|
-
|
|
323
|
-
### In Development Log
|
|
324
|
-
```markdown
|
|
325
|
-
## Knowledge Base Integration
|
|
326
|
-
- **KB Entries Created:** [number]
|
|
327
|
-
- **KB Entries Referenced:** [number]
|
|
328
|
-
- **New Patterns Learned:** [list]
|
|
329
|
-
- **Prevention Measures Applied:** [list]
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
### In Test Report
|
|
333
|
-
```markdown
|
|
334
|
-
## Knowledge Base Integration
|
|
335
|
-
- **Test Patterns Learned:** [list]
|
|
336
|
-
- **Edge Cases Documented:** [number]
|
|
337
|
-
- **Regression Patterns:** [list]
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
### In Phase Report
|
|
341
|
-
```markdown
|
|
342
|
-
## Knowledge Base Summary
|
|
343
|
-
- **Total KB Entries:** [number]
|
|
344
|
-
- **Categories:** [breakdown]
|
|
345
|
-
- **Most Referenced:** [top 3]
|
|
346
|
-
- **Learning Impact:** [description]
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
---
|
|
350
|
-
|
|
351
|
-
## 🎓 Learning Categories
|
|
352
|
-
|
|
353
|
-
### 1. Bug Patterns
|
|
354
|
-
- Error messages and solutions
|
|
355
|
-
- Common mistakes
|
|
356
|
-
- Edge cases
|
|
357
|
-
- Regression patterns
|
|
358
|
-
|
|
359
|
-
### 2. Feature Patterns
|
|
360
|
-
- Implementation approaches
|
|
361
|
-
- Design patterns
|
|
362
|
-
- Best practices
|
|
363
|
-
- Anti-patterns to avoid
|
|
364
|
-
|
|
365
|
-
### 3. Architecture Patterns
|
|
366
|
-
- Design decisions
|
|
367
|
-
- Scalability solutions
|
|
368
|
-
- Technology choices
|
|
369
|
-
- Integration patterns
|
|
370
|
-
|
|
371
|
-
### 4. Security Patterns
|
|
372
|
-
- Vulnerabilities and fixes
|
|
373
|
-
- Security best practices
|
|
374
|
-
- Attack patterns
|
|
375
|
-
- Protection measures
|
|
376
|
-
|
|
377
|
-
### 5. Performance Patterns
|
|
378
|
-
- Optimization techniques
|
|
379
|
-
- Bottleneck solutions
|
|
380
|
-
- Caching strategies
|
|
381
|
-
- Resource management
|
|
382
|
-
|
|
383
|
-
### 6. Platform Patterns
|
|
384
|
-
- Platform-specific issues
|
|
385
|
-
- Cross-platform solutions
|
|
386
|
-
- Device-specific problems
|
|
387
|
-
- Browser compatibility
|
|
388
|
-
|
|
389
|
-
---
|
|
390
|
-
|
|
391
|
-
## 🔐 Access Control
|
|
392
|
-
|
|
393
|
-
| Role | Create | Read | Update | Delete |
|
|
394
|
-
|------|--------|------|--------|--------|
|
|
395
|
-
| @DEV | ✅ | ✅ | ✅ | ❌ |
|
|
396
|
-
| @DEVOPS | ✅ | ✅ | ✅ | ❌ |
|
|
397
|
-
| @TESTER | ✅ | ✅ | ✅ | ❌ |
|
|
398
|
-
| @SECA | ✅ | ✅ | ✅ | ❌ |
|
|
399
|
-
| @SA | ✅ | ✅ | ✅ | ❌ |
|
|
400
|
-
| @UIUX | ✅ | ✅ | ✅ | ❌ |
|
|
401
|
-
| @REPORTER | ✅ | ✅ | ✅ | ✅ |
|
|
402
|
-
| @PM | ❌ | ✅ | ❌ | ❌ |
|
|
403
|
-
| @PO | ❌ | ✅ | ❌ | ❌ |
|
|
404
|
-
|
|
405
|
-
---
|
|
406
|
-
|
|
407
|
-
## 📞 Support
|
|
408
|
-
|
|
409
|
-
If you need help with auto-learning:
|
|
410
|
-
- **What to capture:** Tag @REPORTER
|
|
411
|
-
- **How to document:** Use template above
|
|
412
|
-
- **Where to store:** Check category structure
|
|
413
|
-
- **Quality issues:** Tag @REPORTER for review
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
#auto-learning #knowledge-base #continuous-improvement #project-intelligence
|
|
418
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Knowledge Base System Rules
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Knowledge Base System Rules
|
|
6
|
-
|
|
7
|
-
## Purpose
|
|
8
|
-
The Knowledge Base stores lessons learned, bug patterns, difficult features, and solutions that required multiple attempts. This serves as project memory for future reference.
|
|
9
|
-
|
|
10
|
-
## When to Create Entry
|
|
11
|
-
Create a knowledge entry when:
|
|
12
|
-
- Bug required 3+ attempts to fix
|
|
13
|
-
- Feature implementation was particularly challenging
|
|
14
|
-
- Solution was non-obvious or counter-intuitive
|
|
15
|
-
- Issue is likely to recur in similar projects
|
|
16
|
-
- Root cause analysis revealed important insights
|
|
17
|
-
|
|
18
|
-
## Entry Naming
|
|
19
|
-
**Format:** `KB-[YYYY-MM-DD]-[###]-[short-title].md`
|
|
20
|
-
|
|
21
|
-
**Location:** `.agent/knowledge-base/[category]/[severity]/`
|
|
22
|
-
|
|
23
|
-
## Categories
|
|
24
|
-
| Category | Folder | Description |
|
|
25
|
-
|----------|--------|-------------|
|
|
26
|
-
| Bugs | `knowledge-base/bugs/[severity]/` | Bug patterns and fixes |
|
|
27
|
-
| Features | `knowledge-base/features/[type]/` | Complex feature implementations |
|
|
28
|
-
| Architecture | `knowledge-base/architecture/` | Architecture decisions |
|
|
29
|
-
| Security | `knowledge-base/security/` | Security issues and solutions |
|
|
30
|
-
| Performance | `knowledge-base/performance/` | Performance optimizations |
|
|
31
|
-
| Platform | `knowledge-base/platform-specific/[platform]/` | Platform-specific issues |
|
|
32
|
-
|
|
33
|
-
## Workflow
|
|
34
|
-
1. **Create Entry:** Use `Knowledge-Entry-Template.md`
|
|
35
|
-
2. **Document:** Include problem, root cause, solution, prevention
|
|
36
|
-
3. **Tag:** Add appropriate tags for searchability
|
|
37
|
-
4. **Update Index:** Add to `knowledge-base/index.md`
|
|
38
|
-
5. **Notify:** Tag @REPORTER for review
|
|
39
|
-
|
|
40
|
-
## Search Before Starting
|
|
41
|
-
Before implementing complex features or fixing bugs:
|
|
42
|
-
1. Check `knowledge-base/index.md`
|
|
43
|
-
2. Search by keywords, technology, or error messages
|
|
44
|
-
3. Review similar entries
|
|
45
|
-
4. Adapt solutions to current context
|
package/.agent/skills/role-qa.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
inclusion: manual
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Quality Assurance (QA) Role
|
|
6
|
-
|
|
7
|
-
When acting as @QA, you are the Quality Assurance engineer responsible for design review and testing strategy.
|
|
8
|
-
|
|
9
|
-
## Role Activation
|
|
10
|
-
Activate when user mentions: `@QA`, "quality assurance", "design review", "testing strategy"
|
|
11
|
-
|
|
12
|
-
## Primary Responsibilities
|
|
13
|
-
|
|
14
|
-
1. **Review Design Artifacts**
|
|
15
|
-
- Read `Project-Plan-v*.md`
|
|
16
|
-
- Review `UIUX-Design-Spec-Sprint-[N]-v*.md`
|
|
17
|
-
- Review `Backend-Design-Spec-Sprint-[N]-v*.md`
|
|
18
|
-
|
|
19
|
-
2. **Perform Design Review**
|
|
20
|
-
- Verify requirement coverage (all features addressed)
|
|
21
|
-
- Check consistency between UI and backend designs
|
|
22
|
-
- Assess testability of proposed solutions
|
|
23
|
-
- Identify edge cases and error scenarios
|
|
24
|
-
- Validate acceptance criteria are clear
|
|
25
|
-
|
|
26
|
-
3. **Define Testing Strategy**
|
|
27
|
-
- Specify types of testing needed (unit, integration, E2E)
|
|
28
|
-
- Define test classes and scenarios
|
|
29
|
-
- Document acceptance criteria for each feature
|
|
30
|
-
- Identify testing tools and frameworks
|
|
31
|
-
|
|
32
|
-
4. **Risk Assessment**
|
|
33
|
-
- Identify potential quality risks
|
|
34
|
-
- Flag incomplete or ambiguous requirements
|
|
35
|
-
- Highlight areas needing clarification
|
|
36
|
-
|
|
37
|
-
5. **Make Decision**
|
|
38
|
-
- APPROVED: Design is complete and testable
|
|
39
|
-
- REJECTED: Critical issues must be addressed
|
|
40
|
-
|
|
41
|
-
## Artifact Requirements
|
|
42
|
-
|
|
43
|
-
**Output Location:** `docs/sprints/sprint-[N]/reviews/`
|
|
44
|
-
**Filename Format:** `Design-Verification-Report-Sprint-[N]-v[version].md`
|
|
45
|
-
|
|
46
|
-
**Required Sections:**
|
|
47
|
-
- Review Summary
|
|
48
|
-
- Requirement Coverage Analysis
|
|
49
|
-
- Design Consistency Check
|
|
50
|
-
- Testability Assessment
|
|
51
|
-
- Edge Cases & Error Scenarios
|
|
52
|
-
- Testing Strategy
|
|
53
|
-
- Issues Found (Critical/High/Medium/Low)
|
|
54
|
-
- Decision: APPROVED or REJECTED
|
|
55
|
-
|
|
56
|
-
## Strict Rules
|
|
57
|
-
|
|
58
|
-
- ❌ NEVER approve if critical/high issues exist
|
|
59
|
-
- ❌ NEVER place artifacts in `.agent/` directory
|
|
60
|
-
- ✅ ALWAYS document with `#verify-design` tag
|
|
61
|
-
- ✅ ALWAYS provide clear decision with reasoning
|
|
62
|
-
|
|
63
|
-
## Communication Template
|
|
64
|
-
|
|
65
|
-
End your report with:
|
|
66
|
-
|
|
67
|
-
```markdown
|
|
68
|
-
### Design Review Decision: [APPROVED / REJECTED]
|
|
69
|
-
|
|
70
|
-
### Next Step:
|
|
71
|
-
- If APPROVED: @DEV @DEVOPS - Please proceed with implementation
|
|
72
|
-
- If REJECTED: @SA @UIUX - Please address the issues listed above and submit revised designs
|
|
73
|
-
|
|
74
|
-
#verify-design #qa
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## MCP Tools to Leverage
|
|
78
|
-
|
|
79
|
-
- **File Tools** - Read all design artifacts
|
|
80
|
-
- **Web Search** - Research testing best practices
|
|
81
|
-
- **Diagnostic Tools** - Check for existing test coverage
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: [Support] Compound Knowledge Capture - After Tasks
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Compound Learning Workflow
|
|
6
|
-
|
|
7
|
-
## ⚠️ STRICT EXECUTION PROTOCOL (MANDATORY)
|
|
8
|
-
This workflow MUST be executed after completing any significant task.
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
- After fixing a bug (medium+ priority)
|
|
12
|
-
- After completing a feature
|
|
13
|
-
- After resolving a complex problem (3+ hours)
|
|
14
|
-
|
|
15
|
-
## Steps
|
|
16
|
-
|
|
17
|
-
### 1. Create KB Entry
|
|
18
|
-
```bash
|
|
19
|
-
cp .agent/templates/Knowledge-Entry-Template.md \
|
|
20
|
-
.agent/knowledge-base/[category]/KB-$(date +%Y-%m-%d)-###-[name].md
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### 2. Fill Entry
|
|
24
|
-
- Problem/Challenge
|
|
25
|
-
- Solution
|
|
26
|
-
- Implementation details
|
|
27
|
-
- Learnings
|
|
28
|
-
|
|
29
|
-
### 3. Sync to Neo4j
|
|
30
|
-
```bash
|
|
31
|
-
python tools/neo4j/sync_skills_to_neo4j.py
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### 4. Update KB Index
|
|
35
|
-
```bash
|
|
36
|
-
python bin/kb_cli.py update-index
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 5. Record Success (Learning Engine)
|
|
40
|
-
```bash
|
|
41
|
-
python tools/neo4j/learning_engine.py --record-success "TASK-ID" --task-type "feature"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
#compound #learning #knowledge-base
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## ENFORCEMENT REMINDER
|
|
50
|
-
Before executing, complete /preflight checks.
|
|
51
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: [Support] Pre-flight workflow checker - Run BEFORE any task
|
|
3
|
-
---
|
|
4
|
-
# Pre-Flight Workflow
|
|
5
|
-
> **MANDATORY:** This workflow MUST be executed conceptually before ANY task.
|
|
6
|
-
## Step 1: Identify Task Type
|
|
7
|
-
Analyze user request and determine:
|
|
8
|
-
- Is this a new feature? -> Use /orchestrator
|
|
9
|
-
- Is this a bug fix? -> Use /cycle
|
|
10
|
-
- Is this investigation? -> Use /explore
|
|
11
|
-
- Is this emergency? -> Use /emergency
|
|
12
|
-
## Step 2: Read Workflow File
|
|
13
|
-
`bash
|
|
14
|
-
# For /orchestrator tasks
|
|
15
|
-
cat .agent/workflows/orchestrator.md
|
|
16
|
-
# For /cycle tasks
|
|
17
|
-
cat .agent/workflows/cycle.md
|
|
18
|
-
`
|
|
19
|
-
## Step 3: Search Knowledge Base
|
|
20
|
-
`bash
|
|
21
|
-
grep -r "relevant_keyword" .agent/knowledge-base/
|
|
22
|
-
`
|
|
23
|
-
## Step 4: Check Brain State
|
|
24
|
-
`bash
|
|
25
|
-
python tools/brain/brain_cli.py status
|
|
26
|
-
`
|
|
27
|
-
## Step 5: Identify Required Roles
|
|
28
|
-
Based on task type, activate roles:
|
|
29
|
-
- @PM for planning
|
|
30
|
-
- @SA for architecture
|
|
31
|
-
- @DEV for implementation
|
|
32
|
-
- @TESTER for testing
|
|
33
|
-
## Step 6: Proceed with Workflow
|
|
34
|
-
Now follow the identified workflow file step-by-step.
|
|
35
|
-
#preflight #mandatory #enforcement
|