amazingteam 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/.ai-team/agents/architect.md +144 -0
  2. package/.ai-team/agents/ci-analyst.md +188 -0
  3. package/.ai-team/agents/developer.md +176 -0
  4. package/.ai-team/agents/planner.md +355 -0
  5. package/.ai-team/agents/qa.md +189 -0
  6. package/.ai-team/agents/reviewer.md +211 -0
  7. package/.ai-team/agents/triage.md +146 -0
  8. package/.ai-team/commands/ci-analyze.md +116 -0
  9. package/.ai-team/commands/design.md +100 -0
  10. package/.ai-team/commands/implement.md +108 -0
  11. package/.ai-team/commands/release-check.md +142 -0
  12. package/.ai-team/commands/review.md +142 -0
  13. package/.ai-team/commands/test.md +115 -0
  14. package/.ai-team/commands/triage.md +138 -0
  15. package/.ai-team/memory/architect/architecture_notes.md +67 -0
  16. package/.ai-team/memory/architect/design_rationale.md +113 -0
  17. package/.ai-team/memory/architect/module_map.md +84 -0
  18. package/.ai-team/memory/ci-analyst/failure_patterns.md +102 -0
  19. package/.ai-team/memory/ci-analyst/runbook_references.md +87 -0
  20. package/.ai-team/memory/developer/bug_investigation.md +102 -0
  21. package/.ai-team/memory/developer/build_issues.md +115 -0
  22. package/.ai-team/memory/developer/implementation_notes.md +83 -0
  23. package/.ai-team/memory/failures/failure_library.md +103 -0
  24. package/.ai-team/memory/planner/decomposition_notes.md +82 -0
  25. package/.ai-team/memory/planner/flow_rules.md +86 -0
  26. package/.ai-team/memory/planner/github_issue_patterns.md +229 -0
  27. package/.ai-team/memory/qa/regression_cases.md +101 -0
  28. package/.ai-team/memory/qa/test_strategy.md +138 -0
  29. package/.ai-team/memory/qa/validation_notes.md +110 -0
  30. package/.ai-team/memory/reviewer/quality_rules.md +105 -0
  31. package/.ai-team/memory/reviewer/recurring_risks.md +109 -0
  32. package/.ai-team/memory/reviewer/review_notes.md +124 -0
  33. package/.ai-team/memory/triage/classification_heuristics.md +82 -0
  34. package/.ai-team/memory/triage/debug_notes.md +87 -0
  35. package/.ai-team/opencode.template.jsonc +216 -0
  36. package/.ai-team/skills/bugfix-playbook/skill.md +174 -0
  37. package/.ai-team/skills/ci-failure-analysis/skill.md +176 -0
  38. package/.ai-team/skills/issue-triage/skill.md +163 -0
  39. package/.ai-team/skills/regression-checklist/skill.md +176 -0
  40. package/.ai-team/skills/release-readiness-check/skill.md +216 -0
  41. package/.ai-team/skills/repo-architecture-reader/skill.md +139 -0
  42. package/.ai-team/skills/safe-refactor-checklist/skill.md +215 -0
  43. package/.ai-team/skills/task-breakdown-and-dispatch/skill.md +151 -0
  44. package/.ai-team/skills/test-first-feature-dev/skill.md +205 -0
  45. package/.ai-team/workflows/ci.yml +81 -0
  46. package/.ai-team/workflows/nightly-ai-maintenance.yml +129 -0
  47. package/.ai-team/workflows/opencode.yml +33 -0
  48. package/.ai-team/workflows/pr-check.yml +41 -0
  49. package/.foundation/foundation.lock +38 -0
  50. package/.foundation/local-overrides.md +97 -0
  51. package/.foundation/upgrade-history.md +38 -0
  52. package/.opencode/agents/architect.md +38 -0
  53. package/.opencode/agents/ci-analyst.md +38 -0
  54. package/.opencode/agents/developer.md +43 -0
  55. package/.opencode/agents/planner.md +47 -0
  56. package/.opencode/agents/qa.md +34 -0
  57. package/.opencode/agents/reviewer.md +38 -0
  58. package/.opencode/agents/triage.md +37 -0
  59. package/.opencode/commands/auto.md +264 -0
  60. package/.opencode/commands/breakdown-issue.md +94 -0
  61. package/.opencode/commands/ci-analyze.md +15 -0
  62. package/.opencode/commands/close-parent-task.md +122 -0
  63. package/.opencode/commands/design.md +15 -0
  64. package/.opencode/commands/dispatch-next.md +102 -0
  65. package/.opencode/commands/implement.md +16 -0
  66. package/.opencode/commands/release-check.md +16 -0
  67. package/.opencode/commands/resume.md +88 -0
  68. package/.opencode/commands/review.md +15 -0
  69. package/.opencode/commands/show-blockers.md +97 -0
  70. package/.opencode/commands/summarize-parent.md +121 -0
  71. package/.opencode/commands/test.md +15 -0
  72. package/.opencode/commands/triage.md +109 -0
  73. package/.opencode/skills/bugfix-playbook/SKILL.md +81 -0
  74. package/.opencode/skills/ci-failure-analysis/SKILL.md +94 -0
  75. package/.opencode/skills/issue-triage/SKILL.md +80 -0
  76. package/.opencode/skills/regression-checklist/SKILL.md +81 -0
  77. package/.opencode/skills/release-readiness-check/SKILL.md +81 -0
  78. package/.opencode/skills/repo-architecture-reader/SKILL.md +65 -0
  79. package/.opencode/skills/safe-refactor-checklist/SKILL.md +76 -0
  80. package/.opencode/skills/task-breakdown-and-dispatch/SKILL.md +255 -0
  81. package/.opencode/skills/test-first-feature-dev/SKILL.md +78 -0
  82. package/AGENTS.md +879 -0
  83. package/CHANGELOG.md +261 -0
  84. package/LICENSE +21 -0
  85. package/README.md +1215 -0
  86. package/VERSION +1 -0
  87. package/action/__tests__/downloader.test.js +251 -0
  88. package/action/__tests__/merger.test.js +156 -0
  89. package/action/__tests__/path-resolver.test.js +199 -0
  90. package/action/__tests__/validator.test.js +310 -0
  91. package/action/action.yml +61 -0
  92. package/action/index.js +223 -0
  93. package/action/lib/downloader.js +344 -0
  94. package/action/lib/merger.js +170 -0
  95. package/action/lib/path-resolver.js +176 -0
  96. package/action/lib/setup.js +286 -0
  97. package/action/lib/validator.js +324 -0
  98. package/cli/__tests__/cli.test.js +270 -0
  99. package/cli/amazingteam.cjs +225 -0
  100. package/cli/commands/check-update.cjs +159 -0
  101. package/cli/commands/init.cjs +412 -0
  102. package/cli/commands/local.cjs +264 -0
  103. package/cli/commands/migrate.cjs +316 -0
  104. package/cli/commands/status.cjs +241 -0
  105. package/cli/commands/upgrade.cjs +213 -0
  106. package/cli/commands/validate.cjs +259 -0
  107. package/cli/commands/version.cjs +59 -0
  108. package/cli/sync.cjs +237 -0
  109. package/dist/index.js +35 -0
  110. package/docs/architecture/overview.md +138 -0
  111. package/docs/blocker_resolution_design.md +372 -0
  112. package/docs/bootstrap-model.md +356 -0
  113. package/docs/config-reference.md +458 -0
  114. package/docs/how-to-use.md +178 -0
  115. package/docs/migration-to-v3.md +355 -0
  116. package/docs/overlay-guide.md +156 -0
  117. package/docs/patterns/README.md +67 -0
  118. package/docs/quick-start-v3.md +330 -0
  119. package/docs/releases/README.md +64 -0
  120. package/docs/runbooks/ci/README.md +62 -0
  121. package/docs/runbooks/ci/build-debug.md +120 -0
  122. package/docs/runbooks/ci/flaky-tests.md +127 -0
  123. package/docs/runbooks/getting-started.md +81 -0
  124. package/docs/upgrade-policy.md +188 -0
  125. package/docs/versioning.md +199 -0
  126. package/overlays/README.md +30 -0
  127. package/overlays/ai-agent-product/.ai-team/skills/llm-integration/skill.md +99 -0
  128. package/overlays/ai-agent-product/docs/ai-agent-architecture.md +68 -0
  129. package/overlays/ai-agent-product/overlay.yaml +26 -0
  130. package/overlays/cpp-qt-desktop/.ai-team/skills/qt-signals-slots/skill.md +60 -0
  131. package/overlays/cpp-qt-desktop/docs/qt-conventions.md +64 -0
  132. package/overlays/cpp-qt-desktop/overlay.yaml +22 -0
  133. package/overlays/python-backend/.ai-team/skills/python-testing/skill.md +90 -0
  134. package/overlays/python-backend/docs/python-style.md +78 -0
  135. package/overlays/python-backend/overlay.yaml +22 -0
  136. package/overlays/web-fullstack/.ai-team/skills/frontend-testing/skill.md +70 -0
  137. package/overlays/web-fullstack/docs/frontend-conventions.md +68 -0
  138. package/overlays/web-fullstack/overlay.yaml +26 -0
  139. package/package.json +84 -0
  140. package/presets/default.yaml +161 -0
  141. package/presets/go.yaml +43 -0
  142. package/presets/python.yaml +43 -0
  143. package/presets/typescript.yaml +40 -0
  144. package/schemas/config.schema.json +239 -0
  145. package/scripts/diff_foundation_vs_project.sh +134 -0
  146. package/scripts/generate_docs.sh +200 -0
  147. package/scripts/init_project.sh +455 -0
  148. package/scripts/plan_upgrade.sh +268 -0
  149. package/scripts/upgrade_foundation.sh +365 -0
  150. package/scripts/validate-foundation.cjs +278 -0
  151. package/scripts/validate_foundation.sh +192 -0
  152. package/scripts/validate_project_setup.sh +171 -0
  153. package/tasks/README.md +94 -0
  154. package/tasks/_template/analysis.md +76 -0
  155. package/tasks/_template/design.md +121 -0
  156. package/tasks/_template/implementation.md +121 -0
  157. package/tasks/_template/release.md +119 -0
  158. package/tasks/_template/review.md +131 -0
  159. package/tasks/_template/subtasks/task.yaml +24 -0
  160. package/tasks/_template/task.yaml +75 -0
  161. package/tasks/_template/validation.md +128 -0
  162. package/templates/amazingteam.yml +81 -0
  163. package/templates/gitignore +14 -0
  164. package/templates/opencode.jsonc +216 -0
