@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.
Files changed (142) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/README.md +3 -4
  3. package/agents/backend-engineer.md +3 -3
  4. package/agents/brainstormer.md +3 -3
  5. package/agents/business-analyst.md +3 -3
  6. package/agents/database-architect.md +3 -3
  7. package/agents/debugger.md +2 -2
  8. package/agents/designer.md +2 -2
  9. package/agents/devops-engineer.md +2 -2
  10. package/agents/docs-manager.md +23 -15
  11. package/agents/frontend-engineer.md +3 -3
  12. package/agents/game-engineer.md +3 -3
  13. package/agents/mobile-engineer.md +4 -4
  14. package/agents/performance-engineer.md +3 -3
  15. package/agents/planner.md +4 -4
  16. package/agents/project-manager.md +3 -3
  17. package/agents/researcher.md +3 -3
  18. package/agents/reviewer.md +3 -3
  19. package/agents/scouter.md +3 -3
  20. package/agents/security-engineer.md +3 -3
  21. package/agents/tech-lead.md +3 -3
  22. package/agents/tester.md +2 -2
  23. package/code-assistants/codex-assistant/CODEX.md +1 -2
  24. package/commands/ask/hard.md +1 -1
  25. package/commands/brainstorm/hard.md +1 -1
  26. package/commands/code/hard.md +1 -1
  27. package/commands/code.md +2 -7
  28. package/commands/cook/hard.md +1 -1
  29. package/commands/cook.md +1 -6
  30. package/commands/debug/hard.md +1 -1
  31. package/commands/debug.md +1 -6
  32. package/commands/design/hard.md +1 -1
  33. package/commands/design.md +1 -6
  34. package/commands/docs/audit.md +554 -78
  35. package/commands/docs/business.md +392 -76
  36. package/commands/docs/core.md +573 -74
  37. package/commands/docs.md +62 -61
  38. package/commands/fix/hard.md +1 -1
  39. package/commands/fix.md +1 -6
  40. package/commands/plan/hard.md +1 -1
  41. package/commands/plan.md +1 -6
  42. package/commands/report/fast.md +2 -2
  43. package/commands/report/hard.md +1 -1
  44. package/commands/report.md +2 -7
  45. package/commands/review/hard.md +1 -1
  46. package/commands/test/hard.md +1 -1
  47. package/commands/test.md +1 -6
  48. package/documents/HSOL-ASSESSMENT.md +6 -6
  49. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1 -1
  50. package/documents/business/business-features/00-index.md +101 -0
  51. package/documents/business/business-features/01-feature-inventory.md +341 -0
  52. package/documents/business/business-features/02-prioritization-moscow.md +148 -0
  53. package/documents/business/business-features/03-feature-specifications.md +511 -0
  54. package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
  55. package/documents/business/business-features/05-success-metrics.md +290 -0
  56. package/documents/business/business-glossary/00-index.md +89 -0
  57. package/documents/business/business-glossary/01-canonical-terms.md +428 -0
  58. package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
  59. package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
  60. package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
  61. package/documents/business/business-prd/00-index.md +107 -0
  62. package/documents/business/business-prd/01-executive-summary.md +131 -0
  63. package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
  64. package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
  65. package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
  66. package/documents/business/business-workflows/00-index.md +107 -0
  67. package/documents/business/business-workflows/01-actor-map.md +303 -0
  68. package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
  69. package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
  70. package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
  71. package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
  72. package/documents/knowledge-architecture/00-index.md +159 -0
  73. package/documents/knowledge-architecture/01-system-overview.md +240 -0
  74. package/documents/knowledge-architecture/02-components.md +419 -0
  75. package/documents/knowledge-architecture/03-data-flow.md +368 -0
  76. package/documents/knowledge-architecture/04-design-patterns.md +497 -0
  77. package/documents/knowledge-architecture/05-decisions.md +410 -0
  78. package/documents/knowledge-domain/00-index.md +251 -0
  79. package/documents/knowledge-domain/01-entities.md +582 -0
  80. package/documents/knowledge-domain/02-database-schema.md +138 -0
  81. package/documents/knowledge-domain/03-api-contracts.md +477 -0
  82. package/documents/knowledge-domain/04-business-rules.md +554 -0
  83. package/documents/knowledge-overview/00-index.md +107 -0
  84. package/documents/knowledge-overview/01-project-identity.md +162 -0
  85. package/documents/knowledge-overview/02-tech-stack.md +119 -0
  86. package/documents/knowledge-overview/03-features.md +232 -0
  87. package/documents/knowledge-overview/04-getting-started.md +394 -0
  88. package/documents/knowledge-source-base/00-index.md +107 -0
  89. package/documents/knowledge-source-base/01-directory-structure.md +312 -0
  90. package/documents/knowledge-source-base/02-entry-points.md +346 -0
  91. package/documents/knowledge-source-base/03-key-modules.md +581 -0
  92. package/documents/knowledge-source-base/04-configuration.md +467 -0
  93. package/documents/knowledge-standards/00-index.md +129 -0
  94. package/documents/knowledge-standards/01-code-style.md +161 -0
  95. package/documents/knowledge-standards/02-conventions.md +254 -0
  96. package/documents/knowledge-standards/03-git-workflow.md +228 -0
  97. package/documents/knowledge-standards/04-testing-standards.md +175 -0
  98. package/matrix-skills/_index.yaml +1 -1
  99. package/package.json +1 -1
  100. package/rules/AGENTS.md +1 -1
  101. package/rules/REFERENCE.md +18 -14
  102. package/rules/SKILLS.md +1 -1
  103. package/rules/TEAMS.md +1 -2
  104. package/skills/docs-audit/README.md +10 -8
  105. package/skills/docs-audit/SKILL.md +45 -41
  106. package/skills/docs-audit/references/scoring-framework.md +5 -5
  107. package/skills/docs-core/README.md +19 -14
  108. package/skills/docs-core/SKILL.md +189 -117
  109. package/skills/planning/references/codebase-understanding.md +5 -5
  110. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +0 -18
  111. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +0 -4
  112. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +0 -18
  113. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +0 -4
  114. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +0 -18
  115. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +0 -4
  116. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +0 -18
  117. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +0 -4
  118. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +0 -18
  119. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +0 -4
  120. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +0 -18
  121. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +0 -4
  122. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +0 -18
  123. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +0 -4
  124. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +0 -18
  125. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +0 -4
  126. package/commands/code/focus.md +0 -297
  127. package/commands/cook/focus.md +0 -209
  128. package/commands/debug/focus.md +0 -103
  129. package/commands/design/focus.md +0 -229
  130. package/commands/fix/focus.md +0 -145
  131. package/commands/plan/focus.md +0 -140
  132. package/commands/report/focus.md +0 -107
  133. package/commands/test/focus.md +0 -123
  134. package/documents/business/business-features.md +0 -894
  135. package/documents/business/business-glossary.md +0 -554
  136. package/documents/business/business-prd.md +0 -400
  137. package/documents/business/business-workflows.md +0 -713
  138. package/documents/knowledge-architecture.md +0 -621
  139. package/documents/knowledge-domain.md +0 -602
  140. package/documents/knowledge-overview.md +0 -316
  141. package/documents/knowledge-source-base.md +0 -581
  142. package/documents/knowledge-standards.md +0 -632
