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.
- package/.ai-team/agents/architect.md +144 -0
- package/.ai-team/agents/ci-analyst.md +188 -0
- package/.ai-team/agents/developer.md +176 -0
- package/.ai-team/agents/planner.md +355 -0
- package/.ai-team/agents/qa.md +189 -0
- package/.ai-team/agents/reviewer.md +211 -0
- package/.ai-team/agents/triage.md +146 -0
- package/.ai-team/commands/ci-analyze.md +116 -0
- package/.ai-team/commands/design.md +100 -0
- package/.ai-team/commands/implement.md +108 -0
- package/.ai-team/commands/release-check.md +142 -0
- package/.ai-team/commands/review.md +142 -0
- package/.ai-team/commands/test.md +115 -0
- package/.ai-team/commands/triage.md +138 -0
- package/.ai-team/memory/architect/architecture_notes.md +67 -0
- package/.ai-team/memory/architect/design_rationale.md +113 -0
- package/.ai-team/memory/architect/module_map.md +84 -0
- package/.ai-team/memory/ci-analyst/failure_patterns.md +102 -0
- package/.ai-team/memory/ci-analyst/runbook_references.md +87 -0
- package/.ai-team/memory/developer/bug_investigation.md +102 -0
- package/.ai-team/memory/developer/build_issues.md +115 -0
- package/.ai-team/memory/developer/implementation_notes.md +83 -0
- package/.ai-team/memory/failures/failure_library.md +103 -0
- package/.ai-team/memory/planner/decomposition_notes.md +82 -0
- package/.ai-team/memory/planner/flow_rules.md +86 -0
- package/.ai-team/memory/planner/github_issue_patterns.md +229 -0
- package/.ai-team/memory/qa/regression_cases.md +101 -0
- package/.ai-team/memory/qa/test_strategy.md +138 -0
- package/.ai-team/memory/qa/validation_notes.md +110 -0
- package/.ai-team/memory/reviewer/quality_rules.md +105 -0
- package/.ai-team/memory/reviewer/recurring_risks.md +109 -0
- package/.ai-team/memory/reviewer/review_notes.md +124 -0
- package/.ai-team/memory/triage/classification_heuristics.md +82 -0
- package/.ai-team/memory/triage/debug_notes.md +87 -0
- package/.ai-team/opencode.template.jsonc +216 -0
- package/.ai-team/skills/bugfix-playbook/skill.md +174 -0
- package/.ai-team/skills/ci-failure-analysis/skill.md +176 -0
- package/.ai-team/skills/issue-triage/skill.md +163 -0
- package/.ai-team/skills/regression-checklist/skill.md +176 -0
- package/.ai-team/skills/release-readiness-check/skill.md +216 -0
- package/.ai-team/skills/repo-architecture-reader/skill.md +139 -0
- package/.ai-team/skills/safe-refactor-checklist/skill.md +215 -0
- package/.ai-team/skills/task-breakdown-and-dispatch/skill.md +151 -0
- package/.ai-team/skills/test-first-feature-dev/skill.md +205 -0
- package/.ai-team/workflows/ci.yml +81 -0
- package/.ai-team/workflows/nightly-ai-maintenance.yml +129 -0
- package/.ai-team/workflows/opencode.yml +33 -0
- package/.ai-team/workflows/pr-check.yml +41 -0
- package/.foundation/foundation.lock +38 -0
- package/.foundation/local-overrides.md +97 -0
- package/.foundation/upgrade-history.md +38 -0
- package/.opencode/agents/architect.md +38 -0
- package/.opencode/agents/ci-analyst.md +38 -0
- package/.opencode/agents/developer.md +43 -0
- package/.opencode/agents/planner.md +47 -0
- package/.opencode/agents/qa.md +34 -0
- package/.opencode/agents/reviewer.md +38 -0
- package/.opencode/agents/triage.md +37 -0
- package/.opencode/commands/auto.md +264 -0
- package/.opencode/commands/breakdown-issue.md +94 -0
- package/.opencode/commands/ci-analyze.md +15 -0
- package/.opencode/commands/close-parent-task.md +122 -0
- package/.opencode/commands/design.md +15 -0
- package/.opencode/commands/dispatch-next.md +102 -0
- package/.opencode/commands/implement.md +16 -0
- package/.opencode/commands/release-check.md +16 -0
- package/.opencode/commands/resume.md +88 -0
- package/.opencode/commands/review.md +15 -0
- package/.opencode/commands/show-blockers.md +97 -0
- package/.opencode/commands/summarize-parent.md +121 -0
- package/.opencode/commands/test.md +15 -0
- package/.opencode/commands/triage.md +109 -0
- package/.opencode/skills/bugfix-playbook/SKILL.md +81 -0
- package/.opencode/skills/ci-failure-analysis/SKILL.md +94 -0
- package/.opencode/skills/issue-triage/SKILL.md +80 -0
- package/.opencode/skills/regression-checklist/SKILL.md +81 -0
- package/.opencode/skills/release-readiness-check/SKILL.md +81 -0
- package/.opencode/skills/repo-architecture-reader/SKILL.md +65 -0
- package/.opencode/skills/safe-refactor-checklist/SKILL.md +76 -0
- package/.opencode/skills/task-breakdown-and-dispatch/SKILL.md +255 -0
- package/.opencode/skills/test-first-feature-dev/SKILL.md +78 -0
- package/AGENTS.md +879 -0
- package/CHANGELOG.md +261 -0
- package/LICENSE +21 -0
- package/README.md +1215 -0
- package/VERSION +1 -0
- package/action/__tests__/downloader.test.js +251 -0
- package/action/__tests__/merger.test.js +156 -0
- package/action/__tests__/path-resolver.test.js +199 -0
- package/action/__tests__/validator.test.js +310 -0
- package/action/action.yml +61 -0
- package/action/index.js +223 -0
- package/action/lib/downloader.js +344 -0
- package/action/lib/merger.js +170 -0
- package/action/lib/path-resolver.js +176 -0
- package/action/lib/setup.js +286 -0
- package/action/lib/validator.js +324 -0
- package/cli/__tests__/cli.test.js +270 -0
- package/cli/amazingteam.cjs +225 -0
- package/cli/commands/check-update.cjs +159 -0
- package/cli/commands/init.cjs +412 -0
- package/cli/commands/local.cjs +264 -0
- package/cli/commands/migrate.cjs +316 -0
- package/cli/commands/status.cjs +241 -0
- package/cli/commands/upgrade.cjs +213 -0
- package/cli/commands/validate.cjs +259 -0
- package/cli/commands/version.cjs +59 -0
- package/cli/sync.cjs +237 -0
- package/dist/index.js +35 -0
- package/docs/architecture/overview.md +138 -0
- package/docs/blocker_resolution_design.md +372 -0
- package/docs/bootstrap-model.md +356 -0
- package/docs/config-reference.md +458 -0
- package/docs/how-to-use.md +178 -0
- package/docs/migration-to-v3.md +355 -0
- package/docs/overlay-guide.md +156 -0
- package/docs/patterns/README.md +67 -0
- package/docs/quick-start-v3.md +330 -0
- package/docs/releases/README.md +64 -0
- package/docs/runbooks/ci/README.md +62 -0
- package/docs/runbooks/ci/build-debug.md +120 -0
- package/docs/runbooks/ci/flaky-tests.md +127 -0
- package/docs/runbooks/getting-started.md +81 -0
- package/docs/upgrade-policy.md +188 -0
- package/docs/versioning.md +199 -0
- package/overlays/README.md +30 -0
- package/overlays/ai-agent-product/.ai-team/skills/llm-integration/skill.md +99 -0
- package/overlays/ai-agent-product/docs/ai-agent-architecture.md +68 -0
- package/overlays/ai-agent-product/overlay.yaml +26 -0
- package/overlays/cpp-qt-desktop/.ai-team/skills/qt-signals-slots/skill.md +60 -0
- package/overlays/cpp-qt-desktop/docs/qt-conventions.md +64 -0
- package/overlays/cpp-qt-desktop/overlay.yaml +22 -0
- package/overlays/python-backend/.ai-team/skills/python-testing/skill.md +90 -0
- package/overlays/python-backend/docs/python-style.md +78 -0
- package/overlays/python-backend/overlay.yaml +22 -0
- package/overlays/web-fullstack/.ai-team/skills/frontend-testing/skill.md +70 -0
- package/overlays/web-fullstack/docs/frontend-conventions.md +68 -0
- package/overlays/web-fullstack/overlay.yaml +26 -0
- package/package.json +84 -0
- package/presets/default.yaml +161 -0
- package/presets/go.yaml +43 -0
- package/presets/python.yaml +43 -0
- package/presets/typescript.yaml +40 -0
- package/schemas/config.schema.json +239 -0
- package/scripts/diff_foundation_vs_project.sh +134 -0
- package/scripts/generate_docs.sh +200 -0
- package/scripts/init_project.sh +455 -0
- package/scripts/plan_upgrade.sh +268 -0
- package/scripts/upgrade_foundation.sh +365 -0
- package/scripts/validate-foundation.cjs +278 -0
- package/scripts/validate_foundation.sh +192 -0
- package/scripts/validate_project_setup.sh +171 -0
- package/tasks/README.md +94 -0
- package/tasks/_template/analysis.md +76 -0
- package/tasks/_template/design.md +121 -0
- package/tasks/_template/implementation.md +121 -0
- package/tasks/_template/release.md +119 -0
- package/tasks/_template/review.md +131 -0
- package/tasks/_template/subtasks/task.yaml +24 -0
- package/tasks/_template/task.yaml +75 -0
- package/tasks/_template/validation.md +128 -0
- package/templates/amazingteam.yml +81 -0
- package/templates/gitignore +14 -0
- package/templates/opencode.jsonc +216 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# /release-check Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Validate code is ready for production release through comprehensive pre-release checks.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/release-check [pr-number]
|
|
11
|
+
/release-check [branch-name]
|
|
12
|
+
/release-check current
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
/release-check 123
|
|
19
|
+
/release-check release/v1.2.0
|
|
20
|
+
/release-check current
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Agent: Reviewer
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
### 1. Gather Context
|
|
28
|
+
|
|
29
|
+
- Identify PR or branch to check
|
|
30
|
+
- Review changes since last release
|
|
31
|
+
- Check current test status
|
|
32
|
+
- Review documentation status
|
|
33
|
+
|
|
34
|
+
### 2. Code Quality Check
|
|
35
|
+
|
|
36
|
+
- Verify all tests pass
|
|
37
|
+
- Check code coverage meets threshold
|
|
38
|
+
- Verify no linting errors
|
|
39
|
+
- Check for type errors
|
|
40
|
+
- Run security scan
|
|
41
|
+
|
|
42
|
+
### 3. Documentation Review
|
|
43
|
+
|
|
44
|
+
- Check README updates
|
|
45
|
+
- Verify API documentation
|
|
46
|
+
- Review CHANGELOG/RELEASE_NOTES
|
|
47
|
+
- Check for migration guides if needed
|
|
48
|
+
|
|
49
|
+
### 4. Breaking Changes Assessment
|
|
50
|
+
|
|
51
|
+
- Identify API changes
|
|
52
|
+
- Check backward compatibility
|
|
53
|
+
- Verify version bump is appropriate
|
|
54
|
+
- Document deprecation notices
|
|
55
|
+
|
|
56
|
+
### 5. Security Review
|
|
57
|
+
|
|
58
|
+
- Check for hardcoded secrets
|
|
59
|
+
- Verify dependency vulnerabilities
|
|
60
|
+
- Review authentication flows
|
|
61
|
+
- Check authorization
|
|
62
|
+
|
|
63
|
+
### 6. Performance Validation
|
|
64
|
+
|
|
65
|
+
- Check for performance regressions
|
|
66
|
+
- Verify resource usage
|
|
67
|
+
- Review startup time
|
|
68
|
+
- Check memory patterns
|
|
69
|
+
|
|
70
|
+
### 7. Release Preparation
|
|
71
|
+
|
|
72
|
+
- Verify version number
|
|
73
|
+
- Prepare release notes
|
|
74
|
+
- Document known issues
|
|
75
|
+
- Create rollback plan
|
|
76
|
+
|
|
77
|
+
## Output
|
|
78
|
+
|
|
79
|
+
Produces a release readiness report:
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
## Release Readiness: [Version]
|
|
83
|
+
|
|
84
|
+
### Quality Gates
|
|
85
|
+
| Gate | Status | Notes |
|
|
86
|
+
|------|--------|-------|
|
|
87
|
+
| Tests | PASS/FAIL | |
|
|
88
|
+
| Coverage | XX% | Threshold: 80% |
|
|
89
|
+
| Lint | PASS/FAIL | |
|
|
90
|
+
| Types | PASS/FAIL | |
|
|
91
|
+
| Security | PASS/FAIL | |
|
|
92
|
+
|
|
93
|
+
### Breaking Changes
|
|
94
|
+
- [List or "None"]
|
|
95
|
+
|
|
96
|
+
### Documentation
|
|
97
|
+
- [ ] README updated
|
|
98
|
+
- [ ] CHANGELOG updated
|
|
99
|
+
- [ ] API docs current
|
|
100
|
+
|
|
101
|
+
### Security
|
|
102
|
+
- [ ] No secrets in code
|
|
103
|
+
- [ ] Dependencies secure
|
|
104
|
+
- [ ] Auth flows verified
|
|
105
|
+
|
|
106
|
+
### Performance
|
|
107
|
+
- Memory: OK/Issue
|
|
108
|
+
- Startup: OK/Issue
|
|
109
|
+
- Response times: OK/Issue
|
|
110
|
+
|
|
111
|
+
### Recommendation
|
|
112
|
+
READY / NOT READY
|
|
113
|
+
|
|
114
|
+
### Blockers
|
|
115
|
+
- [List of blocking issues]
|
|
116
|
+
|
|
117
|
+
### Release Notes Draft
|
|
118
|
+
[Prepared release notes]
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Skills Used
|
|
122
|
+
|
|
123
|
+
- release-readiness-check
|
|
124
|
+
- regression-checklist
|
|
125
|
+
- safe-refactor-checklist
|
|
126
|
+
|
|
127
|
+
## Gates
|
|
128
|
+
|
|
129
|
+
| Gate | Blocking | Can Waive |
|
|
130
|
+
|------|----------|-----------|
|
|
131
|
+
| All tests pass | Yes | No |
|
|
132
|
+
| Coverage met | Yes | With approval |
|
|
133
|
+
| No security issues | Yes | No |
|
|
134
|
+
| Documentation complete | Yes | With approval |
|
|
135
|
+
|
|
136
|
+
## Next Steps
|
|
137
|
+
|
|
138
|
+
After `/release-check`:
|
|
139
|
+
1. Address any blockers
|
|
140
|
+
2. Get required approvals
|
|
141
|
+
3. Create release
|
|
142
|
+
4. Deploy with rollback plan ready
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# /review Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Review code changes for quality, correctness, and best practices.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/review
|
|
11
|
+
/review [pr-number]
|
|
12
|
+
/review [branch-name]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
/review
|
|
19
|
+
/review 42
|
|
20
|
+
/review feature/user-auth
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Agent: Reviewer
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
### 1. Context Gathering
|
|
28
|
+
- Read PR description
|
|
29
|
+
- Read related issue
|
|
30
|
+
- Understand the purpose
|
|
31
|
+
- Note acceptance criteria
|
|
32
|
+
|
|
33
|
+
### 2. Code Examination
|
|
34
|
+
- Review all changed files
|
|
35
|
+
- Check coding standards
|
|
36
|
+
- Identify potential issues
|
|
37
|
+
- Note positive aspects
|
|
38
|
+
|
|
39
|
+
### 3. Quality Analysis
|
|
40
|
+
- Check test coverage
|
|
41
|
+
- Verify documentation
|
|
42
|
+
- Look for security issues
|
|
43
|
+
- Assess maintainability
|
|
44
|
+
|
|
45
|
+
### 4. Risk Assessment
|
|
46
|
+
- Identify breaking changes
|
|
47
|
+
- Note performance concerns
|
|
48
|
+
- Check backward compatibility
|
|
49
|
+
- Evaluate edge cases
|
|
50
|
+
|
|
51
|
+
### 5. Feedback Formulation
|
|
52
|
+
- Write constructive comments
|
|
53
|
+
- Provide specific suggestions
|
|
54
|
+
- Explain reasoning
|
|
55
|
+
- Prioritize issues
|
|
56
|
+
|
|
57
|
+
### 6. Decision
|
|
58
|
+
- Approve
|
|
59
|
+
- Request changes
|
|
60
|
+
- Comment only
|
|
61
|
+
|
|
62
|
+
## Review Categories
|
|
63
|
+
|
|
64
|
+
### 🔴 Critical Issues
|
|
65
|
+
- Security vulnerabilities
|
|
66
|
+
- Breaking bugs
|
|
67
|
+
- Data loss risks
|
|
68
|
+
- Performance critical
|
|
69
|
+
|
|
70
|
+
### 🟡 Warnings
|
|
71
|
+
- Potential bugs
|
|
72
|
+
- Code smell
|
|
73
|
+
- Maintainability concerns
|
|
74
|
+
- Missing edge cases
|
|
75
|
+
|
|
76
|
+
### 🟢 Suggestions
|
|
77
|
+
- Minor improvements
|
|
78
|
+
- Style preferences
|
|
79
|
+
- Documentation
|
|
80
|
+
- Optional optimizations
|
|
81
|
+
|
|
82
|
+
### 💬 Questions
|
|
83
|
+
- Clarification needed
|
|
84
|
+
- Design discussion
|
|
85
|
+
- Alternative approaches
|
|
86
|
+
|
|
87
|
+
### 👍 Praise
|
|
88
|
+
- Good solutions
|
|
89
|
+
- Clean code
|
|
90
|
+
- Well-tested
|
|
91
|
+
- Good documentation
|
|
92
|
+
|
|
93
|
+
## Output Format
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
## Code Review
|
|
97
|
+
|
|
98
|
+
### Summary
|
|
99
|
+
[Brief overview of changes and overall assessment]
|
|
100
|
+
|
|
101
|
+
### Critical Issues
|
|
102
|
+
1. **[Issue Title]**: `file:line`
|
|
103
|
+
- Problem: [Description]
|
|
104
|
+
- Suggestion: [How to fix]
|
|
105
|
+
|
|
106
|
+
### Warnings
|
|
107
|
+
1. **[Issue Title]**: `file:line`
|
|
108
|
+
- Problem: [Description]
|
|
109
|
+
- Suggestion: [How to fix]
|
|
110
|
+
|
|
111
|
+
### Suggestions
|
|
112
|
+
- [Suggestion 1]
|
|
113
|
+
- [Suggestion 2]
|
|
114
|
+
|
|
115
|
+
### Positive Notes
|
|
116
|
+
- [Positive 1]
|
|
117
|
+
- [Positive 2]
|
|
118
|
+
|
|
119
|
+
### Verdict
|
|
120
|
+
**Status**: ✅ APPROVE / ⚠️ REQUEST CHANGES / 💬 COMMENT
|
|
121
|
+
|
|
122
|
+
**Reasoning**: [Explanation for the decision]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Checklist
|
|
126
|
+
|
|
127
|
+
- [ ] All files reviewed
|
|
128
|
+
- [ ] Tests reviewed
|
|
129
|
+
- [ ] Documentation checked
|
|
130
|
+
- [ ] Security considered
|
|
131
|
+
- [ ] Performance considered
|
|
132
|
+
- [ ] Feedback provided
|
|
133
|
+
- [ ] Decision made
|
|
134
|
+
|
|
135
|
+
## Best Practices
|
|
136
|
+
|
|
137
|
+
- Be constructive, not critical
|
|
138
|
+
- Explain the "why"
|
|
139
|
+
- Provide code examples
|
|
140
|
+
- Focus on important issues
|
|
141
|
+
- Acknowledge good work
|
|
142
|
+
- Be respectful and professional
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# /test Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Run tests and ensure code quality for the current changes.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/test
|
|
11
|
+
/test [specific-test-pattern]
|
|
12
|
+
/test --coverage
|
|
13
|
+
/test --watch
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/test
|
|
20
|
+
/test user-auth
|
|
21
|
+
/test --coverage
|
|
22
|
+
/test src/components/Button
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Agent: QA
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
### 1. Test Discovery
|
|
30
|
+
- Find test files related to changes
|
|
31
|
+
- Identify test types needed
|
|
32
|
+
- Check test configuration
|
|
33
|
+
|
|
34
|
+
### 2. Test Execution
|
|
35
|
+
- Run unit tests
|
|
36
|
+
- Run integration tests (if applicable)
|
|
37
|
+
- Run lint checks
|
|
38
|
+
- Run type checks
|
|
39
|
+
|
|
40
|
+
### 3. Coverage Analysis
|
|
41
|
+
- Check test coverage
|
|
42
|
+
- Identify uncovered lines
|
|
43
|
+
- Note coverage changes
|
|
44
|
+
|
|
45
|
+
### 4. Validation
|
|
46
|
+
- Verify test results
|
|
47
|
+
- Check for flaky tests
|
|
48
|
+
- Validate test quality
|
|
49
|
+
|
|
50
|
+
### 5. Reporting
|
|
51
|
+
- Summarize test results
|
|
52
|
+
- Report coverage
|
|
53
|
+
- Note any issues
|
|
54
|
+
|
|
55
|
+
## Test Types
|
|
56
|
+
|
|
57
|
+
### Unit Tests
|
|
58
|
+
- Test individual functions
|
|
59
|
+
- Mock dependencies
|
|
60
|
+
- Fast execution
|
|
61
|
+
|
|
62
|
+
### Integration Tests
|
|
63
|
+
- Test component interactions
|
|
64
|
+
- Use real dependencies
|
|
65
|
+
- Focus on boundaries
|
|
66
|
+
|
|
67
|
+
### E2E Tests
|
|
68
|
+
- Test complete flows
|
|
69
|
+
- User perspective
|
|
70
|
+
- Browser/API testing
|
|
71
|
+
|
|
72
|
+
## Output
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
## Test Report
|
|
76
|
+
|
|
77
|
+
### Summary
|
|
78
|
+
- **Total Tests**: X
|
|
79
|
+
- **Passed**: Y
|
|
80
|
+
- **Failed**: Z
|
|
81
|
+
- **Skipped**: W
|
|
82
|
+
|
|
83
|
+
### Coverage
|
|
84
|
+
- **Lines**: X%
|
|
85
|
+
- **Functions**: Y%
|
|
86
|
+
- **Branches**: Z%
|
|
87
|
+
- **Statements**: W%
|
|
88
|
+
|
|
89
|
+
### Results by File
|
|
90
|
+
| File | Tests | Passed | Failed |
|
|
91
|
+
|------|-------|--------|--------|
|
|
92
|
+
| ... | ... | ... | ... |
|
|
93
|
+
|
|
94
|
+
### Failures
|
|
95
|
+
[Test failure details]
|
|
96
|
+
|
|
97
|
+
### Recommendations
|
|
98
|
+
- [Recommendation 1]
|
|
99
|
+
- [Recommendation 2]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Checklist
|
|
103
|
+
|
|
104
|
+
- [ ] All tests pass
|
|
105
|
+
- [ ] Coverage meets threshold
|
|
106
|
+
- [ ] No flaky tests
|
|
107
|
+
- [ ] New code is tested
|
|
108
|
+
- [ ] Edge cases covered
|
|
109
|
+
|
|
110
|
+
## Next Steps
|
|
111
|
+
|
|
112
|
+
After `/test`:
|
|
113
|
+
- Fix any failing tests
|
|
114
|
+
- Add missing test coverage
|
|
115
|
+
- Use `/review` for code review
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# /triage Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Classify and prioritize issues, determining the appropriate workflow and next steps.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/triage [issue-number]
|
|
11
|
+
/triage
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Examples
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
/triage 123
|
|
18
|
+
/triage
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Agent: Architect
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
### 1. Issue Analysis
|
|
26
|
+
|
|
27
|
+
- Read the issue content
|
|
28
|
+
- Understand the request type
|
|
29
|
+
- Identify key information
|
|
30
|
+
- Note missing details
|
|
31
|
+
|
|
32
|
+
### 2. Classification
|
|
33
|
+
|
|
34
|
+
Determine the issue type:
|
|
35
|
+
|
|
36
|
+
| Type | Indicators | Workflow |
|
|
37
|
+
|------|------------|----------|
|
|
38
|
+
| Feature | New capability, enhancement | feature workflow |
|
|
39
|
+
| Bug | Error, crash, incorrect behavior | bugfix workflow |
|
|
40
|
+
| Tech Task | Refactoring, dependency, performance | tech workflow |
|
|
41
|
+
| Question | Clarification, discussion | respond directly |
|
|
42
|
+
| Invalid | Spam, duplicate, not actionable | close/comment |
|
|
43
|
+
|
|
44
|
+
### 3. Priority Assessment
|
|
45
|
+
|
|
46
|
+
Assess priority based on:
|
|
47
|
+
|
|
48
|
+
| Factor | Points |
|
|
49
|
+
|--------|--------|
|
|
50
|
+
| Blocks other work | +3 |
|
|
51
|
+
| Security issue | +3 |
|
|
52
|
+
| Customer impact | +2 |
|
|
53
|
+
| Regression | +2 |
|
|
54
|
+
| Easy fix | +1 |
|
|
55
|
+
| Long-standing | -1 |
|
|
56
|
+
|
|
57
|
+
**Priority Levels:**
|
|
58
|
+
- **P0 Critical**: Immediate attention required
|
|
59
|
+
- **P1 High**: Should be addressed soon
|
|
60
|
+
- **P2 Medium**: Normal priority
|
|
61
|
+
- **P3 Low**: Nice to have
|
|
62
|
+
|
|
63
|
+
### 4. Label Assignment
|
|
64
|
+
|
|
65
|
+
Apply appropriate labels:
|
|
66
|
+
|
|
67
|
+
| Category | Labels |
|
|
68
|
+
|----------|--------|
|
|
69
|
+
| Type | `feature`, `bug`, `tech-debt`, `question` |
|
|
70
|
+
| Priority | `priority:critical`, `priority:high`, `priority:medium`, `priority:low` |
|
|
71
|
+
| Module | `module:core`, `module:api`, `module:ui`, etc. |
|
|
72
|
+
| Status | `needs-info`, `ready`, `blocked` |
|
|
73
|
+
|
|
74
|
+
### 5. Next Steps
|
|
75
|
+
|
|
76
|
+
Determine and document:
|
|
77
|
+
- Which agent should handle next
|
|
78
|
+
- What information is needed
|
|
79
|
+
- Any dependencies or blockers
|
|
80
|
+
|
|
81
|
+
## Output Format
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
## Triage Report
|
|
85
|
+
|
|
86
|
+
### Classification
|
|
87
|
+
- **Type**: [Feature/Bug/Tech Task/Question]
|
|
88
|
+
- **Priority**: [P0/P1/P2/P3]
|
|
89
|
+
- **Module**: [Affected module(s)]
|
|
90
|
+
|
|
91
|
+
### Summary
|
|
92
|
+
[Brief summary of the issue]
|
|
93
|
+
|
|
94
|
+
### Assessment
|
|
95
|
+
[Analysis of the issue]
|
|
96
|
+
|
|
97
|
+
### Labels Applied
|
|
98
|
+
- `label1`
|
|
99
|
+
- `label2`
|
|
100
|
+
|
|
101
|
+
### Next Steps
|
|
102
|
+
1. [Next step 1]
|
|
103
|
+
2. [Next step 2]
|
|
104
|
+
|
|
105
|
+
### Recommended Agent
|
|
106
|
+
[Agent name] - [Reason]
|
|
107
|
+
|
|
108
|
+
### Questions/Clarifications Needed
|
|
109
|
+
- [Question 1]
|
|
110
|
+
- [Question 2]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Checklist
|
|
114
|
+
|
|
115
|
+
- [ ] Issue type determined
|
|
116
|
+
- [ ] Priority assigned
|
|
117
|
+
- [ ] Labels applied
|
|
118
|
+
- [ ] Module identified
|
|
119
|
+
- [ ] Next steps documented
|
|
120
|
+
- [ ] Recommended agent specified
|
|
121
|
+
|
|
122
|
+
## Automation
|
|
123
|
+
|
|
124
|
+
When `/triage` is run:
|
|
125
|
+
|
|
126
|
+
1. Analyze issue content
|
|
127
|
+
2. Apply classification labels
|
|
128
|
+
3. Set priority label
|
|
129
|
+
4. Assign to appropriate module
|
|
130
|
+
5. Comment with triage report
|
|
131
|
+
6. Recommend next action
|
|
132
|
+
|
|
133
|
+
## Notes
|
|
134
|
+
|
|
135
|
+
- Triage should be fast but thorough
|
|
136
|
+
- When in doubt, ask for clarification
|
|
137
|
+
- Don't assume missing context
|
|
138
|
+
- Keep the triage report concise
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Architect Memory - Architecture Notes
|
|
2
|
+
|
|
3
|
+
This file stores architecture-level observations and decisions made by the Architect agent.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Record architectural insights, module relationships, and design decisions that should be preserved across tasks.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Architecture Notes
|
|
12
|
+
|
|
13
|
+
### System Overview
|
|
14
|
+
|
|
15
|
+
- **Project Type**: AI-powered autonomous development team
|
|
16
|
+
- **Primary Language**: TypeScript
|
|
17
|
+
- **Runtime**: Node.js
|
|
18
|
+
- **Key Frameworks**: OpenCode, GitHub Actions
|
|
19
|
+
|
|
20
|
+
### Key Design Decisions
|
|
21
|
+
|
|
22
|
+
| Date | Decision | Rationale | Alternatives Considered |
|
|
23
|
+
|------|----------|-----------|------------------------|
|
|
24
|
+
| | | | |
|
|
25
|
+
|
|
26
|
+
### Module Boundaries
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
src/
|
|
30
|
+
├── modules/ # Feature modules (independent)
|
|
31
|
+
├── shared/ # Shared utilities (stable)
|
|
32
|
+
├── config/ # Configuration (isolated)
|
|
33
|
+
└── index.ts # Entry point
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Dependency Rules
|
|
37
|
+
|
|
38
|
+
- Modules should not have circular dependencies
|
|
39
|
+
- Shared utilities should not depend on modules
|
|
40
|
+
- Config should be loaded at startup
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Architecture Evolution Log
|
|
45
|
+
|
|
46
|
+
### [Date] - [Change Title]
|
|
47
|
+
|
|
48
|
+
**Context**: [Why this change was needed]
|
|
49
|
+
|
|
50
|
+
**Decision**: [What was decided]
|
|
51
|
+
|
|
52
|
+
**Impact**: [What modules were affected]
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Pending Architecture Questions
|
|
57
|
+
|
|
58
|
+
- [ ] [Question 1]
|
|
59
|
+
- [ ] [Question 2]
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Notes
|
|
64
|
+
|
|
65
|
+
- Update this file when making significant architectural decisions
|
|
66
|
+
- Include rationale to help future decision-making
|
|
67
|
+
- Cross-reference to `docs/decisions/` for formal ADRs
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Architect Memory - Design Rationale
|
|
2
|
+
|
|
3
|
+
This file records the reasoning behind architectural decisions to support future decision-making.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Design Principles
|
|
8
|
+
|
|
9
|
+
### 1. Memory Isolation
|
|
10
|
+
|
|
11
|
+
**Decision**: Each AI role has isolated memory directories.
|
|
12
|
+
|
|
13
|
+
**Rationale**:
|
|
14
|
+
- Prevents cross-role contamination
|
|
15
|
+
- Allows role-specific knowledge accumulation
|
|
16
|
+
- Reduces context confusion between roles
|
|
17
|
+
|
|
18
|
+
**Trade-offs**:
|
|
19
|
+
- (+) Clear ownership of knowledge
|
|
20
|
+
- (+) Easier debugging of role behavior
|
|
21
|
+
- (-) Requires explicit sharing for cross-role context
|
|
22
|
+
- (-) More files to maintain
|
|
23
|
+
|
|
24
|
+
### 2. Task-Scoped Memory
|
|
25
|
+
|
|
26
|
+
**Decision**: Each issue/task has its own memory directory under `tasks/`.
|
|
27
|
+
|
|
28
|
+
**Rationale**:
|
|
29
|
+
- Keeps task context isolated
|
|
30
|
+
- Provides traceable history
|
|
31
|
+
- Allows archiving completed tasks
|
|
32
|
+
|
|
33
|
+
**Trade-offs**:
|
|
34
|
+
- (+) Clean separation of concerns
|
|
35
|
+
- (+) Easy to review specific task decisions
|
|
36
|
+
- (-) Requires manual or automated cleanup
|
|
37
|
+
- (-) Potential duplication with issue comments
|
|
38
|
+
|
|
39
|
+
### 3. Global Memory Protection
|
|
40
|
+
|
|
41
|
+
**Decision**: Global memory (`docs/`, `AGENTS.md`) requires human approval for changes.
|
|
42
|
+
|
|
43
|
+
**Rationale**:
|
|
44
|
+
- Prevents AI from corrupting project truths
|
|
45
|
+
- Maintains human governance
|
|
46
|
+
- Ensures stability of core knowledge
|
|
47
|
+
|
|
48
|
+
**Trade-offs**:
|
|
49
|
+
- (+) Stable project documentation
|
|
50
|
+
- (+) Human oversight maintained
|
|
51
|
+
- (-) Slower updates to global docs
|
|
52
|
+
- (-) Requires explicit approval workflow
|
|
53
|
+
|
|
54
|
+
### 4. Role-Based Permissions
|
|
55
|
+
|
|
56
|
+
**Decision**: Each role has defined read/write permissions for memory locations.
|
|
57
|
+
|
|
58
|
+
**Rationale**:
|
|
59
|
+
- Enforces separation of concerns
|
|
60
|
+
- Prevents unintended modifications
|
|
61
|
+
- Clarifies responsibility
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Architecture Decision Records (ADRs)
|
|
66
|
+
|
|
67
|
+
For formal architectural decisions, create entries in `docs/decisions/`.
|
|
68
|
+
|
|
69
|
+
### ADR Template
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# ADR-NNN: [Title]
|
|
73
|
+
|
|
74
|
+
## Status
|
|
75
|
+
[Proposed | Accepted | Deprecated | Superseded]
|
|
76
|
+
|
|
77
|
+
## Context
|
|
78
|
+
[What is the issue we're addressing]
|
|
79
|
+
|
|
80
|
+
## Decision
|
|
81
|
+
[What is the change we're proposing/have made]
|
|
82
|
+
|
|
83
|
+
## Consequences
|
|
84
|
+
[What becomes easier/harder as a result]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Design Patterns Used
|
|
90
|
+
|
|
91
|
+
| Pattern | Application | Reason |
|
|
92
|
+
|---------|-------------|--------|
|
|
93
|
+
| Layered Architecture | System design | Separation of concerns |
|
|
94
|
+
| Repository Pattern | Data access | Abstraction over storage |
|
|
95
|
+
| Agent Pattern | AI roles | Specialized behavior |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Anti-Patterns to Avoid
|
|
100
|
+
|
|
101
|
+
| Anti-Pattern | Why Avoid | Alternative |
|
|
102
|
+
|--------------|-----------|-------------|
|
|
103
|
+
| God Object | Hard to maintain, test | Single responsibility |
|
|
104
|
+
| Circular Dependencies | Confusing, hard to debug | Dependency injection |
|
|
105
|
+
| Global State | Hard to track changes | Explicit parameters |
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Notes
|
|
110
|
+
|
|
111
|
+
- Update this file when making significant design decisions
|
|
112
|
+
- Cross-reference formal ADRs in `docs/decisions/`
|
|
113
|
+
- Include trade-off analysis for major decisions
|