@@ -0,0 +1,84 @@
1
+ # Architect Memory - Module Map
2
+
3
+ This file maintains a living map of the codebase modules and their relationships.
4
+
5
+ ---
6
+
7
+ ## Module Hierarchy
8
+
9
+ ### Core Modules
10
+
11
+ | Module | Path | Purpose | Dependencies |
12
+ |--------|------|---------|--------------|
13
+ | Agents | `.opencode/agents/` | AI role definitions | None |
14
+ | Skills | `.opencode/skills/` | Reusable AI skills | None |
15
+ | Commands | `.opencode/commands/` | Workflow commands | None |
16
+ | Memory | `.opencode/memory/` | Role-isolated memory | None |
17
+
18
+ ### Application Modules
19
+
20
+ | Module | Path | Purpose | Dependencies |
21
+ |--------|------|---------|--------------|
22
+ | src | `src/` | Main application code | config, shared |
23
+ | config | `src/config/` | Configuration management | None |
24
+ | shared | `src/shared/` | Shared utilities | None |
25
+
26
+ ---
27
+
28
+ ## Dependency Graph
29
+
30
+ ```
31
+ ┌─────────────────────────────────────────────────────┐
32
+ │ GitHub Issues │
33
+ └─────────────────────┬───────────────────────────────┘
34
+
35
+
36
+ ┌─────────────────────────────────────────────────────┐
37
+ │ Architect Agent │
38
+ │ Memory: .opencode/memory/architect/ │
39
+ └─────────────────────┬───────────────────────────────┘
40
+
41
+
42
+ ┌─────────────────────────────────────────────────────┐
43
+ │ Developer Agent │
44
+ │ Memory: .opencode/memory/developer/ │
45
+ └─────────────────────┬───────────────────────────────┘
46
+
47
+
48
+ ┌─────────────────────────────────────────────────────┐
49
+ │ QA Agent │
50
+ │ Memory: .opencode/memory/qa/ │
51
+ └─────────────────────┬───────────────────────────────┘
52
+
53
+
54
+ ┌─────────────────────────────────────────────────────┐
55
+ │ Reviewer Agent │
56
+ │ Memory: .opencode/memory/reviewer/ │
57
+ └─────────────────────────────────────────────────────┘
58
+ ```
59
+
60
+ ---
61
+
62
+ ## Integration Points
63
+
64
+ | Integration | Type | Direction | Notes |
65
+ |-------------|------|-----------|-------|
66
+ | GitHub API | REST API | Inbound/Outbound | Issue/PR management |
67
+ | GitHub Actions | Workflow | Inbound | Trigger execution |
68
+ | OpenCode | CLI | Outbound | AI execution engine |
69
+
70
+ ---
71
+
72
+ ## Module Change History
73
+
74
+ | Date | Module | Change Type | Notes |
75
+ |------|--------|-------------|-------|
76
+ | | | | |
77
+
78
+ ---
79
+
80
+ ## Notes
81
+
82
+ - Update this file when modules are added, removed, or restructured
83
+ - Keep dependency information accurate
84
+ - Use this map when assessing change impact
@@ -0,0 +1,102 @@
1
+ # CI Analyst Memory - Failure Patterns
2
+
3
+ This file stores CI failure patterns and resolution knowledge.
4
+
5
+ ---
6
+
7
+ ## Failure Classification
8
+
9
+ ### Build Failures
10
+
11
+ | Type | Indicators | Quick Fix |
12
+ |------|------------|-----------|
13
+ | Compilation | Syntax/type errors | Fix errors |
14
+ | Dependency | Package resolution | Check lock file |
15
+ | Configuration | Missing config | Add config |
16
+
17
+ ### Test Failures
18
+
19
+ | Type | Indicators | Quick Fix |
20
+ |------|------------|-----------|
21
+ | Assertion | Logic error | Fix code or test |
22
+ | Timeout | Slow/hanging | Optimize or increase timeout |
23
+ | Flaky | Intermittent | Fix race condition |
24
+ | Environment | Missing resources | Add setup |
25
+
26
+ ### Infrastructure Failures
27
+
28
+ | Type | Indicators | Quick Fix |
29
+ |------|------------|-----------|
30
+ | Resource | Out of memory/disk | Optimize or increase |
31
+ | Network | Timeout/connection | Add retry or fix endpoint |
32
+ | Permission | Access denied | Check permissions |
33
+
34
+ ---
35
+
36
+ ## Known CI Issues
37
+
38
+ ### Issue: [Issue Name]
39
+
40
+ **Symptoms**: [What happens]
41
+
42
+ **Cause**: [Root cause]
43
+
44
+ **Resolution**: [How to fix]
45
+
46
+ **Workaround**: [Temporary fix if any]
47
+
48
+ **Status**: [Open/Fixed/Monitoring]
49
+
50
+ ---
51
+
52
+ ## Failure Log
53
+
54
+ ### [Date] - Build #[number]
55
+
56
+ **Pipeline**: [Pipeline name]
57
+
58
+ **Stage**: [Failed stage]
59
+
60
+ **Error**: [Error message]
61
+
62
+ **Root Cause**: [Determination]
63
+
64
+ **Resolution**: [Fix applied]
65
+
66
+ **Prevention**: [How to prevent recurrence]
67
+
68
+ ---
69
+
70
+ ## Flaky Test Registry
71
+
72
+ | Test | Frequency | Last Seen | Suspected Cause | Status |
73
+ |------|-----------|-----------|-----------------|--------|
74
+ | | | | | |
75
+
76
+ ---
77
+
78
+ ## CI Infrastructure Notes
79
+
80
+ ### Resource Limits
81
+
82
+ - Memory: [Limit]
83
+ - Disk: [Limit]
84
+ - Timeout: [Default]
85
+
86
+ ### Environment Variables
87
+
88
+ - [Key variables to check]
89
+
90
+ ### Known External Dependencies
91
+
92
+ | Service | Status Page | Last Issue |
93
+ |---------|-------------|------------|
94
+ | | | |
95
+
96
+ ---
97
+
98
+ ## Notes
99
+
100
+ - Document all failures, patterns help identify root causes faster
101
+ - Keep flaky test registry updated
102
+ - Note infrastructure issues separately from code issues
@@ -0,0 +1,87 @@
1
+ # CI Analyst Memory - Runbook References
2
+
3
+ This file stores references to CI runbooks and investigation procedures.
4
+
5
+ ---
6
+
7
+ ## Runbook Quick Links
8
+
9
+ ### Build Issues
10
+
11
+ | Problem | Runbook | Location |
12
+ |---------|---------|----------|
13
+ | Compilation failure | Build Debug | docs/runbooks/ci/build-debug.md |
14
+ | Dependency issues | Dependency Resolution | docs/runbooks/ci/dependencies.md |
15
+ | Out of memory | Memory Issues | docs/runbooks/ci/memory.md |
16
+
17
+ ### Test Issues
18
+
19
+ | Problem | Runbook | Location |
20
+ |---------|---------|----------|
21
+ | Flaky tests | Flaky Test Investigation | docs/runbooks/ci/flaky-tests.md |
22
+ | Test timeout | Timeout Investigation | docs/runbooks/ci/timeouts.md |
23
+ | Test environment | Environment Setup | docs/runbooks/ci/environment.md |
24
+
25
+ ### Infrastructure Issues
26
+
27
+ | Problem | Runbook | Location |
28
+ |---------|---------|----------|
29
+ | Resource limits | Resource Management | docs/runbooks/ci/resources.md |
30
+ | Network issues | Network Debug | docs/runbooks/ci/network.md |
31
+ | Permission errors | Access Control | docs/runbooks/ci/permissions.md |
32
+
33
+ ---
34
+
35
+ ## Investigation Procedures
36
+
37
+ ### Standard CI Failure Investigation
38
+
39
+ 1. Check error message and logs
40
+ 2. Identify failure type (build/test/infra)
41
+ 3. Check known issues in failure library
42
+ 4. Review recent changes
43
+ 5. Attempt local reproduction
44
+ 6. Apply fix or escalate
45
+ 7. Document resolution
46
+
47
+ ### Flaky Test Investigation
48
+
49
+ 1. Identify failing test
50
+ 2. Check failure history
51
+ 3. Look for race conditions
52
+ 4. Check test isolation
53
+ 5. Review mock setup
54
+ 6. Add retry or fix
55
+ 7. Add to flaky test registry
56
+
57
+ ---
58
+
59
+ ## Common Fixes Quick Reference
60
+
61
+ | Error Type | Common Fix |
62
+ |------------|------------|
63
+ | Type error | Add type, fix type mismatch |
64
+ | Import error | Fix import path, add to dependencies |
65
+ | Test assertion | Fix logic in code or test |
66
+ | Timeout | Increase timeout, optimize code |
67
+ | Out of memory | Reduce memory usage, split job |
68
+ | Permission | Update CI permissions |
69
+
70
+ ---
71
+
72
+ ## Escalation Paths
73
+
74
+ | Issue Type | Escalate To |
75
+ |------------|-------------|
76
+ | Code bug | Developer |
77
+ | Test bug | QA |
78
+ | Infrastructure | DevOps |
79
+ | External service | Contact provider |
80
+
81
+ ---
82
+
83
+ ## Notes
84
+
85
+ - Keep runbook references up to date
86
+ - Add new runbooks as they are created
87
+ - Document any temporary workarounds
@@ -0,0 +1,102 @@
1
+ # Developer Memory - Bug Investigation
2
+
3
+ This file records bug investigation patterns and common issues discovered by the Developer agent.
4
+
5
+ ---
6
+
7
+ ## Bug Categories
8
+
9
+ ### Common Bug Types
10
+
11
+ | Type | Symptoms | Common Causes | Fix Pattern |
12
+ |------|----------|---------------|-------------|
13
+ | Null/Undefined | Runtime errors | Missing checks | Add null guards |
14
+ | Logic Error | Wrong output | Incorrect conditions | Fix condition logic |
15
+ | Race Condition | Intermittent failures | Async timing | Add synchronization |
16
+ | State Bug | UI inconsistent | Stale state | Force re-render/reload |
17
+
18
+ ---
19
+
20
+ ## Investigation Process
21
+
22
+ ### Step 1: Reproduce
23
+
24
+ 1. Get exact reproduction steps
25
+ 2. Create minimal reproduction case
26
+ 3. Verify bug exists in current version
27
+ 4. Document environment details
28
+
29
+ ### Step 2: Locate
30
+
31
+ 1. Use stack traces to find location
32
+ 2. Search for error messages
33
+ 3. Trace execution flow
34
+ 4. Identify affected files
35
+
36
+ ### Step 3: Analyze
37
+
38
+ 1. Understand expected behavior
39
+ 2. Compare with actual behavior
40
+ 3. Identify root cause
41
+ 4. Consider similar issues
42
+
43
+ ### Step 4: Fix
44
+
45
+ 1. Write failing test
46
+ 2. Make minimal fix
47
+ 3. Verify fix resolves issue
48
+ 4. Check for regressions
49
+
50
+ ---
51
+
52
+ ## Bug Investigation Log
53
+
54
+ ### [Date] - [Bug Title]
55
+
56
+ **Issue**: [Issue number]
57
+
58
+ **Symptoms**: [What was observed]
59
+
60
+ **Root Cause**: [Why it happened]
61
+
62
+ **Location**: `file:line`
63
+
64
+ **Fix**: [What was changed]
65
+
66
+ **Lessons Learned**: [What can be applied elsewhere]
67
+
68
+ ---
69
+
70
+ ## Recurring Issues
71
+
72
+ | Issue | Frequency | Pattern | Prevention |
73
+ |-------|-----------|---------|------------|
74
+ | | | | |
75
+
76
+ ---
77
+
78
+ ## Debugging Tools
79
+
80
+ ### Useful Commands
81
+
82
+ ```bash
83
+ # Run specific test
84
+ npm test -- --testNamePattern="test name"
85
+
86
+ # Debug with Node
87
+ node --inspect-brk dist/index.js
88
+
89
+ # Check types
90
+ npm run typecheck
91
+
92
+ # Lint
93
+ npm run lint
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Notes
99
+
100
+ - Document bugs that reveal patterns
101
+ - Note investigation techniques that work well
102
+ - Track recurring issues for prevention
@@ -0,0 +1,115 @@
1
+ # Developer Memory - Build Issues
2
+
3
+ This file records build system knowledge and common issues encountered by the Developer agent.
4
+
5
+ ---
6
+
7
+ ## Build System Overview
8
+
9
+ ### Technology Stack
10
+
11
+ | Tool | Version | Purpose |
12
+ |------|---------|---------|
13
+ | Node.js | 20+ | Runtime |
14
+ | TypeScript | 5.x | Language |
15
+ | npm | 10.x | Package manager |
16
+ | Jest | 29.x | Testing |
17
+ | ESLint | 8.x | Linting |
18
+
19
+ ### Build Commands
20
+
21
+ | Command | Purpose |
22
+ |---------|---------|
23
+ | `npm run build` | Compile TypeScript |
24
+ | `npm test` | Run tests |
25
+ | `npm run lint` | Check code style |
26
+ | `npm run typecheck` | Type checking |
27
+
28
+ ---
29
+
30
+ ## Build Issues Log
31
+
32
+ ### [Date] - [Issue Title]
33
+
34
+ **Error**: [Error message or description]
35
+
36
+ **Cause**: [What caused the issue]
37
+
38
+ **Solution**: [How it was resolved]
39
+
40
+ **Prevention**: [How to avoid in future]
41
+
42
+ ---
43
+
44
+ ## Common Build Issues
45
+
46
+ ### TypeScript Errors
47
+
48
+ | Error | Cause | Solution |
49
+ |-------|-------|----------|
50
+ | Cannot find module | Missing import or path | Check import path |
51
+ | Type not assignable | Wrong type | Add type assertion or fix type |
52
+ | Property not exists | Missing property | Add property or use optional chaining |
53
+
54
+ ### Test Failures
55
+
56
+ | Error | Cause | Solution |
57
+ |-------|-------|----------|
58
+ | Timeout | Async operation slow | Increase timeout or fix async |
59
+ | Mock not working | Incorrect mock setup | Check mock configuration |
60
+ | Snapshot mismatch | Output changed | Update snapshot if expected |
61
+
62
+ ### Dependency Issues
63
+
64
+ | Issue | Cause | Solution |
65
+ |-------|-------|----------|
66
+ | Version conflict | Incompatible versions | Use resolutions or update |
67
+ | Missing peer dependency | Not installed | Install peer dependency |
68
+ | Security vulnerability | Outdated package | Update to secure version |
69
+
70
+ ---
71
+
72
+ ## Build Configuration
73
+
74
+ ### tsconfig.json Key Settings
75
+
76
+ ```json
77
+ {
78
+ "compilerOptions": {
79
+ "strict": true,
80
+ "esModuleInterop": true,
81
+ "skipLibCheck": true
82
+ }
83
+ }
84
+ ```
85
+
86
+ ### Jest Configuration
87
+
88
+ ```javascript
89
+ module.exports = {
90
+ preset: 'ts-jest',
91
+ testEnvironment: 'node',
92
+ coverageThreshold: {
93
+ global: { branches: 80, functions: 80, lines: 80 }
94
+ }
95
+ };
96
+ ```
97
+
98
+ ---
99
+
100
+ ## CI/CD Notes
101
+
102
+ ### GitHub Actions Workflow
103
+
104
+ - Build runs on: `ubuntu-latest`
105
+ - Node version: 20
106
+ - Cache: npm
107
+ - Steps: install → lint → typecheck → test → build
108
+
109
+ ---
110
+
111
+ ## Notes
112
+
113
+ - Document any build issues and their solutions
114
+ - Keep track of configuration changes
115
+ - Note performance optimization opportunities
@@ -0,0 +1,83 @@
1
+ # Developer Memory - Implementation Notes
2
+
3
+ This file stores implementation-specific knowledge and observations from the Developer agent.
4
+
5
+ ---
6
+
7
+ ## Implementation Patterns
8
+
9
+ ### Preferred Patterns
10
+
11
+ | Pattern | Use Case | Example |
12
+ |---------|----------|---------|
13
+ | Repository | Data access abstraction | `user.repository.ts` |
14
+ | Service | Business logic | `user.service.ts` |
15
+ | Factory | Complex object creation | `factory.ts` |
16
+
17
+ ### Code Organization
18
+
19
+ ```
20
+ module/
21
+ ├── index.ts # Public API
22
+ ├── module.service.ts # Business logic
23
+ ├── module.repository.ts # Data access
24
+ ├── module.types.ts # Types/interfaces
25
+ └── __tests__/ # Tests
26
+ ├── module.service.test.ts
27
+ └── module.repository.test.ts
28
+ ```
29
+
30
+ ---
31
+
32
+ ## Implementation Log
33
+
34
+ ### [Date] - [Feature/Bug]
35
+
36
+ **Task**: [Issue number or description]
37
+
38
+ **Approach**: [How it was implemented]
39
+
40
+ **Challenges**: [What was difficult]
41
+
42
+ **Resolution**: [How challenges were addressed]
43
+
44
+ ---
45
+
46
+ ## Common Implementation Tasks
47
+
48
+ ### Adding a New Feature
49
+
50
+ 1. Create feature branch: `feat/issue-N-description`
51
+ 2. Create types/interfaces in `*.types.ts`
52
+ 3. Implement business logic in `*.service.ts`
53
+ 4. Add data access in `*.repository.ts` if needed
54
+ 5. Write unit tests in `__tests__/`
55
+ 6. Update documentation
56
+
57
+ ### Fixing a Bug
58
+
59
+ 1. Create fix branch: `fix/issue-N-description`
60
+ 2. Write failing test that reproduces the bug
61
+ 3. Make minimal fix
62
+ 4. Verify test passes
63
+ 5. Check for similar issues elsewhere
64
+ 6. Update regression tests
65
+
66
+ ---
67
+
68
+ ## Code Quality Checklist
69
+
70
+ - [ ] Code follows naming conventions
71
+ - [ ] Functions are small and focused
72
+ - [ ] No code duplication
73
+ - [ ] Error handling is appropriate
74
+ - [ ] Tests cover edge cases
75
+ - [ ] Documentation is updated
76
+
77
+ ---
78
+
79
+ ## Notes
80
+
81
+ - Update this file when learning new patterns or encountering common issues
82
+ - Keep track of implementation strategies that work well
83
+ - Note any recurring challenges
@@ -0,0 +1,103 @@
1
+ # Failure Library
2
+
3
+ This file stores recurring failure patterns for quick reference and prevention.
4
+
5
+ **Important**: This is shared operational memory, not global project truth. It captures patterns that recur across tasks to improve response time and prevent repeated mistakes.
6
+
7
+ ---
8
+
9
+ ## Build Failures
10
+
11
+ ### Pattern: [Pattern Name]
12
+
13
+ **Symptoms**: [What you see]
14
+
15
+ **Root Cause**: [Why it happens]
16
+
17
+ **Resolution**: [How to fix]
18
+
19
+ **Prevention**: [How to prevent]
20
+
21
+ **Last Occurrence**: [Date/Issue]
22
+
23
+ ---
24
+
25
+ ## Test Failures
26
+
27
+ ### Pattern: [Pattern Name]
28
+
29
+ **Symptoms**: [What you see]
30
+
31
+ **Root Cause**: [Why it happens]
32
+
33
+ **Resolution**: [How to fix]
34
+
35
+ **Prevention**: [How to prevent]
36
+
37
+ **Last Occurrence**: [Date/Issue]
38
+
39
+ ---
40
+
41
+ ## Flaky Tests
42
+
43
+ | Test Name | Symptoms | Suspected Cause | Mitigation |
44
+ |-----------|----------|-----------------|------------|
45
+ | | | | |
46
+
47
+ ---
48
+
49
+ ## Infrastructure Failures
50
+
51
+ ### Pattern: [Pattern Name]
52
+
53
+ **Symptoms**: [What you see]
54
+
55
+ **Root Cause**: [Why it happens]
56
+
57
+ **Resolution**: [How to fix]
58
+
59
+ **Prevention**: [How to prevent]
60
+
61
+ **Last Occurrence**: [Date/Issue]
62
+
63
+ ---
64
+
65
+ ## Environment Issues
66
+
67
+ | Environment | Issue | Cause | Resolution |
68
+ |-------------|-------|-------|------------|
69
+ | Development | | | |
70
+ | CI | | | |
71
+ | Staging | | | |
72
+ | Production | | | |
73
+
74
+ ---
75
+
76
+ ## Recurring Bugs
77
+
78
+ ### Bug Class: [Class Name]
79
+
80
+ **Pattern**: [Description of the pattern]
81
+
82
+ **Example**: [Specific occurrence]
83
+
84
+ **Fix Pattern**: [How to fix this class of bugs]
85
+
86
+ **Prevention**: [Coding practices to prevent]
87
+
88
+ ---
89
+
90
+ ## Dependency Issues
91
+
92
+ | Dependency | Version | Issue | Resolution |
93
+ |------------|---------|-------|------------|
94
+ | | | | |
95
+
96
+ ---
97
+
98
+ ## Notes
99
+
100
+ - Update after each failure investigation
101
+ - Look for patterns before adding new entries
102
+ - Cross-reference with CI analyst memory
103
+ - Use for post-mortem analysis