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.
Files changed (227) hide show
  1. package/.agent/ide-integration/INTEGRATION-SUMMARY.md +309 -0
  2. package/.agent/ide-integration/KIRO-IDE.md +381 -0
  3. package/.agent/ide-integration/README.md +256 -209
  4. package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +327 -0
  5. package/.agent/knowledge-base/HOW-IT-WORKS.md +365 -0
  6. package/.agent/knowledge-base/INDEX.md +43 -0
  7. package/.agent/knowledge-base/README.md +47 -7
  8. package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +1146 -0
  9. package/.agent/knowledge-base/architecture/README.md +98 -0
  10. package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +56 -0
  11. package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +198 -0
  12. package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +646 -0
  13. package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +945 -0
  14. package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +310 -0
  15. package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +324 -0
  16. package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +242 -0
  17. package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +148 -0
  18. package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +58 -0
  19. package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +46 -0
  20. package/.agent/knowledge-base/features/README.md +83 -0
  21. package/.agent/knowledge-base/features/figma-landing-page-workflow.md +311 -0
  22. package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +673 -0
  23. package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +459 -0
  24. package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +80 -0
  25. package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +56 -0
  26. package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +527 -0
  27. package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +491 -0
  28. package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +299 -0
  29. package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +555 -0
  30. package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +519 -0
  31. package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +74 -0
  32. package/.agent/rules/AUTO-LEARNING.md +418 -0
  33. package/.agent/rules/ai-enforcement.md +11 -0
  34. package/.agent/rules/artifacts.md +77 -58
  35. package/.agent/rules/git-workflow.md +25 -65
  36. package/.agent/rules/global.md +18 -13
  37. package/.agent/skills/role-ba.md +76 -0
  38. package/.agent/skills/role-brain.md +470 -0
  39. package/.agent/skills/role-dev.md +338 -0
  40. package/.agent/skills/role-devops.md +122 -0
  41. package/.agent/skills/role-orchestrator.md +223 -0
  42. package/.agent/skills/role-pm.md +258 -0
  43. package/.agent/skills/role-po.md +237 -0
  44. package/.agent/skills/role-qa.md +81 -0
  45. package/.agent/skills/role-reporter.md +117 -0
  46. package/.agent/skills/role-sa.md +277 -0
  47. package/.agent/skills/role-seca.md +294 -0
  48. package/.agent/skills/role-stakeholder.md +105 -0
  49. package/.agent/skills/role-tester.md +294 -0
  50. package/.agent/skills/role-uiux.md +264 -0
  51. package/.agent/templates/CHANGELOG-Template.md +83 -0
  52. package/.agent/templates/Knowledge-Entry-Template.md +3 -0
  53. package/.agent/workflows/brain.md +84 -53
  54. package/.agent/workflows/compound.md +51 -0
  55. package/.agent/workflows/cycle.md +61 -0
  56. package/.agent/workflows/emergency.md +114 -0
  57. package/.agent/workflows/explore.md +147 -0
  58. package/.agent/workflows/housekeeping.md +105 -0
  59. package/.agent/workflows/metrics.md +179 -0
  60. package/.agent/workflows/orchestrator.md +68 -0
  61. package/.agent/workflows/preflight.md +35 -0
  62. package/.agent/workflows/release.md +153 -0
  63. package/.agent/workflows/route.md +160 -0
  64. package/.agent/workflows/sprint.md +125 -0
  65. package/.agent/workflows/validate.md +146 -0
  66. package/CHANGELOG.md +349 -6
  67. package/README.md +171 -86
  68. package/bin/CROSS-PLATFORM-CLI.md +526 -0
  69. package/bin/README.md +525 -0
  70. package/bin/cli.js +65 -90
  71. package/bin/kb +34 -0
  72. package/bin/kb.bat +28 -0
  73. package/bin/kb_cli.py +226 -0
  74. package/bin/lib/README.md +411 -0
  75. package/bin/lib/__init__.py +7 -0
  76. package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
  77. package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
  78. package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
  79. package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
  80. package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
  81. package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
  82. package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
  83. package/bin/lib/kb_add.py +203 -0
  84. package/bin/lib/kb_common.py +224 -0
  85. package/bin/lib/kb_compound.py +250 -0
  86. package/bin/lib/kb_index.py +193 -0
  87. package/bin/lib/kb_list.py +144 -0
  88. package/bin/lib/kb_search.py +121 -0
  89. package/bin/lib/kb_stats.py +153 -0
  90. package/docs/AGENT-MANAGEMENT-GUIDE.md +298 -0
  91. package/docs/ARCHITECTURE-OVERVIEW.md +350 -0
  92. package/docs/BRAIN-ARCHITECTURE.md +396 -0
  93. package/docs/COMPOUND-ENGINEERING-SETUP.md +326 -0
  94. package/docs/KNOWLEDGE-BASE-GUIDE.md +330 -0
  95. package/docs/KNOWLEDGE-BASE-SIMPLE.md +248 -0
  96. package/docs/MONOREPO-ARCHITECTURE.md +492 -0
  97. package/docs/PROJECT-DOCUMENTATION-INDEX.md +540 -0
  98. package/docs/SDLC-Diagram.md +235 -0
  99. package/docs/analysis/Workflow-Optimization-Diagram.md +524 -0
  100. package/docs/analysis/Workflows-Deep-Analysis-2026-01-03.md +604 -0
  101. package/docs/architecture/{brain.md → BRAIN.md} +1 -1
  102. package/docs/global/Master-Documentation.md +307 -0
  103. package/docs/global/reports/Final-Approval-Report.md +257 -0
  104. package/docs/guides/AUTO-LEARNING-COMPLETE-GUIDE.md +519 -0
  105. package/docs/guides/AUTO-LEARNING-SYSTEM.md +322 -0
  106. package/docs/guides/LEARNING-FLOW.md +0 -0
  107. package/docs/guides/MCP-QUICK-REFERENCE.md +104 -0
  108. package/docs/guides/MCP-SETUP.md +139 -0
  109. package/docs/guides/QUICK-START.md +4 -0
  110. package/docs/guides/ROLE-COMMUNICATION-SYSTEM.md +71 -0
  111. package/docs/reports/Metrics-Dashboard-2026-01-02.md +66 -0
  112. package/docs/reports/Metrics-Dashboard-2026-01-04.md +68 -0
  113. package/docs/reports/UIUX-Design-Skills-Research-Report-2026.md +91 -0
  114. package/docs/reports/Validation-Report-2026-01-04.md +23 -0
  115. package/docs/research-reports/research-20260103-101315.json +95 -0
  116. package/docs/research-reports/research-20260103-101315.md +78 -0
  117. package/docs/research-reports/research-20260103-183837.json +95 -0
  118. package/docs/research-reports/research-20260103-183837.md +78 -0
  119. package/docs/research-reports/research-20260103-190346.json +100 -0
  120. package/docs/research-reports/research-20260103-190346.md +83 -0
  121. package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
  122. package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
  123. package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
  124. package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
  125. package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
  126. package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
  127. package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
  128. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
  129. package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
  130. package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
  131. package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
  132. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
  133. package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
  134. package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
  135. package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
  136. package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
  137. package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
  138. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
  139. package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
  140. package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
  141. package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
  142. package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
  143. package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
  144. package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
  145. package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
  146. package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
  147. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
  148. package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
  149. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
  150. package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
  151. package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
  152. package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
  153. package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
  154. package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
  155. package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
  156. package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
  157. package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
  158. package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
  159. package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
  160. package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
  161. package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
  162. package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
  163. package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
  164. package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
  165. package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
  166. package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
  167. package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
  168. package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
  169. package/docs/sprints/sprint-6/.brain-state.json +29 -0
  170. package/package.json +92 -16
  171. package/.agent/ide-integration/aider-commands.md +0 -40
  172. package/.agent/ide-integration/cline-config.json +0 -108
  173. package/.agent/ide-integration/cursor-rules.md +0 -63
  174. package/.agent/ide-integration/github-copilot-instructions.md +0 -75
  175. package/.agent/ide-integration/vscode-commands.json +0 -190
  176. package/.agent/ide-integration/windsurf-cascade.md +0 -125
  177. package/.agent/knowledge-base/index.md +0 -202
  178. package/.agent/legacy/roles/designer.md +0 -311
  179. package/.agent/legacy/roles/dev.md +0 -177
  180. package/.agent/legacy/roles/devops.md +0 -146
  181. package/.agent/legacy/roles/orchestrator.md +0 -339
  182. package/.agent/legacy/roles/pm.md +0 -120
  183. package/.agent/legacy/roles/po.md +0 -89
  184. package/.agent/legacy/roles/qa.md +0 -108
  185. package/.agent/legacy/roles/reporter.md +0 -70
  186. package/.agent/legacy/roles/sa.md +0 -118
  187. package/.agent/legacy/roles/seca.md +0 -112
  188. package/.agent/legacy/roles/stakeholder.md +0 -111
  189. package/.agent/legacy/roles/tester.md +0 -129
  190. package/.agent/rules/global.md.bak +0 -154
  191. package/.agent/usage.md +0 -653
  192. package/.agent/workflows/auto.md +0 -35
  193. package/.agent/workflows/dev.md +0 -30
  194. package/.agent/workflows/devops.md +0 -28
  195. package/.agent/workflows/kb-search.md +0 -22
  196. package/.agent/workflows/pm.md +0 -42
  197. package/.agent/workflows/po.md +0 -21
  198. package/.agent/workflows/qa.md +0 -31
  199. package/.agent/workflows/reporter.md +0 -21
  200. package/.agent/workflows/sa.md +0 -51
  201. package/.agent/workflows/seca.md +0 -21
  202. package/.agent/workflows/stakeholder.md +0 -26
  203. package/.agent/workflows/tester.md +0 -21
  204. package/.agent/workflows/uiux.md +0 -38
  205. package/.cursorrules +0 -49
  206. package/.env.template +0 -10
  207. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
  208. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  209. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
  210. package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
  211. package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
  212. package/.github/copilot-instructions.md +0 -60
  213. package/bin/commands/create.js +0 -96
  214. package/bin/commands/help.js +0 -69
  215. package/bin/commands/ide.js +0 -116
  216. package/bin/commands/init-kb.js +0 -74
  217. package/bin/commands/install.js +0 -68
  218. package/bin/commands/list.js +0 -35
  219. package/bin/graph_brain.py +0 -86
  220. package/bin/sync_github.py +0 -75
  221. package/bin/utils/args-parser.js +0 -33
  222. package/bin/utils/colors.js +0 -21
  223. package/bin/verify_neo4j.py +0 -25
  224. /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
  225. /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
  226. /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
  227. /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
