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
package/CHANGELOG.md ADDED
@@ -0,0 +1,261 @@
1
+ # Changelog
2
+
3
+ All notable changes to the AmazingTeam will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [3.0.0] - 2026-03-17
9
+
10
+ ### Added
11
+
12
+ #### Remote Foundation Loading
13
+ - Foundation loaded at runtime from NPM/GitHub releases
14
+ - User projects only need 2-3 config files instead of 50+ files
15
+ - One-command upgrades: `npx amazingteam upgrade`
16
+ - Explicit version control in workflow files
17
+ - Automatic caching for faster CI runs
18
+
19
+ #### GitHub Action
20
+ - `action/` - Complete GitHub Action implementation
21
+ - `action/lib/merger.js` - Configuration merge with deep merge support
22
+ - `action/lib/path-resolver.js` - Cross-platform path resolution
23
+ - `action/lib/validator.js` - JSON Schema validation
24
+ - `action/lib/downloader.js` - NPM/GitHub download with retry and fallback
25
+ - `action/lib/setup.js` - Runtime directory initialization
26
+ - `action/action.yml` - Action manifest with inputs/outputs
27
+ - `action/index.js` - Main action entry point
28
+
29
+ #### CLI Tool
30
+ - `cli/amazingteam.cjs` - Complete CLI with command parsing
31
+ - `cli/commands/init.cjs` - Interactive project initialization
32
+ - `cli/commands/version.cjs` - Version display
33
+ - `cli/commands/check-update.cjs` - Check for updates from NPM/GitHub
34
+ - `cli/commands/upgrade.cjs` - Upgrade to new versions
35
+ - `cli/commands/local.cjs` - Download foundation for local development
36
+ - `cli/commands/validate.cjs` - Configuration validation
37
+ - `cli/commands/migrate.cjs` - Migrate from v2 to v3
38
+ - `cli/commands/status.cjs` - Project status display
39
+
40
+ #### Configuration System
41
+ - `presets/` - Language presets (default, typescript, python, go)
42
+ - `templates/` - Config templates (opencode.jsonc, amazingteam.yml, gitignore)
43
+ - `schemas/config.schema.json` - JSON Schema for configuration validation
44
+ - `amazingteam.config.yaml` - User configuration file
45
+
46
+ #### Documentation
47
+ - `docs/migration-to-v3.md` - Step-by-step migration guide
48
+ - `docs/config-reference.md` - Complete configuration reference
49
+ - `docs/quick-start-v3.md` - Quick start guide for v3
50
+
51
+ #### Test Suite
52
+ - `action/__tests__/` - Unit tests for action modules
53
+ - `cli/__tests__/cli.test.js` - CLI command tests
54
+ - `tests/integration.test.js` - Full workflow integration tests
55
+ - `tests/error-scenarios.test.js` - Error handling tests
56
+ - `tests/overlay.test.js` - Overlay configuration tests
57
+
58
+ ### Changed
59
+
60
+ #### Project Structure
61
+ - User projects now only contain:
62
+ - `.github/workflows/amazingteam.yml` - Workflow file
63
+ - `amazingteam.config.yaml` - User configuration
64
+ - `opencode.jsonc` - Generated config (auto-generated)
65
+ - `.ai-team/memory/` - Runtime state (preserved)
66
+ - `tasks/` - Task history (preserved)
67
+
68
+ #### Upgrade Process
69
+ - Before: Manual copy/merge of 50+ files
70
+ - After: Single command `npx amazingteam upgrade`
71
+
72
+ #### Version Management
73
+ - Before: Hard to track which version is being used
74
+ - After: Explicit version in workflow file: `uses: your-org/amazingteam-action@v3.0.0`
75
+
76
+ ### Migration from v2 to v3
77
+
78
+ 1. **Backup your project**:
79
+ ```bash
80
+ git checkout -b backup-before-v3-migration
81
+ git add -A && git commit -m "backup"
82
+ git checkout main
83
+ ```
84
+
85
+ 2. **Run migration**:
86
+ ```bash
87
+ npx amazingteam migrate
88
+ ```
89
+
90
+ 3. **Review generated files**:
91
+ - `amazingteam.config.yaml` - Your extracted configuration
92
+ - `.github/workflows/amazingteam.yml` - Updated workflow
93
+
94
+ 4. **Commit and test**:
95
+ ```bash
96
+ git add -A
97
+ git commit -m "chore: migrate to v3"
98
+ npx amazingteam local
99
+ npx amazingteam validate
100
+ ```
101
+
102
+ See [Migration Guide](./docs/migration-to-v3.md) for detailed instructions.
103
+
104
+ ### Breaking Changes
105
+
106
+ - Skills and commands are now loaded from foundation at runtime
107
+ - Custom skills should be placed in `.ai-team/skills/` (they will be merged)
108
+ - Custom AGENTS.md will override foundation's AGENTS.md
109
+ - Presets are now built-in, specify by name in config
110
+
111
+ ---
112
+
113
+ ## [2.2.0] - 2026-03-15
114
+
115
+ ### Added
116
+
117
+ #### Blocker Handling
118
+ - Automatic blocker detection and diagnosis during workflow execution
119
+ - `/resume` command to resume workflow after blocker resolution
120
+ - Blocker resolution paths: auto-fix, sub-issue (AI), sub-issue (human)
121
+ - Human notification for blockers requiring manual intervention
122
+
123
+ #### CI Analyst Enhancements
124
+ - Blocker diagnosis responsibilities
125
+ - Decision matrix for resolution path selection
126
+ - Pattern documentation for recurring blockers
127
+
128
+ ### Changed
129
+
130
+ #### Workflow
131
+ - `/auto` command now handles blockers gracefully
132
+ - Planner dispatches to CI Analyst for blocker diagnosis
133
+ - Workflow state preservation during blocker resolution
134
+
135
+ #### Documentation
136
+ - `AGENTS.md` - Added blocker handling flow diagram
137
+ - `docs/blocker_resolution_design.md` - Comprehensive blocker handling design
138
+
139
+ ## [2.1.0] - 2026-03-15
140
+
141
+ ### Added
142
+
143
+ #### Full Automation
144
+ - `/auto` command: Complete workflow from issue to PR in one command
145
+ - Automatic GitHub sub-issue creation for complex tasks
146
+ - Dependency-aware subtask scheduling
147
+ - Git identity configuration: `opencode-bot`
148
+
149
+ #### GitHub Workflow
150
+ - `contents: write` permission for PR creation
151
+ - `pull-requests: write` permission
152
+ - `issues: write` permission
153
+ - Automatic git identity configuration in workflow
154
+
155
+ ### Changed
156
+
157
+ #### Workflow
158
+ - Planner acts as coordinator, dispatches to specialist roles
159
+ - No user confirmation needed after triage
160
+ - Developer agent: explicit PR creation rules, no direct commits to main
161
+
162
+ #### Agent Definitions
163
+ - `.ai-team/agents/planner.md` - Added workflow orchestration section
164
+ - `.ai-team/agents/developer.md` - Added git identity, PR rules
165
+ - `.opencode/agents/developer.md` - Added permissions for PR creation
166
+
167
+ ## [2.0.0] - 2026-03-14
168
+
169
+ ### Added
170
+
171
+ #### New Agents
172
+ - `planner.md` - Task decomposition and workflow orchestration
173
+ - `triage.md` - Issue classification and first-pass debug analysis
174
+ - `ci-analyst.md` - CI failure investigation specialist
175
+
176
+ #### New Skills
177
+ - `task-breakdown-and-dispatch` - Systematic task decomposition
178
+ - `issue-triage` - Issue classification and prioritization
179
+ - `ci-failure-analysis` - CI pipeline failure investigation
180
+ - `regression-checklist` - Comprehensive regression testing
181
+ - `release-readiness-check` - Pre-release validation
182
+
183
+ #### New Commands
184
+ - `/ci-analyze` - Trigger CI failure analysis
185
+ - `/release-check` - Trigger release readiness check
186
+
187
+ #### New Memory Areas
188
+ - `.ai-team/memory/planner/` - Decomposition notes and flow rules
189
+ - `.ai-team/memory/triage/` - Classification heuristics and debug notes
190
+ - `.ai-team/memory/ci-analyst/` - Failure patterns and runbook references
191
+ - `.ai-team/memory/failures/` - Shared failure library
192
+
193
+ #### New Documentation Zones
194
+ - `docs/patterns/` - Reusable implementation patterns
195
+ - `docs/releases/` - Release documentation
196
+ - `docs/runbooks/ci/` - CI operational runbooks
197
+
198
+ #### Task System
199
+ - `tasks/_template/task.yaml` - Task manifest template
200
+ - `tasks/_template/release.md` - Release checklist template
201
+ - Task state machine with 10 states
202
+ - Dependency tracking support
203
+
204
+ #### Bootstrap Capability
205
+ - `scripts/validate_foundation.cjs` - Foundation integrity validation
206
+ - File classification policy (Class A/B/C)
207
+ - Approval gates for safe operations
208
+
209
+ ### Changed
210
+
211
+ #### Configuration
212
+ - `.ai-team/opencode.template.jsonc` - Updated with all v2 agents, skills, commands
213
+ - `AGENTS.md` - Added v2 roles, task system, governance model
214
+ - Memory permissions matrix expanded to 7 roles
215
+
216
+ #### CLI
217
+ - `cli/amazingteam.cjs` - Version bumped to 2.0.0
218
+ - Added new memory directories for v2 roles
219
+ - Updated workflow definitions
220
+
221
+ ### Migration Notes
222
+
223
+ #### From v1 to v2
224
+
225
+ 1. **Run upgrade script**:
226
+ ```bash
227
+ node scripts/upgrade_foundation.cjs
228
+ ```
229
+
230
+ 2. **New directories will be created**:
231
+ - `.ai-team/memory/planner/`
232
+ - `.ai-team/memory/triage/`
233
+ - `.ai-team/memory/ci-analyst/`
234
+ - `.ai-team/memory/failures/`
235
+ - `docs/patterns/`
236
+ - `docs/releases/`
237
+ - `docs/runbooks/ci/`
238
+ - `tasks/_template/`
239
+
240
+ 3. **Configuration updates needed**:
241
+ - Review `opencode.jsonc` for new agents
242
+ - Update `AGENTS.md` with v2 content
243
+ - Check memory permissions matrix
244
+
245
+ 4. **Protected files** (manual review required):
246
+ - `docs/architecture/`
247
+ - `docs/decisions/`
248
+ - Your custom `AGENTS.md` additions
249
+
250
+ ---
251
+
252
+ ## [1.0.0] - 2024-01-01
253
+
254
+ ### Added
255
+ - Initial release
256
+ - 4 core agents: Architect, Developer, QA, Reviewer
257
+ - 4 skills: repo-architecture-reader, bugfix-playbook, test-first-feature-dev, safe-refactor-checklist
258
+ - 4 commands: /design, /implement, /test, /review
259
+ - 3-layer memory architecture
260
+ - GitHub Actions integration
261
+ - CLI tool for init/upgrade/status
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Amazing Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.