@namch/agent-assistant 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/agents/backend-engineer.md +3 -3
  3. package/agents/brainstormer.md +3 -3
  4. package/agents/business-analyst.md +3 -3
  5. package/agents/database-architect.md +3 -3
  6. package/agents/debugger.md +2 -2
  7. package/agents/designer.md +2 -2
  8. package/agents/devops-engineer.md +2 -2
  9. package/agents/docs-manager.md +23 -15
  10. package/agents/frontend-engineer.md +3 -3
  11. package/agents/game-engineer.md +3 -3
  12. package/agents/mobile-engineer.md +4 -4
  13. package/agents/performance-engineer.md +3 -3
  14. package/agents/planner.md +4 -4
  15. package/agents/project-manager.md +3 -3
  16. package/agents/researcher.md +3 -3
  17. package/agents/reviewer.md +3 -3
  18. package/agents/scouter.md +3 -3
  19. package/agents/security-engineer.md +3 -3
  20. package/agents/tech-lead.md +3 -3
  21. package/agents/tester.md +2 -2
  22. package/commands/docs/audit.md +554 -78
  23. package/commands/docs/business.md +392 -76
  24. package/commands/docs/core.md +573 -74
  25. package/commands/docs.md +62 -61
  26. package/documents/business/business-features/00-index.md +101 -0
  27. package/documents/business/business-features/01-feature-inventory.md +341 -0
  28. package/documents/business/business-features/02-prioritization-moscow.md +148 -0
  29. package/documents/business/business-features/03-feature-specifications.md +512 -0
  30. package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
  31. package/documents/business/business-features/05-success-metrics.md +290 -0
  32. package/documents/business/business-glossary/00-index.md +89 -0
  33. package/documents/business/business-glossary/01-canonical-terms.md +428 -0
  34. package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
  35. package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
  36. package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
  37. package/documents/business/business-prd/00-index.md +107 -0
  38. package/documents/business/business-prd/01-executive-summary.md +131 -0
  39. package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
  40. package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
  41. package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
  42. package/documents/business/business-workflows/00-index.md +107 -0
  43. package/documents/business/business-workflows/01-actor-map.md +303 -0
  44. package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
  45. package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
  46. package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
  47. package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
  48. package/documents/knowledge-architecture/00-index.md +159 -0
  49. package/documents/knowledge-architecture/01-system-overview.md +240 -0
  50. package/documents/knowledge-architecture/02-components.md +419 -0
  51. package/documents/knowledge-architecture/03-data-flow.md +369 -0
  52. package/documents/knowledge-architecture/04-design-patterns.md +498 -0
  53. package/documents/knowledge-architecture/05-decisions.md +410 -0
  54. package/documents/knowledge-domain/00-index.md +251 -0
  55. package/documents/knowledge-domain/01-entities.md +583 -0
  56. package/documents/knowledge-domain/02-database-schema.md +138 -0
  57. package/documents/knowledge-domain/03-api-contracts.md +479 -0
  58. package/documents/knowledge-domain/04-business-rules.md +555 -0
  59. package/documents/knowledge-overview/00-index.md +107 -0
  60. package/documents/knowledge-overview/01-project-identity.md +162 -0
  61. package/documents/knowledge-overview/02-tech-stack.md +119 -0
  62. package/documents/knowledge-overview/03-features.md +233 -0
  63. package/documents/knowledge-overview/04-getting-started.md +394 -0
  64. package/documents/knowledge-source-base/00-index.md +107 -0
  65. package/documents/knowledge-source-base/01-directory-structure.md +312 -0
  66. package/documents/knowledge-source-base/02-entry-points.md +346 -0
  67. package/documents/knowledge-source-base/03-key-modules.md +582 -0
  68. package/documents/knowledge-source-base/04-configuration.md +467 -0
  69. package/documents/knowledge-standards/00-index.md +129 -0
  70. package/documents/knowledge-standards/01-code-style.md +161 -0
  71. package/documents/knowledge-standards/02-conventions.md +255 -0
  72. package/documents/knowledge-standards/03-git-workflow.md +228 -0
  73. package/documents/knowledge-standards/04-testing-standards.md +175 -0
  74. package/package.json +1 -1
  75. package/rules/REFERENCE.md +10 -6
  76. package/skills/docs-audit/README.md +10 -8
  77. package/skills/docs-audit/SKILL.md +45 -41
  78. package/skills/docs-audit/references/scoring-framework.md +5 -5
  79. package/skills/docs-core/README.md +19 -14
  80. package/skills/docs-core/SKILL.md +189 -117
  81. package/skills/planning/references/codebase-understanding.md +5 -5
  82. package/documents/business/business-features.md +0 -894
  83. package/documents/business/business-glossary.md +0 -554
  84. package/documents/business/business-prd.md +0 -400
  85. package/documents/business/business-workflows.md +0 -713
  86. package/documents/knowledge-architecture.md +0 -621
  87. package/documents/knowledge-domain.md +0 -602
  88. package/documents/knowledge-overview.md +0 -316
  89. package/documents/knowledge-source-base.md +0 -581
  90. package/documents/knowledge-standards.md +0 -632
