@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,410 @@
|
|
|
1
|
+
# Agent Assistant — Architecture Decision Records
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Key architecture decisions with choices, alternatives considered, rationale, and trade-offs
|
|
4
|
+
> **Parent**: [00-index.md](./00-index.md)
|
|
5
|
+
> **Last Updated**: 2026-03-26
|
|
6
|
+
> **Generated By**: docs-core skill
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Table of Contents
|
|
11
|
+
|
|
12
|
+
1. [ADR Summary Table](#adr-summary-table)
|
|
13
|
+
2. [ADR-001: Markdown as Programming Language](#adr-001-markdown-as-programming-language)
|
|
14
|
+
3. [ADR-002: AI Model as Runtime](#adr-002-ai-model-as-runtime)
|
|
15
|
+
4. [ADR-003: Zero Production Dependencies](#adr-003-zero-production-dependencies)
|
|
16
|
+
5. [ADR-004: Platform Abstraction via Placeholder Substitution](#adr-004-platform-abstraction-via-placeholder-substitution)
|
|
17
|
+
6. [ADR-005: Adversarial Collaboration (Golden Triangle)](#adr-005-adversarial-collaboration-golden-triangle)
|
|
18
|
+
7. [ADR-006: HSOL Two-Layer Skill Resolution](#adr-006-hsol-two-layer-skill-resolution)
|
|
19
|
+
8. [ADR-007: 10 Laws Governance Model](#adr-007-10-laws-governance-model)
|
|
20
|
+
9. [Evidence Sources](#evidence-sources)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## ADR Summary Table
|
|
25
|
+
|
|
26
|
+
| ADR | Decision | Status | Impact |
|
|
27
|
+
|-----|----------|--------|--------|
|
|
28
|
+
| 001 | Markdown as programming language | Accepted | Framework logic is human-readable and version-controllable but not unit-testable |
|
|
29
|
+
| 002 | AI model as runtime | Accepted | Zero infrastructure cost; behavior varies by model capability |
|
|
30
|
+
| 003 | Zero production dependencies | Accepted | Maximum portability; limited to Node.js built-in modules |
|
|
31
|
+
| 004 | Platform abstraction via `{TOOL}` placeholders | Accepted | Single codebase for 5 platforms; platform-specific features are lossy |
|
|
32
|
+
| 005 | Adversarial collaboration (Golden Triangle) | Accepted | Higher quality via structured debate; higher token cost for `:team` |
|
|
33
|
+
| 006 | HSOL two-layer resolution | Accepted | Pre-curated baseline + community discovery; trust scoring is interpretive |
|
|
34
|
+
| 007 | 10 Laws governance model | Accepted | Prevents common AI failure modes; adds per-interaction overhead |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## ADR-001: Markdown as Programming Language
|
|
39
|
+
|
|
40
|
+
### Context
|
|
41
|
+
|
|
42
|
+
The framework needs to define complex multi-agent workflows, routing logic, conditional execution, and structured protocols. Traditional frameworks encode this as executable code. Agent Assistant encodes framework logic as Markdown instructions that the AI model reads and follows.
|
|
43
|
+
|
|
44
|
+
### Decision
|
|
45
|
+
|
|
46
|
+
**Use Markdown and YAML files as the instruction set for the entire framework.**
|
|
47
|
+
|
|
48
|
+
All operational logic — orchestrator identity, command routing, phase execution, agent protocols, skill resolution, team collaboration, error recovery — is expressed as structured Markdown documents. YAML is used for metadata (agent frontmatter) and data registries (matrix skills).
|
|
49
|
+
|
|
50
|
+
### Alternatives Considered
|
|
51
|
+
|
|
52
|
+
| Alternative | Why Rejected |
|
|
53
|
+
|------------|-------------|
|
|
54
|
+
| Executable code (Python/JavaScript framework) | AI models would need a wrapper to execute; adds runtime complexity; not natively readable by AI during inference |
|
|
55
|
+
| JSON configuration | Less readable than Markdown; poor support for narrative instructions; no inline formatting |
|
|
56
|
+
| Custom DSL | Requires parser; AI models already understand Markdown natively; additional tooling burden |
|
|
57
|
+
| Mixed (code + Markdown) | Splits logic across two paradigms; harder to reason about; version control complications |
|
|
58
|
+
|
|
59
|
+
### Rationale
|
|
60
|
+
|
|
61
|
+
- AI models natively parse and follow Markdown instructions during inference
|
|
62
|
+
- Markdown files are human-readable, version-controllable, and diffable
|
|
63
|
+
- No compilation step, no build process, no runtime interpreter needed
|
|
64
|
+
- Contributors can modify framework behavior by editing text files
|
|
65
|
+
- The same files serve as both documentation and execution logic
|
|
66
|
+
|
|
67
|
+
### Trade-offs
|
|
68
|
+
|
|
69
|
+
| Benefit | Cost |
|
|
70
|
+
|---------|------|
|
|
71
|
+
| Human-readable framework logic | Cannot unit-test Markdown instructions |
|
|
72
|
+
| No compilation or build step | No static analysis for errors in routing logic |
|
|
73
|
+
| Version-controllable with standard Git | No type-checking for agent handoffs or phase contracts |
|
|
74
|
+
| AI models follow natively | Behavior depends on model's Markdown comprehension quality |
|
|
75
|
+
| Contributors need no coding skills | Framework bugs manifest as behavioral drift, not compile errors |
|
|
76
|
+
|
|
77
|
+
### Evidence
|
|
78
|
+
|
|
79
|
+
- All 7 rule files (`rules/*.md`) are pure Markdown with no executable code
|
|
80
|
+
- All 21 agent files (`agents/*.md`) define behavior via Markdown protocols
|
|
81
|
+
- All 14 command routers (`commands/*.md`) express routing logic as Markdown conditional blocks
|
|
82
|
+
- `package.json` lists zero production dependencies — confirming no runtime code executes
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## ADR-002: AI Model as Runtime
|
|
87
|
+
|
|
88
|
+
### Context
|
|
89
|
+
|
|
90
|
+
Traditional multi-agent frameworks require a server process, message queues, and orchestration infrastructure. Agent Assistant needs to run in 5 different AI coding tools with no shared backend.
|
|
91
|
+
|
|
92
|
+
### Decision
|
|
93
|
+
|
|
94
|
+
**The AI model itself is the runtime — there is no server, no process, no compiled binary.**
|
|
95
|
+
|
|
96
|
+
The framework distributes instruction files. When a user interacts with their AI tool, the model loads these files into context and follows them as operational protocols. The "execution engine" is the AI's inference process.
|
|
97
|
+
|
|
98
|
+
### Alternatives Considered
|
|
99
|
+
|
|
100
|
+
| Alternative | Why Rejected |
|
|
101
|
+
|------------|-------------|
|
|
102
|
+
| Server-side orchestration (e.g., LangChain, CrewAI) | Requires infrastructure; doesn't work inside Cursor/Copilot/Claude contexts |
|
|
103
|
+
| Browser extension with API calls | Platform-specific; requires API keys; adds latency |
|
|
104
|
+
| VS Code extension with language server | Limited to VS Code; doesn't support Cursor, Claude Code, or Codex |
|
|
105
|
+
| Agent marketplace with hosted execution | Vendor lock-in; cost per execution; privacy concerns |
|
|
106
|
+
|
|
107
|
+
### Rationale
|
|
108
|
+
|
|
109
|
+
- Zero infrastructure cost — no servers, no databases, no message queues
|
|
110
|
+
- Runs wherever the AI runs — built into the tool the developer already uses
|
|
111
|
+
- No authentication, no API keys, no network requirements for core operation
|
|
112
|
+
- Scales trivially — each developer's AI model is their own "server"
|
|
113
|
+
- Framework updates via `npm update` — no deployment pipeline needed
|
|
114
|
+
|
|
115
|
+
### Trade-offs
|
|
116
|
+
|
|
117
|
+
| Benefit | Cost |
|
|
118
|
+
|---------|------|
|
|
119
|
+
| Zero infrastructure cost | No server-side state between sessions |
|
|
120
|
+
| Works in any AI tool's context | Behavior varies by model capability and context window |
|
|
121
|
+
| No authentication required | Cannot enforce protocol compliance programmatically |
|
|
122
|
+
| Trivial scaling (per-developer) | No centralized logging, monitoring, or analytics |
|
|
123
|
+
| Simple distribution via npm | Framework behavior is non-deterministic (depends on AI model) |
|
|
124
|
+
|
|
125
|
+
### Evidence
|
|
126
|
+
|
|
127
|
+
- `package.json` has zero production dependencies and zero runtime entry points
|
|
128
|
+
- `cli/install.js` only copies files — no daemon, no background process
|
|
129
|
+
- Platform entry points (CLAUDE.md, etc.) are loaded by the AI at inference time, not executed
|
|
130
|
+
- CORE.md defines the execution loop as behavioral instructions, not runnable code
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## ADR-003: Zero Production Dependencies
|
|
135
|
+
|
|
136
|
+
### Context
|
|
137
|
+
|
|
138
|
+
The CLI installer needs to copy files to platform directories. The framework needs to be distributable via npm. Minimizing dependency surface reduces supply-chain risk and simplifies installation.
|
|
139
|
+
|
|
140
|
+
### Decision
|
|
141
|
+
|
|
142
|
+
**Use only Node.js built-in modules for the CLI. Ship zero production dependencies.**
|
|
143
|
+
|
|
144
|
+
`cli/install.js` uses only `fs`, `path`, `os`, and `readline` — all built into Node.js >=18.0.0.
|
|
145
|
+
|
|
146
|
+
### Alternatives Considered
|
|
147
|
+
|
|
148
|
+
| Alternative | Why Rejected |
|
|
149
|
+
|------------|-------------|
|
|
150
|
+
| `fs-extra` for file operations | Adds a dependency for convenience methods that can be implemented with built-ins |
|
|
151
|
+
| `commander` or `yargs` for CLI parsing | 14-line argument parser is sufficient for the command set |
|
|
152
|
+
| `glob` for file discovery | `fs.readdirSync` with recursive option (Node 18+) handles all use cases |
|
|
153
|
+
| `chalk` for terminal colors | ANSI escape codes or plain text are sufficient |
|
|
154
|
+
|
|
155
|
+
### Rationale
|
|
156
|
+
|
|
157
|
+
- Zero supply-chain attack surface — no third-party code executes
|
|
158
|
+
- `npm install` is faster with no dependency tree to resolve
|
|
159
|
+
- No version conflicts or breaking changes from upstream packages
|
|
160
|
+
- Node.js 18+ provides all necessary filesystem and CLI capabilities
|
|
161
|
+
- Dev dependencies (semantic-release, husky) only run in CI, not on user machines
|
|
162
|
+
|
|
163
|
+
### Trade-offs
|
|
164
|
+
|
|
165
|
+
| Benefit | Cost |
|
|
166
|
+
|---------|------|
|
|
167
|
+
| Zero supply-chain risk | More verbose code for file operations |
|
|
168
|
+
| Faster npm install | No cross-platform path normalization library |
|
|
169
|
+
| No dependency maintenance | CLI features limited to what built-ins provide |
|
|
170
|
+
| Smaller package size | Custom argument parsing instead of battle-tested CLI framework |
|
|
171
|
+
|
|
172
|
+
### Evidence
|
|
173
|
+
|
|
174
|
+
- `package.json` `dependencies` field is absent (zero production deps)
|
|
175
|
+
- `package.json` `engines.node` specifies `>=18.0.0`
|
|
176
|
+
- `cli/install.js` imports: `require('node:fs')`, `require('node:path')`, `require('node:os')`, `require('node:readline')` — all `node:` prefixed built-ins
|
|
177
|
+
- `devDependencies` contains only semantic-release plugins and husky (CI/dev tooling)
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## ADR-004: Platform Abstraction via Placeholder Substitution
|
|
182
|
+
|
|
183
|
+
### Context
|
|
184
|
+
|
|
185
|
+
The framework must work identically across 5 AI platforms (Cursor, GitHub Copilot, Claude Code, Codex, Antigravity/Gemini), each with different directory conventions and configuration approaches.
|
|
186
|
+
|
|
187
|
+
### Decision
|
|
188
|
+
|
|
189
|
+
**Use `{TOOL}` placeholders in all source files, replaced at install time by the CLI for each target platform.**
|
|
190
|
+
|
|
191
|
+
All Markdown and YAML files reference paths with `{TOOL}` (e.g., `~/.{TOOL}/skills/agent-assistant/`). When `cli/install.js` copies files to a platform directory, it performs text replacement on every file with the platform-specific values.
|
|
192
|
+
|
|
193
|
+
### Alternatives Considered
|
|
194
|
+
|
|
195
|
+
| Alternative | Why Rejected |
|
|
196
|
+
|------------|-------------|
|
|
197
|
+
| Separate file copies per platform | Duplication nightmare; changes require updating 5 copies |
|
|
198
|
+
| Runtime path resolution (AI reads config) | Adds context overhead; AI might resolve incorrectly |
|
|
199
|
+
| Symlinks to shared directory | Platform-specific directory structures conflict; not all OS support well |
|
|
200
|
+
| Environment variables in Markdown | AI models don't resolve environment variables in Markdown context |
|
|
201
|
+
|
|
202
|
+
### Rationale
|
|
203
|
+
|
|
204
|
+
- Single source of truth — one copy of each file with placeholders
|
|
205
|
+
- Install-time resolution is deterministic — no runtime ambiguity
|
|
206
|
+
- Simple text replacement — no complex templating engine needed
|
|
207
|
+
- Platform-specific assets handled separately in `code-assistants/{tool}-assistant/`
|
|
208
|
+
|
|
209
|
+
### Trade-offs
|
|
210
|
+
|
|
211
|
+
| Benefit | Cost |
|
|
212
|
+
|---------|------|
|
|
213
|
+
| Single codebase for 5 platforms | Cannot test platform-specific behavior without full install |
|
|
214
|
+
| Deterministic install-time resolution | Platform capability differences (sub-agents, context window) are invisible |
|
|
215
|
+
| No runtime path ambiguity | Files on disk are platform-specific — can't share across tools |
|
|
216
|
+
| Simple text replacement | Placeholder collisions possible if `{TOOL}` appears in content |
|
|
217
|
+
|
|
218
|
+
### Evidence
|
|
219
|
+
|
|
220
|
+
- `cli/install.js` defines `replacements` map for each platform in the TOOLS config:
|
|
221
|
+
```javascript
|
|
222
|
+
replacements: {
|
|
223
|
+
'~/.{TOOL}/skills/agent-assistant/': '~/.cursor/skills/agent-assistant/',
|
|
224
|
+
'{TOOL}': 'cursor',
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
- All rule files use `~/.{TOOL}/skills/agent-assistant/` paths (verified in CORE.md, SKILLS.md)
|
|
228
|
+
- `package.json` has 5 install scripts: `install:cursor`, `install:copilot`, `install:antigravity`, `install:codex`, `install:all`
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## ADR-005: Adversarial Collaboration (Golden Triangle)
|
|
233
|
+
|
|
234
|
+
### Context
|
|
235
|
+
|
|
236
|
+
Single-agent execution and parallel cooperation both have quality ceilings. The framework needs a mechanism to produce higher-quality output for high-stakes tasks.
|
|
237
|
+
|
|
238
|
+
### Decision
|
|
239
|
+
|
|
240
|
+
**Implement a Golden Triangle pattern: 3 agents (Tech Lead, Executor, Reviewer) per phase with structured adversarial debate capped at 3 rounds.**
|
|
241
|
+
|
|
242
|
+
The Executor builds; the Reviewer challenges with a devil's advocate mindset; the Tech Lead arbitrates unresolved disputes. Consensus is required before a deliverable is released.
|
|
243
|
+
|
|
244
|
+
### Alternatives Considered
|
|
245
|
+
|
|
246
|
+
| Alternative | Why Rejected |
|
|
247
|
+
|------------|-------------|
|
|
248
|
+
| Single agent with self-review | AI models are poor at catching their own errors |
|
|
249
|
+
| Parallel agents + voting | No structured debate; majority vote doesn't improve quality |
|
|
250
|
+
| 4th "Devil's Advocate" agent | Adversarial tension is embedded in Reviewer personality; 4th agent adds cost without value |
|
|
251
|
+
| Unlimited debate rounds | Token cost grows unbounded; diminishing returns after 3 rounds |
|
|
252
|
+
| Fixed 1 round (review only) | Executor cannot defend correct work; Reviewer has unchecked authority |
|
|
253
|
+
|
|
254
|
+
### Rationale
|
|
255
|
+
|
|
256
|
+
- Structured tension between Builder and Challenger catches more defects
|
|
257
|
+
- Tech Lead arbitration prevents deadlocks without suppressing valid disagreement
|
|
258
|
+
- 3-round cap bounds token cost while allowing substantive debate
|
|
259
|
+
- Executor's right to defend prevents over-engineering from aggressive review
|
|
260
|
+
- Consensus stamp ensures all three roles sign off on the final deliverable
|
|
261
|
+
- File-based Mailbox creates auditable record of all exchanges
|
|
262
|
+
|
|
263
|
+
### Trade-offs
|
|
264
|
+
|
|
265
|
+
| Benefit | Cost |
|
|
266
|
+
|---------|------|
|
|
267
|
+
| Higher quality through adversarial review | 3× the agent invocations per phase |
|
|
268
|
+
| Catches defects that single agents miss | Higher token consumption |
|
|
269
|
+
| Auditable via Mailbox file | More complex phase output format |
|
|
270
|
+
| Executor can defend correct work | Debate rounds delay deliverable completion |
|
|
271
|
+
| Tech Lead breaks deadlocks | Arbitration quality depends on evidence presented |
|
|
272
|
+
|
|
273
|
+
### Evidence
|
|
274
|
+
|
|
275
|
+
- `rules/TEAMS.md` defines the 3 roles, debate mechanism, defense rules, and C8 enforcement checkpoints
|
|
276
|
+
- `agents/teams/` contains 17 team directories × 3 role files (techlead.md, executor.md, reviewer.md)
|
|
277
|
+
- `rules/PHASES.md` defines the Golden Triangle phase output format with consensus stamp
|
|
278
|
+
- Debate cap: "Max debate rounds: 3. After round 3 without agreement, Tech Lead reads all Mailbox exchanges and makes a binding decision." (TEAMS.md)
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## ADR-006: HSOL Two-Layer Skill Resolution
|
|
283
|
+
|
|
284
|
+
### Context
|
|
285
|
+
|
|
286
|
+
Agents need domain-specific knowledge to produce quality output. A static skill set becomes stale; a purely dynamic system lacks reliability. The framework needs to balance stability with discovery.
|
|
287
|
+
|
|
288
|
+
### Decision
|
|
289
|
+
|
|
290
|
+
**Implement a Hybrid Skill Orchestration Layer (HSOL) with two layers: pre-curated matrix skills (static) and community-discovered dynamic skills, unified by 5-factor fitness scoring.**
|
|
291
|
+
|
|
292
|
+
Matrix skills (1,430 across 19 domains) provide a trusted baseline. Dynamic discovery via `find-skills` fills gaps when matrix fitness falls below 0.8. Community skills progress through a trust lifecycle (0.3 → 1.0) and can be promoted to the matrix.
|
|
293
|
+
|
|
294
|
+
### Alternatives Considered
|
|
295
|
+
|
|
296
|
+
| Alternative | Why Rejected |
|
|
297
|
+
|------------|-------------|
|
|
298
|
+
| Static skills only | Cannot adapt to new domains or technologies without manual curation |
|
|
299
|
+
| Dynamic discovery only | No quality baseline; every skill starts untrusted |
|
|
300
|
+
| Keyword-based matching | Misses semantic relationships; poor precision for related domains |
|
|
301
|
+
| Manual skill assignment per task | Doesn't scale; requires user expertise about available skills |
|
|
302
|
+
| Single fitness factor | Oversimplifies quality assessment; trust and freshness matter alongside relevance |
|
|
303
|
+
|
|
304
|
+
### Rationale
|
|
305
|
+
|
|
306
|
+
- Matrix skills provide guaranteed baseline quality (trust = 1.0) with zero discovery overhead
|
|
307
|
+
- Dynamic layer enables adaptation without requiring framework releases
|
|
308
|
+
- 5-factor fitness scoring balances multiple quality dimensions:
|
|
309
|
+
- 0.35 × Semantic Match — primary relevance
|
|
310
|
+
- 0.25 × Specificity — domain precision
|
|
311
|
+
- 0.20 × Trust Level — proven reliability
|
|
312
|
+
- 0.10 × Freshness — recency
|
|
313
|
+
- 0.10 × Success Rate — execution history
|
|
314
|
+
- Trust progression prevents untested skills from affecting critical workflows
|
|
315
|
+
- Variant-gated discovery (`:fast` skips, `:hard`/`:team` may trigger) keeps fast paths fast
|
|
316
|
+
|
|
317
|
+
### Trade-offs
|
|
318
|
+
|
|
319
|
+
| Benefit | Cost |
|
|
320
|
+
|---------|------|
|
|
321
|
+
| Pre-curated baseline ensures minimum quality | 1,430 skill entries require maintenance |
|
|
322
|
+
| Community discovery fills gaps automatically | Dynamic skills start untrusted (0.3) |
|
|
323
|
+
| 5-factor scoring balances multiple dimensions | Scoring is interpretive (AI evaluates), not deterministic |
|
|
324
|
+
| Trust progression protects quality | New skills need 10 successful executions to reach VALIDATED |
|
|
325
|
+
| Variant gating preserves fast path performance | Discovery only runs for hard/team variants |
|
|
326
|
+
|
|
327
|
+
### Evidence
|
|
328
|
+
|
|
329
|
+
- `matrix-skills/_index.yaml`: `total_matrix_skills: 1430`, 19 domain files, HSOL config with `async_threshold: 0.8`
|
|
330
|
+
- `rules/SKILLS.md`: Resolution algorithm (6 steps), fitness formula (5 factors with weights), trust lifecycle (4 stages with criteria)
|
|
331
|
+
- `matrix-skills/_dynamic.yaml`: Dynamic skill governance fields (owner, checksum, support_state, promotion_state)
|
|
332
|
+
- `_index.yaml` discovery config: `apply_for_variants: ["hard", "team"]` — confirms `:fast` skips discovery
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## ADR-007: 10 Laws Governance Model
|
|
337
|
+
|
|
338
|
+
### Context
|
|
339
|
+
|
|
340
|
+
AI models exhibit failure modes that traditional software does not — hallucination, role drift, requirement omission, silent halts, and context pollution. The framework needs a governance mechanism that prevents these failure modes across all interactions.
|
|
341
|
+
|
|
342
|
+
### Decision
|
|
343
|
+
|
|
344
|
+
**Define 10 immutable Orchestration Laws in CORE.md that the AI must follow before every response, enforced by self-check and anti-pattern detection.**
|
|
345
|
+
|
|
346
|
+
The laws cover: single point of truth, requirement integrity, explicit loading, deep embodiment, sequential execution, language compliance, recursive delegation, stateful handoff, constraint propagation, and deliverable integrity.
|
|
347
|
+
|
|
348
|
+
### Alternatives Considered
|
|
349
|
+
|
|
350
|
+
| Alternative | Why Rejected |
|
|
351
|
+
|------------|-------------|
|
|
352
|
+
| No governance (trust AI behavior) | AI models drift, skip steps, and hallucinate without guardrails |
|
|
353
|
+
| Soft guidelines ("try to...") | Non-binding language leads to inconsistent compliance |
|
|
354
|
+
| External validator (post-processing) | Catches errors after the fact; doesn't prevent them |
|
|
355
|
+
| Fewer laws (3–5) | Doesn't cover enough failure modes; gaps lead to exploitable weaknesses |
|
|
356
|
+
| More laws (20+) | Diminishing returns; context overhead; harder for AI to internalize |
|
|
357
|
+
|
|
358
|
+
### Rationale
|
|
359
|
+
|
|
360
|
+
- 10 laws cover the observed failure modes of AI models in multi-agent orchestration:
|
|
361
|
+
- L1 (Single Point of Truth) prevents conflicting instructions
|
|
362
|
+
- L2 (Requirement Integrity) prevents requirement omission/hallucination
|
|
363
|
+
- L3 (Explicit Loading) prevents assumption-based reasoning
|
|
364
|
+
- L4 (Deep Embodiment) prevents role drift during delegation
|
|
365
|
+
- L5 (Sequential Execution) prevents incomplete phase dependencies
|
|
366
|
+
- L6 (Language Compliance) prevents inconsistent localization
|
|
367
|
+
- L7 (Recursive Delegation) prevents meta agents from implementing
|
|
368
|
+
- L8 (Stateful Handoff) prevents destructive modification of prior deliverables
|
|
369
|
+
- L9 (Constraint Propagation) prevents constraint loss in delegation chains
|
|
370
|
+
- L10 (Deliverable Integrity) ensures quality standards are upheld
|
|
371
|
+
- Complemented by 10 anti-patterns (A1–A10) that define explicit violations with corrective actions
|
|
372
|
+
- Self-check before every response creates a behavioral feedback loop
|
|
373
|
+
|
|
374
|
+
### Trade-offs
|
|
375
|
+
|
|
376
|
+
| Benefit | Cost |
|
|
377
|
+
|---------|------|
|
|
378
|
+
| Prevents common AI failure modes | Adds structured overhead to every interaction |
|
|
379
|
+
| Laws are explicit and auditable | AI must internalize 10 rules before doing any work |
|
|
380
|
+
| Anti-patterns provide negative examples | Self-check consumes context window tokens |
|
|
381
|
+
| Self-check creates behavioral consistency | Cannot programmatically enforce compliance |
|
|
382
|
+
| Covers the full failure mode spectrum | May be over-prescriptive for simple tasks |
|
|
383
|
+
|
|
384
|
+
### Evidence
|
|
385
|
+
|
|
386
|
+
- `rules/CORE.md` v4.1: 10 laws defined in table format with enforcement column
|
|
387
|
+
- `rules/CORE.md`: Self-check block with 3 checkpoints executed before every response
|
|
388
|
+
- `rules/ERRORS.md`: Anti-patterns A1–A10 with explicit "Anti-Pattern" → "Correct Behavior" mappings
|
|
389
|
+
- `rules/CORE.md`: Prohibitions table mapping forbidden actions to correct alternatives
|
|
390
|
+
- Platform entry points (CLAUDE.md, COPILOT.md, etc.) all mandate loading CORE.md before any action
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
## Evidence Sources
|
|
395
|
+
|
|
396
|
+
| Source | Path | What It Provides |
|
|
397
|
+
|--------|------|------------------|
|
|
398
|
+
| CORE.md v4.1 | `rules/CORE.md` | 10 laws, identity binding, execution loop, prohibitions, self-check |
|
|
399
|
+
| PHASES.md | `rules/PHASES.md` | Phase output format, Golden Triangle format, requirements registry |
|
|
400
|
+
| AGENTS.md | `rules/AGENTS.md` | TIER 1/TIER 2 protocol, embodiment, completion guarantee |
|
|
401
|
+
| SKILLS.md | `rules/SKILLS.md` | HSOL resolution algorithm, fitness formula, trust lifecycle, variant gating |
|
|
402
|
+
| TEAMS.md | `rules/TEAMS.md` | Golden Triangle: 3 roles, debate (3 rounds), mailbox, C8 checkpoints |
|
|
403
|
+
| ERRORS.md | `rules/ERRORS.md` | Error classes (E1–E4), recovery, anti-patterns (A1–A10) |
|
|
404
|
+
| _index.yaml | `matrix-skills/_index.yaml` | 1,430 skills, 19 domains, HSOL config, discovery settings |
|
|
405
|
+
| _dynamic.yaml | `matrix-skills/_dynamic.yaml` | Dynamic skill governance fields |
|
|
406
|
+
| package.json | `package.json` | Zero deps, Node >=18, 5 platform scripts, files array |
|
|
407
|
+
| cli/install.js | `cli/install.js` | Platform configs, `{TOOL}` replacement maps, built-in modules only |
|
|
408
|
+
| CLAUDE.md | `CLAUDE.md` | Platform entry point: identity binding, CORE.md boot mandate |
|
|
409
|
+
| backend-engineer.md | `agents/backend-engineer.md` | Agent structure: frontmatter, cognitive anchor, profile, handoffs |
|
|
410
|
+
| agents/teams/ | `agents/teams/` | 17 team directories × 3 role files each |
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Knowledge Domain
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Domain model summary, entity overview, bounded contexts, and cross-references for the Agent Assistant framework
|
|
4
|
+
> **Last Updated**: 2026-03-26
|
|
5
|
+
> **Generated By**: docs-core skill
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Quick Summary
|
|
10
|
+
|
|
11
|
+
Agent Assistant's domain model is entirely file-based — every entity is a Markdown or YAML file stored in a well-defined directory structure. There is no database, no HTTP API, and no traditional ORM. The AI model reads these files at runtime as its operating instructions. The domain comprises 10 core entity types organized across 5 bounded contexts: Orchestration (rules and governance), Workflow (commands and variants), Agency (individual and team agents), Knowledge (matrix skill domains and skill modules), and Distribution (platform configs and entry points). Together, these entities define a framework of 21 specialist agents, 14 command routers with 54 workflow variants, 1,430 skills across 19 domains, and deployment to 5 AI coding platforms.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Table of Contents
|
|
16
|
+
|
|
17
|
+
1. [Quick Summary](#quick-summary)
|
|
18
|
+
2. [Sub-Files](#sub-files)
|
|
19
|
+
3. [Entity Overview Diagram](#entity-overview-diagram)
|
|
20
|
+
4. [Quick Facts](#quick-facts)
|
|
21
|
+
5. [Bounded Contexts](#bounded-contexts)
|
|
22
|
+
6. [Cross-References](#cross-references)
|
|
23
|
+
7. [Known Gaps and Open Questions](#known-gaps-and-open-questions)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Sub-Files
|
|
28
|
+
|
|
29
|
+
| # | File | Description |
|
|
30
|
+
|---|------|-------------|
|
|
31
|
+
| 1 | [01-entities.md](./01-entities.md) | Per-entity deep dive: attributes, types, constraints, relationships, and entity-relationship diagrams |
|
|
32
|
+
| 2 | [02-database-schema.md](./02-database-schema.md) | Explanation of the file-based data model (YAML frontmatter as schema, directory structure as organization) |
|
|
33
|
+
| 3 | [03-api-contracts.md](./03-api-contracts.md) | CLI interface specs, Prompt Command Interface (14 commands), and HSOL skill resolution protocol |
|
|
34
|
+
| 4 | [04-business-rules.md](./04-business-rules.md) | All business logic: Orchestration Laws, Tiered Execution, Phase Sequencing, HSOL Fitness Scoring, Trust Progression, Error Classification, Golden Triangle Debate, Deliverable Integrity |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Entity Overview Diagram
|
|
39
|
+
|
|
40
|
+
```mermaid
|
|
41
|
+
erDiagram
|
|
42
|
+
PLATFORM_ENTRY ||--|| RULE : "loads"
|
|
43
|
+
PLATFORM_ENTRY }|--|| PLATFORM_CONFIG : "configured by"
|
|
44
|
+
RULE ||--|{ COMMAND : "routes to"
|
|
45
|
+
COMMAND ||--|{ COMMAND_VARIANT : "has variants"
|
|
46
|
+
COMMAND_VARIANT }|--|{ AGENT : "delegates to"
|
|
47
|
+
COMMAND_VARIANT }|--o{ TEAM_AGENT : "delegates to (team variant)"
|
|
48
|
+
AGENT }|--|{ MATRIX_SKILL_DOMAIN : "inherits from"
|
|
49
|
+
MATRIX_SKILL_DOMAIN ||--|{ SKILL_MODULE : "contains"
|
|
50
|
+
HSOL_CONFIG ||--|{ MATRIX_SKILL_DOMAIN : "governs"
|
|
51
|
+
|
|
52
|
+
PLATFORM_ENTRY {
|
|
53
|
+
string filename PK "e.g. COPILOT.md"
|
|
54
|
+
string platform "cursor, copilot, claude, codex, gemini"
|
|
55
|
+
string boot_sequence "loads CORE.md"
|
|
56
|
+
string identity "Orchestrator role"
|
|
57
|
+
string routing "Command detection"
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
RULE {
|
|
61
|
+
string filename PK "e.g. CORE.md"
|
|
62
|
+
string purpose "Governance area"
|
|
63
|
+
string load_strategy "mandatory or on-demand"
|
|
64
|
+
string version "e.g. 4.1"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
COMMAND {
|
|
68
|
+
string filename PK "e.g. cook.md"
|
|
69
|
+
string description "Router purpose"
|
|
70
|
+
string version "1.0"
|
|
71
|
+
string category "engineering, meta, etc."
|
|
72
|
+
string execution_mode "router"
|
|
73
|
+
string routing_logic "Complexity-based"
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
COMMAND_VARIANT {
|
|
77
|
+
string filename PK "e.g. cook/fast.md"
|
|
78
|
+
string parent_command FK "cook"
|
|
79
|
+
string variant_type "fast, hard, team"
|
|
80
|
+
int phase_count "Number of phases"
|
|
81
|
+
string agents_used "Agent assignments"
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
AGENT {
|
|
85
|
+
string name PK "e.g. backend-engineer"
|
|
86
|
+
string description "Role title"
|
|
87
|
+
string profile "e.g. backend:execution"
|
|
88
|
+
string category "meta, execution, validation, research, support"
|
|
89
|
+
string version "1.0"
|
|
90
|
+
string core_directive "Primary mission"
|
|
91
|
+
string[] handoffs "Agents to hand off to"
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
TEAM_AGENT {
|
|
95
|
+
string filename PK "e.g. backend-team/techlead.md"
|
|
96
|
+
string team_domain "e.g. backend"
|
|
97
|
+
string role "techlead, executor, reviewer"
|
|
98
|
+
string base_agent FK "maps to individual agent"
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
MATRIX_SKILL_DOMAIN {
|
|
102
|
+
string filename PK "e.g. backend.yaml"
|
|
103
|
+
string domain_name "e.g. Backend Development"
|
|
104
|
+
string description "Domain purpose"
|
|
105
|
+
int skill_count "Number of skills"
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
SKILL_MODULE {
|
|
109
|
+
string skill_id PK "e.g. nextjs-app-router"
|
|
110
|
+
string category "core, expert, specialized, utility"
|
|
111
|
+
int priority_score "1-10"
|
|
112
|
+
string[] agents "Mapped agents"
|
|
113
|
+
string[] profiles "Mapped profiles"
|
|
114
|
+
string description "Purpose for AI recognition"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
PLATFORM_CONFIG {
|
|
118
|
+
string tool_key PK "cursor, copilot, etc."
|
|
119
|
+
string name "Display name"
|
|
120
|
+
string description "Platform description"
|
|
121
|
+
string paths "Directory structure"
|
|
122
|
+
string replacements "Placeholder map"
|
|
123
|
+
string assets "Platform-specific files"
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
HSOL_CONFIG {
|
|
127
|
+
string version PK "1.1"
|
|
128
|
+
float semantic_match_weight "0.35"
|
|
129
|
+
float specificity_weight "0.25"
|
|
130
|
+
float trust_weight "0.20"
|
|
131
|
+
float freshness_weight "0.10"
|
|
132
|
+
float success_rate_weight "0.10"
|
|
133
|
+
float matrix_sufficient "0.8 threshold"
|
|
134
|
+
float matrix_adequate "0.75 threshold"
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Quick Facts
|
|
141
|
+
|
|
142
|
+
| Key | Value |
|
|
143
|
+
|-----|-------|
|
|
144
|
+
| Total Entity Types | 10 |
|
|
145
|
+
| Bounded Contexts | 5 |
|
|
146
|
+
| Storage Format | Markdown (`.md`) + YAML (`.yaml`) |
|
|
147
|
+
| Schema Mechanism | YAML frontmatter in Markdown files |
|
|
148
|
+
| Database | None (file-based) |
|
|
149
|
+
| API | CLI commands + Prompt commands (no HTTP) |
|
|
150
|
+
| Individual Agents | 21 |
|
|
151
|
+
| Team Configurations | 17 teams × 3 roles = 51 team agents |
|
|
152
|
+
| Commands | 14 routers |
|
|
153
|
+
| Command Variants | 54 total |
|
|
154
|
+
| Rules | 7 files |
|
|
155
|
+
| Matrix Skill Domains | 19 + 2 special (_index.yaml, _dynamic.yaml) |
|
|
156
|
+
| Skill Modules | 1,430 |
|
|
157
|
+
| Supported Platforms | 5 (Cursor, Copilot, Claude, Codex, Antigravity/Gemini) |
|
|
158
|
+
| Platform Entry Points | 6 files (AGENT.md + 5 platform-specific) |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Bounded Contexts
|
|
163
|
+
|
|
164
|
+
### 1. Orchestration Context
|
|
165
|
+
|
|
166
|
+
Defines the governance rules and laws that control all framework behavior. The Orchestrator is the single entry point — it never implements, only delegates.
|
|
167
|
+
|
|
168
|
+
| Entity | Location | Count |
|
|
169
|
+
|--------|----------|-------|
|
|
170
|
+
| Rule | `rules/*.md` | 7 |
|
|
171
|
+
| HSOL Config | `matrix-skills/_index.yaml` | 1 |
|
|
172
|
+
|
|
173
|
+
### 2. Workflow Context
|
|
174
|
+
|
|
175
|
+
Defines how user requests are routed to phased workflows with sequential execution.
|
|
176
|
+
|
|
177
|
+
| Entity | Location | Count |
|
|
178
|
+
|--------|----------|-------|
|
|
179
|
+
| Command | `commands/*.md` | 14 |
|
|
180
|
+
| Command Variant | `commands/{cmd}/*.md` | 54 |
|
|
181
|
+
|
|
182
|
+
### 3. Agency Context
|
|
183
|
+
|
|
184
|
+
Defines the specialist agents that perform work, both individually and in teams.
|
|
185
|
+
|
|
186
|
+
| Entity | Location | Count |
|
|
187
|
+
|--------|----------|-------|
|
|
188
|
+
| Agent | `agents/*.md` | 21 |
|
|
189
|
+
| Team Agent | `agents/teams/{domain}-team/*.md` | 51 |
|
|
190
|
+
|
|
191
|
+
### 4. Knowledge Context
|
|
192
|
+
|
|
193
|
+
Defines the skill matrix that provides domain expertise to agents.
|
|
194
|
+
|
|
195
|
+
| Entity | Location | Count |
|
|
196
|
+
|--------|----------|-------|
|
|
197
|
+
| Matrix Skill Domain | `matrix-skills/*.yaml` | 19 |
|
|
198
|
+
| Skill Module | `skills/*/SKILL.md` | 1,430 |
|
|
199
|
+
|
|
200
|
+
### 5. Distribution Context
|
|
201
|
+
|
|
202
|
+
Defines how the framework is packaged and deployed to different AI platforms.
|
|
203
|
+
|
|
204
|
+
| Entity | Location | Count |
|
|
205
|
+
|--------|----------|-------|
|
|
206
|
+
| Platform Config | `cli/install.js` TOOLS object | 5 |
|
|
207
|
+
| Platform Entry Point | Root `*.md` files | 6 |
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Cross-References
|
|
212
|
+
|
|
213
|
+
| Topic | See |
|
|
214
|
+
|-------|-----|
|
|
215
|
+
| System architecture and data flow | [knowledge-architecture/00-index.md](../knowledge-architecture/00-index.md) |
|
|
216
|
+
| Project identity, tech stack, features | [knowledge-overview/00-index.md](../knowledge-overview/00-index.md) |
|
|
217
|
+
| HSOL orchestration blueprint | [SMART-SKILL-ORCHESTRATION-BLUEPRINT.md](../SMART-SKILL-ORCHESTRATION-BLUEPRINT.md) |
|
|
218
|
+
| Entity attributes and relationships | [01-entities.md](./01-entities.md) |
|
|
219
|
+
| File-based storage model | [02-database-schema.md](./02-database-schema.md) |
|
|
220
|
+
| CLI and Prompt Command interfaces | [03-api-contracts.md](./03-api-contracts.md) |
|
|
221
|
+
| Business rules and governance logic | [04-business-rules.md](./04-business-rules.md) |
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Known Gaps and Open Questions
|
|
226
|
+
|
|
227
|
+
1. **No formal schema validation** — YAML frontmatter in agent/command files is not programmatically validated against a schema definition. Correctness relies on convention.
|
|
228
|
+
2. **Skill module content structure** — While `SKILL.md` is the standard filename, the internal structure of skill modules is not enforced by a shared template across all 1,430 skills.
|
|
229
|
+
3. **Dynamic skill lifecycle tracking** — The `_dynamic.yaml` manifest tracks community skills, but runtime execution counts and success rates depend on the AI platform's ability to persist state between sessions.
|
|
230
|
+
4. **Team agent file standardization** — Team agent files (`techlead.md`, `executor.md`, `reviewer.md`) follow the Golden Triangle protocol, but their frontmatter schema is not documented in the same detail as individual agents.
|
|
231
|
+
5. **Cross-platform behavioral parity** — The 5 platforms have different capabilities (sub-agent support, file access, tool availability), but per-platform behavioral differences are not formally documented as entity constraints.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Evidence Sources
|
|
236
|
+
|
|
237
|
+
| Source | Path |
|
|
238
|
+
|--------|------|
|
|
239
|
+
| Package manifest | `package.json` |
|
|
240
|
+
| CLI installer (TOOLS config) | `cli/install.js` |
|
|
241
|
+
| Core rules | `rules/CORE.md` |
|
|
242
|
+
| Agent handling rules | `rules/AGENTS.md` |
|
|
243
|
+
| Phase execution rules | `rules/PHASES.md` |
|
|
244
|
+
| Skill resolution rules | `rules/SKILLS.md` |
|
|
245
|
+
| Team protocol rules | `rules/TEAMS.md` |
|
|
246
|
+
| Error handling rules | `rules/ERRORS.md` |
|
|
247
|
+
| Reference tables | `rules/REFERENCE.md` |
|
|
248
|
+
| HSOL index config | `matrix-skills/_index.yaml` |
|
|
249
|
+
| Example agent file | `agents/backend-engineer.md` |
|
|
250
|
+
| Example command router | `commands/cook.md` |
|
|
251
|
+
| Platform entry points | `AGENT.md`, `CLAUDE.md`, `COPILOT.md`, `CURSOR.md`, `CODEX.md`, `GEMINI.md` |
|