@@ -0,0 +1,519 @@
1
+ # 🧪 Tester - Knowledge Base Guide
2
+
3
+ ## Role: @TESTER (Quality Assurance Tester)
4
+
5
+ ---
6
+
7
+ ## 🎯 Your Auto-Learning Responsibilities
8
+
9
+ As TESTER, you capture knowledge about:
10
+ - Test failure patterns and edge cases
11
+ - Regression bug patterns
12
+ - Test automation challenges
13
+ - Performance bottlenecks
14
+ - Integration testing issues
15
+ - E2E testing strategies
16
+
17
+ ---
18
+
19
+ ## 🔄 Auto-Learning Triggers for TESTER
20
+
21
+ ### Mandatory KB Entry Creation
22
+
23
+ | Trigger | When | Category | Example |
24
+ |---------|------|----------|---------|
25
+ | **Test Failure** | Test fails 3+ times | Bugs | KB-[date]-###-test-failure-pattern |
26
+ | **Edge Case Found** | Unexpected behavior discovered | Bugs | KB-[date]-###-edge-case-discovery |
27
+ | **Regression Bug** | Previously fixed bug reappears | Bugs | KB-[date]-###-regression-pattern |
28
+ | **Flaky Test** | Test intermittently fails | Features/Testing | KB-[date]-###-flaky-test-fix |
29
+ | **Performance Issue** | Performance below threshold | Performance | KB-[date]-###-performance-bottleneck |
30
+ | **Automation Challenge** | Test automation difficulty | Features/Testing | KB-[date]-###-automation-solution |
31
+ | **Integration Failure** | Component integration fails | Bugs | KB-[date]-###-integration-issue |
32
+ | **Browser Compatibility** | Cross-browser issue found | Platform/Web | KB-[date]-###-browser-compatibility |
33
+
34
+ ---
35
+
36
+ ## 📝 KB Entry Template for TESTER
37
+
38
+ ```markdown
39
+ # KB-[YYYY-MM-DD]-[###] - [Test Issue Title]
40
+
41
+ ## Document Info
42
+ | Field | Value |
43
+ |-------|-------|
44
+ | ID | KB-[YYYY-MM-DD]-[###] |
45
+ | Date | [YYYY-MM-DD] |
46
+ | Author | @TESTER |
47
+ | Category | Bugs / Features / Performance / Platform |
48
+ | Severity | [Critical/High/Medium/Low] |
49
+ | Auto-Generated | Yes |
50
+ | Source Task | [Task ID] |
51
+ | Sprint | [N] |
52
+ | Tags | #testing #bug-pattern #edge-case #auto-learned |
53
+
54
+ ---
55
+
56
+ ## Test Failure Description
57
+
58
+ ### Test Case
59
+ **Test Name:** [Test case name]
60
+ **Test Type:** [Unit/Integration/E2E/Performance]
61
+ **Test File:** [Path to test file]
62
+
63
+ ### Expected Behavior
64
+ [What should happen]
65
+
66
+ ### Actual Behavior
67
+ [What actually happened]
68
+
69
+ ### Failure Frequency
70
+ - **First Occurrence:** [Date]
71
+ - **Total Failures:** [Number]
72
+ - **Failure Rate:** [Percentage]
73
+ - **Flaky:** [Yes/No]
74
+
75
+ ---
76
+
77
+ ## Context
78
+
79
+ ### Environment
80
+ - **Platform:** [Web/Mobile/Desktop/API]
81
+ - **Browser/Device:** [If applicable]
82
+ - **OS:** [Operating system]
83
+ - **Test Framework:** [Jest/Playwright/Cypress/etc.]
84
+
85
+ ### Component Under Test
86
+ - **Component:** [Component name]
87
+ - **File Path:** [Path]
88
+ - **Dependencies:** [List]
89
+
90
+ ### Test Data
91
+ ```json
92
+ {
93
+ "input": "test data used",
94
+ "expected": "expected output",
95
+ "actual": "actual output"
96
+ }
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Root Cause Analysis
102
+
103
+ ### Investigation Steps
104
+ 1. [Step 1 - What was checked]
105
+ 2. [Step 2 - What was found]
106
+ 3. [Step 3 - Root cause identified]
107
+
108
+ ### Root Cause
109
+ [Detailed explanation of why test failed]
110
+
111
+ ### Contributing Factors
112
+ - [Factor 1]
113
+ - [Factor 2]
114
+
115
+ ### Code Issue (if applicable)
116
+ ```javascript
117
+ // Problematic code
118
+ [code snippet]
119
+ ```
120
+
121
+ ---
122
+
123
+ ## Solution Applied
124
+
125
+ ### Fix Approach
126
+ [How the issue was resolved]
127
+
128
+ ### Code Changes
129
+ ```javascript
130
+ // Fixed code
131
+ [code snippet]
132
+ ```
133
+
134
+ ### Test Updates
135
+ ```javascript
136
+ // Updated test
137
+ [test code]
138
+ ```
139
+
140
+ ### Verification Steps
141
+ 1. [Step 1]
142
+ 2. [Step 2]
143
+ 3. [Step 3]
144
+
145
+ ---
146
+
147
+ ## Regression Prevention
148
+
149
+ ### Regression Test Added
150
+ ```javascript
151
+ // New regression test
152
+ describe('[Test Suite]', () => {
153
+ it('should prevent regression of [issue]', () => {
154
+ // Test implementation
155
+ });
156
+ });
157
+ ```
158
+
159
+ ### Test Coverage
160
+ - **Before:** [X]%
161
+ - **After:** [Y]%
162
+ - **Improvement:** [Z]%
163
+
164
+ ### Automated Checks
165
+ - [ ] Unit test added
166
+ - [ ] Integration test added
167
+ - [ ] E2E test added
168
+ - [ ] Performance test added
169
+ - [ ] CI/CD pipeline updated
170
+
171
+ ---
172
+
173
+ ## Edge Cases Documented
174
+
175
+ ### Edge Case 1
176
+ - **Scenario:** [Description]
177
+ - **Test:** [How to test]
178
+ - **Expected:** [Expected behavior]
179
+
180
+ ### Edge Case 2
181
+ - **Scenario:** [Description]
182
+ - **Test:** [How to test]
183
+ - **Expected:** [Expected behavior]
184
+
185
+ ---
186
+
187
+ ## Prevention Measures
188
+
189
+ ### Testing Checklist Updates
190
+ - [ ] [New test scenario to always check]
191
+ - [ ] [New edge case to consider]
192
+ - [ ] [New validation to add]
193
+
194
+ ### Test Strategy Updates
195
+ - [Update to test strategy]
196
+ - [New testing approach]
197
+
198
+ ### Code Review Checklist
199
+ - [ ] [Check for similar patterns]
200
+ - [ ] [Validate edge cases]
201
+ - [ ] [Verify error handling]
202
+
203
+ ---
204
+
205
+ ## Performance Impact (if applicable)
206
+
207
+ ### Metrics
208
+ - **Response Time:** [Before] → [After]
209
+ - **Memory Usage:** [Before] → [After]
210
+ - **CPU Usage:** [Before] → [After]
211
+
212
+ ### Performance Test
213
+ ```javascript
214
+ // Performance test
215
+ [test code]
216
+ ```
217
+
218
+ ---
219
+
220
+ ## Browser/Platform Compatibility (if applicable)
221
+
222
+ ### Tested Platforms
223
+ | Platform | Version | Status | Notes |
224
+ |----------|---------|--------|-------|
225
+ | Chrome | [version] | ✅/❌ | [notes] |
226
+ | Firefox | [version] | ✅/❌ | [notes] |
227
+ | Safari | [version] | ✅/❌ | [notes] |
228
+ | Edge | [version] | ✅/❌ | [notes] |
229
+
230
+ ---
231
+
232
+ ## Lessons Learned
233
+
234
+ ### What Worked Well
235
+ - [Success 1]
236
+ - [Success 2]
237
+
238
+ ### What Didn't Work
239
+ - [Failed approach 1]
240
+ - [Failed approach 2]
241
+
242
+ ### Key Takeaways
243
+ 1. [Takeaway 1]
244
+ 2. [Takeaway 2]
245
+
246
+ ### Testing Best Practices
247
+ - [Best practice 1]
248
+ - [Best practice 2]
249
+
250
+ ---
251
+
252
+ ## Related Entries
253
+ - KB-[ID]: [Related test pattern]
254
+ - KB-[ID]: [Related bug fix]
255
+
256
+ ---
257
+
258
+ ## References
259
+ - Test Report: [Link]
260
+ - Bug Report: [Link]
261
+ - Documentation: [Link]
262
+
263
+ ---
264
+
265
+ #knowledge-base #testing #bug-pattern #edge-case #auto-learned
266
+ ```
267
+
268
+ ---
269
+
270
+ ## 🔍 Pre-Testing KB Search
271
+
272
+ Before starting testing, search KB for:
273
+
274
+ ```markdown
275
+ ### TESTER KB Search Checklist
276
+ - [ ] Similar component test patterns
277
+ - [ ] Known edge cases for this feature type
278
+ - [ ] Common test failures in this area
279
+ - [ ] Browser compatibility issues
280
+ - [ ] Performance benchmarks
281
+ - [ ] Flaky test patterns
282
+
283
+ **Search Keywords:**
284
+ - Component name
285
+ - Feature type (auth, payment, etc.)
286
+ - Technology (React, API, etc.)
287
+ - Test type (E2E, integration, etc.)
288
+ ```
289
+
290
+ ---
291
+
292
+ ## 📊 TESTER-Specific Metrics
293
+
294
+ Track in your Test Reports:
295
+
296
+ ```markdown
297
+ ## Testing Knowledge Metrics
298
+
299
+ ### Test Execution
300
+ - **Total Tests:** [X]
301
+ - **Passed:** [Y]
302
+ - **Failed:** [Z]
303
+ - **Flaky:** [W]
304
+ - **KB Entries Created:** [Number]
305
+
306
+ ### Bug Discovery
307
+ - **Bugs Found:** [X]
308
+ - **Edge Cases:** [Y]
309
+ - **Regressions:** [Z]
310
+ - **KB Entries:** [List KB-IDs]
311
+
312
+ ### Test Coverage
313
+ - **Coverage Before:** [X]%
314
+ - **Coverage After:** [Y]%
315
+ - **Improvement:** [Z]%
316
+
317
+ ### Knowledge Reuse
318
+ - **KB Entries Referenced:** [Number]
319
+ - **Time Saved:** [Estimate]
320
+ - **Issues Prevented:** [Number]
321
+ ```
322
+
323
+ ---
324
+
325
+ ## 🎯 Integration with Test Report
326
+
327
+ Add this section to every Test Report:
328
+
329
+ ```markdown
330
+ ## Knowledge Base Integration
331
+
332
+ ### KB Entries Referenced
333
+ | KB-ID | Title | How It Helped Testing |
334
+ |-------|-------|----------------------|
335
+ | KB-[ID] | [Title] | [Description] |
336
+
337
+ ### Test Patterns Applied from KB
338
+ 1. [Pattern 1 from KB-ID]
339
+ 2. [Pattern 2 from KB-ID]
340
+
341
+ ### New KB Entries Created
342
+ | KB-ID | Title | Category | Severity |
343
+ |-------|-------|----------|----------|
344
+ | KB-[ID] | [Title] | [Category] | [Severity] |
345
+
346
+ ### Edge Cases from KB
347
+ | Edge Case | Source KB | Test Added |
348
+ |-----------|-----------|------------|
349
+ | [Case] | KB-[ID] | [Yes/No] |
350
+ ```
351
+
352
+ ---
353
+
354
+ ## 🚀 Quick Actions
355
+
356
+ ### After Test Failure
357
+ ```markdown
358
+ 1. Check if similar failure in KB
359
+ 2. If 3+ failures, create KB entry
360
+ 3. Document edge case
361
+ 4. Add regression test
362
+ 5. Update test strategy
363
+ ```
364
+
365
+ ### After Finding Edge Case
366
+ ```markdown
367
+ 1. Document edge case immediately
368
+ 2. Create KB entry
369
+ 3. Add test coverage
370
+ 4. Notify @DEV
371
+ 5. Update test checklist
372
+ ```
373
+
374
+ ### After Regression Bug
375
+ ```markdown
376
+ 1. Search KB for original fix
377
+ 2. Create KB entry linking to original
378
+ 3. Add regression test
379
+ 4. Update CI/CD checks
380
+ 5. Review test coverage gaps
381
+ ```
382
+
383
+ ---
384
+
385
+ ## 🧪 Testing with MCP Tools
386
+
387
+ ### Using Playwright MCP
388
+ ```markdown
389
+ ### Playwright Test Pattern
390
+ 1. Search KB for similar E2E tests
391
+ 2. Use Playwright MCP for browser automation
392
+ 3. Document any browser-specific issues
393
+ 4. Create KB entry if complex scenario
394
+ 5. Add to regression suite
395
+ ```
396
+
397
+ ### Browser Automation KB Entry
398
+ ```markdown
399
+ ## KB Entry for Browser Test
400
+ - **Tool:** Playwright MCP
401
+ - **Test Type:** E2E
402
+ - **Scenario:** [Description]
403
+ - **Selectors:** [CSS/XPath used]
404
+ - **Challenges:** [What was difficult]
405
+ - **Solution:** [How it was solved]
406
+ ```
407
+
408
+ ---
409
+
410
+ ## 📚 Example KB Entries for TESTER
411
+
412
+ ### Example 1: Flaky Test Fix
413
+ **KB-2026-01-01-020-flaky-test-race-condition.md**
414
+ - Pattern: Test fails intermittently due to race condition
415
+ - Solution: Add explicit waits, use data-testid
416
+ - Prevention: Always wait for elements, avoid timeouts
417
+
418
+ ### Example 2: Edge Case Discovery
419
+ **KB-2026-01-01-021-empty-state-edge-case.md**
420
+ - Pattern: App crashes with empty data array
421
+ - Solution: Add null/empty checks
422
+ - Prevention: Always test empty states
423
+
424
+ ### Example 3: Browser Compatibility
425
+ **KB-2026-01-01-022-safari-date-picker-issue.md**
426
+ - Pattern: Date picker fails in Safari
427
+ - Solution: Use native input type="date"
428
+ - Prevention: Test all browsers, use polyfills
429
+
430
+ ### Example 4: Performance Bottleneck
431
+ **KB-2026-01-01-023-slow-list-rendering.md**
432
+ - Pattern: List with 1000+ items renders slowly
433
+ - Solution: Implement virtual scrolling
434
+ - Prevention: Performance test with large datasets
435
+
436
+ ---
437
+
438
+ ## 🎓 TESTER Best Practices
439
+
440
+ 1. **Search KB Before Testing**
441
+ - Check for known issues
442
+ - Review edge cases
443
+ - Find test patterns
444
+
445
+ 2. **Document Edge Cases Immediately**
446
+ - Don't wait until end of sprint
447
+ - Include reproduction steps
448
+ - Add test coverage
449
+
450
+ 3. **Track Flaky Tests**
451
+ - Create KB entry after 3 failures
452
+ - Document root cause
453
+ - Fix or remove flaky tests
454
+
455
+ 4. **Build Regression Suite**
456
+ - Every bug gets regression test
457
+ - Link test to KB entry
458
+ - Update CI/CD pipeline
459
+
460
+ 5. **Share Test Patterns**
461
+ - Document reusable patterns
462
+ - Create test utilities
463
+ - Update test strategy
464
+
465
+ ---
466
+
467
+ ## 🔄 Test Automation Workflow
468
+
469
+ ```markdown
470
+ ### Automated Testing with KB
471
+
472
+ 1. **Pre-Test Search**
473
+ - Search KB for component
474
+ - Review test patterns
475
+ - Check edge cases
476
+
477
+ 2. **Test Execution**
478
+ - Run automated tests
479
+ - Monitor for failures
480
+ - Track flaky tests
481
+
482
+ 3. **Failure Analysis**
483
+ - Investigate root cause
484
+ - Check if known issue
485
+ - Document if new pattern
486
+
487
+ 4. **KB Entry Creation**
488
+ - If 3+ failures
489
+ - If edge case found
490
+ - If regression detected
491
+
492
+ 5. **Regression Prevention**
493
+ - Add test to suite
494
+ - Update KB entry
495
+ - Share with team
496
+ ```
497
+
498
+ ---
499
+
500
+ ## 🎯 Success Criteria
501
+
502
+ ### Individual Success
503
+ - [ ] Searches KB before testing
504
+ - [ ] Creates KB entries for test failures
505
+ - [ ] Documents edge cases
506
+ - [ ] Adds regression tests
507
+ - [ ] Shares test patterns
508
+
509
+ ### Team Success
510
+ - [ ] Reduced regression rate
511
+ - [ ] Improved test coverage
512
+ - [ ] Faster bug detection
513
+ - [ ] Better test automation
514
+ - [ ] Shared test knowledge
515
+
516
+ ---
517
+
518
+ #tester #testing #quality-assurance #knowledge-base #automation
519
+
@@ -0,0 +1,74 @@
1
+ ---
2
+ title: "Input Validation and Sanitization Best Practices"
3
+ category: security
4
+ priority: high
5
+ sprint: sprint-[N]
6
+ date: 2026-01-02
7
+ tags: [security, validation, sanitization, xss, injection]
8
+ related_files: []
9
+ attempts: 1
10
+ time_saved: "2 hours (future reuse)"
11
+ author: "SECA"
12
+ ---
13
+
14
+ ## Problem
15
+ User input passed directly to database, HTML output, or system commands leads to injection attacks (SQL, XSS, Command Injection).
16
+
17
+ ## Root Cause
18
+ Trust in user input without validation or sanitization. Missing output encoding.
19
+
20
+ ## Solution
21
+
22
+ ### 1. Input Validation (Whitelist Approach)
23
+ ```typescript
24
+ const validateEmail = (input: string): boolean => {
25
+ const pattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
26
+ return pattern.test(input);
27
+ };
28
+
29
+ const validateUsername = (input: string): boolean => {
30
+ const pattern = /^[a-zA-Z0-9_]{3,20}$/;
31
+ return pattern.test(input);
32
+ };
33
+ ```
34
+
35
+ ### 2. Output Encoding (XSS Prevention)
36
+ ```typescript
37
+ const escapeHtml = (unsafe: string): string => {
38
+ return unsafe
39
+ .replace(/&/g, '&')
40
+ .replace(/</g, '&lt;')
41
+ .replace(/>/g, '&gt;')
42
+ .replace(/"/g, '&quot;')
43
+ .replace(/'/g, '&#039;');
44
+ };
45
+ ```
46
+
47
+ ### 3. SQL Parameterization
48
+ ```python
49
+ # ❌ Vulnerable
50
+ cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
51
+
52
+ # ✅ Safe
53
+ cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))
54
+ ```
55
+
56
+ ### 4. Content Security Policy
57
+ ```html
58
+ <meta http-equiv="Content-Security-Policy"
59
+ content="default-src 'self'; script-src 'self'">
60
+ ```
61
+
62
+ ## Validation Libraries
63
+ - **Zod** (TypeScript) - Schema validation
64
+ - **Joi** (Node.js) - Object schema validation
65
+ - **Pydantic** (Python) - Data validation
66
+
67
+ ## Prevention
68
+ 1. Never trust user input
69
+ 2. Validate on both client and server
70
+ 3. Use parameterized queries always
71
+ 4. Encode output based on context
72
+ 5. Implement CSP headers
73
+
74
+ #security #validation #xss #injection