@@ -0,0 +1,148 @@
1
+ # Agent Assistant — MoSCoW Prioritization
2
+
3
+ > **Purpose**: MoSCoW classification of all 23 features with rationale, dependency analysis, and priority justification
4
+ > **Parent**: [00-index.md](./00-index.md)
5
+ > **Last Updated**: 2026-03-26
6
+ > **Generated By**: docs-business skill
7
+
8
+ ---
9
+
10
+ ## MoSCoW Summary
11
+
12
+ | Priority | Count | Features | Rationale |
13
+ |----------|-------|----------|-----------|
14
+ | **Must Have** | 10 | BF-001–BF-010 | Core framework — without these, the product has no value proposition |
15
+ | **Should Have** | 8 | BF-011–BF-018 | Significant quality and ecosystem enhancements — differentiate from basic prompt engineering |
16
+ | **Could Have** | 5 | BF-019–BF-023 | Convenience and automation — valuable but not required for core workflows |
17
+ | **Won't Have** | 0 | — | No features deferred from v1.3.0 scope |
18
+
19
+ ---
20
+
21
+ ## Must Have (10) — Core Framework
22
+
23
+ These features are non-negotiable. Without any one of them, the framework cannot deliver its primary value proposition of structured multi-agent orchestration.
24
+
25
+ | BF-ID | Feature | Rationale | Dependencies | Delivered |
26
+ |-------|---------|-----------|-------------|-----------|
27
+ | BF-001 | One-Time Global Installation | Entry point to the framework. Without installation, nothing works. Zero-config is the fundamental UX promise. | Node.js >=18, npm | v1.0.0 |
28
+ | BF-002 | Multi-Platform Support (5) | Platform coverage is a stated product goal (BG-002). Single-platform would limit addressable market to one tool's users. | BF-001 (CLI platform config) | v1.0.0–v1.2.0 |
29
+ | BF-003 | Orchestrator Pattern | The defining architectural decision. If the AI implements directly, there is no orchestration — just a chatbot with extra prompts. | CORE.md loaded at boot | v1.0.0 |
30
+ | BF-004 | 21 Specialist Agents | Agents are the execution workforce. Without specialists, the Orchestrator has nobody to delegate to. Agent profiles drive HSOL skill injection. | BF-003 (pattern requires agents) | v1.0.0 |
31
+ | BF-005 | 14 Structured Commands | Commands are the user interface to the framework. Without commands, users have no structured entry point to workflows. | BF-003 (Orchestrator routes), BF-004 (agents execute) | v1.0.0 |
32
+ | BF-006 | 4 Variant Strategies | Variants enable right-sizing — without them, every task gets the same treatment regardless of complexity. `:fast` vs `:hard` is a core efficiency mechanism. | BF-005 (command router logic) | v1.0.0–v1.0.4 |
33
+ | BF-007 | Matrix Skill Discovery (HSOL) | Skill injection is the knowledge layer. Without HSOL, agents operate on generic training data only, losing the 85% token savings and domain-specific quality. | BF-004 (agent profiles), matrix YAML files | v1.0.0 (v1.1.0 rewrite) |
34
+ | BF-008 | Tiered Execution | Platform capability varies. Without tiered execution, the framework either fails on limited platforms or under-utilizes capable ones. | BF-003 (Orchestrator delegates) | v1.0.0 |
35
+ | BF-009 | 10 Orchestration Laws | Laws prevent the Orchestrator from drifting into anti-patterns (silent failures, scope creep, direct implementation). Without governance, quality is inconsistent. | BF-003 (laws govern Orchestrator) | v1.0.0 |
36
+ | BF-010 | Cognitive Anchoring | Prevents role drift in AI agents during long sessions. Without anchoring, agents gradually lose their specialist identity and produce generic output. | BF-004 (agent file format) | v1.0.0 |
37
+
38
+ ### Must Have Dependency Chain
39
+
40
+ ```
41
+ BF-001 (Install) → BF-002 (Platforms)
42
+ BF-001 (Install) → BF-003 (Orchestrator) → BF-009 (Laws)
43
+ BF-003 (Orchestrator) → BF-004 (Agents) → BF-010 (Anchoring)
44
+ BF-003 (Orchestrator) → BF-005 (Commands) → BF-006 (Variants)
45
+ BF-003 (Orchestrator) → BF-008 (Tiered Execution)
46
+ BF-004 (Agents) → BF-007 (HSOL)
47
+ ```
48
+
49
+ **Critical path**: BF-001 → BF-003 → BF-004 → BF-007. If any link in this chain is missing, the core value proposition collapses.
50
+
51
+ ---
52
+
53
+ ## Should Have (8) — Quality & Ecosystem
54
+
55
+ These features significantly enhance quality, reliability, and extensibility. The framework functions without them, but key differentiators (adversarial quality, self-healing, ecosystem growth) are lost.
56
+
57
+ | BF-ID | Feature | Rationale | Dependencies | Delivered |
58
+ |-------|---------|-----------|-------------|-----------|
59
+ | BF-011 | 17 Domain Teams | Adversarial collaboration (BG-008) is a key quality differentiator — but single-agent execution still works. Teams are an upgrade, not a requirement. | BF-006 (`:team` variant), `rules/TEAMS.md` | v1.2.0 |
60
+ | BF-012 | Error Self-Healing (E1–E4) | Silent failures degrade trust. Classified recovery is important but the framework can operate (with degraded UX) without it. | `rules/ERRORS.md` | v1.0.0 |
61
+ | BF-013 | Dynamic Skill Discovery | Extends skills beyond bundled 1,430. Important for niche domains but the core skill set covers most use cases. | `find-skills` CLI, network access | v1.3.0 |
62
+ | BF-014 | Trust Progression Lifecycle | Quality gate for dynamic skills. Without it, community skills could degrade output quality. Important but only relevant when BF-013 is active. | BF-013 (dynamic discovery active) | v1.3.0 |
63
+ | BF-015 | Documentation Generation | Auto-docs save significant effort (BG-010) but developers can write docs manually. High value, not existential. | BF-004 (scouter, BA, docs-manager agents) | v1.0.0 |
64
+ | BF-016 | Debate Mechanism (Mailbox) | Traceable inter-agent communication is valuable for audit and quality but teams can function with implicit communication. | BF-011 (teams active), `rules/TEAMS.md` | v1.2.0 |
65
+ | BF-017 | Natural Language Command Detection | Lowers learning curve by mapping plain language to commands. Useful but users can learn the 14 command names directly. | CORE.md routing logic | v1.0.0 |
66
+ | BF-018 | Language Compliance (L6) | International accessibility. English-only users are unaffected. Important for global adoption but not blocking for English-speaking markets. | CORE.md Law L6 | v1.0.0 |
67
+
68
+ ### Should Have Dependency Analysis
69
+
70
+ | Feature | Hard Dependencies | Soft Dependencies |
71
+ |---------|-------------------|-------------------|
72
+ | BF-011 | BF-006 (`:team` variant exists) | BF-016 (mailbox enhances teams) |
73
+ | BF-012 | None (standalone rules file) | BF-008 (tiered execution generates errors) |
74
+ | BF-013 | BF-007 (HSOL active, fitness score available) | Network access |
75
+ | BF-014 | BF-013 (skills must be discoverable) | BF-007 (trust integrates with fitness scoring) |
76
+ | BF-015 | BF-004 (scouter, BA, docs-manager agents) | BF-005 (`/docs` command) |
77
+ | BF-016 | BF-011 (teams must exist) | — |
78
+ | BF-017 | BF-005 (commands must exist to route to) | — |
79
+ | BF-018 | None (CORE.md law) | — |
80
+
81
+ ---
82
+
83
+ ## Could Have (5) — Convenience & Automation
84
+
85
+ These features improve user experience and automation but are not required for the primary use cases. They can be deferred or delivered incrementally.
86
+
87
+ | BF-ID | Feature | Rationale | Dependencies | Delivered |
88
+ |-------|---------|-----------|-------------|-----------|
89
+ | BF-019 | Deployment Workflows | Deployment is valuable but many teams have existing CI/CD pipelines. Agent-assisted deployment is additive, not essential. | BF-004 (devops-engineer agent) | v1.2.0 |
90
+ | BF-020 | Autonomous Execution | Hands-off execution is powerful but users generally want visibility into AI decisions. Higher risk without human checkpoints. | BF-004 (tech-lead agent), BF-005 (command classification) | v1.0.4 |
91
+ | BF-021 | Reporting System | Automated reports save time but are not part of the core build→test→review loop. Additive value. | BF-004 (reporter, scouter agents) | v1.0.3 |
92
+ | BF-022 | Plan Short-Circuit | Optimization for plan-driven workflows. Saves tokens and time but non-critical — redundant research is wasteful, not blocking. | BF-005 (`/code` command), existing `PLAN-*.md` | v1.0.4 |
93
+ | BF-023 | CLI List Command | Diagnostic convenience. Users can check installation status manually by inspecting directories. | BF-001 (CLI exists) | NOT YET |
94
+
95
+ ### Could Have Dependency Analysis
96
+
97
+ | Feature | Hard Dependencies | Soft Dependencies |
98
+ |---------|-------------------|-------------------|
99
+ | BF-019 | BF-004 (devops-engineer agent) | BF-006 (`:team` variant for deploy) |
100
+ | BF-020 | BF-004 (tech-lead), BF-005 (commands) | All commands (auto routes to them) |
101
+ | BF-021 | BF-004 (reporter, scouter) | BF-005 (`/report` command) |
102
+ | BF-022 | BF-005 (`/code` command) | Existing plan files |
103
+ | BF-023 | BF-001 (CLI) | — |
104
+
105
+ ---
106
+
107
+ ## Priority Justification Matrix
108
+
109
+ | BF-ID | Without It... | MoSCoW |
110
+ |-------|---------------|--------|
111
+ | BF-001 | Framework cannot be installed | Must |
112
+ | BF-002 | Limited to one platform | Must |
113
+ | BF-003 | No orchestration — just a chatbot | Must |
114
+ | BF-004 | Nothing to delegate to | Must |
115
+ | BF-005 | No structured entry point | Must |
116
+ | BF-006 | Every task gets same treatment | Must |
117
+ | BF-007 | Agents lack domain knowledge | Must |
118
+ | BF-008 | Fails on limited platforms OR wastes capable ones | Must |
119
+ | BF-009 | Orchestrator behavior is unpredictable | Must |
120
+ | BF-010 | Agents drift roles in long sessions | Must |
121
+ | BF-011 | No adversarial review — single-agent quality only | Should |
122
+ | BF-012 | Silent failures degrade trust | Should |
123
+ | BF-013 | Limited to bundled skills only | Should |
124
+ | BF-014 | Community skills could degrade quality | Should |
125
+ | BF-015 | Manual documentation effort | Should |
126
+ | BF-016 | Team communication is implicit, not auditable | Should |
127
+ | BF-017 | Users must memorize commands | Should |
128
+ | BF-018 | English-only interface | Should |
129
+ | BF-019 | Teams use existing CI/CD | Could |
130
+ | BF-020 | Users guide execution manually | Could |
131
+ | BF-021 | Reports written manually | Could |
132
+ | BF-022 | Redundant research when plans exist | Could |
133
+ | BF-023 | Check install status manually | Could |
134
+
135
+ ---
136
+
137
+ ## Evidence Sources
138
+
139
+ | Source | Path |
140
+ |--------|------|
141
+ | Structured Business Pack (MoSCoW table) | [../../reports/business-analysis/structured-business-pack.md](../../reports/business-analysis/structured-business-pack.md) |
142
+ | Knowledge overview — features | [../knowledge-overview/03-features.md](../knowledge-overview/03-features.md) |
143
+ | PRD — goals and scope | [../business-prd/02-problem-goals-and-scope.md](../business-prd/02-problem-goals-and-scope.md) |
144
+ | CHANGELOG | [../../CHANGELOG.md](../../CHANGELOG.md) |
145
+ | CORE rules | [../../rules/CORE.md](../../rules/CORE.md) |
146
+ | TEAMS rules | [../../rules/TEAMS.md](../../rules/TEAMS.md) |
147
+ | SKILLS rules | [../../rules/SKILLS.md](../../rules/SKILLS.md) |
148
+ | ERRORS rules | [../../rules/ERRORS.md](../../rules/ERRORS.md) |
@@ -0,0 +1,512 @@
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 — 4 Variant Strategies
128
+
129
+ **Description**: `:fast` (2–3 agents), `:hard` (5–8 agents + gates), `:focus` (clean execution), `: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 `:focus` | Context optimization runs; clean focused output produced |
138
+ | AC-4 | `/cook` command issued | User specifies `:team` | Golden Triangle team (Tech Lead + Executor + Reviewer) with debate |
139
+
140
+ **Technical Surface**:
141
+ - `commands/cook/fast.md`, `commands/cook/hard.md`, `commands/cook/focus.md`, `commands/cook/team.md`
142
+ - Pattern replicated for each command supporting variants
143
+
144
+ **Dependencies**: BF-005 (command router)
145
+
146
+ ---
147
+
148
+ ### BF-007 — Matrix Skill Discovery (HSOL)
149
+
150
+ **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%.
151
+
152
+ **Acceptance Criteria**:
153
+
154
+ | # | Given | When | Then |
155
+ |---|-------|------|------|
156
+ | AC-1 | Agent has profile with backend domain | HSOL resolves skills | Backend-relevant skills from `matrix-skills/backend.yaml` are injected |
157
+ | AC-2 | 19 domain YAML files exist | HSOL resolution runs | All domains are searchable; `_index.yaml` is the entry point |
158
+ | AC-3 | Fitness score computed | Score >= 0.8 | Skill is included in the resolved set |
159
+ | AC-4 | Fitness score computed | Score < 0.8 in `:hard`/`:focus` | Dynamic discovery (BF-013) may trigger |
160
+
161
+ **Technical Surface**:
162
+ - `rules/SKILLS.md` — Resolution algorithm, fitness scoring, thresholds
163
+ - `matrix-skills/_index.yaml` — Master index of domains and inheritance
164
+ - `matrix-skills/*.yaml` — 19 domain registry files
165
+ - `skills/` — 1,430+ skill module directories
166
+
167
+ **Dependencies**: BF-004 (agent profiles provide input to HSOL)
168
+
169
+ ---
170
+
171
+ ### BF-008 — Tiered Execution
172
+
173
+ **Description**: TIER 1 uses `runSubagent` for isolated parallel execution. TIER 2 falls back to in-context embodiment. TIER 1 is mandatory when available.
174
+
175
+ **Acceptance Criteria**:
176
+
177
+ | # | Given | When | Then |
178
+ |---|-------|------|------|
179
+ | AC-1 | Platform supports `runSubagent` (Claude Code) | Orchestrator delegates to 3 agents | 3 sub-agents execute in parallel |
180
+ | AC-2 | Platform lacks `runSubagent` (some Copilot modes) | Orchestrator delegates | TIER 2 embodiment used; agents execute sequentially in-context |
181
+ | AC-3 | TIER 1 is available | Orchestrator selects execution tier | TIER 1 is selected (TIER 2 forbidden when TIER 1 available) |
182
+
183
+ **Technical Surface**:
184
+ - `rules/CORE.md` — Tiered Execution section
185
+ - `rules/AGENTS.md` — Agent execution protocol
186
+
187
+ **Dependencies**: BF-003 (Orchestrator manages execution tier selection)
188
+
189
+ ---
190
+
191
+ ### BF-009 — 10 Orchestration Laws
192
+
193
+ **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).
194
+
195
+ **Acceptance Criteria**:
196
+
197
+ | # | Given | When | Then |
198
+ |---|-------|------|------|
199
+ | AC-1 | CORE.md loaded | Orchestrator operates | All 10 laws are actively enforced |
200
+ | AC-2 | An error occurs during execution | Error is encountered | Law L6 ensures error is surfaced (no silent failure) |
201
+ | AC-3 | Agent handoff occurs | Context transfers between agents | Law L9 ensures context is preserved |
202
+ | AC-4 | Orchestrator receives implementation task | Self-check runs | Law L10 triggers delegation instead of direct implementation |
203
+
204
+ **Technical Surface**:
205
+ - `rules/CORE.md` — Laws section (all 10 laws)
206
+
207
+ **Dependencies**: BF-003 (laws govern the Orchestrator)
208
+
209
+ ---
210
+
211
+ ### BF-010 — Cognitive Anchoring
212
+
213
+ **Description**: Structured identity block in every agent file that reinforces role, expertise, and boundaries at execution start.
214
+
215
+ **Acceptance Criteria**:
216
+
217
+ | # | Given | When | Then |
218
+ |---|-------|------|------|
219
+ | AC-1 | Agent file has cognitive anchor block | Agent begins execution | Identity section is processed before task execution |
220
+ | AC-2 | Long session with many agent switches | Agent re-activated after other agents | Cognitive anchor refreshes role identity; no drift |
221
+ | AC-3 | New agent created from template | Developer follows AGENT-TEMPLATE.md | Cognitive anchor block is included in the new agent |
222
+
223
+ **Technical Surface**:
224
+ - `agents/*.md` — Cognitive anchor block in each file
225
+ - `AGENT-TEMPLATE.md` — Template with anchor block structure
226
+
227
+ **Dependencies**: BF-004 (agent file format)
228
+
229
+ ---
230
+
231
+ ## Should Have Features
232
+
233
+ ### BF-011 — 17 Domain Teams (Golden Triangle)
234
+
235
+ **Description**: Adversarial collaboration — Tech Lead + Executor + Reviewer per team. 17 teams covering backend through report domains.
236
+
237
+ **Acceptance Criteria**:
238
+
239
+ | # | Given | When | Then |
240
+ |---|-------|------|------|
241
+ | AC-1 | `:team` variant invoked | `/cook:team` executed | Golden Triangle protocol activates with 3 agents |
242
+ | AC-2 | Team selected | Execution begins | Tech Lead decomposes, Executor builds, Reviewer challenges |
243
+ | AC-3 | Reviewer finds issues | Review submitted | Executor must defend or fix before acceptance |
244
+ | AC-4 | 17 team directories exist | Installation complete | All teams are available for `:team` variant |
245
+
246
+ **Technical Surface**:
247
+ - `rules/TEAMS.md` — Full protocol (530+ lines)
248
+ - `agents/teams/*/` — 17 directories × 3 files (techlead.md, executor.md, reviewer.md)
249
+ - `rules/PHASES.md`, `rules/AGENTS.md` — Team execution support
250
+
251
+ **Dependencies**: BF-006 (`:team` variant), BF-004 (agents)
252
+
253
+ ---
254
+
255
+ ### BF-012 — Error Self-Healing (E1–E4)
256
+
257
+ **Description**: Classified recovery — E1 auto-retry, E2 fallback, E3 user pause, E4 halt with diagnostics.
258
+
259
+ **Acceptance Criteria**:
260
+
261
+ | # | Given | When | Then |
262
+ |---|-------|------|------|
263
+ | AC-1 | E1 warning occurs | Error classified | Auto-retry with adjusted parameters |
264
+ | AC-2 | E2 recoverable error occurs | TIER 1 fails | TIER 2 fallback activates |
265
+ | AC-3 | E3 blocking error occurs | Missing user input | Execution pauses; user prompted for clarification |
266
+ | AC-4 | E4 critical error occurs | Unrecoverable state | Execution halts; full diagnostic report generated |
267
+
268
+ **Technical Surface**:
269
+ - `rules/ERRORS.md` — Error classification, recovery protocols
270
+
271
+ **Dependencies**: None (standalone rules file)
272
+
273
+ ---
274
+
275
+ ### BF-013 — Dynamic Skill Discovery
276
+
277
+ **Description**: When fitness < 0.8 in `:hard`/`:focus`, `find-skills` discovers community skills. Tracked in `_dynamic.yaml`.
278
+
279
+ **Acceptance Criteria**:
280
+
281
+ | # | Given | When | Then |
282
+ |---|-------|------|------|
283
+ | AC-1 | HSOL fitness < 0.8 for a domain | `:hard` variant executes | Dynamic discovery triggers and searches for community skills |
284
+ | AC-2 | Community skill found | Skill registered | Entry added to `matrix-skills/_dynamic.yaml` with NEW trust status |
285
+ | AC-3 | Network unavailable | Dynamic discovery triggers | Graceful degradation — uses best available bundled skill |
286
+
287
+ **Technical Surface**:
288
+ - `rules/SKILLS.md` — Dynamic discovery section
289
+ - `matrix-skills/_dynamic.yaml` — Dynamic skill manifest
290
+
291
+ **Dependencies**: BF-007 (HSOL fitness scoring active)
292
+
293
+ ---
294
+
295
+ ### BF-014 — Trust Progression Lifecycle
296
+
297
+ **Description**: NEW → EVALUATING → VALIDATED → PROMOTED lifecycle for dynamically discovered skills.
298
+
299
+ **Acceptance Criteria**:
300
+
301
+ | # | Given | When | Then |
302
+ |---|-------|------|------|
303
+ | AC-1 | Skill registered as NEW | First successful execution | Status advances to EVALUATING |
304
+ | AC-2 | Skill in EVALUATING state | Consistent success across multiple uses | Status advances to VALIDATED |
305
+ | AC-3 | Skill VALIDATED | Trust score meets threshold | Status advances to PROMOTED; skill ranks alongside core skills |
306
+ | AC-4 | Skill fails validation | Poor outcomes | Status remains or reverts; skill does not advance |
307
+
308
+ **Technical Surface**:
309
+ - `rules/SKILLS.md` — Trust lifecycle section
310
+ - `matrix-skills/_dynamic.yaml` — Status tracking per skill
311
+
312
+ **Dependencies**: BF-013 (skills must be discovered first)
313
+
314
+ ---
315
+
316
+ ### BF-015 — Documentation Generation (/docs)
317
+
318
+ **Description**: Auto-generates structured docs: Core (5 folders), Business (4+ folders), Audit (4 folders). Uses scouter, business-analyst, and docs-manager agents.
319
+
320
+ **Acceptance Criteria**:
321
+
322
+ | # | Given | When | Then |
323
+ |---|-------|------|------|
324
+ | AC-1 | Project has source code | User runs `/docs` | Scouter discovers project structure; docs-manager generates documentation |
325
+ | AC-2 | `/docs` targets business pack | Business subfolder specified | Business-analyst extracts goals, requirements, features from project |
326
+ | AC-3 | Documentation exists | User runs `/docs` again | Existing docs are updated, not overwritten |
327
+
328
+ **Technical Surface**:
329
+ - `commands/docs.md` — Main routing
330
+ - `commands/docs/*.md` — Variants
331
+ - `agents/docs-manager.md`, `agents/scouter.md`, `agents/business-analyst.md`
332
+
333
+ **Dependencies**: BF-004 (scouter, BA, docs-manager agents), BF-005 (`/docs` command)
334
+
335
+ ---
336
+
337
+ ### BF-016 — Debate Mechanism (Mailbox)
338
+
339
+ **Description**: Append-only mailbox for team communication. Message types: TASK_ASSIGNMENT, SUBMISSION, REVIEW, DEFENSE, ARBITRATION, DECISION. Max 3 rounds.
340
+
341
+ **Acceptance Criteria**:
342
+
343
+ | # | Given | When | Then |
344
+ |---|-------|------|------|
345
+ | AC-1 | `:team` variant executing | Reviewer submits critique | Message appended to `./reports/{topic}/MAILBOX-{date}.md` |
346
+ | AC-2 | 3 debate rounds completed | No consensus reached | Tech Lead issues binding ARBITRATION decision |
347
+ | AC-3 | Executor defends | Defense is accepted | DECISION logged; execution proceeds |
348
+ | AC-4 | Mailbox file exists | All messages appended | Full debate trail is preserved and auditable |
349
+
350
+ **Technical Surface**:
351
+ - `rules/TEAMS.md` — Mailbox protocol, message types, round limits
352
+
353
+ **Dependencies**: BF-011 (teams must be active)
354
+
355
+ ---
356
+
357
+ ### BF-017 — Natural Language Command Detection
358
+
359
+ **Description**: Maps plain language intent to commands. "implement" → `/cook`, "fix" → `/fix`, "plan" → `/plan`.
360
+
361
+ **Acceptance Criteria**:
362
+
363
+ | # | Given | When | Then |
364
+ |---|-------|------|------|
365
+ | AC-1 | User says "build a login page" | Orchestrator parses intent | Routes to `/cook` or `/code` command |
366
+ | AC-2 | User says "fix this bug" | Orchestrator parses intent | Routes to `/fix` command |
367
+ | AC-3 | User says "review my code" | Orchestrator parses intent | Routes to `/review` command |
368
+ | AC-4 | Ambiguous intent | Orchestrator cannot classify | Asks user to clarify or defaults to `/ask` |
369
+
370
+ **Technical Surface**:
371
+ - `rules/CORE.md` — Command routing section, natural language mapping table
372
+
373
+ **Dependencies**: BF-005 (commands must exist to route to)
374
+
375
+ ---
376
+
377
+ ### BF-018 — Language Compliance (L6)
378
+
379
+ **Description**: Responses in user's language. Code, comments, generated files always in English.
380
+
381
+ **Acceptance Criteria**:
382
+
383
+ | # | Given | When | Then |
384
+ |---|-------|------|------|
385
+ | AC-1 | User writes in Portuguese | Orchestrator responds | Response is in Portuguese |
386
+ | AC-2 | Agent generates code | Code produced | Comments and variable names are in English |
387
+ | AC-3 | `/docs` generates files | Files created | All file content is in English regardless of user language |
388
+
389
+ **Technical Surface**:
390
+ - `rules/CORE.md` — Law L6, language compliance section
391
+
392
+ **Dependencies**: None (CORE.md law)
393
+
394
+ ---
395
+
396
+ ## Could Have Features
397
+
398
+ ### BF-019 — Deployment Workflows (/deploy)
399
+
400
+ **Description**: 4 deployment variants — check, preview, production, rollback.
401
+
402
+ **Acceptance Criteria**:
403
+
404
+ | # | Given | When | Then |
405
+ |---|-------|------|------|
406
+ | AC-1 | User runs `/deploy:check` | Pre-deployment validation | Environment, config, and dependencies validated |
407
+ | AC-2 | User runs `/deploy:preview` | Staging deploy | Application deployed to preview/staging environment |
408
+ | AC-3 | User runs `/deploy:production` | Production release | Application deployed to production with configured safeguards |
409
+ | AC-4 | User runs `/deploy:rollback` | Revert needed | Previous stable version restored |
410
+
411
+ **Technical Surface**:
412
+ - `commands/deploy.md`, `commands/deploy/*.md`
413
+ - `agents/devops-engineer.md`
414
+
415
+ **Dependencies**: BF-004 (devops-engineer agent)
416
+
417
+ ---
418
+
419
+ ### BF-020 — Autonomous Execution (/auto)
420
+
421
+ **Description**: Self-routing execution — tech-lead classifies task and selects command/variant without user pauses.
422
+
423
+ **Acceptance Criteria**:
424
+
425
+ | # | Given | When | Then |
426
+ |---|-------|------|------|
427
+ | AC-1 | User issues `/auto` with task description | Tech-lead classifies | Correct command and variant selected automatically |
428
+ | AC-2 | Classification complete | Execution begins | Full workflow runs without phase-boundary pauses |
429
+ | AC-3 | Task is ambiguous | Classification uncertain | Falls back to user prompt for clarification |
430
+
431
+ **Technical Surface**:
432
+ - `commands/auto.md`
433
+ - `agents/tech-lead.md`
434
+
435
+ **Dependencies**: BF-004 (tech-lead), BF-005 (all commands available for routing)
436
+
437
+ ---
438
+
439
+ ### BF-021 — Reporting System (/report)
440
+
441
+ **Description**: Generates status reports, sprint summaries, and analysis. Reporter + scouter agents.
442
+
443
+ **Acceptance Criteria**:
444
+
445
+ | # | Given | When | Then |
446
+ |---|-------|------|------|
447
+ | AC-1 | User runs `/report` | Report generated | Report reflects current project state |
448
+ | AC-2 | Previous report exists | User runs `/report` again | Report is updated, not duplicated |
449
+ | AC-3 | Template specified | Report generation | Output follows template structure |
450
+
451
+ **Technical Surface**:
452
+ - `commands/report.md`, `commands/report/*.md`
453
+ - `agents/reporter.md`, `agents/scouter.md`
454
+
455
+ **Dependencies**: BF-004 (reporter, scouter agents)
456
+
457
+ ---
458
+
459
+ ### BF-022 — Plan Short-Circuit
460
+
461
+ **Description**: Skip research/scout/brainstorm phases when existing plan is referenced.
462
+
463
+ **Acceptance Criteria**:
464
+
465
+ | # | Given | When | Then |
466
+ |---|-------|------|------|
467
+ | AC-1 | User says "follow the plan" and PLAN-*.md exists | `/code:hard` executes | Phases 1–3 skipped; execution starts at context optimization |
468
+ | AC-2 | User references `@PLAN-feature.md` | Plan file found | Plan content loaded; research skipped |
469
+ | AC-3 | User says "follow plan" but no PLAN-*.md exists | Detection runs | No short-circuit; normal phase sequence executes |
470
+
471
+ **Technical Surface**:
472
+ - `commands/code.md` — Detection routing
473
+ - `commands/code/hard.md`, `commands/code/focus.md` — Skip logic section
474
+
475
+ **Dependencies**: BF-005 (`/code` command)
476
+
477
+ ---
478
+
479
+ ### BF-023 — CLI List Command
480
+
481
+ **Description**: Show installed platforms, versions, and status via CLI.
482
+
483
+ **Acceptance Criteria**:
484
+
485
+ | # | Given | When | Then |
486
+ |---|-------|------|------|
487
+ | AC-1 | Framework installed on 3 of 5 platforms | User runs CLI list | 3 platforms show as installed; 2 show as not installed |
488
+ | AC-2 | No platforms installed | User runs CLI list | All platforms show as not installed |
489
+
490
+ **Technical Surface**:
491
+ - `cli/install.js` — Planned addition
492
+
493
+ **Dependencies**: BF-001 (CLI exists)
494
+
495
+ **Status**: NOT YET IMPLEMENTED
496
+
497
+ ---
498
+
499
+ ## Evidence Sources
500
+
501
+ | Source | Path |
502
+ |--------|------|
503
+ | Structured Business Pack | [../../reports/business-analysis/structured-business-pack.md](../../reports/business-analysis/structured-business-pack.md) |
504
+ | Knowledge overview — features | [../knowledge-overview/03-features.md](../knowledge-overview/03-features.md) |
505
+ | CORE rules | [../../rules/CORE.md](../../rules/CORE.md) |
506
+ | SKILLS rules | [../../rules/SKILLS.md](../../rules/SKILLS.md) |
507
+ | TEAMS rules | [../../rules/TEAMS.md](../../rules/TEAMS.md) |
508
+ | ERRORS rules | [../../rules/ERRORS.md](../../rules/ERRORS.md) |
509
+ | AGENTS rules | [../../rules/AGENTS.md](../../rules/AGENTS.md) |
510
+ | CLI installer | [../../cli/install.js](../../cli/install.js) |
511
+ | Commands | [../../commands/](../../commands/) |
512
+ | Agent definitions | [../../agents/](../../agents/) |