@@ -0,0 +1,582 @@
1
+ # Agent Assistant — Domain Entities
2
+
3
+ > **Purpose**: Complete per-entity deep dive with attributes, types, constraints, and relationships
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. [Entity Relationship Diagram](#entity-relationship-diagram)
13
+ 2. [Entity 1: Agent](#entity-1-agent)
14
+ 3. [Entity 2: Team Agent](#entity-2-team-agent)
15
+ 4. [Entity 3: Command](#entity-3-command)
16
+ 5. [Entity 4: Command Variant](#entity-4-command-variant)
17
+ 6. [Entity 5: Rule](#entity-5-rule)
18
+ 7. [Entity 6: Matrix Skill Domain](#entity-6-matrix-skill-domain)
19
+ 8. [Entity 7: Skill Module](#entity-7-skill-module)
20
+ 9. [Entity 8: Platform Config](#entity-8-platform-config)
21
+ 10. [Entity 9: Platform Entry Point](#entity-9-platform-entry-point)
22
+ 11. [Entity 10: HSOL Config](#entity-10-hsol-config)
23
+
24
+ ---
25
+
26
+ ## Entity Relationship Diagram
27
+
28
+ ```mermaid
29
+ erDiagram
30
+ PLATFORM_ENTRY ||--|| RULE_CORE : "boots via"
31
+ RULE_CORE ||--|{ RULE : "loads on demand"
32
+ PLATFORM_ENTRY }|--|| PLATFORM_CONFIG : "configured by"
33
+ RULE_CORE ||--|{ COMMAND : "routes to"
34
+ COMMAND ||--|{ COMMAND_VARIANT : "has"
35
+ COMMAND_VARIANT }|--|{ AGENT : "delegates phases to"
36
+ COMMAND_VARIANT }|--o{ TEAM_AGENT : "delegates phases to (team)"
37
+ AGENT }|--|{ MATRIX_SKILL_DOMAIN : "inherits skills from"
38
+ MATRIX_SKILL_DOMAIN ||--|{ SKILL_MODULE : "indexes"
39
+ HSOL_CONFIG ||--|{ MATRIX_SKILL_DOMAIN : "governs resolution for"
40
+ AGENT ||--o{ AGENT : "hands off to"
41
+ TEAM_AGENT }|--|| AGENT : "maps to"
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Entity 1: Agent
47
+
48
+ **Location**: `agents/*.md` (21 files)
49
+ **Format**: Markdown with YAML frontmatter
50
+ **Role**: Specialist workers that the Orchestrator delegates to during workflow phases
51
+
52
+ ### Frontmatter Attributes
53
+
54
+ | Attribute | Type | Required | Constraints | Example |
55
+ |-----------|------|----------|-------------|---------|
56
+ | `name` | string | yes | Unique across all agents; kebab-case | `backend-engineer` |
57
+ | `description` | string | yes | One-line role summary | `Principal Backend Architect — server-side logic, API design, scalable systems` |
58
+ | `profile` | string | yes | Format: `{domain}:{category}` — maps to HSOL resolution | `backend:execution` |
59
+ | `handoffs` | string[] | yes | List of agent names this agent can delegate to | `[tester, database-architect, performance-engineer]` |
60
+ | `version` | string | yes | Semantic version of agent definition | `1.0` |
61
+ | `category` | enum | yes | One of: `meta`, `execution`, `validation`, `research`, `support` | `execution` |
62
+
63
+ ### Body Sections
64
+
65
+ | Section | Required | Purpose |
66
+ |---------|----------|---------|
67
+ | Core Directive | yes | Single sentence defining the agent's primary mission |
68
+ | Expert Mindset | yes | YAML block of thinking patterns (THINK_LIKE, ALWAYS) |
69
+ | Thinking Protocol | yes | Multi-step decision procedure (Step 0: Context Check, Step 1+: domain-specific) |
70
+ | Skills | yes | HSOL matrix discovery declaration (profile + inherited domains) |
71
+ | Constraints | yes | Boundaries and prohibitions for the agent |
72
+ | Output Format | yes | Expected deliverable structure |
73
+
74
+ ### Category Distribution
75
+
76
+ | Category | Agents | Names |
77
+ |----------|--------|-------|
78
+ | meta | 2 | tech-lead, planner |
79
+ | execution | 5 | backend-engineer, frontend-engineer, database-architect, mobile-engineer, game-engineer |
80
+ | validation | 5 | tester, reviewer, security-engineer, performance-engineer, debugger |
81
+ | research | 4 | researcher, scouter, brainstormer, designer |
82
+ | support | 5 | docs-manager, devops-engineer, business-analyst, project-manager, reporter |
83
+
84
+ ### Agent Profile Mappings
85
+
86
+ | Agent | Profile | Primary Domain | Inherited Domains |
87
+ |-------|---------|---------------|-------------------|
88
+ | backend-engineer | `backend:execution` | backend | backend, architecture, quality, data, languages |
89
+ | frontend-engineer | `frontend:execution` | frontend | frontend, design, architecture |
90
+ | tech-lead | `architecture:orchestration` | architecture | architecture, quality, planning |
91
+ | researcher | `research:analysis` | research | research, planning |
92
+ | debugger | `quality:debugging` | quality | quality, performance |
93
+ | tester | `quality:validation` | quality | quality |
94
+ | security-engineer | `security:validation` | security | security, architecture |
95
+ | designer | `design:creative` | design | design, frontend |
96
+ | planner | `planning:analysis` | planning | planning, architecture |
97
+ | devops-engineer | `devops:execution` | devops | devops, security, cloud |
98
+ | database-architect | `data:execution` | data | data, performance, architecture |
99
+ | performance-engineer | `performance:validation` | performance | performance, backend, frontend |
100
+ | scouter | `research:exploration` | research | research, architecture |
101
+ | reviewer | `quality:review` | quality | quality, security, architecture |
102
+ | mobile-engineer | `mobile:execution` | mobile | mobile, design, frontend |
103
+ | game-engineer | `gaming:execution` | gaming | gaming, performance, frontend |
104
+ | brainstormer | `planning:discovery` | planning | planning, research |
105
+ | business-analyst | `planning:business` | planning | planning, management |
106
+ | docs-manager | `research:documentation` | research | research, planning, tools, quality |
107
+ | reporter | `reporting:synthesis` | research | research, planning, tools, quality |
108
+ | project-manager | `management:orchestration` | management | management, planning |
109
+
110
+ ### Relationships
111
+
112
+ | Direction | Target Entity | Cardinality | Description |
113
+ |-----------|---------------|-------------|-------------|
114
+ | Agent → Agent | Agent | many-to-many | Via `handoffs` array — defines allowed delegation chain |
115
+ | Agent → Matrix Skill Domain | Matrix Skill Domain | many-to-many | Via `inherit_from` in agent profile mapping |
116
+ | Command Variant → Agent | Agent | many-to-many | Variants assign agents to specific phases |
117
+
118
+ ---
119
+
120
+ ## Entity 2: Team Agent
121
+
122
+ **Location**: `agents/teams/{domain}-team/*.md` (51 files = 17 teams × 3 roles)
123
+ **Format**: Markdown with YAML frontmatter
124
+ **Role**: Golden Triangle role definitions for team-based workflow execution
125
+
126
+ ### Structure
127
+
128
+ Each team domain folder contains exactly 3 files:
129
+
130
+ | File | Role | Purpose |
131
+ |------|------|---------|
132
+ | `techlead.md` | Tech Lead | Task decomposer, dispute arbitrator, final authority |
133
+ | `executor.md` | Executor | Direct implementer, builds deliverables, defends work |
134
+ | `reviewer.md` | Reviewer | Quality gatekeeper, Devil's Advocate, challenges work |
135
+
136
+ ### Team Roster
137
+
138
+ | Team Domain | Tech Lead Agent | Executor Agent | Reviewer Focus |
139
+ |-------------|----------------|----------------|----------------|
140
+ | backend | tech-lead | backend-engineer | reviewer — security + performance |
141
+ | frontend | tech-lead | frontend-engineer | reviewer — design + performance |
142
+ | fullstack | tech-lead | backend-engineer + frontend-engineer | reviewer — security + performance |
143
+ | database | tech-lead | database-architect | reviewer — security + performance |
144
+ | research | researcher | scouter | brainstormer — critical evaluator |
145
+ | planning | planner | researcher | tech-lead — feasibility critic |
146
+ | qa | tester | tester | security-engineer + performance-engineer |
147
+ | design | designer | frontend-engineer | reviewer — UX + accessibility |
148
+ | debug | debugger | backend-engineer | reviewer — root-cause validator |
149
+ | devops | devops-engineer | backend-engineer | security-engineer |
150
+ | security | security-engineer | backend-engineer | reviewer — pen-test mindset |
151
+ | game | tech-lead | game-engineer | reviewer — game architecture + 60fps |
152
+ | mobile | tech-lead | mobile-engineer | reviewer — UX + platform compliance |
153
+ | performance | performance-engineer | backend-engineer | reviewer — measurement + regression |
154
+ | docs | docs-manager | researcher | reviewer — accuracy + completeness |
155
+ | project | project-manager | business-analyst | tech-lead — feasibility critic |
156
+ | report | reporter | scouter | reviewer — data accuracy + insight |
157
+
158
+ ### Relationships
159
+
160
+ | Direction | Target Entity | Cardinality | Description |
161
+ |-----------|---------------|-------------|-------------|
162
+ | Team Agent → Agent | Agent | many-to-one | Each team role maps to an individual agent definition |
163
+ | Command Variant (`:team`) → Team Agent | Team Agent | one-to-many | Team variants spawn all 3 roles per phase |
164
+
165
+ ### Constraints
166
+
167
+ - Exactly 3 roles per team, no exceptions
168
+ - Debate mechanism: max 3 rounds per task
169
+ - Output requires explicit consensus stamp: `✅ CONSENSUS: TechLead ✓ | Executor ✓ | Reviewer ✓`
170
+ - Communication through append-only Mailbox (`./reports/{topic}/MAILBOX-{date}.md`)
171
+
172
+ ---
173
+
174
+ ## Entity 3: Command
175
+
176
+ **Location**: `commands/*.md` (14 files)
177
+ **Format**: Markdown with YAML frontmatter
178
+ **Role**: Router files that analyze user input and route to the appropriate workflow variant
179
+
180
+ ### Frontmatter Attributes
181
+
182
+ | Attribute | Type | Required | Constraints | Example |
183
+ |-----------|------|----------|-------------|---------|
184
+ | `description` | string | yes | Router purpose | `🍳 Cook Router — Route to feature implementation workflows` |
185
+ | `version` | string | yes | Semantic version | `1.0` |
186
+ | `category` | string | yes | Domain category | `engineering` |
187
+ | `execution-mode` | enum | yes | Always `router` for commands | `router` |
188
+
189
+ ### Body Sections
190
+
191
+ | Section | Required | Purpose |
192
+ |---------|----------|---------|
193
+ | Pre-Flight | yes | Mandatory rule loading (CORE.md, PHASES.md, AGENTS.md) |
194
+ | Routing Logic | yes | Conditional logic to select variant based on complexity/context |
195
+ | Available Routes | yes | Table of all variants with usage guidance |
196
+ | Present Options | yes | User-facing selection prompt |
197
+
198
+ ### Command Registry
199
+
200
+ | Command | Slug | Category | Variants |
201
+ |---------|------|----------|----------|
202
+ | /cook | `cook` | engineering | fast, hard, team |
203
+ | /code | `code` | engineering | fast, hard, team |
204
+ | /fix | `fix` | engineering | fast, hard, team |
205
+ | /debug | `debug` | validation | fast, hard, team |
206
+ | /test | `test` | validation | fast, hard, team |
207
+ | /plan | `plan` | planning | fast, hard, team |
208
+ | /design | `design` | design | fast, hard, team |
209
+ | /review | `review` | validation | fast, hard, team |
210
+ | /report | `report` | support | fast, hard, team |
211
+ | /brainstorm | `brainstorm` | research | fast, hard, team |
212
+ | /docs | `docs` | support | core, business, audit |
213
+ | /deploy | `deploy` | devops | check, preview, production, rollback |
214
+ | /ask | `ask` | support | fast, hard |
215
+ | /auto | `auto` | meta | (meta-router — selects another command) |
216
+
217
+ ### Relationships
218
+
219
+ | Direction | Target Entity | Cardinality | Description |
220
+ |-----------|---------------|-------------|-------------|
221
+ | Command → Command Variant | Command Variant | one-to-many | Each router maps to 2-4 variant workflows |
222
+ | Rule (CORE.md) → Command | Command | one-to-many | CORE.md routing logic dispatches to commands |
223
+
224
+ ---
225
+
226
+ ## Entity 4: Command Variant
227
+
228
+ **Location**: `commands/{cmd}/*.md` (54 files total)
229
+ **Format**: Markdown with YAML frontmatter
230
+ **Role**: Complete phased workflow definitions with agent assignments per phase
231
+
232
+ ### Frontmatter Attributes
233
+
234
+ | Attribute | Type | Required | Constraints | Example |
235
+ |-----------|------|----------|-------------|---------|
236
+ | `description` | string | yes | Variant purpose | `⚡ Cook Fast — Quick feature implementation` |
237
+ | `version` | string | yes | Semantic version | `1.0` |
238
+ | `category` | string | yes | Domain category | `engineering` |
239
+ | `execution-mode` | enum | yes | Always `workflow` | `workflow` |
240
+
241
+ ### Body Structure
242
+
243
+ Each variant defines a sequence of phases:
244
+
245
+ | Phase Element | Purpose |
246
+ |---------------|---------|
247
+ | Phase number and name | Sequential identifier (Phase 1, Phase 2, etc.) |
248
+ | Agent assignment | Which agent executes this phase |
249
+ | Task description | What work the agent performs |
250
+ | Input constraints | Prior phase deliverables required |
251
+ | Exit criteria | Conditions that must be met to proceed |
252
+ | Deliverable | Output artifact(s) from the phase |
253
+
254
+ ### Variant Types
255
+
256
+ | Type | Available In | Description |
257
+ |------|-------------|-------------|
258
+ | `fast` | cook, code, fix, debug, test, plan, design, report, brainstorm, ask | Minimal phases, quick execution, skip discovery |
259
+ | `hard` | cook, code, fix, debug, test, plan, design, review, report, brainstorm, ask | Full workflow, all phases, full skill resolution |
260
+ | `team` | cook, code, fix, debug, test, plan, design, review, report, brainstorm | Golden Triangle (3 agents per phase) |
261
+ | `core` | docs | Core documentation workflow |
262
+ | `business` | docs | Business documentation workflow |
263
+ | `audit` | docs | Documentation audit workflow |
264
+ | `check` | deploy | Pre-deployment verification |
265
+ | `preview` | deploy | Staging deployment |
266
+ | `production` | deploy | Production deployment |
267
+ | `rollback` | deploy | Deployment rollback |
268
+
269
+ ### Relationships
270
+
271
+ | Direction | Target Entity | Cardinality | Description |
272
+ |-----------|---------------|-------------|-------------|
273
+ | Command Variant → Agent | Agent | many-to-many | Each phase assigns one agent |
274
+ | Command Variant → Team Agent | Team Agent | many-to-many | Team variants assign 3 agents per phase |
275
+ | Command → Command Variant | Command Variant | one-to-many | Router dispatches to variant |
276
+
277
+ ---
278
+
279
+ ## Entity 5: Rule
280
+
281
+ **Location**: `rules/*.md` (7 files)
282
+ **Format**: Pure Markdown
283
+ **Role**: Governance documents that define the Orchestrator's operating system
284
+
285
+ ### Rule Files
286
+
287
+ | File | Load Strategy | Purpose | Key Contents |
288
+ |------|--------------|---------|--------------|
289
+ | `CORE.md` | Mandatory — always loaded first | Single source of truth for identity, laws, routing | Identity binding, paths, command routing, tiered execution, 10 Orchestration Laws, prohibitions |
290
+ | `PHASES.md` | On-demand — when running phases | Phase execution protocol | Requirements intake, phase output format, Golden Triangle format, execution rules, deliverable size management |
291
+ | `AGENTS.md` | On-demand — when delegating | Agent handling protocol | Tiered execution details, tool discovery, context model comparison, agent categories, Golden Triangle roster |
292
+ | `SKILLS.md` | On-demand — when resolving skills | HSOL resolution rules | Resolution algorithm, fitness calculation, decision flow, trust progression, dynamic discovery |
293
+ | `TEAMS.md` | On-demand — when `:team` variant | Golden Triangle architecture | 3 roles definition, debate mechanism, communication protocol, consensus protocol, team roster |
294
+ | `ERRORS.md` | On-demand — when errors occur | Self-healing protocols | Error classification (E1-E4), recovery protocol, user escalation, anti-patterns (A1-A10), resilience guarantees |
295
+ | `REFERENCE.md` | On-demand — quick lookup | Fast lookup tables | Command table, agent table, natural language detection, deliverable paths |
296
+
297
+ ### Constraints
298
+
299
+ - `CORE.md` version 4.1 is the canonical operating system — must be loaded before any other action
300
+ - Rules are loaded on-demand to conserve context window
301
+ - Rules never contradict each other; `CORE.md` is authoritative when ambiguity arises
302
+
303
+ ### Relationships
304
+
305
+ | Direction | Target Entity | Cardinality | Description |
306
+ |-----------|---------------|-------------|-------------|
307
+ | Rule (CORE.md) → Command | Command | one-to-many | Routing logic dispatches to commands |
308
+ | Rule → Agent | Agent | governance | Laws constrain all agent behavior |
309
+ | Platform Entry → Rule | Rule | one-to-one | Entry point boots by loading CORE.md |
310
+
311
+ ---
312
+
313
+ ## Entity 6: Matrix Skill Domain
314
+
315
+ **Location**: `matrix-skills/*.yaml` (19 domain files + 2 special files)
316
+ **Format**: YAML
317
+ **Role**: Indexed registries of skills organized by technical domain
318
+
319
+ ### Domain File Attributes
320
+
321
+ | Attribute | Type | Required | Example |
322
+ |-----------|------|----------|---------|
323
+ | Domain key | string (PK) | yes | `backend` |
324
+ | `file` | string | yes | `backend.yaml` |
325
+ | `name` | string | yes | `Backend Development` |
326
+ | `description` | string | yes | `Server-side logic, APIs, data access` |
327
+ | `skill_count` | integer | yes | `208` |
328
+
329
+ ### Domain Registry
330
+
331
+ | Domain Key | Name | Skill Count |
332
+ |------------|------|-------------|
333
+ | backend | Backend Development | 208 |
334
+ | frontend | Frontend Development | 109 |
335
+ | architecture | System Architecture | 22 |
336
+ | quality | Quality Assurance | 61 |
337
+ | security | Security Engineering | 102 |
338
+ | design | UI/UX Design | 28 |
339
+ | planning | Planning & Analysis | 38 |
340
+ | devops | DevOps & Deployment | 66 |
341
+ | data | Data & Database | 33 |
342
+ | performance | Performance Engineering | 22 |
343
+ | research | Research & Documentation | 83 |
344
+ | mobile | Mobile Development | 27 |
345
+ | gaming | Game Development | 14 |
346
+ | management | Project Management | 21 |
347
+ | ai_ml | AI/ML Engineering | 229 |
348
+ | cloud | Cloud & Infrastructure | 67 |
349
+ | languages | Programming Languages | 57 |
350
+ | tools | Tools & Utilities | 234 |
351
+ | mcp | MCP & Agents | 9 |
352
+ | **Total** | | **1,430** |
353
+
354
+ ### Special Files
355
+
356
+ | File | Purpose |
357
+ |------|---------|
358
+ | `_index.yaml` | HSOL configuration: fitness weights, thresholds, trust progression, promotion pipeline, agent profile mappings, resolution rules |
359
+ | `_dynamic.yaml` | Community-installed dynamic skill tracking: owner, checksum, support state, promotion state, freshness metadata |
360
+
361
+ ### Relationships
362
+
363
+ | Direction | Target Entity | Cardinality | Description |
364
+ |-----------|---------------|-------------|-------------|
365
+ | Matrix Skill Domain → Skill Module | Skill Module | one-to-many | Each domain indexes multiple skills |
366
+ | Agent → Matrix Skill Domain | Matrix Skill Domain | many-to-many | Via `inherit_from` in agent profile |
367
+ | HSOL Config → Matrix Skill Domain | Matrix Skill Domain | one-to-many | HSOL governs all domain resolution |
368
+
369
+ ---
370
+
371
+ ## Entity 7: Skill Module
372
+
373
+ **Location**: `skills/*/SKILL.md` (1,430 modules)
374
+ **Format**: Markdown
375
+ **Role**: Self-contained domain knowledge modules that provide expertise to agents
376
+
377
+ ### Skill Entry Schema (in domain YAML)
378
+
379
+ | Attribute | Type | Required | Constraints | Example |
380
+ |-----------|------|----------|-------------|---------|
381
+ | `skill_id` | string (PK) | yes | Unique across all domains | `nextjs-app-router` |
382
+ | `category` | enum | yes | One of: `core`, `expert`, `specialized`, `utility` | `core` |
383
+ | `priority_score` | integer | yes | Range: 1-10 | `9` |
384
+ | `relevance_mapping.agents` | string[] | yes | List of agent IDs this skill applies to | `[backend-engineer, frontend-engineer]` |
385
+ | `relevance_mapping.profiles` | string[] | yes | Profile patterns | `[backend:execution, frontend:*]` |
386
+ | `description` | string | yes | Concise purpose for AI pattern matching | `Next.js App Router patterns and best practices` |
387
+
388
+ ### Priority Guide
389
+
390
+ | Score | Category | Usage |
391
+ |-------|----------|-------|
392
+ | 10 | Critical | Always required for the domain |
393
+ | 9 | Core | Standard for the domain |
394
+ | 8 | Expert | Specialized but commonly needed |
395
+ | 7 | Core | Useful in most domain contexts |
396
+ | 5-6 | Utility | Context-dependent usage |
397
+ | 1-4 | Rare | Edge cases only |
398
+
399
+ ### SKILL.md File Structure
400
+
401
+ Each `SKILL.md` contains domain expertise that the AI agent reads and applies during task execution. The file provides patterns, best practices, code examples, and constraints specific to a technology, pattern, or technique.
402
+
403
+ ### Relationships
404
+
405
+ | Direction | Target Entity | Cardinality | Description |
406
+ |-----------|---------------|-------------|-------------|
407
+ | Skill Module → Matrix Skill Domain | Matrix Skill Domain | many-to-one | Indexed in a domain's YAML file |
408
+ | Agent → Skill Module | Skill Module | many-to-many | Injected via HSOL fitness resolution |
409
+
410
+ ---
411
+
412
+ ## Entity 8: Platform Config
413
+
414
+ **Location**: `cli/install.js` — TOOLS object (5 configurations)
415
+ **Format**: JavaScript object literal
416
+ **Role**: Defines installation paths, placeholder replacements, and platform-specific assets for each supported AI tool
417
+
418
+ ### Platform Config Attributes
419
+
420
+ | Attribute | Type | Required | Description |
421
+ |-----------|------|----------|-------------|
422
+ | `name` | string | yes | Display name (e.g., `Cursor`) |
423
+ | `description` | string | yes | Platform description (e.g., `Cursor AI Editor`) |
424
+ | `paths` | object | yes | Directory paths for the platform (home, skills, agents, commands, agentAssistant) |
425
+ | `replacements` | object | yes | Placeholder-to-value map for `{TOOL}`, `{HOME}`, path patterns |
426
+ | `assets` | object | yes | Platform-specific files to copy (rules, entry points, configs) |
427
+
428
+ ### Platforms
429
+
430
+ | Tool Key | Name | Home Directory | Agent Assistant Path |
431
+ |----------|------|----------------|---------------------|
432
+ | `cursor` | Cursor | `~/.cursor/` | `~/.cursor/skills/agent-assistant/` |
433
+ | `copilot` | GitHub Copilot | `~/.copilot/` | `~/.copilot/skills/agent-assistant/` |
434
+ | `antigravity` | Antigravity (Gemini) | `~/.antigravity/` + `~/.gemini/` | `~/.gemini/antigravity/skills/agent-assistant/` |
435
+ | `claude` | Claude Code | `~/.claude/` | `~/.claude/skills/agent-assistant/` |
436
+ | `codex` | Codex | `~/.codex/` | `~/.codex/skills/agent-assistant/` |
437
+
438
+ ### Core Directories Copied
439
+
440
+ The installer copies these directories into each platform's `agentAssistant` path:
441
+
442
+ | Directory | Contents |
443
+ |-----------|----------|
444
+ | `agents/` | 21 individual agents + 17 team folders |
445
+ | `rules/` | 7 governance files |
446
+ | `documents/` | Knowledge base folders |
447
+ | `commands/` | 14 routers + 54 variant workflows |
448
+ | `matrix-skills/` | 19 domain YAMLs + 2 special files |
449
+
450
+ ### Placeholder Replacement
451
+
452
+ During installation, the following placeholders in all Markdown/YAML files are replaced with platform-specific values:
453
+
454
+ | Placeholder | Description | Example (Cursor) |
455
+ |-------------|-------------|-------------------|
456
+ | `~/.{TOOL}/skills/agent-assistant/` | Agent assistant root | `~/.cursor/skills/agent-assistant/` |
457
+ | `{TOOL}/agent-assistant/` | Relative path | `cursor/skills/agent-assistant/` |
458
+ | `{TOOL}` | Tool identifier | `cursor` |
459
+ | `{HOME}` | Home directory | `~` |
460
+ | `~/.agent/` | Legacy agent path | `~/.cursor/skills/agent-assistant/` |
461
+
462
+ ### Relationships
463
+
464
+ | Direction | Target Entity | Cardinality | Description |
465
+ |-----------|---------------|-------------|-------------|
466
+ | Platform Config → Platform Entry Point | Platform Entry Point | one-to-one | Each config corresponds to a platform entry |
467
+
468
+ ---
469
+
470
+ ## Entity 9: Platform Entry Point
471
+
472
+ **Location**: Root directory (6 files)
473
+ **Format**: Markdown
474
+ **Role**: Boot sequence files that initialize the Orchestrator identity and load CORE.md
475
+
476
+ ### Files
477
+
478
+ | File | Platform | Purpose |
479
+ |------|----------|---------|
480
+ | `AGENT.md` | Generic/Cursor | Default agent identity file |
481
+ | `CLAUDE.md` | Claude Code | Claude-specific boot with CLAUDE.md path conventions |
482
+ | `COPILOT.md` | GitHub Copilot | Copilot-specific boot (used as `.github/copilot-instructions.md` or prompts) |
483
+ | `CURSOR.md` | Cursor | Cursor-specific boot (copied to `.cursor/rules/`) |
484
+ | `CODEX.md` | Codex | Codex-specific boot with TOML config references |
485
+ | `GEMINI.md` | Antigravity/Gemini | Gemini-specific boot with antigravity path conventions |
486
+
487
+ ### Body Structure
488
+
489
+ All entry points follow the same pattern:
490
+
491
+ 1. **Identity binding** — Declares the Orchestrator role
492
+ 2. **Mandatory boot** — READ `CORE.md` immediately
493
+ 3. **Path configuration** — Platform-specific paths
494
+ 4. **Command routing** — How to detect and dispatch commands
495
+ 5. **Execution flow** — Phase execution reference
496
+
497
+ ### Relationships
498
+
499
+ | Direction | Target Entity | Cardinality | Description |
500
+ |-----------|---------------|-------------|-------------|
501
+ | Platform Entry → Rule (CORE.md) | Rule | one-to-one | Boot sequence always loads CORE.md first |
502
+ | Platform Config → Platform Entry | Platform Entry Point | one-to-one | Installer deploys the correct entry point per platform |
503
+
504
+ ---
505
+
506
+ ## Entity 10: HSOL Config
507
+
508
+ **Location**: `matrix-skills/_index.yaml` — `hsol` block
509
+ **Format**: YAML
510
+ **Role**: Central configuration for the Hybrid Skill Orchestration Layer including fitness scoring, thresholds, trust progression, and promotion pipeline
511
+
512
+ ### Attributes
513
+
514
+ | Attribute | Type | Value | Description |
515
+ |-----------|------|-------|-------------|
516
+ | `hsol.enabled` | boolean | `true` | HSOL active |
517
+ | `hsol.version` | string | `1.1` | HSOL protocol version |
518
+ | `hsol.fitness_weights.semantic_match` | float | `0.35` | Weight for semantic relevance |
519
+ | `hsol.fitness_weights.specificity_score` | float | `0.25` | Weight for skill specificity |
520
+ | `hsol.fitness_weights.trust_level` | float | `0.20` | Weight for trust rating |
521
+ | `hsol.fitness_weights.freshness_score` | float | `0.10` | Weight for recency |
522
+ | `hsol.fitness_weights.success_rate` | float | `0.10` | Weight for historical success |
523
+ | `hsol.thresholds.matrix_sufficient` | float | `0.8` | Above: execute with matrix, skip discovery |
524
+ | `hsol.thresholds.matrix_adequate` | float | `0.75` | Below: blocking discovery required |
525
+ | `hsol.thresholds.superiority_delta` | float | `0.15` | Dynamic must exceed matrix by this delta |
526
+ | `hsol.discovery.enabled` | boolean | `true` | Dynamic discovery enabled |
527
+ | `hsol.discovery.timeout_ms` | integer | `5000` | Discovery timeout in milliseconds |
528
+ | `hsol.discovery.cache_ttl_seconds` | integer | `3600` | Cache time-to-live |
529
+ | `hsol.discovery.async_threshold` | float | `0.8` | Matrix fitness above this skips discovery |
530
+ | `hsol.discovery.apply_for_variants` | string[] | `[hard, team]` | Variants that trigger discovery |
531
+ | `hsol.trust.new_skill` | float | `0.3` | Initial trust for new skills |
532
+ | `hsol.trust.after_3_executions` | float | `0.5` | Trust after 3 successes |
533
+ | `hsol.trust.after_10_executions` | float | `0.7` | Trust after 10 successes |
534
+ | `hsol.trust.matrix_promoted` | float | `1.0` | Trust for promoted matrix skills |
535
+ | `hsol.trust.decay_after_days` | integer | `90` | Days before trust starts decaying |
536
+ | `hsol.promotion.enabled` | boolean | `true` | Auto-promotion enabled |
537
+ | `hsol.promotion.min_executions` | integer | `10` | Minimum executions to promote |
538
+ | `hsol.promotion.min_success_rate` | float | `0.85` | Minimum success rate to promote |
539
+ | `hsol.promotion.max_inactive_days` | integer | `30` | Max days inactive before promotion blocked |
540
+ | `hsol.promotion.automatic` | boolean | `true` | Auto-promote when criteria met |
541
+
542
+ ### Dynamic Manifest Governance Fields
543
+
544
+ Required fields for each entry in `_dynamic.yaml`:
545
+
546
+ | Field | Type | Description |
547
+ |-------|------|-------------|
548
+ | `owner` | string | Skill author/repository |
549
+ | `checksum` | string | Integrity hash |
550
+ | `support_state` | enum | `supported`, `experimental`, `blocked` |
551
+ | `promotion_state` | enum | `new`, `evaluating`, `validated`, `promoted`, `blocked` |
552
+ | `freshness.last_verified` | date | Last verification timestamp |
553
+ | `freshness.stale_after_days` | integer | Days until considered stale |
554
+ | `installed_at` | date | Installation timestamp |
555
+ | `last_execution` | date | Last usage timestamp |
556
+
557
+ ### Relationships
558
+
559
+ | Direction | Target Entity | Cardinality | Description |
560
+ |-----------|---------------|-------------|-------------|
561
+ | HSOL Config → Matrix Skill Domain | Matrix Skill Domain | one-to-many | Governs resolution across all 19 domains |
562
+ | HSOL Config → Agent (profiles) | Agent | one-to-many | Maps agent profiles to domain inheritance |
563
+
564
+ ---
565
+
566
+ ## Evidence Sources
567
+
568
+ | Source | Path |
569
+ |--------|------|
570
+ | Agent file example | `agents/backend-engineer.md` |
571
+ | All agent files | `agents/*.md` |
572
+ | Team agent files | `agents/teams/` |
573
+ | Command router example | `commands/cook.md` |
574
+ | All command files | `commands/*.md` |
575
+ | Rule files | `rules/CORE.md`, `rules/PHASES.md`, `rules/AGENTS.md`, `rules/SKILLS.md`, `rules/TEAMS.md`, `rules/ERRORS.md`, `rules/REFERENCE.md` |
576
+ | HSOL config and domain registry | `matrix-skills/_index.yaml` |
577
+ | Dynamic manifest | `matrix-skills/_dynamic.yaml` |
578
+ | Domain YAML files | `matrix-skills/*.yaml` |
579
+ | Skill modules | `skills/*/SKILL.md` |
580
+ | CLI installer (Platform Config) | `cli/install.js` |
581
+ | Platform entry points | `AGENT.md`, `CLAUDE.md`, `COPILOT.md`, `CURSOR.md`, `CODEX.md`, `GEMINI.md` |
582
+ | Package manifest | `package.json` |