@namch/agent-assistant 1.1.0 → 1.2.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/CHANGELOG.md +51 -1
- package/README.md +6 -1
- package/agents/teams/backend-team/executor.md +188 -0
- package/agents/teams/backend-team/reviewer.md +328 -0
- package/agents/teams/backend-team/techlead.md +166 -0
- package/agents/teams/database-team/executor.md +189 -0
- package/agents/teams/database-team/reviewer.md +333 -0
- package/agents/teams/database-team/techlead.md +168 -0
- package/agents/teams/debug-team/executor.md +195 -0
- package/agents/teams/debug-team/reviewer.md +324 -0
- package/agents/teams/debug-team/techlead.md +173 -0
- package/agents/teams/design-team/executor.md +196 -0
- package/agents/teams/design-team/reviewer.md +405 -0
- package/agents/teams/design-team/techlead.md +170 -0
- package/agents/teams/devops-team/executor.md +199 -0
- package/agents/teams/devops-team/reviewer.md +332 -0
- package/agents/teams/devops-team/techlead.md +168 -0
- package/agents/teams/docs-team/executor.md +196 -0
- package/agents/teams/docs-team/reviewer.md +331 -0
- package/agents/teams/docs-team/techlead.md +168 -0
- package/agents/teams/frontend-team/executor.md +190 -0
- package/agents/teams/frontend-team/reviewer.md +333 -0
- package/agents/teams/frontend-team/techlead.md +169 -0
- package/agents/teams/fullstack-team/executor.md +290 -0
- package/agents/teams/fullstack-team/reviewer.md +365 -0
- package/agents/teams/fullstack-team/techlead.md +254 -0
- package/agents/teams/game-team/executor.md +193 -0
- package/agents/teams/game-team/reviewer.md +331 -0
- package/agents/teams/game-team/techlead.md +167 -0
- package/agents/teams/mobile-team/executor.md +192 -0
- package/agents/teams/mobile-team/reviewer.md +328 -0
- package/agents/teams/mobile-team/techlead.md +168 -0
- package/agents/teams/performance-team/executor.md +192 -0
- package/agents/teams/performance-team/reviewer.md +322 -0
- package/agents/teams/performance-team/techlead.md +175 -0
- package/agents/teams/planning-team/executor.md +197 -0
- package/agents/teams/planning-team/reviewer.md +279 -0
- package/agents/teams/planning-team/techlead.md +169 -0
- package/agents/teams/project-team/executor.md +190 -0
- package/agents/teams/project-team/reviewer.md +328 -0
- package/agents/teams/project-team/techlead.md +168 -0
- package/agents/teams/qa-team/executor.md +198 -0
- package/agents/teams/qa-team/reviewer.md +271 -0
- package/agents/teams/qa-team/techlead.md +175 -0
- package/agents/teams/report-team/executor.md +195 -0
- package/agents/teams/report-team/reviewer.md +328 -0
- package/agents/teams/report-team/techlead.md +168 -0
- package/agents/teams/research-team/executor.md +200 -0
- package/agents/teams/research-team/reviewer.md +272 -0
- package/agents/teams/research-team/techlead.md +168 -0
- package/agents/teams/security-team/executor.md +193 -0
- package/agents/teams/security-team/reviewer.md +338 -0
- package/agents/teams/security-team/techlead.md +178 -0
- package/cli/README.md +19 -2
- package/cli/install.js +300 -9
- package/cli/install.test.js.example +1 -1
- package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +86 -39
- package/code-assistants/antigravity-assistant/GEMINI.md +105 -30
- package/code-assistants/claude-assistant/CLAUDE.md +4 -4
- package/code-assistants/codex-assistant/CODEX.md +235 -0
- package/code-assistants/codex-assistant/agents/backend-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/brainstormer.toml +26 -0
- package/code-assistants/codex-assistant/agents/business-analyst.toml +26 -0
- package/code-assistants/codex-assistant/agents/database-architect.toml +26 -0
- package/code-assistants/codex-assistant/agents/debugger.toml +26 -0
- package/code-assistants/codex-assistant/agents/designer.toml +26 -0
- package/code-assistants/codex-assistant/agents/devops-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/docs-manager.toml +26 -0
- package/code-assistants/codex-assistant/agents/frontend-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/game-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/mobile-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/performance-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/planner.toml +26 -0
- package/code-assistants/codex-assistant/agents/project-manager.toml +26 -0
- package/code-assistants/codex-assistant/agents/reporter.toml +26 -0
- package/code-assistants/codex-assistant/agents/researcher.toml +26 -0
- package/code-assistants/codex-assistant/agents/reviewer.toml +26 -0
- package/code-assistants/codex-assistant/agents/scouter.toml +26 -0
- package/code-assistants/codex-assistant/agents/security-engineer.toml +26 -0
- package/code-assistants/codex-assistant/agents/tech-lead.toml +26 -0
- package/code-assistants/codex-assistant/agents/tester.toml +26 -0
- package/code-assistants/codex-assistant/config.toml +109 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-ask-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-auto/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-auto/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-brainstorm-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-code-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-check/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-check/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-preview/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-preview/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-production/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-production/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-rollback/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-deploy-rollback/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-design-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-audit/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-audit/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-business/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-business/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-core/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-docs-core/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-report-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-review-team/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-fast/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-fast/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-hard/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-hard/agents/openai.yaml +4 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-team/SKILL.md +18 -0
- package/code-assistants/codex-assistant/skills/agent-assistant-test-team/agents/openai.yaml +4 -0
- package/code-assistants/copilot-assistant/agent-assistant.agent.md +149 -51
- package/code-assistants/cursor-assistant/.cursorrules +5 -5
- package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +5 -5
- package/commands/brainstorm/team.md +295 -0
- package/commands/brainstorm.md +5 -0
- package/commands/code/team.md +456 -0
- package/commands/code.md +5 -0
- package/commands/cook/team.md +609 -0
- package/commands/cook.md +5 -0
- package/commands/debug/team.md +396 -0
- package/commands/debug.md +5 -0
- package/commands/design/team.md +567 -0
- package/commands/design.md +5 -0
- package/commands/fix/team.md +596 -0
- package/commands/fix.md +5 -0
- package/commands/plan/team.md +358 -0
- package/commands/plan.md +5 -0
- package/commands/report/team.md +502 -0
- package/commands/report.md +5 -0
- package/commands/review/team.md +353 -0
- package/commands/review.md +5 -0
- package/commands/test/team.md +303 -0
- package/commands/test.md +5 -0
- package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +4 -2
- package/documents/business/business-prd.md +2 -1
- package/documents/business/business-workflows.md +2 -2
- package/documents/knowledge-architecture.md +13 -12
- package/documents/knowledge-domain.md +2 -2
- package/documents/knowledge-overview.md +2 -2
- package/documents/knowledge-source-base.md +11 -7
- package/package.json +5 -2
- package/rules/AGENTS.md +55 -0
- package/rules/CORE.md +27 -13
- package/rules/PHASES.md +58 -0
- package/rules/TEAMS.md +530 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "🔺 Team Review — Golden Triangle adversarial collaboration for maximum quality code review"
|
|
3
|
+
version: "2.0"
|
|
4
|
+
category: quality
|
|
5
|
+
execution-mode: execute
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /review:team — Golden Triangle Code Review
|
|
9
|
+
|
|
10
|
+
> **MISSION**: Maximum quality code review through adversarial collaboration.
|
|
11
|
+
> Each phase spawns a **Golden Triangle** of 3 agents: Tech Lead (coordinator),
|
|
12
|
+
> Executor (implementer), Reviewer (devil's advocate). Findings are released ONLY
|
|
13
|
+
> upon consensus after debate.
|
|
14
|
+
|
|
15
|
+
<scope>$ARGUMENTS</scope>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
|
|
20
|
+
|
|
21
|
+
**LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
|
|
22
|
+
|
|
23
|
+
1. CORE.md — Identity, Laws, Routing
|
|
24
|
+
2. PHASES.md — Phase Execution
|
|
25
|
+
3. AGENTS.md — Tiered Execution
|
|
26
|
+
4. **TEAMS.md** — Golden Triangle protocol (MANDATORY)
|
|
27
|
+
|
|
28
|
+
**⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
|
|
29
|
+
|
|
30
|
+
**Skills Resolution**: Load `SKILLS.md` on-demand for fitness calculation and dynamic discovery.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 🔀 TIERED EXECUTION
|
|
35
|
+
|
|
36
|
+
> Reference: AGENTS.md (Tiered Execution) + TEAMS.md (Golden Triangle Protocol)
|
|
37
|
+
|
|
38
|
+
| Tier | When | Action |
|
|
39
|
+
| ---------- | ----------------------------- | ------------------------------------------------------------------------- |
|
|
40
|
+
| **TIER 1** | runSubagent/Agent Tool EXISTS | Orchestrator spawns Tech Lead → Tech Lead spawns Executor + Reviewer |
|
|
41
|
+
| **TIER 2** | Tool MISSING or SYSTEM error | EMBODY Tech Lead → EMBODY Executor → EMBODY Reviewer → EMBODY Tech Lead |
|
|
42
|
+
|
|
43
|
+
**❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
|
|
44
|
+
|
|
45
|
+
**TIER 2 Golden Triangle Embodiment** (per TEAMS.md):
|
|
46
|
+
```
|
|
47
|
+
1. EMBODY Tech Lead → decompose → Shared Task List → dispatch
|
|
48
|
+
2. EMBODY Executor → execute → post SUBMISSION to Mailbox
|
|
49
|
+
3. EMBODY Reviewer → review → post REVIEW to Mailbox
|
|
50
|
+
4. IF FAIL → EMBODY Executor → fix/defend → EMBODY Reviewer → re-check (max 3 rounds)
|
|
51
|
+
5. EMBODY Tech Lead → arbitrate if needed → post DECISION → synthesize output
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 📬 MAILBOX & DELIVERABLES
|
|
57
|
+
|
|
58
|
+
**Mailbox**: `./reports/MAILBOX-{date}.md` — All triangle agents READ/APPEND. Never overwrite.
|
|
59
|
+
**Protocol**: See TEAMS.md § Mailbox Message Types (TASK_ASSIGNMENT, SUBMISSION, REVIEW, DEFENSE, RESUBMISSION, APPROVAL, ESCALATION, ARBITRATION, DECISION).
|
|
60
|
+
|
|
61
|
+
| Phase / Team | Output |
|
|
62
|
+
| ---------------- | ----------------------------------------------- |
|
|
63
|
+
| Phase 1 (Scope) | `./reports/scouts/SCOUT-{scope}.md` |
|
|
64
|
+
| Phase 2 (Review) | Review findings in Mailbox |
|
|
65
|
+
| Phase 3 (Plan) | `./reports/reviews/REVIEW-REPORT-{scope}.md` |
|
|
66
|
+
| Phase 4 (Summary)| `./reports/reviews/REVIEW-{scope}.md` |
|
|
67
|
+
|
|
68
|
+
All files in `./reports/` → English only.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🔗 PHASE DEPENDENCIES
|
|
73
|
+
|
|
74
|
+
| Phase | Requires | Blocking |
|
|
75
|
+
| --------------------------------- | ------------------------------- | ----------- |
|
|
76
|
+
| P1: Scope & Context | User scope / PR / files | No |
|
|
77
|
+
| P2: Code Quality Review | Scout findings from P1 | **YES** |
|
|
78
|
+
| P3: Improvement Plan | All review findings from P2 | **YES** |
|
|
79
|
+
| P4: Summary & Recommendations | Improvement plan from P3 | **YES** |
|
|
80
|
+
|
|
81
|
+
**⛔ Blocking**: If input missing → STOP → Create it first → Resume
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## ⛔ INCREMENTAL EXECUTION (MANDATORY)
|
|
86
|
+
|
|
87
|
+
One phase at a time. Within each phase follow the Golden Triangle Loop (TEAMS.md § Golden Triangle Protocol):
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
1. Spawn Golden Triangle (Tech Lead + Executor + Reviewer)
|
|
91
|
+
2. Tech Lead decomposes → publishes Shared Task List
|
|
92
|
+
3. Executor executes → posts SUBMISSION to Mailbox
|
|
93
|
+
4. Reviewer critiques → posts REVIEW to Mailbox
|
|
94
|
+
5. Debate loop: fix/defend → re-review (max 3 rounds)
|
|
95
|
+
6. Consensus → Tech Lead posts DECISION → Phase output released
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Consensus Stamp** (required per phase): `✅ CONSENSUS: {TechLead} ✓ | {Executor} ✓ | {Reviewer} ✓`
|
|
99
|
+
|
|
100
|
+
**Plan Compliance**: If `./reports/plans/PLAN-{scope}.md` exists → verify code matches plan, flag deviations.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 🎭 Phase 1: SCOPE & CONTEXT — 🔺 GOLDEN TRIANGLE
|
|
105
|
+
|
|
106
|
+
| Role | Agent | Mission |
|
|
107
|
+
| --------- | ------------------------------------ | ---------------------------------------------------------- |
|
|
108
|
+
| Tech Lead | `reviewer` | Decompose: review scope, files to review, review dimensions |
|
|
109
|
+
| Executor | `scouter` | Execute: map changed files, identify blast radius, trace dependencies |
|
|
110
|
+
| Reviewer | `tech-lead` (Devil's Advocate) | Challenge: scope complete? Missing files? Architecture impact assessed? |
|
|
111
|
+
|
|
112
|
+
**Triangle Loop**:
|
|
113
|
+
1. `reviewer` decomposes scope into areas: changed files, dependency graph, architecture impact, plan compliance baseline
|
|
114
|
+
2. `reviewer` posts TASK_ASSIGNMENT → dispatches to `scouter`
|
|
115
|
+
3. `scouter` surveys codebase → posts SUBMISSION with findings per area:
|
|
116
|
+
- All changed files with line-level diff summary
|
|
117
|
+
- Call chain trace: callers and callees of changed functions
|
|
118
|
+
- Blast radius: downstream components affected by changes
|
|
119
|
+
- Recent churn: files with high change frequency (risk indicator)
|
|
120
|
+
- Architecture layer mapping: which layers are touched
|
|
121
|
+
4. `tech-lead` reviews each SUBMISSION → posts REVIEW:
|
|
122
|
+
- Is the blast radius complete or are downstream effects missing?
|
|
123
|
+
- Are there untouched files that SHOULD have changed (consistency gap)?
|
|
124
|
+
- Is the architecture impact properly assessed?
|
|
125
|
+
- Are there hidden coupling risks not surfaced?
|
|
126
|
+
5. If FAIL → `scouter` addresses gaps or defends → RESUBMISSION/DEFENSE
|
|
127
|
+
6. Max 3 rounds → ESCALATION to `reviewer` if unresolved
|
|
128
|
+
7. `reviewer` synthesizes approved findings into unified scope document
|
|
129
|
+
|
|
130
|
+
**Deliverable**: `./reports/scouts/SCOUT-{scope}.md`
|
|
131
|
+
**Exit Criteria**: Review scope mapped, blast radius assessed, dependencies traced, focus areas flagged
|
|
132
|
+
**Consensus**: ✅ CONSENSUS: reviewer ✓ | scouter ✓ | tech-lead ✓
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 🎭 Phase 2: CODE QUALITY REVIEW — 🔺 GOLDEN TRIANGLE (CRITICAL)
|
|
137
|
+
|
|
138
|
+
> **THIS IS THE MOST CRITICAL PHASE.** Every step is detailed. No shortcuts.
|
|
139
|
+
|
|
140
|
+
| Role | Agent | Mission |
|
|
141
|
+
| --------- | --------------------------------------------------------- | ---------------------------------------------------------- |
|
|
142
|
+
| Tech Lead | `reviewer` | Coordinate: assign review dimensions, synthesize findings |
|
|
143
|
+
| Executor | `reviewer` (self-implements deep review) | Execute: line-by-line code review across ALL dimensions |
|
|
144
|
+
| Reviewer | `security-engineer` + `performance-engineer` (combined) | Challenge: security vulnerabilities? Performance concerns? Code standards? |
|
|
145
|
+
|
|
146
|
+
**Prerequisite**: **READ** `./reports/scouts/SCOUT-{scope}.md`
|
|
147
|
+
|
|
148
|
+
### 5 REVIEW DIMENSIONS (ALL MANDATORY)
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
152
|
+
│ 1. CORRECTNESS — Logic sound? Edge cases handled? Tests? │
|
|
153
|
+
│ 2. SECURITY (OWASP) — Injection, auth, input validation? │
|
|
154
|
+
│ 3. PERFORMANCE — N+1 queries, memory leaks, complexity? │
|
|
155
|
+
│ 4. ARCHITECTURE COMPLIANCE — Patterns, layer boundaries? │
|
|
156
|
+
│ 5. CODE QUALITY — Naming, DRY, SOLID, readability? │
|
|
157
|
+
└──────────────────────────────────────────────────────────────┘
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### GOLDEN TRIANGLE REVIEW LOOP (CRITICAL — Step by Step)
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
╔══════════════════════════════════════════════════════════════════════╗
|
|
164
|
+
║ PHASE 2: CODE REVIEW LOOP — FOLLOW EXACTLY ║
|
|
165
|
+
╠══════════════════════════════════════════════════════════════════════╣
|
|
166
|
+
║ ║
|
|
167
|
+
║ STEP 1: Tech Lead reads SCOUT-{scope}.md ║
|
|
168
|
+
║ - Load scope and blast radius into context ║
|
|
169
|
+
║ - Identify all files requiring review ║
|
|
170
|
+
║ - Prioritize by risk (highest first) ║
|
|
171
|
+
║ ║
|
|
172
|
+
║ STEP 2: Tech Lead creates Shared Task List ║
|
|
173
|
+
║ - Break review into per-file/module tasks ║
|
|
174
|
+
║ - Format: [ID] [Status] [File/Module] [Dimensions] [Risk Level] ║
|
|
175
|
+
║ - Post as TASK_ASSIGNMENT to Mailbox ║
|
|
176
|
+
║ ║
|
|
177
|
+
║ STEP 3: FOR EACH TASK — Executor performs deep review ║
|
|
178
|
+
║ a. Read TASK_ASSIGNMENT from Mailbox ║
|
|
179
|
+
║ b. Review code line-by-line across ALL 5 dimensions ║
|
|
180
|
+
║ c. Post SUBMISSION to Mailbox: ║
|
|
181
|
+
║ │ Task: {ID} | File(s): {list} | Lines: {range} ║
|
|
182
|
+
║ │ Findings: ║
|
|
183
|
+
║ │ | # | Dim | Sev | File:Line | Issue | ║
|
|
184
|
+
║ │ |---|------|------|-----------|------------| ║
|
|
185
|
+
║ │ | 1 | SEC | CRIT | app.ts:42 | SQLi | ║
|
|
186
|
+
║ │ | 2 | PERF | WARN | db.ts:18 | N+1 query | ║
|
|
187
|
+
║ │ Positive notes: {what's done well} ║
|
|
188
|
+
║ │ Plan compliance: {if PLAN exists} ║
|
|
189
|
+
║ ║
|
|
190
|
+
║ STEP 4: Reviewer challenges each SUBMISSION (combined lens) ║
|
|
191
|
+
║ d. Read SUBMISSION from Mailbox ║
|
|
192
|
+
║ e. Apply triple lens: ║
|
|
193
|
+
║ SECURITY: OWASP missed? Auth gaps? Injection? Secrets? ║
|
|
194
|
+
║ PERFORMANCE: Complexity? N+1? Memory leaks? Caching? ║
|
|
195
|
+
║ STANDARDS: Naming? Error handling? Concurrency? Observability? ║
|
|
196
|
+
║ f. Post REVIEW to Mailbox: ║
|
|
197
|
+
║ │ Task: {ID} | Status: PASS or FAIL ║
|
|
198
|
+
║ │ Additional findings: {table} ║
|
|
199
|
+
║ │ Disputed executor findings: {list} ║
|
|
200
|
+
║ │ Confirmed executor findings: {list} ║
|
|
201
|
+
║ │ Required actions: {list} ║
|
|
202
|
+
║ ║
|
|
203
|
+
║ STEP 5: IF FAIL — Debate Loop (max 3 rounds) ║
|
|
204
|
+
║ g. Executor reads REVIEW findings ║
|
|
205
|
+
║ h. For EACH finding: ║
|
|
206
|
+
║ - VALID → Accept, upgrade severity ║
|
|
207
|
+
║ - DISPUTED → DEFENSE with evidence ║
|
|
208
|
+
║ i. Post RESUBMISSION/DEFENSE: ║
|
|
209
|
+
║ │ Round: {1/2/3} | Accepted: {list} | Defended: {list+evidence} ║
|
|
210
|
+
║ j. Reviewer re-reviews → back to (d) ║
|
|
211
|
+
║ k. Round 3 unresolved → ESCALATION → Tech Lead ARBITRATION ║
|
|
212
|
+
║ ║
|
|
213
|
+
║ STEP 6: IF PASS → APPROVAL → mark ✅ → next task ║
|
|
214
|
+
║ ║
|
|
215
|
+
║ STEP 7: ALL tasks complete ║
|
|
216
|
+
║ - Tech Lead consolidates: merge findings, deduplicate, group by dim ║
|
|
217
|
+
║ - Post DECISION: ║
|
|
218
|
+
║ │ Phase: 2 | Tasks: {n}/{total} | CRIT={n} WARN={n} INFO={n} ║
|
|
219
|
+
║ │ Disputes: {n} | Arbitrations: {n} ║
|
|
220
|
+
║ │ ✅ CONSENSUS: reviewer ✓ | reviewer(exec) ✓ | security+perf ✓║
|
|
221
|
+
║ - Release consolidated findings table ║
|
|
222
|
+
╚══════════════════════════════════════════════════════════════════════╝
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**PLAN COMPLIANCE** (if PLAN exists):
|
|
226
|
+
```
|
|
227
|
+
FOR EACH phase in PLAN-{scope}.md:
|
|
228
|
+
- Verify code implements plan spec → "Plan Phase X → Code Y → ✅/⚠️/❌"
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Exit Criteria**: All files reviewed across 5 dimensions, findings severity-ranked, security + performance validated
|
|
232
|
+
**Consensus**: ✅ CONSENSUS: reviewer ✓ | reviewer(exec) ✓ | security+perf ✓
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## 🎭 Phase 3: IMPROVEMENT PLAN — 🔺 GOLDEN TRIANGLE
|
|
237
|
+
|
|
238
|
+
| Role | Agent | Mission |
|
|
239
|
+
| --------- | ------------------------------------ | ---------------------------------------------------------- |
|
|
240
|
+
| Tech Lead | `tech-lead` | Synthesize: prioritize findings, create improvement plan |
|
|
241
|
+
| Executor | `planner` | Execute: write REVIEW-REPORT-{scope}.md with prioritized issues |
|
|
242
|
+
| Reviewer | `reviewer` | Challenge: priorities correct? Severity accurate? Missing improvements? |
|
|
243
|
+
|
|
244
|
+
**Prerequisite**: All Phase 2 findings consolidated in Mailbox.
|
|
245
|
+
|
|
246
|
+
**Triangle Loop**:
|
|
247
|
+
1. `tech-lead` reads Phase 2 findings → decomposes into improvement areas:
|
|
248
|
+
- Critical issues (must fix before merge)
|
|
249
|
+
- Warnings (should fix, tech debt if deferred)
|
|
250
|
+
- Suggestions (opportunistic improvements)
|
|
251
|
+
- Plan deviations (if PLAN exists)
|
|
252
|
+
2. `tech-lead` posts TASK_ASSIGNMENT → dispatches to `planner`
|
|
253
|
+
3. `planner` writes structured improvement plan → posts SUBMISSION:
|
|
254
|
+
- Prioritized issue table with effort estimates
|
|
255
|
+
- Fix recommendations per issue (specific, actionable)
|
|
256
|
+
- Dependency order: which fixes must come first
|
|
257
|
+
- Risk of NOT fixing: business + technical impact per issue
|
|
258
|
+
4. `reviewer` reviews improvement plan → posts REVIEW:
|
|
259
|
+
- Severity ratings accurate or inflated/deflated?
|
|
260
|
+
- Fix recommendations correct and complete?
|
|
261
|
+
- Phase 2 findings dropped or downgraded without justification?
|
|
262
|
+
- Priority ordering sound (critical before cosmetic)?
|
|
263
|
+
5. Debate loop if FAIL → `planner` adjusts or defends → max 3 rounds
|
|
264
|
+
6. `tech-lead` synthesizes final improvement plan
|
|
265
|
+
|
|
266
|
+
**Deliverable**: `./reports/reviews/REVIEW-REPORT-{scope}.md`
|
|
267
|
+
**Exit Criteria**: All findings prioritized, fix recommendations documented, effort estimated, nothing dropped
|
|
268
|
+
**Consensus**: ✅ CONSENSUS: tech-lead ✓ | planner ✓ | reviewer ✓
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## 🎭 Phase 4: SUMMARY & RECOMMENDATIONS — 🔺 GOLDEN TRIANGLE
|
|
273
|
+
|
|
274
|
+
| Role | Agent | Mission |
|
|
275
|
+
| --------- | ------------------------------------ | ---------------------------------------------------------- |
|
|
276
|
+
| Tech Lead | `tech-lead` | Final synthesis: orchestrate executive summary creation |
|
|
277
|
+
| Executor | `reporter` | Execute: executive summary, risk assessment, recommended actions |
|
|
278
|
+
| Reviewer | `business-analyst` | Challenge: business impact? Stakeholder communication? Actionable? |
|
|
279
|
+
|
|
280
|
+
**Prerequisite**: **READ** `./reports/reviews/REVIEW-REPORT-{scope}.md`
|
|
281
|
+
|
|
282
|
+
**Triangle Loop**:
|
|
283
|
+
1. `tech-lead` decomposes summary: verdict, risk matrix, actions, stakeholder brief
|
|
284
|
+
2. `tech-lead` posts TASK_ASSIGNMENT → dispatches to `reporter`
|
|
285
|
+
3. `reporter` writes final review report → posts SUBMISSION:
|
|
286
|
+
```markdown
|
|
287
|
+
# Code Review: {scope}
|
|
288
|
+
## Verdict: ✅ APPROVED / ⚠️ APPROVED WITH CONDITIONS / ❌ CHANGES REQUIRED
|
|
289
|
+
## Executive Summary
|
|
290
|
+
{2-3 sentence overview of code quality, key risks, recommendation}
|
|
291
|
+
## Risk Assessment
|
|
292
|
+
| Risk | Severity | Likelihood | Business Impact | Mitigation |
|
|
293
|
+
## Critical Issues ({count}) — MUST fix
|
|
294
|
+
| # | Category | File:Line | Description | Fix | Effort |
|
|
295
|
+
## Warnings ({count}) — SHOULD fix
|
|
296
|
+
| # | Category | File:Line | Description | Fix | Effort |
|
|
297
|
+
## Suggestions ({count}) — COULD improve
|
|
298
|
+
| # | Category | File:Line | Description | Fix | Effort |
|
|
299
|
+
## Security Summary
|
|
300
|
+
Vulnerabilities: {count by severity} | OWASP: {categories}
|
|
301
|
+
## Performance Summary
|
|
302
|
+
Bottlenecks: {count} | Impact: {description}
|
|
303
|
+
## Plan Compliance (if applicable)
|
|
304
|
+
Phases verified: {X}/{Y} | Deviations: {list or "None"}
|
|
305
|
+
## Recommended Actions
|
|
306
|
+
1. {action} — Owner: {who} — Priority: {P0/P1/P2}
|
|
307
|
+
```
|
|
308
|
+
4. `business-analyst` reviews final report → posts REVIEW:
|
|
309
|
+
- Business impact clearly communicated?
|
|
310
|
+
- Non-technical stakeholder would understand verdict?
|
|
311
|
+
- Recommended actions concrete and assignable?
|
|
312
|
+
- Risk assessment calibrated (not alarmist or dismissive)?
|
|
313
|
+
5. Debate loop if FAIL → `reporter` adjusts or defends → max 3 rounds
|
|
314
|
+
6. `tech-lead` approves final report
|
|
315
|
+
|
|
316
|
+
**Deliverable**: `./reports/reviews/REVIEW-{scope}.md`
|
|
317
|
+
**Exit Criteria**: Executive summary complete, verdict issued, all findings actionable, stakeholder-ready
|
|
318
|
+
**Consensus**: ✅ CONSENSUS: tech-lead ✓ | reporter ✓ | business-analyst ✓
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## ✅ COMPLETION
|
|
323
|
+
|
|
324
|
+
Present final review report with consensus stamps from ALL phases:
|
|
325
|
+
|
|
326
|
+
```markdown
|
|
327
|
+
# 🔺 Golden Triangle Review Report: {scope}
|
|
328
|
+
|
|
329
|
+
## Phase Results
|
|
330
|
+
| Phase | Triangle | Consensus | Rounds |
|
|
331
|
+
|-------|----------|-----------|--------|
|
|
332
|
+
| P1: Scope & Context | reviewer / scouter / tech-lead | ✅ | {n} |
|
|
333
|
+
| P2: Code Quality Review | reviewer / reviewer / security+perf | ✅ | {n} |
|
|
334
|
+
| P3: Improvement Plan | tech-lead / planner / reviewer | ✅ | {n} |
|
|
335
|
+
| P4: Summary | tech-lead / reporter / business-analyst | ✅ | {n} |
|
|
336
|
+
|
|
337
|
+
## Debate Summary
|
|
338
|
+
- Total submissions: {count}
|
|
339
|
+
- First-pass approvals: {count}
|
|
340
|
+
- Debates triggered: {count}
|
|
341
|
+
- Arbitrations needed: {count}
|
|
342
|
+
|
|
343
|
+
## Mailbox Reference
|
|
344
|
+
Full debate history: `./reports/MAILBOX-{date}.md`
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Verdict Routing**:
|
|
348
|
+
|
|
349
|
+
1. ✅ **Approved** — Code ready to merge
|
|
350
|
+
2. ⚠️ **Approved with conditions** — Minor fixes needed → `/fix:fast`
|
|
351
|
+
3. ❌ **Changes required** — Critical issues → `/fix:hard` or `/fix:team`
|
|
352
|
+
4. 🔒 **Security block** — Security vulnerabilities must be resolved → `/fix:hard`
|
|
353
|
+
5. 🧪 **Test gaps** — Insufficient coverage → `/test:team`
|
package/commands/review.md
CHANGED
|
@@ -33,6 +33,9 @@ IF scope is small (PR, few files):
|
|
|
33
33
|
IF scope is large (codebase, architecture):
|
|
34
34
|
→ Route to /review:hard
|
|
35
35
|
|
|
36
|
+
IF scope is large AND maximum quality with team collaboration needed:
|
|
37
|
+
→ Route to /review:team
|
|
38
|
+
|
|
36
39
|
IF unsure:
|
|
37
40
|
→ Default to /review:fast
|
|
38
41
|
```
|
|
@@ -45,6 +48,7 @@ IF unsure:
|
|
|
45
48
|
| -------------- | ---------------------- |
|
|
46
49
|
| `/review:fast` | Quick PR/file review |
|
|
47
50
|
| `/review:hard` | Deep codebase analysis |
|
|
51
|
+
| `/review:team` | Maximum quality with parallel agent team collaboration |
|
|
48
52
|
|
|
49
53
|
---
|
|
50
54
|
|
|
@@ -59,6 +63,7 @@ IF unsure:
|
|
|
59
63
|
|
|
60
64
|
1. ⚡ **Fast** → `/review:fast` — Quick review
|
|
61
65
|
2. ⚡⚡⚡ **Hard** → `/review:hard` — Deep analysis
|
|
66
|
+
3. 👥 **Team** → `/review:team` — Full team collaboration (parallel agents, maximum quality)
|
|
62
67
|
|
|
63
68
|
⏳ Awaiting selection...
|
|
64
69
|
```
|