@namch/agent-assistant 1.3.0 → 1.3.2
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 +24 -1
- package/README.md +3 -4
- package/agents/backend-engineer.md +3 -3
- package/agents/brainstormer.md +3 -3
- package/agents/business-analyst.md +3 -3
- package/agents/database-architect.md +3 -3
- package/agents/debugger.md +2 -2
- package/agents/designer.md +2 -2
- package/agents/devops-engineer.md +2 -2
- package/agents/docs-manager.md +23 -15
- package/agents/frontend-engineer.md +3 -3
- package/agents/game-engineer.md +3 -3
- package/agents/mobile-engineer.md +4 -4
- package/agents/performance-engineer.md +3 -3
- package/agents/planner.md +4 -4
- package/agents/project-manager.md +3 -3
- package/agents/researcher.md +3 -3
- package/agents/reviewer.md +3 -3
- package/agents/scouter.md +3 -3
- package/agents/security-engineer.md +3 -3
- package/agents/tech-lead.md +3 -3
- package/agents/tester.md +2 -2
- package/code-assistants/codex-assistant/CODEX.md +1 -2
- package/commands/ask/hard.md +1 -1
- package/commands/brainstorm/hard.md +1 -1
- package/commands/code/hard.md +1 -1
- package/commands/code.md +2 -7
- package/commands/cook/hard.md +1 -1
- package/commands/cook.md +1 -6
- package/commands/debug/hard.md +1 -1
- package/commands/debug.md +1 -6
- package/commands/design/hard.md +1 -1
- package/commands/design.md +1 -6
- package/commands/docs/audit.md +554 -78
- package/commands/docs/business.md +392 -76
- package/commands/docs/core.md +573 -74
- package/commands/docs.md +62 -61
- package/commands/fix/hard.md +1 -1
- package/commands/fix.md +1 -6
- package/commands/plan/hard.md +1 -1
- package/commands/plan.md +1 -6
- package/commands/report/fast.md +2 -2
- package/commands/report/hard.md +1 -1
- package/commands/report.md +2 -7
- package/commands/review/hard.md +1 -1
- package/commands/test/hard.md +1 -1
- package/commands/test.md +1 -6
- package/documents/HSOL-ASSESSMENT.md +6 -6
- package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1 -1
- package/documents/business/business-features/00-index.md +101 -0
- package/documents/business/business-features/01-feature-inventory.md +341 -0
- package/documents/business/business-features/02-prioritization-moscow.md +148 -0
- package/documents/business/business-features/03-feature-specifications.md +511 -0
- package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
- package/documents/business/business-features/05-success-metrics.md +290 -0
- package/documents/business/business-glossary/00-index.md +89 -0
- package/documents/business/business-glossary/01-canonical-terms.md +428 -0
- package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
- package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
- package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
- package/documents/business/business-prd/00-index.md +107 -0
- package/documents/business/business-prd/01-executive-summary.md +131 -0
- package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
- package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
- package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
- package/documents/business/business-workflows/00-index.md +107 -0
- package/documents/business/business-workflows/01-actor-map.md +303 -0
- package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
- package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
- package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
- package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
- package/documents/knowledge-architecture/00-index.md +159 -0
- package/documents/knowledge-architecture/01-system-overview.md +240 -0
- package/documents/knowledge-architecture/02-components.md +419 -0
- package/documents/knowledge-architecture/03-data-flow.md +368 -0
- package/documents/knowledge-architecture/04-design-patterns.md +497 -0
- package/documents/knowledge-architecture/05-decisions.md +410 -0
- package/documents/knowledge-domain/00-index.md +251 -0
- package/documents/knowledge-domain/01-entities.md +582 -0
- package/documents/knowledge-domain/02-database-schema.md +138 -0
- package/documents/knowledge-domain/03-api-contracts.md +477 -0
- package/documents/knowledge-domain/04-business-rules.md +554 -0
- package/documents/knowledge-overview/00-index.md +107 -0
- package/documents/knowledge-overview/01-project-identity.md +162 -0
- package/documents/knowledge-overview/02-tech-stack.md +119 -0
- package/documents/knowledge-overview/03-features.md +232 -0
- package/documents/knowledge-overview/04-getting-started.md +394 -0
- package/documents/knowledge-source-base/00-index.md +107 -0
- package/documents/knowledge-source-base/01-directory-structure.md +312 -0
- package/documents/knowledge-source-base/02-entry-points.md +346 -0
- package/documents/knowledge-source-base/03-key-modules.md +581 -0
- package/documents/knowledge-source-base/04-configuration.md +467 -0
- package/documents/knowledge-standards/00-index.md +129 -0
- package/documents/knowledge-standards/01-code-style.md +161 -0
- package/documents/knowledge-standards/02-conventions.md +254 -0
- package/documents/knowledge-standards/03-git-workflow.md +228 -0
- package/documents/knowledge-standards/04-testing-standards.md +175 -0
- package/matrix-skills/_index.yaml +1 -1
- package/package.json +1 -1
- package/rules/AGENTS.md +1 -1
- package/rules/REFERENCE.md +18 -14
- package/rules/SKILLS.md +1 -1
- package/rules/TEAMS.md +1 -2
- package/skills/docs-audit/README.md +10 -8
- package/skills/docs-audit/SKILL.md +45 -41
- package/skills/docs-audit/references/scoring-framework.md +5 -5
- package/skills/docs-core/README.md +19 -14
- package/skills/docs-core/SKILL.md +189 -117
- package/skills/planning/references/codebase-understanding.md +5 -5
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +0 -4
- package/commands/code/focus.md +0 -297
- package/commands/cook/focus.md +0 -209
- package/commands/debug/focus.md +0 -103
- package/commands/design/focus.md +0 -229
- package/commands/fix/focus.md +0 -145
- package/commands/plan/focus.md +0 -140
- package/commands/report/focus.md +0 -107
- package/commands/test/focus.md +0 -123
- package/documents/business/business-features.md +0 -894
- package/documents/business/business-glossary.md +0 -554
- package/documents/business/business-prd.md +0 -400
- package/documents/business/business-workflows.md +0 -713
- package/documents/knowledge-architecture.md +0 -621
- package/documents/knowledge-domain.md +0 -602
- package/documents/knowledge-overview.md +0 -316
- package/documents/knowledge-source-base.md +0 -581
- package/documents/knowledge-standards.md +0 -632
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
# Agent Assistant — Feature Specifications
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Per-feature specifications with acceptance criteria (Given/When/Then), technical surface, and dependency details
|
|
4
|
+
> **Parent**: [00-index.md](./00-index.md)
|
|
5
|
+
> **Last Updated**: 2026-03-26
|
|
6
|
+
> **Generated By**: docs-business skill
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Specification Format
|
|
11
|
+
|
|
12
|
+
Each feature specification includes:
|
|
13
|
+
- **BF-ID**: Unique feature identifier
|
|
14
|
+
- **Description**: What it does and why
|
|
15
|
+
- **Acceptance Criteria**: Given/When/Then scenarios
|
|
16
|
+
- **Technical Surface**: Files and modules involved
|
|
17
|
+
- **Dependencies**: Hard and soft dependencies on other features
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Must Have Features
|
|
22
|
+
|
|
23
|
+
### BF-001 — One-Time Global Installation
|
|
24
|
+
|
|
25
|
+
**Description**: CLI installs framework files into the AI tool's global config directory. One installation per platform, zero per-project configuration.
|
|
26
|
+
|
|
27
|
+
**Acceptance Criteria**:
|
|
28
|
+
|
|
29
|
+
| # | Given | When | Then |
|
|
30
|
+
|---|-------|------|------|
|
|
31
|
+
| AC-1 | Node.js >=18 and npm are available | User runs `npm run install:all` | All 5 platform directories are populated with agents, commands, rules, skills, matrix-skills |
|
|
32
|
+
| AC-2 | User has Cursor installed | User runs `npm run install:cursor` | `~/.cursor/skills/agent-assistant/` contains all framework files |
|
|
33
|
+
| AC-3 | Framework is already installed | User opens a new project in Cursor | Agent-assistant is available without any project-level setup |
|
|
34
|
+
| AC-4 | One platform fails | User runs `install --all` | Other platforms install successfully; failed platform reports error |
|
|
35
|
+
|
|
36
|
+
**Technical Surface**:
|
|
37
|
+
- `cli/install.js` — Installer logic, platform path configs, template variable replacement
|
|
38
|
+
- `package.json` — npm scripts (`install:cursor`, `install:copilot`, `install:claude`, `install:codex`, `install:antigravity`, `install:all`)
|
|
39
|
+
|
|
40
|
+
**Dependencies**: Node.js >=18, npm (external)
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### BF-002 — Multi-Platform Support (5 Platforms)
|
|
45
|
+
|
|
46
|
+
**Description**: Same agent definitions, commands, and skills work identically across Cursor, Copilot, Claude Code, Codex, and Antigravity/Gemini.
|
|
47
|
+
|
|
48
|
+
**Acceptance Criteria**:
|
|
49
|
+
|
|
50
|
+
| # | Given | When | Then |
|
|
51
|
+
|---|-------|------|------|
|
|
52
|
+
| AC-1 | Framework installed on all 5 platforms | User issues `/cook:fast` on each platform | Same agent delegation pattern executes on each |
|
|
53
|
+
| AC-2 | Source files use `{TOOL}` placeholder | CLI runs installation | Placeholders are replaced with platform-specific values |
|
|
54
|
+
| AC-3 | Platform entry file exists (CURSOR.md, etc.) | AI tool starts a session | CORE.md is loaded via the platform's discovery mechanism |
|
|
55
|
+
|
|
56
|
+
**Technical Surface**:
|
|
57
|
+
- `cli/install.js` — `TOOLS` configuration object with platform paths
|
|
58
|
+
- `code-assistants/cursor-assistant/`, `code-assistants/copilot-assistant/`, `code-assistants/claude-assistant/`, `code-assistants/codex-assistant/`, `code-assistants/antigravity-assistant/`
|
|
59
|
+
- `CURSOR.md`, `COPILOT.md`, `CLAUDE.md`, `CODEX.md`, `GEMINI.md`
|
|
60
|
+
|
|
61
|
+
**Dependencies**: BF-001 (installation mechanism)
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### BF-003 — Orchestrator Pattern
|
|
66
|
+
|
|
67
|
+
**Description**: AI assumes Orchestrator role — delegates to specialists, never implements directly. Enforced by mandatory boot sequence in CORE.md.
|
|
68
|
+
|
|
69
|
+
**Acceptance Criteria**:
|
|
70
|
+
|
|
71
|
+
| # | Given | When | Then |
|
|
72
|
+
|---|-------|------|------|
|
|
73
|
+
| AC-1 | Session started with CORE.md loaded | User asks "implement a REST API" | Orchestrator delegates to backend-engineer; does not write code itself |
|
|
74
|
+
| AC-2 | CORE.md loaded | Orchestrator is about to execute code | Self-check fires and delegation occurs instead |
|
|
75
|
+
| AC-3 | Platform entry file loaded | Session begins | CORE.md is loaded before any other action via mandatory boot sequence |
|
|
76
|
+
|
|
77
|
+
**Technical Surface**:
|
|
78
|
+
- `rules/CORE.md` — Identity section, self-check protocol, prohibition statements
|
|
79
|
+
- Platform entry files — Mandatory boot sequence that loads CORE.md
|
|
80
|
+
|
|
81
|
+
**Dependencies**: CORE.md available in platform install directory
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### BF-004 — 21 Specialist Agents
|
|
86
|
+
|
|
87
|
+
**Description**: Each agent is a Markdown file with defined profile, directive, protocol, and constraints. HSOL injects skills based on the agent's profile.
|
|
88
|
+
|
|
89
|
+
**Acceptance Criteria**:
|
|
90
|
+
|
|
91
|
+
| # | Given | When | Then |
|
|
92
|
+
|---|-------|------|------|
|
|
93
|
+
| AC-1 | Agent file exists with profile section | Orchestrator delegates a task | Agent's profile, directive, and constraints are applied |
|
|
94
|
+
| AC-2 | Agent has cognitive anchor block | Agent executes a multi-step task | Role identity is maintained across all steps |
|
|
95
|
+
| AC-3 | 21 agent files in `agents/` | Installation completes | All 21 agents are available for delegation |
|
|
96
|
+
| AC-4 | Agent defines skill profile | HSOL resolves skills | Skills matching the profile's domains are injected |
|
|
97
|
+
|
|
98
|
+
**Technical Surface**:
|
|
99
|
+
- `agents/*.md` — 21 agent definition files
|
|
100
|
+
- `AGENT-TEMPLATE.md` — Template format for agent creation
|
|
101
|
+
- `agents/teams/` — 17 team directories with 51 team-specific agent files
|
|
102
|
+
|
|
103
|
+
**Dependencies**: BF-003 (Orchestrator must exist to delegate)
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### BF-005 — 14 Structured Commands
|
|
108
|
+
|
|
109
|
+
**Description**: Workflow definitions that orchestrate agent collaboration across phases. Each command specifies routing, phases, agents, and exit criteria.
|
|
110
|
+
|
|
111
|
+
**Acceptance Criteria**:
|
|
112
|
+
|
|
113
|
+
| # | Given | When | Then |
|
|
114
|
+
|---|-------|------|------|
|
|
115
|
+
| AC-1 | 14 command files in `commands/` | User issues any of the 14 commands | Correct command file is loaded and routing logic executes |
|
|
116
|
+
| AC-2 | Command has variant subdirectory | User specifies `:hard` variant | Variant-specific workflow (phases, agents, gates) is applied |
|
|
117
|
+
| AC-3 | Rules pre-flight completes | Command execution begins | CORE.md laws are active before any phase runs |
|
|
118
|
+
|
|
119
|
+
**Technical Surface**:
|
|
120
|
+
- `commands/*.md` — 14 command files (ask, auto, brainstorm, code, cook, debug, deploy, design, docs, fix, plan, report, review, test)
|
|
121
|
+
- `commands/*/` — Variant subdirectories per command
|
|
122
|
+
|
|
123
|
+
**Dependencies**: BF-003 (Orchestrator routes commands), BF-004 (agents execute phases)
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
### BF-006 — 3 Variant Strategies
|
|
128
|
+
|
|
129
|
+
**Description**: `:fast` (2–3 agents), `:hard` (5–8 agents + gates), `:team` (adversarial Golden Triangle).
|
|
130
|
+
|
|
131
|
+
**Acceptance Criteria**:
|
|
132
|
+
|
|
133
|
+
| # | Given | When | Then |
|
|
134
|
+
|---|-------|------|------|
|
|
135
|
+
| AC-1 | `/cook` command issued | User specifies `:fast` | 2–3 agents execute with basic quality gates |
|
|
136
|
+
| AC-2 | `/cook` command issued | User specifies `:hard` | 5–8 agents execute with test, review, and security gates |
|
|
137
|
+
| AC-3 | `/cook` command issued | User specifies `:team` | Golden Triangle team (Tech Lead + Executor + Reviewer) with debate |
|
|
138
|
+
|
|
139
|
+
**Technical Surface**:
|
|
140
|
+
- `commands/cook/fast.md`, `commands/cook/hard.md`, `commands/cook/team.md`
|
|
141
|
+
- Pattern replicated for each command supporting variants
|
|
142
|
+
|
|
143
|
+
**Dependencies**: BF-005 (command router)
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
### BF-007 — Matrix Skill Discovery (HSOL)
|
|
148
|
+
|
|
149
|
+
**Description**: Automatic skill resolution based on agent profile. 1,430+ skills across 19 domains. Fitness scoring: semantic 35%, specificity 25%, trust 20%, freshness 10%, success 10%.
|
|
150
|
+
|
|
151
|
+
**Acceptance Criteria**:
|
|
152
|
+
|
|
153
|
+
| # | Given | When | Then |
|
|
154
|
+
|---|-------|------|------|
|
|
155
|
+
| AC-1 | Agent has profile with backend domain | HSOL resolves skills | Backend-relevant skills from `matrix-skills/backend.yaml` are injected |
|
|
156
|
+
| AC-2 | 19 domain YAML files exist | HSOL resolution runs | All domains are searchable; `_index.yaml` is the entry point |
|
|
157
|
+
| AC-3 | Fitness score computed | Score >= 0.8 | Skill is included in the resolved set |
|
|
158
|
+
| AC-4 | Fitness score computed | Score < 0.8 in `:hard`/`:team` | Dynamic discovery (BF-013) may trigger |
|
|
159
|
+
|
|
160
|
+
**Technical Surface**:
|
|
161
|
+
- `rules/SKILLS.md` — Resolution algorithm, fitness scoring, thresholds
|
|
162
|
+
- `matrix-skills/_index.yaml` — Master index of domains and inheritance
|
|
163
|
+
- `matrix-skills/*.yaml` — 19 domain registry files
|
|
164
|
+
- `skills/` — 1,430+ skill module directories
|
|
165
|
+
|
|
166
|
+
**Dependencies**: BF-004 (agent profiles provide input to HSOL)
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
### BF-008 — Tiered Execution
|
|
171
|
+
|
|
172
|
+
**Description**: TIER 1 uses `runSubagent` for isolated parallel execution. TIER 2 falls back to in-context embodiment. TIER 1 is mandatory when available.
|
|
173
|
+
|
|
174
|
+
**Acceptance Criteria**:
|
|
175
|
+
|
|
176
|
+
| # | Given | When | Then |
|
|
177
|
+
|---|-------|------|------|
|
|
178
|
+
| AC-1 | Platform supports `runSubagent` (Claude Code) | Orchestrator delegates to 3 agents | 3 sub-agents execute in parallel |
|
|
179
|
+
| AC-2 | Platform lacks `runSubagent` (some Copilot modes) | Orchestrator delegates | TIER 2 embodiment used; agents execute sequentially in-context |
|
|
180
|
+
| AC-3 | TIER 1 is available | Orchestrator selects execution tier | TIER 1 is selected (TIER 2 forbidden when TIER 1 available) |
|
|
181
|
+
|
|
182
|
+
**Technical Surface**:
|
|
183
|
+
- `rules/CORE.md` — Tiered Execution section
|
|
184
|
+
- `rules/AGENTS.md` — Agent execution protocol
|
|
185
|
+
|
|
186
|
+
**Dependencies**: BF-003 (Orchestrator manages execution tier selection)
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### BF-009 — 10 Orchestration Laws
|
|
191
|
+
|
|
192
|
+
**Description**: Formal governance — L1 (Single Truth), L2 (Requirement Integrity), L3 (Phase Completion), L4 (Agent Specialization), L5 (Transparent Delegation), L6 (No Silent Failures), L7 (Skill Authority), L8 (Output Verification), L9 (Context Preservation), L10 (Minimal Intervention).
|
|
193
|
+
|
|
194
|
+
**Acceptance Criteria**:
|
|
195
|
+
|
|
196
|
+
| # | Given | When | Then |
|
|
197
|
+
|---|-------|------|------|
|
|
198
|
+
| AC-1 | CORE.md loaded | Orchestrator operates | All 10 laws are actively enforced |
|
|
199
|
+
| AC-2 | An error occurs during execution | Error is encountered | Law L6 ensures error is surfaced (no silent failure) |
|
|
200
|
+
| AC-3 | Agent handoff occurs | Context transfers between agents | Law L9 ensures context is preserved |
|
|
201
|
+
| AC-4 | Orchestrator receives implementation task | Self-check runs | Law L10 triggers delegation instead of direct implementation |
|
|
202
|
+
|
|
203
|
+
**Technical Surface**:
|
|
204
|
+
- `rules/CORE.md` — Laws section (all 10 laws)
|
|
205
|
+
|
|
206
|
+
**Dependencies**: BF-003 (laws govern the Orchestrator)
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
### BF-010 — Cognitive Anchoring
|
|
211
|
+
|
|
212
|
+
**Description**: Structured identity block in every agent file that reinforces role, expertise, and boundaries at execution start.
|
|
213
|
+
|
|
214
|
+
**Acceptance Criteria**:
|
|
215
|
+
|
|
216
|
+
| # | Given | When | Then |
|
|
217
|
+
|---|-------|------|------|
|
|
218
|
+
| AC-1 | Agent file has cognitive anchor block | Agent begins execution | Identity section is processed before task execution |
|
|
219
|
+
| AC-2 | Long session with many agent switches | Agent re-activated after other agents | Cognitive anchor refreshes role identity; no drift |
|
|
220
|
+
| AC-3 | New agent created from template | Developer follows AGENT-TEMPLATE.md | Cognitive anchor block is included in the new agent |
|
|
221
|
+
|
|
222
|
+
**Technical Surface**:
|
|
223
|
+
- `agents/*.md` — Cognitive anchor block in each file
|
|
224
|
+
- `AGENT-TEMPLATE.md` — Template with anchor block structure
|
|
225
|
+
|
|
226
|
+
**Dependencies**: BF-004 (agent file format)
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Should Have Features
|
|
231
|
+
|
|
232
|
+
### BF-011 — 17 Domain Teams (Golden Triangle)
|
|
233
|
+
|
|
234
|
+
**Description**: Adversarial collaboration — Tech Lead + Executor + Reviewer per team. 17 teams covering backend through report domains.
|
|
235
|
+
|
|
236
|
+
**Acceptance Criteria**:
|
|
237
|
+
|
|
238
|
+
| # | Given | When | Then |
|
|
239
|
+
|---|-------|------|------|
|
|
240
|
+
| AC-1 | `:team` variant invoked | `/cook:team` executed | Golden Triangle protocol activates with 3 agents |
|
|
241
|
+
| AC-2 | Team selected | Execution begins | Tech Lead decomposes, Executor builds, Reviewer challenges |
|
|
242
|
+
| AC-3 | Reviewer finds issues | Review submitted | Executor must defend or fix before acceptance |
|
|
243
|
+
| AC-4 | 17 team directories exist | Installation complete | All teams are available for `:team` variant |
|
|
244
|
+
|
|
245
|
+
**Technical Surface**:
|
|
246
|
+
- `rules/TEAMS.md` — Full protocol (530+ lines)
|
|
247
|
+
- `agents/teams/*/` — 17 directories × 3 files (techlead.md, executor.md, reviewer.md)
|
|
248
|
+
- `rules/PHASES.md`, `rules/AGENTS.md` — Team execution support
|
|
249
|
+
|
|
250
|
+
**Dependencies**: BF-006 (`:team` variant), BF-004 (agents)
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
### BF-012 — Error Self-Healing (E1–E4)
|
|
255
|
+
|
|
256
|
+
**Description**: Classified recovery — E1 auto-retry, E2 fallback, E3 user pause, E4 halt with diagnostics.
|
|
257
|
+
|
|
258
|
+
**Acceptance Criteria**:
|
|
259
|
+
|
|
260
|
+
| # | Given | When | Then |
|
|
261
|
+
|---|-------|------|------|
|
|
262
|
+
| AC-1 | E1 warning occurs | Error classified | Auto-retry with adjusted parameters |
|
|
263
|
+
| AC-2 | E2 recoverable error occurs | TIER 1 fails | TIER 2 fallback activates |
|
|
264
|
+
| AC-3 | E3 blocking error occurs | Missing user input | Execution pauses; user prompted for clarification |
|
|
265
|
+
| AC-4 | E4 critical error occurs | Unrecoverable state | Execution halts; full diagnostic report generated |
|
|
266
|
+
|
|
267
|
+
**Technical Surface**:
|
|
268
|
+
- `rules/ERRORS.md` — Error classification, recovery protocols
|
|
269
|
+
|
|
270
|
+
**Dependencies**: None (standalone rules file)
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### BF-013 — Dynamic Skill Discovery
|
|
275
|
+
|
|
276
|
+
**Description**: When fitness < 0.8 in `:hard`/`:team`, `find-skills` discovers community skills. Tracked in `_dynamic.yaml`.
|
|
277
|
+
|
|
278
|
+
**Acceptance Criteria**:
|
|
279
|
+
|
|
280
|
+
| # | Given | When | Then |
|
|
281
|
+
|---|-------|------|------|
|
|
282
|
+
| AC-1 | HSOL fitness < 0.8 for a domain | `:hard` variant executes | Dynamic discovery triggers and searches for community skills |
|
|
283
|
+
| AC-2 | Community skill found | Skill registered | Entry added to `matrix-skills/_dynamic.yaml` with NEW trust status |
|
|
284
|
+
| AC-3 | Network unavailable | Dynamic discovery triggers | Graceful degradation — uses best available bundled skill |
|
|
285
|
+
|
|
286
|
+
**Technical Surface**:
|
|
287
|
+
- `rules/SKILLS.md` — Dynamic discovery section
|
|
288
|
+
- `matrix-skills/_dynamic.yaml` — Dynamic skill manifest
|
|
289
|
+
|
|
290
|
+
**Dependencies**: BF-007 (HSOL fitness scoring active)
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
### BF-014 — Trust Progression Lifecycle
|
|
295
|
+
|
|
296
|
+
**Description**: NEW → EVALUATING → VALIDATED → PROMOTED lifecycle for dynamically discovered skills.
|
|
297
|
+
|
|
298
|
+
**Acceptance Criteria**:
|
|
299
|
+
|
|
300
|
+
| # | Given | When | Then |
|
|
301
|
+
|---|-------|------|------|
|
|
302
|
+
| AC-1 | Skill registered as NEW | First successful execution | Status advances to EVALUATING |
|
|
303
|
+
| AC-2 | Skill in EVALUATING state | Consistent success across multiple uses | Status advances to VALIDATED |
|
|
304
|
+
| AC-3 | Skill VALIDATED | Trust score meets threshold | Status advances to PROMOTED; skill ranks alongside core skills |
|
|
305
|
+
| AC-4 | Skill fails validation | Poor outcomes | Status remains or reverts; skill does not advance |
|
|
306
|
+
|
|
307
|
+
**Technical Surface**:
|
|
308
|
+
- `rules/SKILLS.md` — Trust lifecycle section
|
|
309
|
+
- `matrix-skills/_dynamic.yaml` — Status tracking per skill
|
|
310
|
+
|
|
311
|
+
**Dependencies**: BF-013 (skills must be discovered first)
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### BF-015 — Documentation Generation (/docs)
|
|
316
|
+
|
|
317
|
+
**Description**: Auto-generates structured docs: Core (5 folders), Business (4+ folders), Audit (4 folders). Uses scouter, business-analyst, and docs-manager agents.
|
|
318
|
+
|
|
319
|
+
**Acceptance Criteria**:
|
|
320
|
+
|
|
321
|
+
| # | Given | When | Then |
|
|
322
|
+
|---|-------|------|------|
|
|
323
|
+
| AC-1 | Project has source code | User runs `/docs` | Scouter discovers project structure; docs-manager generates documentation |
|
|
324
|
+
| AC-2 | `/docs` targets business pack | Business subfolder specified | Business-analyst extracts goals, requirements, features from project |
|
|
325
|
+
| AC-3 | Documentation exists | User runs `/docs` again | Existing docs are updated, not overwritten |
|
|
326
|
+
|
|
327
|
+
**Technical Surface**:
|
|
328
|
+
- `commands/docs.md` — Main routing
|
|
329
|
+
- `commands/docs/*.md` — Variants
|
|
330
|
+
- `agents/docs-manager.md`, `agents/scouter.md`, `agents/business-analyst.md`
|
|
331
|
+
|
|
332
|
+
**Dependencies**: BF-004 (scouter, BA, docs-manager agents), BF-005 (`/docs` command)
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
### BF-016 — Debate Mechanism (Mailbox)
|
|
337
|
+
|
|
338
|
+
**Description**: Append-only mailbox for team communication. Message types: TASK_ASSIGNMENT, SUBMISSION, REVIEW, DEFENSE, ARBITRATION, DECISION. Max 3 rounds.
|
|
339
|
+
|
|
340
|
+
**Acceptance Criteria**:
|
|
341
|
+
|
|
342
|
+
| # | Given | When | Then |
|
|
343
|
+
|---|-------|------|------|
|
|
344
|
+
| AC-1 | `:team` variant executing | Reviewer submits critique | Message appended to `./reports/{topic}/MAILBOX-{date}.md` |
|
|
345
|
+
| AC-2 | 3 debate rounds completed | No consensus reached | Tech Lead issues binding ARBITRATION decision |
|
|
346
|
+
| AC-3 | Executor defends | Defense is accepted | DECISION logged; execution proceeds |
|
|
347
|
+
| AC-4 | Mailbox file exists | All messages appended | Full debate trail is preserved and auditable |
|
|
348
|
+
|
|
349
|
+
**Technical Surface**:
|
|
350
|
+
- `rules/TEAMS.md` — Mailbox protocol, message types, round limits
|
|
351
|
+
|
|
352
|
+
**Dependencies**: BF-011 (teams must be active)
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
### BF-017 — Natural Language Command Detection
|
|
357
|
+
|
|
358
|
+
**Description**: Maps plain language intent to commands. "implement" → `/cook`, "fix" → `/fix`, "plan" → `/plan`.
|
|
359
|
+
|
|
360
|
+
**Acceptance Criteria**:
|
|
361
|
+
|
|
362
|
+
| # | Given | When | Then |
|
|
363
|
+
|---|-------|------|------|
|
|
364
|
+
| AC-1 | User says "build a login page" | Orchestrator parses intent | Routes to `/cook` or `/code` command |
|
|
365
|
+
| AC-2 | User says "fix this bug" | Orchestrator parses intent | Routes to `/fix` command |
|
|
366
|
+
| AC-3 | User says "review my code" | Orchestrator parses intent | Routes to `/review` command |
|
|
367
|
+
| AC-4 | Ambiguous intent | Orchestrator cannot classify | Asks user to clarify or defaults to `/ask` |
|
|
368
|
+
|
|
369
|
+
**Technical Surface**:
|
|
370
|
+
- `rules/CORE.md` — Command routing section, natural language mapping table
|
|
371
|
+
|
|
372
|
+
**Dependencies**: BF-005 (commands must exist to route to)
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
### BF-018 — Language Compliance (L6)
|
|
377
|
+
|
|
378
|
+
**Description**: Responses in user's language. Code, comments, generated files always in English.
|
|
379
|
+
|
|
380
|
+
**Acceptance Criteria**:
|
|
381
|
+
|
|
382
|
+
| # | Given | When | Then |
|
|
383
|
+
|---|-------|------|------|
|
|
384
|
+
| AC-1 | User writes in Portuguese | Orchestrator responds | Response is in Portuguese |
|
|
385
|
+
| AC-2 | Agent generates code | Code produced | Comments and variable names are in English |
|
|
386
|
+
| AC-3 | `/docs` generates files | Files created | All file content is in English regardless of user language |
|
|
387
|
+
|
|
388
|
+
**Technical Surface**:
|
|
389
|
+
- `rules/CORE.md` — Law L6, language compliance section
|
|
390
|
+
|
|
391
|
+
**Dependencies**: None (CORE.md law)
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## Could Have Features
|
|
396
|
+
|
|
397
|
+
### BF-019 — Deployment Workflows (/deploy)
|
|
398
|
+
|
|
399
|
+
**Description**: 4 deployment variants — check, preview, production, rollback.
|
|
400
|
+
|
|
401
|
+
**Acceptance Criteria**:
|
|
402
|
+
|
|
403
|
+
| # | Given | When | Then |
|
|
404
|
+
|---|-------|------|------|
|
|
405
|
+
| AC-1 | User runs `/deploy:check` | Pre-deployment validation | Environment, config, and dependencies validated |
|
|
406
|
+
| AC-2 | User runs `/deploy:preview` | Staging deploy | Application deployed to preview/staging environment |
|
|
407
|
+
| AC-3 | User runs `/deploy:production` | Production release | Application deployed to production with configured safeguards |
|
|
408
|
+
| AC-4 | User runs `/deploy:rollback` | Revert needed | Previous stable version restored |
|
|
409
|
+
|
|
410
|
+
**Technical Surface**:
|
|
411
|
+
- `commands/deploy.md`, `commands/deploy/*.md`
|
|
412
|
+
- `agents/devops-engineer.md`
|
|
413
|
+
|
|
414
|
+
**Dependencies**: BF-004 (devops-engineer agent)
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
### BF-020 — Autonomous Execution (/auto)
|
|
419
|
+
|
|
420
|
+
**Description**: Self-routing execution — tech-lead classifies task and selects command/variant without user pauses.
|
|
421
|
+
|
|
422
|
+
**Acceptance Criteria**:
|
|
423
|
+
|
|
424
|
+
| # | Given | When | Then |
|
|
425
|
+
|---|-------|------|------|
|
|
426
|
+
| AC-1 | User issues `/auto` with task description | Tech-lead classifies | Correct command and variant selected automatically |
|
|
427
|
+
| AC-2 | Classification complete | Execution begins | Full workflow runs without phase-boundary pauses |
|
|
428
|
+
| AC-3 | Task is ambiguous | Classification uncertain | Falls back to user prompt for clarification |
|
|
429
|
+
|
|
430
|
+
**Technical Surface**:
|
|
431
|
+
- `commands/auto.md`
|
|
432
|
+
- `agents/tech-lead.md`
|
|
433
|
+
|
|
434
|
+
**Dependencies**: BF-004 (tech-lead), BF-005 (all commands available for routing)
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
### BF-021 — Reporting System (/report)
|
|
439
|
+
|
|
440
|
+
**Description**: Generates status reports, sprint summaries, and analysis. Reporter + scouter agents.
|
|
441
|
+
|
|
442
|
+
**Acceptance Criteria**:
|
|
443
|
+
|
|
444
|
+
| # | Given | When | Then |
|
|
445
|
+
|---|-------|------|------|
|
|
446
|
+
| AC-1 | User runs `/report` | Report generated | Report reflects current project state |
|
|
447
|
+
| AC-2 | Previous report exists | User runs `/report` again | Report is updated, not duplicated |
|
|
448
|
+
| AC-3 | Template specified | Report generation | Output follows template structure |
|
|
449
|
+
|
|
450
|
+
**Technical Surface**:
|
|
451
|
+
- `commands/report.md`, `commands/report/*.md`
|
|
452
|
+
- `agents/reporter.md`, `agents/scouter.md`
|
|
453
|
+
|
|
454
|
+
**Dependencies**: BF-004 (reporter, scouter agents)
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
### BF-022 — Plan Short-Circuit
|
|
459
|
+
|
|
460
|
+
**Description**: Skip research/scout/brainstorm phases when existing plan is referenced.
|
|
461
|
+
|
|
462
|
+
**Acceptance Criteria**:
|
|
463
|
+
|
|
464
|
+
| # | Given | When | Then |
|
|
465
|
+
|---|-------|------|------|
|
|
466
|
+
| AC-1 | User says "follow the plan" and PLAN-*.md exists | `/code:hard` executes | Phases 1–3 skipped; execution starts at context optimization |
|
|
467
|
+
| AC-2 | User references `@PLAN-feature.md` | Plan file found | Plan content loaded; research skipped |
|
|
468
|
+
| AC-3 | User says "follow plan" but no PLAN-*.md exists | Detection runs | No short-circuit; normal phase sequence executes |
|
|
469
|
+
|
|
470
|
+
**Technical Surface**:
|
|
471
|
+
- `commands/code.md` — Detection routing
|
|
472
|
+
- `commands/code/hard.md`, `commands/code/team.md` — Skip logic section
|
|
473
|
+
|
|
474
|
+
**Dependencies**: BF-005 (`/code` command)
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
### BF-023 — CLI List Command
|
|
479
|
+
|
|
480
|
+
**Description**: Show installed platforms, versions, and status via CLI.
|
|
481
|
+
|
|
482
|
+
**Acceptance Criteria**:
|
|
483
|
+
|
|
484
|
+
| # | Given | When | Then |
|
|
485
|
+
|---|-------|------|------|
|
|
486
|
+
| AC-1 | Framework installed on 3 of 5 platforms | User runs CLI list | 3 platforms show as installed; 2 show as not installed |
|
|
487
|
+
| AC-2 | No platforms installed | User runs CLI list | All platforms show as not installed |
|
|
488
|
+
|
|
489
|
+
**Technical Surface**:
|
|
490
|
+
- `cli/install.js` — Planned addition
|
|
491
|
+
|
|
492
|
+
**Dependencies**: BF-001 (CLI exists)
|
|
493
|
+
|
|
494
|
+
**Status**: NOT YET IMPLEMENTED
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## Evidence Sources
|
|
499
|
+
|
|
500
|
+
| Source | Path |
|
|
501
|
+
|--------|------|
|
|
502
|
+
| Structured Business Pack | [../../reports/business-analysis/structured-business-pack.md](../../reports/business-analysis/structured-business-pack.md) |
|
|
503
|
+
| Knowledge overview — features | [../knowledge-overview/03-features.md](../knowledge-overview/03-features.md) |
|
|
504
|
+
| CORE rules | [../../rules/CORE.md](../../rules/CORE.md) |
|
|
505
|
+
| SKILLS rules | [../../rules/SKILLS.md](../../rules/SKILLS.md) |
|
|
506
|
+
| TEAMS rules | [../../rules/TEAMS.md](../../rules/TEAMS.md) |
|
|
507
|
+
| ERRORS rules | [../../rules/ERRORS.md](../../rules/ERRORS.md) |
|
|
508
|
+
| AGENTS rules | [../../rules/AGENTS.md](../../rules/AGENTS.md) |
|
|
509
|
+
| CLI installer | [../../cli/install.js](../../cli/install.js) |
|
|
510
|
+
| Commands | [../../commands/](../../commands/) |
|
|
511
|
+
| Agent definitions | [../../agents/](../../agents/) |
|