@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.
- package/CHANGELOG.md +11 -1
- 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/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/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 +512 -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 +369 -0
- package/documents/knowledge-architecture/04-design-patterns.md +498 -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 +583 -0
- package/documents/knowledge-domain/02-database-schema.md +138 -0
- package/documents/knowledge-domain/03-api-contracts.md +479 -0
- package/documents/knowledge-domain/04-business-rules.md +555 -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 +233 -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 +582 -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 +255 -0
- package/documents/knowledge-standards/03-git-workflow.md +228 -0
- package/documents/knowledge-standards/04-testing-standards.md +175 -0
- package/package.json +1 -1
- package/rules/REFERENCE.md +10 -6
- 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/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,240 @@
|
|
|
1
|
+
# Agent Assistant — System Overview
|
|
2
|
+
|
|
3
|
+
> **Purpose**: High-level architecture diagram, architecture style, layer boundaries, and key design decisions
|
|
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. [Architecture Style](#architecture-style)
|
|
13
|
+
2. [High-Level Architecture Diagram](#high-level-architecture-diagram)
|
|
14
|
+
3. [Layer Boundaries](#layer-boundaries)
|
|
15
|
+
4. [Key Design Decisions](#key-design-decisions)
|
|
16
|
+
5. [Governance Model](#governance-model)
|
|
17
|
+
6. [Evidence Sources](#evidence-sources)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Architecture Style
|
|
22
|
+
|
|
23
|
+
Agent Assistant is a **plugin-based orchestrator framework** where Markdown and YAML files serve as the instruction set, and the AI model itself serves as the runtime. There is no traditional server, no running process, and no compiled binary. The framework is distributed as an npm package containing structured instruction files that, once installed into an AI tool's global directory, reconfigure that tool's behavior into a multi-agent orchestration system.
|
|
24
|
+
|
|
25
|
+
### What It Is
|
|
26
|
+
|
|
27
|
+
| Characteristic | Description |
|
|
28
|
+
|---------------|-------------|
|
|
29
|
+
| **Type** | Instruction-distribution framework (content as code) |
|
|
30
|
+
| **Runtime** | The AI model reads and follows Markdown/YAML files at inference time |
|
|
31
|
+
| **Deployment** | `npm install` → `cli/install.js` copies files to `~/.{tool}/skills/agent-assistant/` |
|
|
32
|
+
| **Execution** | No process runs — the AI loads CORE.md as its "operating system" on every prompt |
|
|
33
|
+
| **State** | Stateless between sessions; file-based communication within sessions (Mailbox pattern) |
|
|
34
|
+
|
|
35
|
+
### What It Is NOT
|
|
36
|
+
|
|
37
|
+
- Not a web application or microservice
|
|
38
|
+
- Not a server that runs in the background
|
|
39
|
+
- Not a library with callable APIs
|
|
40
|
+
- Not a traditional plugin with lifecycle hooks
|
|
41
|
+
|
|
42
|
+
### Architectural Influences
|
|
43
|
+
|
|
44
|
+
The framework draws from several patterns without being a pure instance of any:
|
|
45
|
+
|
|
46
|
+
| Influence | How It Manifests |
|
|
47
|
+
|-----------|-----------------|
|
|
48
|
+
| **Orchestrator/Choreography** | Single orchestrator delegates to specialist agents via tiered execution |
|
|
49
|
+
| **Plugin Architecture** | 1,430 skill modules are independently discoverable and composable |
|
|
50
|
+
| **Pipeline** | Commands execute as phase-sequential pipelines with exit criteria |
|
|
51
|
+
| **Strategy Pattern** | Command routers select variant workflows (fast/hard/focus/team) at runtime |
|
|
52
|
+
| **Actor Model** | Agents communicate through append-only mailbox files, not direct calls |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## High-Level Architecture Diagram
|
|
57
|
+
|
|
58
|
+
```mermaid
|
|
59
|
+
graph TB
|
|
60
|
+
USER["👤 User Prompt"]
|
|
61
|
+
|
|
62
|
+
subgraph "PLATFORM LAYER — Entry Points"
|
|
63
|
+
direction LR
|
|
64
|
+
EP_CLAUDE["CLAUDE.md"]
|
|
65
|
+
EP_COPILOT["COPILOT.md"]
|
|
66
|
+
EP_CURSOR["CURSOR.md"]
|
|
67
|
+
EP_CODEX["CODEX.md"]
|
|
68
|
+
EP_GEMINI["GEMINI.md"]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
subgraph "ORCHESTRATOR CORE — Brain"
|
|
72
|
+
CORE["CORE.md v4.1<br/>Identity · 10 Laws<br/>Command Routing<br/>Tiered Execution"]
|
|
73
|
+
subgraph "Rules (loaded on demand)"
|
|
74
|
+
PHASES["PHASES.md"]
|
|
75
|
+
AGENTS_R["AGENTS.md"]
|
|
76
|
+
SKILLS_R["SKILLS.md"]
|
|
77
|
+
TEAMS_R["TEAMS.md"]
|
|
78
|
+
ERRORS_R["ERRORS.md"]
|
|
79
|
+
REF["REFERENCE.md"]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
subgraph "COMMAND LAYER — Routing"
|
|
84
|
+
ROUTERS["14 Command Routers<br/>cook · fix · plan · debug<br/>test · review · docs · design<br/>deploy · report · brainstorm<br/>ask · code · auto"]
|
|
85
|
+
VARIANTS["Workflow Variants<br/>:fast · :hard · :focus · :team"]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
subgraph "AGENT LAYER — Execution"
|
|
89
|
+
META["Meta Agents<br/>tech-lead · planner"]
|
|
90
|
+
EXEC["Execution Agents<br/>backend · frontend · mobile<br/>game · database-architect"]
|
|
91
|
+
VALID["Validation Agents<br/>tester · reviewer · security<br/>performance · debugger"]
|
|
92
|
+
RESEARCH["Research Agents<br/>researcher · scouter<br/>brainstormer · designer"]
|
|
93
|
+
SUPPORT["Support Agents<br/>docs-manager · devops<br/>business-analyst · PM · reporter"]
|
|
94
|
+
GT["Golden Triangle Teams<br/>17 teams × 3 roles"]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
subgraph "SKILL LAYER — Knowledge"
|
|
98
|
+
MATRIX["Matrix Skills<br/>19 Domains · 1,430 Skills"]
|
|
99
|
+
DYN["Dynamic Skills<br/>Community Discovery"]
|
|
100
|
+
HSOL["HSOL Engine<br/>Fitness = 0.35×Semantic<br/>+ 0.25×Specificity<br/>+ 0.20×Trust<br/>+ 0.10×Freshness<br/>+ 0.10×Success"]
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
subgraph "DISTRIBUTION LAYER"
|
|
104
|
+
CLI["cli/install.js"]
|
|
105
|
+
NPM["npm Package"]
|
|
106
|
+
CA["Code Assistants<br/>Platform Templates"]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
USER --> EP_CLAUDE & EP_COPILOT & EP_CURSOR & EP_CODEX & EP_GEMINI
|
|
110
|
+
EP_CLAUDE & EP_COPILOT & EP_CURSOR & EP_CODEX & EP_GEMINI --> CORE
|
|
111
|
+
CORE --> PHASES & AGENTS_R & SKILLS_R & TEAMS_R & ERRORS_R & REF
|
|
112
|
+
CORE --> ROUTERS
|
|
113
|
+
ROUTERS --> VARIANTS
|
|
114
|
+
VARIANTS --> META & EXEC & VALID & RESEARCH & SUPPORT
|
|
115
|
+
VARIANTS -->|":team variant"| GT
|
|
116
|
+
META & EXEC & VALID & RESEARCH & SUPPORT --> HSOL
|
|
117
|
+
GT --> HSOL
|
|
118
|
+
HSOL --> MATRIX
|
|
119
|
+
HSOL -->|"fitness < 0.8"| DYN
|
|
120
|
+
NPM --> CLI
|
|
121
|
+
CLI -->|"copy + {TOOL} replace"| EP_CLAUDE & EP_COPILOT & EP_CURSOR & EP_CODEX & EP_GEMINI
|
|
122
|
+
CA --> CLI
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Layer Boundaries
|
|
128
|
+
|
|
129
|
+
The framework is organized into 5 distinct layers. Each layer has a clear responsibility and communicates with adjacent layers through well-defined interfaces.
|
|
130
|
+
|
|
131
|
+
### Layer 1: Platform Layer (Entry Points)
|
|
132
|
+
|
|
133
|
+
| Attribute | Value |
|
|
134
|
+
|-----------|-------|
|
|
135
|
+
| **Files** | `CLAUDE.md`, `COPILOT.md`, `CURSOR.md`, `CODEX.md`, `GEMINI.md`, `AGENT.md` |
|
|
136
|
+
| **Responsibility** | Bind the AI's identity as Orchestrator; load CORE.md; set platform-specific paths |
|
|
137
|
+
| **Boundary** | Each file is identical in structure — only `{TOOL}` paths differ (resolved at install time) |
|
|
138
|
+
| **Communicates With** | Orchestrator Core (downward only) |
|
|
139
|
+
|
|
140
|
+
### Layer 2: Orchestrator Core (Rules Engine)
|
|
141
|
+
|
|
142
|
+
| Attribute | Value |
|
|
143
|
+
|-----------|-------|
|
|
144
|
+
| **Files** | `rules/CORE.md`, `rules/PHASES.md`, `rules/AGENTS.md`, `rules/SKILLS.md`, `rules/TEAMS.md`, `rules/ERRORS.md`, `rules/REFERENCE.md` |
|
|
145
|
+
| **Responsibility** | Define all operational protocols — identity, laws, phase execution, agent delegation, skill resolution, team collaboration, error recovery |
|
|
146
|
+
| **Boundary** | CORE.md is always loaded; other rule files are loaded on demand (L3: Explicit Loading) |
|
|
147
|
+
| **Communicates With** | Platform Layer (upward, identity binding), Command Layer (downward, routing) |
|
|
148
|
+
|
|
149
|
+
### Layer 3: Command Layer (Routing)
|
|
150
|
+
|
|
151
|
+
| Attribute | Value |
|
|
152
|
+
|-----------|-------|
|
|
153
|
+
| **Files** | `commands/*.md` (14 routers), `commands/{cmd}/*.md` (variant workflows) |
|
|
154
|
+
| **Responsibility** | Analyze user input, assess complexity, route to appropriate variant workflow |
|
|
155
|
+
| **Boundary** | Routers never implement — they load pre-flight rules, analyze, and redirect to a variant file |
|
|
156
|
+
| **Communicates With** | Orchestrator Core (upward, rule loading), Agent Layer (downward, phase delegation) |
|
|
157
|
+
|
|
158
|
+
### Layer 4: Agent Layer (Execution)
|
|
159
|
+
|
|
160
|
+
| Attribute | Value |
|
|
161
|
+
|-----------|-------|
|
|
162
|
+
| **Files** | `agents/*.md` (21 agents), `agents/teams/*/` (17 teams × 3 roles) |
|
|
163
|
+
| **Responsibility** | Execute phase work — implement, validate, research, or support based on specialist role |
|
|
164
|
+
| **Boundary** | Agents are invoked via TIER 1 (sub-agent) or TIER 2 (embodiment); output must meet exit criteria |
|
|
165
|
+
| **Communicates With** | Command Layer (upward, phase assignments), Skill Layer (downward, knowledge injection), other Agents (lateral, via Mailbox) |
|
|
166
|
+
|
|
167
|
+
### Layer 5: Skill Layer (Knowledge)
|
|
168
|
+
|
|
169
|
+
| Attribute | Value |
|
|
170
|
+
|-----------|-------|
|
|
171
|
+
| **Files** | `matrix-skills/*.yaml` (19 domain files + _index.yaml + _dynamic.yaml), `skills/*/SKILL.md` (1,430+ modules) |
|
|
172
|
+
| **Responsibility** | Provide domain-specific knowledge to agents based on profile matching and fitness scoring |
|
|
173
|
+
| **Boundary** | Skills are read-only knowledge modules — they do not execute, call APIs, or modify state |
|
|
174
|
+
| **Communicates With** | Agent Layer (upward, injected via HSOL based on agent profile) |
|
|
175
|
+
|
|
176
|
+
### Cross-Cutting: Distribution Layer
|
|
177
|
+
|
|
178
|
+
| Attribute | Value |
|
|
179
|
+
|-----------|-------|
|
|
180
|
+
| **Files** | `cli/install.js`, `package.json`, `code-assistants/*/` |
|
|
181
|
+
| **Responsibility** | Package the framework as an npm module and install to platform-specific directories with `{TOOL}` placeholder substitution |
|
|
182
|
+
| **Boundary** | Operates only at install/uninstall time — has zero runtime presence |
|
|
183
|
+
| **Communicates With** | All layers (copies and transforms all files) |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Key Design Decisions
|
|
188
|
+
|
|
189
|
+
| # | Decision | Choice | Rationale | Impact |
|
|
190
|
+
|---|----------|--------|-----------|--------|
|
|
191
|
+
| 1 | **Instruction language** | Markdown + YAML | AI models natively understand Markdown; no compilation needed; version-controllable | Framework logic is human-readable but not unit-testable |
|
|
192
|
+
| 2 | **Runtime model** | AI model as runtime | Zero infrastructure cost; runs wherever the AI runs; no server to maintain | Behavior depends on AI model capability and compliance |
|
|
193
|
+
| 3 | **Dependency policy** | Zero production dependencies | Maximum portability; no supply-chain risk; CLI uses only Node.js built-in modules (`fs`, `path`, `os`, `readline`) | Limited to what built-in modules provide |
|
|
194
|
+
| 4 | **Platform strategy** | Write-once, deploy-to-many via `{TOOL}` placeholders | Single codebase for 5 platforms; install-time substitution avoids runtime branching | Platform-specific capabilities (e.g., sub-agents) vary silently |
|
|
195
|
+
| 5 | **Agent execution** | Tiered: sub-agent isolation (TIER 1) preferred, shared embodiment (TIER 2) as fallback | Isolated context prevents pollution; fallback guarantees completion on all platforms | Quality may differ between tiers |
|
|
196
|
+
| 6 | **Quality mechanism** | Adversarial Golden Triangle (3 agents, max 3 debate rounds) | Structured tension produces higher quality than parallel cooperation or single-agent review | Higher token cost per phase when using `:team` variant |
|
|
197
|
+
| 7 | **Skill resolution** | HSOL two-layer (matrix + dynamic) with 5-factor fitness scoring | Pre-curated skills guarantee baseline; community discovery fills gaps; trust progression prevents quality regression | Fitness scoring is interpretive (AI evaluates), not deterministic |
|
|
198
|
+
| 8 | **Phase execution** | Strictly sequential (Phase N → N+1) with exit criteria | Prevents downstream errors from incomplete phases; immutable prior deliverables (L8) | No parallelism within a workflow (except team roles within a phase) |
|
|
199
|
+
| 9 | **Error handling** | 5-class self-healing with auto-recovery | Silent halts are forbidden; every error leads to completion or explicit user decision | Recovery logic is behavioral, not programmatic |
|
|
200
|
+
| 10 | **Governance** | 10 immutable Orchestration Laws in CORE.md | Prevent common AI failure modes (assumption, hallucination, skipping, silent halt) | Adds overhead to every interaction (self-check before every response) |
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Governance Model
|
|
205
|
+
|
|
206
|
+
The framework enforces behavior through 10 Orchestration Laws defined in `rules/CORE.md` v4.1:
|
|
207
|
+
|
|
208
|
+
| Law | Name | Enforcement Mechanism |
|
|
209
|
+
|-----|------|----------------------|
|
|
210
|
+
| L1 | Single Point of Truth | Platform entry file loads CORE.md first; all other rules loaded on demand |
|
|
211
|
+
| L2 | Requirement Integrity | 100% fidelity — parse EVERY requirement into a numbered registry; zero loss |
|
|
212
|
+
| L3 | Explicit Loading | State what you loaded before using it; no implicit assumptions |
|
|
213
|
+
| L4 | Deep Embodiment | When embodying an agent (TIER 2), follow their Directive + Protocol + Constraints exactly |
|
|
214
|
+
| L5 | Sequential Execution | Phase N completes and meets exit criteria before Phase N+1 starts |
|
|
215
|
+
| L6 | Language Compliance | Respond in user's language; code, comments, and report files always in English |
|
|
216
|
+
| L7 | Recursive Delegation | Meta agents (tech-lead, planner) coordinate only — they NEVER implement |
|
|
217
|
+
| L8 | Stateful Handoff | Prior deliverables are immutable constraints for downstream phases |
|
|
218
|
+
| L9 | Constraint Propagation | scouter → planner → implementer chain is locked — constraints flow forward |
|
|
219
|
+
| L10 | Deliverable Integrity | Files created by an agent define the quality standard |
|
|
220
|
+
|
|
221
|
+
Additionally, 10 anti-patterns (A1–A10) are defined in `rules/ERRORS.md` as explicit violations with corrective actions.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Evidence Sources
|
|
226
|
+
|
|
227
|
+
| Source | Path | What It Provides |
|
|
228
|
+
|--------|------|------------------|
|
|
229
|
+
| CORE.md v4.1 | `rules/CORE.md` | Identity binding, 10 laws, command routing table, tiered execution protocol, prohibitions |
|
|
230
|
+
| PHASES.md | `rules/PHASES.md` | Phase output format (standard + Golden Triangle), requirements registry template |
|
|
231
|
+
| AGENTS.md | `rules/AGENTS.md` | TIER 1/TIER 2 protocols, tool discovery, agent categories (5), completion guarantee |
|
|
232
|
+
| SKILLS.md | `rules/SKILLS.md` | HSOL overview, resolution algorithm, fitness formula (5 weighted factors), trust lifecycle |
|
|
233
|
+
| TEAMS.md | `rules/TEAMS.md` | Golden Triangle roles (3), debate mechanism (max 3 rounds), C8 enforcement checkpoints |
|
|
234
|
+
| ERRORS.md | `rules/ERRORS.md` | Error classes (E1–E4), recovery protocol, 10 anti-patterns (A1–A10) |
|
|
235
|
+
| REFERENCE.md | `rules/REFERENCE.md` | Command table (14 commands), agent table (21 agents), deliverable path conventions |
|
|
236
|
+
| _index.yaml | `matrix-skills/_index.yaml` | HSOL config, total skill count (1,430), discovery settings, async threshold (0.8) |
|
|
237
|
+
| package.json | `package.json` | Version 1.3.0, zero production deps, 5 platform install scripts, engine >=18.0.0 |
|
|
238
|
+
| cli/install.js | `cli/install.js` | Platform configs (5), `{TOOL}` replacement maps, directory structure per platform |
|
|
239
|
+
| cook.md | `commands/cook.md` | Example command router — routing logic, pre-flight rule loading, variant table |
|
|
240
|
+
| backend-engineer.md | `agents/backend-engineer.md` | Example agent — YAML frontmatter with profile/handoffs, cognitive anchor, skill injection |
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
# Agent Assistant — Components
|
|
2
|
+
|
|
3
|
+
> **Purpose**: Per-component breakdown of every major subsystem — responsibility, interfaces, dependencies, and file locations
|
|
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. [Component Map](#component-map)
|
|
13
|
+
2. [Orchestrator](#orchestrator)
|
|
14
|
+
3. [Rules Engine](#rules-engine)
|
|
15
|
+
4. [Command Routers](#command-routers)
|
|
16
|
+
5. [Agents](#agents)
|
|
17
|
+
6. [Team Agents (Golden Triangle)](#team-agents-golden-triangle)
|
|
18
|
+
7. [Matrix Skills](#matrix-skills)
|
|
19
|
+
8. [Skills (Modules)](#skills-modules)
|
|
20
|
+
9. [CLI Installer](#cli-installer)
|
|
21
|
+
10. [Code Assistants (Platform Templates)](#code-assistants-platform-templates)
|
|
22
|
+
11. [Platform Entry Points](#platform-entry-points)
|
|
23
|
+
12. [Web Application](#web-application)
|
|
24
|
+
13. [Evidence Sources](#evidence-sources)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Component Map
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
graph LR
|
|
32
|
+
subgraph "Distribution"
|
|
33
|
+
CLI["CLI Installer"]
|
|
34
|
+
CA["Code Assistants"]
|
|
35
|
+
PKG["npm Package"]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
subgraph "Core Framework"
|
|
39
|
+
EP["Platform Entry Points"]
|
|
40
|
+
ORC["Orchestrator<br/>(CORE.md)"]
|
|
41
|
+
RULES["Rules Engine<br/>(7 files)"]
|
|
42
|
+
CMD["Command Routers<br/>(14 routers)"]
|
|
43
|
+
AG["Agents<br/>(21 individual)"]
|
|
44
|
+
TM["Team Agents<br/>(17 × 3 roles)"]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
subgraph "Knowledge"
|
|
48
|
+
MS["Matrix Skills<br/>(19 domains)"]
|
|
49
|
+
SK["Skill Modules<br/>(1,430+)"]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
subgraph "Independent"
|
|
53
|
+
WEB["Web App<br/>(React + Vite)"]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
PKG --> CLI
|
|
57
|
+
CA --> CLI
|
|
58
|
+
CLI --> EP
|
|
59
|
+
EP --> ORC
|
|
60
|
+
ORC --> RULES
|
|
61
|
+
ORC --> CMD
|
|
62
|
+
CMD --> AG
|
|
63
|
+
CMD --> TM
|
|
64
|
+
AG --> MS
|
|
65
|
+
AG --> SK
|
|
66
|
+
TM --> MS
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Orchestrator
|
|
72
|
+
|
|
73
|
+
| Attribute | Value |
|
|
74
|
+
|-----------|-------|
|
|
75
|
+
| **Name** | Orchestrator |
|
|
76
|
+
| **Responsibility** | Central coordination — detect commands, load rules, delegate to agents, verify exit criteria, deliver results. Never implements directly. |
|
|
77
|
+
| **Identity** | Defined by the `🆔 IDENTITY — ABSOLUTE BINDING` block in CORE.md: "YOU ARE THE ORCHESTRATOR — NOT AN IMPLEMENTER" |
|
|
78
|
+
| **Key Files** | `rules/CORE.md` (v4.1 — primary), platform entry points (load CORE.md) |
|
|
79
|
+
| **Interfaces** | **Input**: User natural language or `/command` syntax. **Output**: Structured phase deliverables per PHASES.md format. |
|
|
80
|
+
| **Dependencies** | Rules Engine (on-demand loading), Command Routers (routing), Agents (delegation) |
|
|
81
|
+
| **Governance** | 10 Orchestration Laws (L1–L10), self-check before every response, prohibitions table |
|
|
82
|
+
|
|
83
|
+
### Execution Loop (from CORE.md)
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
1. DETECT command (explicit /command or natural language mapping)
|
|
87
|
+
2. LOAD workflow file (command router → variant)
|
|
88
|
+
3. EXECUTE phases in order (one at a time, same reply)
|
|
89
|
+
4. VERIFY exit criteria per phase
|
|
90
|
+
5. DELIVER final result
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Rules Engine
|
|
96
|
+
|
|
97
|
+
| Attribute | Value |
|
|
98
|
+
|-----------|-------|
|
|
99
|
+
| **Name** | Rules Engine |
|
|
100
|
+
| **Responsibility** | Define all operational protocols the orchestrator and agents follow — identity, phases, delegation, skills, teams, errors, reference tables |
|
|
101
|
+
| **Key Files** | `rules/CORE.md`, `rules/PHASES.md`, `rules/AGENTS.md`, `rules/SKILLS.md`, `rules/TEAMS.md`, `rules/ERRORS.md`, `rules/REFERENCE.md` |
|
|
102
|
+
| **Interfaces** | Read-only Markdown files loaded by the orchestrator on demand per L3 (Explicit Loading) |
|
|
103
|
+
| **Dependencies** | None — rules are self-contained |
|
|
104
|
+
| **Loading Strategy** | CORE.md always loaded first; others loaded contextually |
|
|
105
|
+
|
|
106
|
+
### Rule File Inventory
|
|
107
|
+
|
|
108
|
+
| File | Purpose | Load Trigger |
|
|
109
|
+
|------|---------|-------------|
|
|
110
|
+
| `CORE.md` v4.1 | Identity, 10 laws, command routing, tiered execution, prohibitions | Always (mandatory boot) |
|
|
111
|
+
| `PHASES.md` | Phase output format, requirements registry, Golden Triangle phase format | Running workflow phases |
|
|
112
|
+
| `AGENTS.md` | TIER 1/TIER 2 protocol, tool discovery, agent categories, completion guarantee | Delegating to agents |
|
|
113
|
+
| `SKILLS.md` | HSOL resolution algorithm, fitness formula, trust progression, complexity gating | Skill resolution needed |
|
|
114
|
+
| `TEAMS.md` | Golden Triangle roles, debate mechanism (max 3 rounds), C8 checkpoints, mailbox protocol | `:team` variant invoked |
|
|
115
|
+
| `ERRORS.md` | Error classification (E1–E4), recovery protocol, anti-patterns (A1–A10) | Error occurs |
|
|
116
|
+
| `REFERENCE.md` | Command table, agent table, natural language detection map, deliverable paths | Quick lookup |
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Command Routers
|
|
121
|
+
|
|
122
|
+
| Attribute | Value |
|
|
123
|
+
|-----------|-------|
|
|
124
|
+
| **Name** | Command Routers |
|
|
125
|
+
| **Responsibility** | Parse user input, assess complexity, route to the correct workflow variant |
|
|
126
|
+
| **Key Files** | `commands/*.md` (14 routers), `commands/{cmd}/*.md` (variant workflows) |
|
|
127
|
+
| **Interfaces** | **Input**: User arguments (`$ARGUMENTS`). **Output**: Redirect to variant file. |
|
|
128
|
+
| **Dependencies** | Rules Engine (pre-flight loading of CORE.md, PHASES.md, AGENTS.md) |
|
|
129
|
+
| **Pattern** | Strategy Pattern — runtime selection of variant based on complexity analysis |
|
|
130
|
+
|
|
131
|
+
### Command Inventory (from REFERENCE.md)
|
|
132
|
+
|
|
133
|
+
| Command | Router File | Variants | Category |
|
|
134
|
+
|---------|------------|----------|----------|
|
|
135
|
+
| `/cook` | `commands/cook.md` | fast, hard, focus, team | Engineering |
|
|
136
|
+
| `/fix` | `commands/fix.md` | fast, hard, focus, team | Engineering |
|
|
137
|
+
| `/plan` | `commands/plan.md` | fast, hard, focus, team | Planning |
|
|
138
|
+
| `/debug` | `commands/debug.md` | fast, hard, focus, team | Validation |
|
|
139
|
+
| `/test` | `commands/test.md` | fast, hard, focus, team | Validation |
|
|
140
|
+
| `/review` | `commands/review.md` | fast, hard | Validation |
|
|
141
|
+
| `/docs` | `commands/docs.md` | core, business, audit | Documentation |
|
|
142
|
+
| `/design` | `commands/design.md` | fast, hard, focus, team | Design |
|
|
143
|
+
| `/deploy` | `commands/deploy.md` | check, preview, production, rollback | Operations |
|
|
144
|
+
| `/report` | `commands/report.md` | fast, hard, focus, team | Reporting |
|
|
145
|
+
| `/brainstorm` | `commands/brainstorm.md` | fast, hard | Research |
|
|
146
|
+
| `/ask` | `commands/ask.md` | fast, hard | Research |
|
|
147
|
+
| `/code` | `commands/code.md` | fast, hard, focus, team | Engineering |
|
|
148
|
+
| `/auto` | `commands/auto.md` | — | Meta |
|
|
149
|
+
|
|
150
|
+
### Router Structure (common pattern from cook.md)
|
|
151
|
+
|
|
152
|
+
Each router follows a standard structure:
|
|
153
|
+
|
|
154
|
+
1. **YAML frontmatter** — description, version, category, execution-mode: router
|
|
155
|
+
2. **PRE-FLIGHT** — Mandatory rule loading (CORE.md → PHASES.md → AGENTS.md)
|
|
156
|
+
3. **ROUTING LOGIC** — Complexity-based conditional routing
|
|
157
|
+
4. **AVAILABLE ROUTES** — Table of variant → use-case mappings
|
|
158
|
+
5. **PRESENT OPTIONS** — User-facing selection when ambiguous
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Agents
|
|
163
|
+
|
|
164
|
+
| Attribute | Value |
|
|
165
|
+
|-----------|-------|
|
|
166
|
+
| **Name** | Individual Agents |
|
|
167
|
+
| **Responsibility** | Execute specialist work within a phase — implement, validate, research, or support |
|
|
168
|
+
| **Key Files** | `agents/*.md` (21 files) |
|
|
169
|
+
| **Interfaces** | **Input**: Phase assignment with requirements + acceptance criteria. **Output**: Deliverable meeting exit criteria. |
|
|
170
|
+
| **Dependencies** | Rules Engine (protocol), Skill Layer (knowledge injection via HSOL), other Agents (handoffs) |
|
|
171
|
+
| **Invocation** | TIER 1 (sub-agent with isolated context) or TIER 2 (embodiment in shared context) |
|
|
172
|
+
|
|
173
|
+
### Agent Inventory (from REFERENCE.md and AGENTS.md)
|
|
174
|
+
|
|
175
|
+
| Agent | Category | Profile | Primary Responsibility | Handoffs To |
|
|
176
|
+
|-------|----------|---------|----------------------|-------------|
|
|
177
|
+
| `tech-lead` | meta | — | Architecture decisions, orchestration | All agents |
|
|
178
|
+
| `planner` | meta | — | Task breakdown, roadmap creation | tech-lead, engineers |
|
|
179
|
+
| `backend-engineer` | execution | `backend:execution` | APIs, services, server-side logic | tester, database-architect, performance-engineer, devops-engineer, frontend-engineer, security-engineer |
|
|
180
|
+
| `frontend-engineer` | execution | `frontend:execution` | UI components, styling, interactions | tester, designer, backend-engineer |
|
|
181
|
+
| `database-architect` | execution | `data:execution` | Schema design, queries, migrations | backend-engineer, performance-engineer |
|
|
182
|
+
| `mobile-engineer` | execution | `mobile:execution` | iOS, Android, React Native | tester, designer |
|
|
183
|
+
| `game-engineer` | execution | `gaming:execution` | Game logic, Unity, Unreal | tester, designer |
|
|
184
|
+
| `tester` | validation | `quality:validation` | Unit, integration, E2E tests | debugger, engineers |
|
|
185
|
+
| `reviewer` | validation | `quality:review` | Code review, PR feedback | engineers |
|
|
186
|
+
| `security-engineer` | validation | `security:validation` | Security audit, penetration testing | backend-engineer, devops-engineer |
|
|
187
|
+
| `performance-engineer` | validation | `performance:validation` | Profiling, optimization | backend-engineer, frontend-engineer |
|
|
188
|
+
| `debugger` | validation | `quality:debugging` | Bug investigation and resolution | engineers |
|
|
189
|
+
| `researcher` | research | `research:exploration` | External research | tech-lead, planner |
|
|
190
|
+
| `scouter` | research | `research:codebase` | Codebase analysis | tech-lead, planner |
|
|
191
|
+
| `brainstormer` | research | `research:ideation` | Creative ideation, requirements | planner |
|
|
192
|
+
| `designer` | research | `design:execution` | UI/UX design | frontend-engineer |
|
|
193
|
+
| `docs-manager` | support | `research:documentation` | Technical documentation | tech-lead, engineers |
|
|
194
|
+
| `devops-engineer` | support | `devops:execution` | CI/CD, deployment | backend-engineer, security-engineer |
|
|
195
|
+
| `business-analyst` | support | `management:analysis` | Business requirements | planner, tech-lead |
|
|
196
|
+
| `project-manager` | support | `management:coordination` | Project coordination | planner, tech-lead |
|
|
197
|
+
| `reporter` | support | `research:reporting` | Reports, summaries | tech-lead |
|
|
198
|
+
|
|
199
|
+
### Agent File Structure (common pattern)
|
|
200
|
+
|
|
201
|
+
Each agent file follows a standard structure:
|
|
202
|
+
|
|
203
|
+
1. **YAML frontmatter** — `name`, `description`, `profile`, `handoffs`, `version`, `category`
|
|
204
|
+
2. **Cognitive Anchor** — `🔒 COGNITIVE ANCHOR — MANDATORY OPERATING SYSTEM` binding block
|
|
205
|
+
3. **Identity table** — ID, Role, Profile, Reports To, Consults, Confidence threshold
|
|
206
|
+
4. **Core Directive** — One-sentence mission statement
|
|
207
|
+
5. **Skills section** — Matrix discovery reference with profile and domain list
|
|
208
|
+
6. **Expert Mindset** — YAML think-like patterns and always/never rules
|
|
209
|
+
7. **Thinking Protocol** — Step-by-step workflow the agent must follow
|
|
210
|
+
8. **Output Format** — Structured deliverable template
|
|
211
|
+
9. **Constraints** — Quality gates and boundaries
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Team Agents (Golden Triangle)
|
|
216
|
+
|
|
217
|
+
| Attribute | Value |
|
|
218
|
+
|-----------|-------|
|
|
219
|
+
| **Name** | Golden Triangle Teams |
|
|
220
|
+
| **Responsibility** | Execute phases through adversarial collaboration — 3 agents per phase producing higher quality through structured debate |
|
|
221
|
+
| **Key Files** | `agents/teams/*/` (17 team directories, each containing `techlead.md`, `executor.md`, `reviewer.md`) |
|
|
222
|
+
| **Interfaces** | **Input**: Phase assignment from `:team` variant. **Output**: Consensus-stamped deliverable. **Lateral**: Mailbox at `./reports/{topic}/MAILBOX-{date}.md` |
|
|
223
|
+
| **Dependencies** | TEAMS.md (protocol), Shared Task List (state), Mailbox (communication) |
|
|
224
|
+
| **Activation** | Only when user invokes `:team` variant (e.g., `/cook:team`) |
|
|
225
|
+
|
|
226
|
+
### Team Roster (17 teams × 3 roles = 51 team agents)
|
|
227
|
+
|
|
228
|
+
| Team Directory | Domain |
|
|
229
|
+
|---------------|--------|
|
|
230
|
+
| `backend-team/` | Backend implementation |
|
|
231
|
+
| `database-team/` | Database design |
|
|
232
|
+
| `debug-team/` | Bug diagnosis |
|
|
233
|
+
| `design-team/` | UI/UX |
|
|
234
|
+
| `devops-team/` | Infrastructure |
|
|
235
|
+
| `docs-team/` | Documentation |
|
|
236
|
+
| `frontend-team/` | Frontend implementation |
|
|
237
|
+
| `fullstack-team/` | Full-stack |
|
|
238
|
+
| `game-team/` | Game development |
|
|
239
|
+
| `mobile-team/` | Mobile development |
|
|
240
|
+
| `performance-team/` | Performance optimization |
|
|
241
|
+
| `planning-team/` | Project planning |
|
|
242
|
+
| `project-team/` | Project coordination |
|
|
243
|
+
| `qa-team/` | Quality assurance |
|
|
244
|
+
| `report-team/` | Reporting |
|
|
245
|
+
| `research-team/` | Research |
|
|
246
|
+
| `security-team/` | Security |
|
|
247
|
+
|
|
248
|
+
### Golden Triangle Roles (from TEAMS.md)
|
|
249
|
+
|
|
250
|
+
| Role | File | Function | Authority |
|
|
251
|
+
|------|------|----------|-----------|
|
|
252
|
+
| **Tech Lead** | `techlead.md` | Decomposes tasks, coordinates, arbitrates disputes, synthesizes final output | FINAL on all decisions |
|
|
253
|
+
| **Executor** | `executor.md` | Implements the deliverable, defends work with evidence | Owns implementation decisions |
|
|
254
|
+
| **Reviewer** | `reviewer.md` | Challenges with devil's advocate mindset, validates quality | Can FAIL submissions, escalate disputes |
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Matrix Skills
|
|
259
|
+
|
|
260
|
+
| Attribute | Value |
|
|
261
|
+
|-----------|-------|
|
|
262
|
+
| **Name** | Matrix Skills (HSOL Static Layer) |
|
|
263
|
+
| **Responsibility** | Provide a pre-curated registry of 1,430 skills across 19 domains, indexed for fitness-based resolution |
|
|
264
|
+
| **Key Files** | `matrix-skills/_index.yaml` (central registry), `matrix-skills/_dynamic.yaml` (community skills), `matrix-skills/{domain}.yaml` (19 domain files) |
|
|
265
|
+
| **Interfaces** | **Input**: Agent profile (e.g., `backend:execution`). **Output**: Sorted skill set filtered by relevance and fitness score. |
|
|
266
|
+
| **Dependencies** | None — static YAML data |
|
|
267
|
+
|
|
268
|
+
### Domain File Inventory (19 domains)
|
|
269
|
+
|
|
270
|
+
| File | Domain |
|
|
271
|
+
|------|--------|
|
|
272
|
+
| `ai-ml.yaml` | AI and Machine Learning |
|
|
273
|
+
| `architecture.yaml` | Software Architecture |
|
|
274
|
+
| `backend.yaml` | Backend Development |
|
|
275
|
+
| `cloud.yaml` | Cloud Infrastructure |
|
|
276
|
+
| `data.yaml` | Data Engineering |
|
|
277
|
+
| `design.yaml` | UI/UX Design |
|
|
278
|
+
| `devops.yaml` | DevOps and CI/CD |
|
|
279
|
+
| `frontend.yaml` | Frontend Development |
|
|
280
|
+
| `gaming.yaml` | Game Development |
|
|
281
|
+
| `languages.yaml` | Programming Languages |
|
|
282
|
+
| `management.yaml` | Project Management |
|
|
283
|
+
| `mcp.yaml` | Model Context Protocol |
|
|
284
|
+
| `mobile.yaml` | Mobile Development |
|
|
285
|
+
| `performance.yaml` | Performance Engineering |
|
|
286
|
+
| `planning.yaml` | Planning |
|
|
287
|
+
| `quality.yaml` | Quality Assurance |
|
|
288
|
+
| `research.yaml` | Research |
|
|
289
|
+
| `security.yaml` | Security |
|
|
290
|
+
| `tools.yaml` | Developer Tools |
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Skills (Modules)
|
|
295
|
+
|
|
296
|
+
| Attribute | Value |
|
|
297
|
+
|-----------|-------|
|
|
298
|
+
| **Name** | Skill Modules |
|
|
299
|
+
| **Responsibility** | Provide domain-specific knowledge, best practices, and patterns that agents read to produce higher-quality output |
|
|
300
|
+
| **Key Files** | `skills/*/SKILL.md` (1,430+ directories, each with a SKILL.md file) |
|
|
301
|
+
| **Interfaces** | Read-only — agents load SKILL.md content and follow its instructions |
|
|
302
|
+
| **Dependencies** | Referenced by Matrix Skills domain files; discovered by HSOL resolution or `find-skills` dynamic discovery |
|
|
303
|
+
| **Structure** | Each skill is a self-contained directory with at minimum a `SKILL.md` defining best practices |
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## CLI Installer
|
|
308
|
+
|
|
309
|
+
| Attribute | Value |
|
|
310
|
+
|-----------|-------|
|
|
311
|
+
| **Name** | CLI Installer |
|
|
312
|
+
| **Responsibility** | Copy framework files from npm package to each platform's global directory, performing `{TOOL}` placeholder substitution |
|
|
313
|
+
| **Key Files** | `cli/install.js` (main), `cli/README.md` (usage docs) |
|
|
314
|
+
| **Interfaces** | **Input**: `npx agent-assistant install [tool\|--all]`. **Output**: Files in `~/.{tool}/skills/agent-assistant/`. |
|
|
315
|
+
| **Dependencies** | Node.js >=18.0.0, built-in modules only (`fs`, `path`, `os`, `readline`) |
|
|
316
|
+
| **Platforms Supported** | Cursor, GitHub Copilot, Claude Code (via Antigravity path), Codex, Antigravity/Gemini |
|
|
317
|
+
|
|
318
|
+
### CLI Commands (from package.json)
|
|
319
|
+
|
|
320
|
+
| Command | Action |
|
|
321
|
+
|---------|--------|
|
|
322
|
+
| `npx agent-assistant install cursor` | Install to `~/.cursor/skills/agent-assistant/` |
|
|
323
|
+
| `npx agent-assistant install copilot` | Install to `~/.copilot/skills/agent-assistant/` |
|
|
324
|
+
| `npx agent-assistant install antigravity` | Install to Gemini/Antigravity path |
|
|
325
|
+
| `npx agent-assistant install codex` | Install to `~/.codex/skills/agent-assistant/` |
|
|
326
|
+
| `npx agent-assistant install --all` | Install to all platforms |
|
|
327
|
+
| `npx agent-assistant uninstall [tool]` | Remove from specified platform |
|
|
328
|
+
| `npx agent-assistant list` | Show installed platforms |
|
|
329
|
+
|
|
330
|
+
### Replacement Maps (from cli/install.js)
|
|
331
|
+
|
|
332
|
+
The installer replaces these placeholders in all copied Markdown/YAML files:
|
|
333
|
+
|
|
334
|
+
| Placeholder | Example Replacement (Cursor) |
|
|
335
|
+
|------------|------------------------------|
|
|
336
|
+
| `~/.{TOOL}/skills/agent-assistant/` | `~/.cursor/skills/agent-assistant/` |
|
|
337
|
+
| `{TOOL}/agent-assistant/` | `cursor/skills/agent-assistant/` |
|
|
338
|
+
| `{TOOL}` | `cursor` |
|
|
339
|
+
| `{HOME}` | `~` |
|
|
340
|
+
| `~/.agent/` | `~/.cursor/skills/agent-assistant/` |
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
## Code Assistants (Platform Templates)
|
|
345
|
+
|
|
346
|
+
| Attribute | Value |
|
|
347
|
+
|-----------|-------|
|
|
348
|
+
| **Name** | Code Assistants |
|
|
349
|
+
| **Responsibility** | Provide platform-specific assets that are copied alongside the core framework during installation |
|
|
350
|
+
| **Key Files** | `code-assistants/cursor-assistant/`, `code-assistants/copilot-assistant/`, `code-assistants/claude-assistant/`, `code-assistants/codex-assistant/`, `code-assistants/antigravity-assistant/` |
|
|
351
|
+
| **Interfaces** | Consumed by `cli/install.js` during installation — not used at runtime |
|
|
352
|
+
| **Dependencies** | CLI Installer (consumer) |
|
|
353
|
+
|
|
354
|
+
Each platform template directory contains platform-specific configuration files:
|
|
355
|
+
|
|
356
|
+
| Platform | Notable Assets |
|
|
357
|
+
|----------|---------------|
|
|
358
|
+
| Cursor | Rules directory, `.cursorrules` file |
|
|
359
|
+
| Copilot | `agent-assistant.agent.md` (VS Code prompt file) |
|
|
360
|
+
| Claude Code | Claude-specific configuration |
|
|
361
|
+
| Codex | Codex-specific configuration |
|
|
362
|
+
| Antigravity | Gemini-specific configuration |
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## Platform Entry Points
|
|
367
|
+
|
|
368
|
+
| Attribute | Value |
|
|
369
|
+
|-----------|-------|
|
|
370
|
+
| **Name** | Platform Entry Points |
|
|
371
|
+
| **Responsibility** | Serve as the first file the AI reads — bind identity, set paths, and mandate CORE.md loading |
|
|
372
|
+
| **Key Files** | `CLAUDE.md`, `COPILOT.md`, `CURSOR.md`, `CODEX.md`, `GEMINI.md`, `AGENT.md` (generic) |
|
|
373
|
+
| **Interfaces** | **Input**: AI model boot. **Output**: Orchestrator identity activation. |
|
|
374
|
+
| **Dependencies** | `rules/CORE.md` (loaded immediately) |
|
|
375
|
+
| **Pattern** | All entry points share identical structure with platform-specific paths resolved at install |
|
|
376
|
+
|
|
377
|
+
### Common Structure (verified from CLAUDE.md, COPILOT.md)
|
|
378
|
+
|
|
379
|
+
1. **Mandatory boot sequence** — Read CORE.md before any action
|
|
380
|
+
2. **Identity binding** — "YOU ARE THE ORCHESTRATOR — NOT AN IMPLEMENTER"
|
|
381
|
+
3. **Path definitions** — COMMANDS, AGENTS, SKILLS, RULES, REPORTS
|
|
382
|
+
4. **Command routing table** — Input → file mapping
|
|
383
|
+
5. **Tiered execution** — TIER 1 mandatory, TIER 2 fallback
|
|
384
|
+
6. **Prohibitions** — Never write code, debug, test, or design directly
|
|
385
|
+
7. **Self-check** — Execute before every response
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## Web Application
|
|
390
|
+
|
|
391
|
+
| Attribute | Value |
|
|
392
|
+
|-----------|-------|
|
|
393
|
+
| **Name** | Marketing Website |
|
|
394
|
+
| **Responsibility** | Public-facing marketing site for the Agent Assistant project |
|
|
395
|
+
| **Key Files** | `web/` directory (React 19 + Vite + Tailwind CSS v4) |
|
|
396
|
+
| **Interfaces** | Standalone web application deployed to Vercel |
|
|
397
|
+
| **Dependencies** | Independent sub-project — not part of the core framework or npm distribution |
|
|
398
|
+
| **Relationship** | Listed in the workspace but architecturally separate from the orchestrator framework |
|
|
399
|
+
|
|
400
|
+
---
|
|
401
|
+
|
|
402
|
+
## Evidence Sources
|
|
403
|
+
|
|
404
|
+
| Source | Path | What It Provides |
|
|
405
|
+
|--------|------|------------------|
|
|
406
|
+
| CORE.md v4.1 | `rules/CORE.md` | Orchestrator identity, execution loop, 10 laws, command routing, platform table |
|
|
407
|
+
| AGENTS.md | `rules/AGENTS.md` | Tiered execution, agent categories (5), tool discovery, completion guarantee |
|
|
408
|
+
| TEAMS.md | `rules/TEAMS.md` | Golden Triangle: 3 roles, debate mechanism, mailbox protocol, C8 checkpoints |
|
|
409
|
+
| SKILLS.md | `rules/SKILLS.md` | HSOL algorithm, fitness formula, trust progression lifecycle |
|
|
410
|
+
| REFERENCE.md | `rules/REFERENCE.md` | Command table (14), agent table (21), NLP detection, deliverable paths |
|
|
411
|
+
| PHASES.md | `rules/PHASES.md` | Phase output format (standard + Golden Triangle), requirements registry |
|
|
412
|
+
| ERRORS.md | `rules/ERRORS.md` | Error classification (5 classes), recovery protocol, anti-patterns (10) |
|
|
413
|
+
| _index.yaml | `matrix-skills/_index.yaml` | HSOL config, 1,430 skills, 19 domains, discovery settings |
|
|
414
|
+
| package.json | `package.json` | Version, scripts, deps, files array, engine requirements |
|
|
415
|
+
| cli/install.js | `cli/install.js` | Platform configs (5), replacement maps, directory paths |
|
|
416
|
+
| cook.md | `commands/cook.md` | Example router: pre-flight, routing logic, variant table |
|
|
417
|
+
| backend-engineer.md | `agents/backend-engineer.md` | Example agent: frontmatter, cognitive anchor, profile, handoffs |
|
|
418
|
+
| docs-manager.md | `agents/docs-manager.md` | Example support agent: profile `research:documentation` |
|
|
419
|
+
| agents/teams/ | `agents/teams/` | 17 team directories confirmed via directory listing |
|