@namch/agent-assistant 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/agents/backend-engineer.md +3 -3
  3. package/agents/brainstormer.md +3 -3
  4. package/agents/business-analyst.md +3 -3
  5. package/agents/database-architect.md +3 -3
  6. package/agents/debugger.md +2 -2
  7. package/agents/designer.md +2 -2
  8. package/agents/devops-engineer.md +2 -2
  9. package/agents/docs-manager.md +23 -15
  10. package/agents/frontend-engineer.md +3 -3
  11. package/agents/game-engineer.md +3 -3
  12. package/agents/mobile-engineer.md +4 -4
  13. package/agents/performance-engineer.md +3 -3
  14. package/agents/planner.md +4 -4
  15. package/agents/project-manager.md +3 -3
  16. package/agents/researcher.md +3 -3
  17. package/agents/reviewer.md +3 -3
  18. package/agents/scouter.md +3 -3
  19. package/agents/security-engineer.md +3 -3
  20. package/agents/tech-lead.md +3 -3
  21. package/agents/tester.md +2 -2
  22. package/commands/docs/audit.md +554 -78
  23. package/commands/docs/business.md +392 -76
  24. package/commands/docs/core.md +573 -74
  25. package/commands/docs.md +62 -61
  26. package/documents/business/business-features/00-index.md +101 -0
  27. package/documents/business/business-features/01-feature-inventory.md +341 -0
  28. package/documents/business/business-features/02-prioritization-moscow.md +148 -0
  29. package/documents/business/business-features/03-feature-specifications.md +512 -0
  30. package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
  31. package/documents/business/business-features/05-success-metrics.md +290 -0
  32. package/documents/business/business-glossary/00-index.md +89 -0
  33. package/documents/business/business-glossary/01-canonical-terms.md +428 -0
  34. package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
  35. package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
  36. package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
  37. package/documents/business/business-prd/00-index.md +107 -0
  38. package/documents/business/business-prd/01-executive-summary.md +131 -0
  39. package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
  40. package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
  41. package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
  42. package/documents/business/business-workflows/00-index.md +107 -0
  43. package/documents/business/business-workflows/01-actor-map.md +303 -0
  44. package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
  45. package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
  46. package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
  47. package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
  48. package/documents/knowledge-architecture/00-index.md +159 -0
  49. package/documents/knowledge-architecture/01-system-overview.md +240 -0
  50. package/documents/knowledge-architecture/02-components.md +419 -0
  51. package/documents/knowledge-architecture/03-data-flow.md +369 -0
  52. package/documents/knowledge-architecture/04-design-patterns.md +498 -0
  53. package/documents/knowledge-architecture/05-decisions.md +410 -0
  54. package/documents/knowledge-domain/00-index.md +251 -0
  55. package/documents/knowledge-domain/01-entities.md +583 -0
  56. package/documents/knowledge-domain/02-database-schema.md +138 -0
  57. package/documents/knowledge-domain/03-api-contracts.md +479 -0
  58. package/documents/knowledge-domain/04-business-rules.md +555 -0
  59. package/documents/knowledge-overview/00-index.md +107 -0
  60. package/documents/knowledge-overview/01-project-identity.md +162 -0
  61. package/documents/knowledge-overview/02-tech-stack.md +119 -0
  62. package/documents/knowledge-overview/03-features.md +233 -0
  63. package/documents/knowledge-overview/04-getting-started.md +394 -0
  64. package/documents/knowledge-source-base/00-index.md +107 -0
  65. package/documents/knowledge-source-base/01-directory-structure.md +312 -0
  66. package/documents/knowledge-source-base/02-entry-points.md +346 -0
  67. package/documents/knowledge-source-base/03-key-modules.md +582 -0
  68. package/documents/knowledge-source-base/04-configuration.md +467 -0
  69. package/documents/knowledge-standards/00-index.md +129 -0
  70. package/documents/knowledge-standards/01-code-style.md +161 -0
  71. package/documents/knowledge-standards/02-conventions.md +255 -0
  72. package/documents/knowledge-standards/03-git-workflow.md +228 -0
  73. package/documents/knowledge-standards/04-testing-standards.md +175 -0
  74. package/package.json +1 -1
  75. package/rules/REFERENCE.md +10 -6
  76. package/skills/docs-audit/README.md +10 -8
  77. package/skills/docs-audit/SKILL.md +45 -41
  78. package/skills/docs-audit/references/scoring-framework.md +5 -5
  79. package/skills/docs-core/README.md +19 -14
  80. package/skills/docs-core/SKILL.md +189 -117
  81. package/skills/planning/references/codebase-understanding.md +5 -5
  82. package/documents/business/business-features.md +0 -894
  83. package/documents/business/business-glossary.md +0 -554
  84. package/documents/business/business-prd.md +0 -400
  85. package/documents/business/business-workflows.md +0 -713
  86. package/documents/knowledge-architecture.md +0 -621
  87. package/documents/knowledge-domain.md +0 -602
  88. package/documents/knowledge-overview.md +0 -316
  89. package/documents/knowledge-source-base.md +0 -581
  90. package/documents/knowledge-standards.md +0 -632
package/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.1] - 2026-03-26
9
+
10
+ ### Changed
11
+ - **Documentation Workflows — Folder-Based Architecture**: Migrated all 3 `/docs` sub-command workflows from single-file to folder-based structure for greater detail and maintainability
12
+ - **`/docs:core` (v3.0)**: 5 knowledge folders, each with `00-index.md` + numbered sub-files. Added MIGRATE mode for legacy flat-file-to-folder conversion, Thinking Protocol (7-question pre-write checklist), Anti-Shallow Guardrails, and Mode Detection table with per-folder CREATE/UPDATE/MIGRATE resolution
13
+ - **`/docs:business` (v4.0)**: 4 business folders with folder-based structure. Added MIGRATE mode, Thinking Protocol (5-question checklist), Anti-Shallow Guardrails, and Business Evidence Ledger
14
+ - **`/docs:audit` (v4.0)**: 4 audit folders with folder-based structure. Added MIGRATE mode, Thinking Protocol (5-question security-focused checklist), and Signal Precision Rules
15
+ - **`/docs` router (v2.0)**: Updated sequential execution flow references to match new folder-based deliverables and corrected version references
16
+ - **Cross-Workflow Consistency**: Harmonized agent roles (`docs-manager` for generation phase), mode rules (CREATE/UPDATE/MIGRATE), quality mechanisms (Thinking Protocol, Evidence Ledger), and exit criteria across all 3 workflows
17
+
8
18
  ## [1.3.0] - 2026-03-23
9
19
 
10
20
  ### Added
@@ -90,7 +100,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
90
100
  - **Blueprint**: `documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md` — architecture for dynamic skill resolution
91
101
  - **Assessment**: `documents/HSOL-ASSESSMENT.md` — production readiness evaluation
92
102
  - **Manifest**: `matrix-skills/_dynamic.yaml` — tracking for dynamically installed community skills
93
- - **Knowledge base**: Updated `documents/knowledge-architecture.md`, `documents/knowledge-source-base.md` with HSOL references
103
+ - **Knowledge base**: Updated `documents/knowledge-architecture/` folder, `documents/knowledge-source-base/` folder with HSOL references
94
104
 
95
105
  ### Changed
96
106
 
@@ -60,9 +60,9 @@ ALWAYS:
60
60
 
61
61
  ```
62
62
  1. CHECK PROJECT DOCS (if ./documents/ exists):
63
- - knowledge-standards.md → Coding standards
64
- - knowledge-architecture.md → Architecture patterns
65
- - knowledge-domain.md → Data models, API contracts
63
+ - knowledge-standards/00-index.md → Coding standards (drill into sub-files as needed)
64
+ - knowledge-architecture/00-index.md → Architecture patterns (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Data models, API contracts (drill into sub-files as needed)
66
66
  → USE these as constraints for implementation
67
67
 
68
68
  2. CHECK: ./reports/{topic}/plans/PLAN-{feature} exists?
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-overview.md → Project scope
65
- - business/business-prd.md → Existing requirements
66
- - business/business-features.md → Existing features
64
+ - knowledge-overview/00-index.md → Project scope (drill into sub-files as needed)
65
+ - business/business-prd/00-index.md → Existing requirements (drill into sub-files as needed)
66
+ - business/business-features/00-index.md → Existing features (drill into sub-files as needed)
67
67
  → USE these to avoid re-asking known context
68
68
  ```
69
69
 
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - business/business-prd.md → Existing PRD
65
- - business/business-features.md → Feature list
66
- - business/business-workflows.md → User workflows
64
+ - business/business-prd/00-index.md → Existing PRD (drill into sub-files as needed)
65
+ - business/business-features/00-index.md → Feature list (drill into sub-files as needed)
66
+ - business/business-workflows/00-index.md → User workflows (drill into sub-files as needed)
67
67
  → BUILD ON existing docs, don't start from scratch
68
68
  ```
69
69
 
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-architecture.md → Existing architecture
65
- - knowledge-domain.md → Data models, schema
66
- - knowledge-standards.md → Naming conventions
64
+ - knowledge-architecture/00-index.md → Existing architecture (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Data models, schema (drill into sub-files as needed)
66
+ - knowledge-standards/00-index.md → Naming conventions (drill into sub-files as needed)
67
67
  → USE these for schema naming and structure
68
68
 
69
69
  2. CHECK: ./reports/{topic}/plans/PLAN-{feature}
@@ -61,8 +61,8 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if bug involves domain logic):
64
- - knowledge-architecture.md → System understanding
65
- - knowledge-domain.md → Expected behavior
64
+ - knowledge-architecture/00-index.md → System understanding (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Expected behavior (drill into sub-files as needed)
66
66
  → USE these to understand what SHOULD happen
67
67
  ```
68
68
 
@@ -61,8 +61,8 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-standards.md → Design standards
65
- - business/business-workflows.md → User flows
64
+ - knowledge-standards/00-index.md → Design standards (drill into sub-files as needed)
65
+ - business/business-workflows/00-index.md → User flows (drill into sub-files as needed)
66
66
  → USE these for design decisions
67
67
  ```
68
68
 
@@ -61,8 +61,8 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-architecture.md → Infrastructure patterns
65
- - knowledge-standards.md → Deployment standards
64
+ - knowledge-architecture/00-index.md → Infrastructure patterns (drill into sub-files as needed)
65
+ - knowledge-standards/00-index.md → Deployment standards (drill into sub-files as needed)
66
66
  → FOLLOW existing infra conventions
67
67
 
68
68
  2. CHECK: ./reports/{topic}/plans/PLAN-{feature}
@@ -62,29 +62,37 @@ ALWAYS:
62
62
 
63
63
  ```
64
64
  CHECK EXISTING PROJECT DOCS (./documents/):
65
- - knowledge-overview.md → Project overview
66
- - knowledge-architecture.md Architecture docs
67
- - knowledge-domain.md Data models, API contracts
68
- - knowledge-standards.md → Coding standards
69
- UPDATE existing docs rather than creating new
65
+
66
+ FOLDER-BASED (v2.0 preferred):
67
+ - knowledge-overview/00-index.md Project overview + sub-files
68
+ - knowledge-architecture/00-index.md → Architecture docs + sub-files
69
+ - knowledge-domain/00-index.md Data models, API contracts + sub-files
70
+ - knowledge-source-base/00-index.md → Source base + sub-files
71
+ - knowledge-standards/00-index.md → Coding standards + sub-files
72
+ → UPDATE existing sub-files; add new sub-files if needed
70
73
  ```
71
74
 
72
75
  ### Step 1: DOCUMENTATION SCOPE
73
76
 
74
- | Type | Purpose | Audience |
75
- | ------------ | -------------------- | -------------- |
76
- | README | Overview, quick start| New users/devs |
77
- | API Docs | Endpoint reference | Developers |
78
- | Architecture | System design | Team |
79
- | Guides | How-to | Various |
77
+ | Type | Purpose | Audience | Structure |
78
+ | ------------ | -------------------- | -------------- | -------------- |
79
+ | README | Overview, quick start| New users/devs | Single file |
80
+ | Knowledge | AI-consumable docs | AI agents/devs | Folder + sub-files |
81
+ | API Docs | Endpoint reference | Developers | Sub-file in domain/ |
82
+ | Architecture | System design | Team | Folder + sub-files |
83
+ | Guides | How-to | Various | Single file |
84
+
85
+ **Folder-based docs pattern**: Each knowledge area = folder with `00-index.md` (TOC) + numbered sub-files (`01-*.md`, `02-*.md`, ...).
80
86
 
81
87
  ### Step 2: DOCUMENTATION AUDIT
82
88
 
83
89
  - [ ] README exists and current
84
- - [ ] API endpoints documented
85
- - [ ] Setup instructions work
86
- - [ ] Environment variables listed
87
- - [ ] Architecture documented
90
+ - [ ] Knowledge folders exist with 00-index.md + sub-files
91
+ - [ ] API endpoints documented (in knowledge-domain/03-api-contracts.md)
92
+ - [ ] Setup instructions work (in knowledge-overview/04-getting-started.md)
93
+ - [ ] Environment variables listed (in knowledge-source-base/04-configuration.md)
94
+ - [ ] Architecture documented (in knowledge-architecture/ folder)
95
+ - [ ] All 00-index.md files have accurate sub-file TOC
88
96
 
89
97
  ### Step 3: DOCUMENTATION PRINCIPLES
90
98
 
@@ -60,9 +60,9 @@ ALWAYS:
60
60
 
61
61
  ```
62
62
  1. CHECK PROJECT DOCS (if ./documents/ exists):
63
- - knowledge-standards.md → Coding standards
64
- - knowledge-architecture.md → Component patterns
65
- - knowledge-domain.md → API contracts, data shapes
63
+ - knowledge-standards/00-index.md → Coding standards (drill into sub-files as needed)
64
+ - knowledge-architecture/00-index.md → Component patterns (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → API contracts, data shapes (drill into sub-files as needed)
66
66
  → USE these as constraints
67
67
 
68
68
  2. CHECK for:
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-standards.md → Coding standards
65
- - knowledge-architecture.md → Game architecture
66
- - knowledge-domain.md → Game data models
64
+ - knowledge-standards/00-index.md → Coding standards (drill into sub-files as needed)
65
+ - knowledge-architecture/00-index.md → Game architecture (drill into sub-files as needed)
66
+ - knowledge-domain/00-index.md → Game data models (drill into sub-files as needed)
67
67
  → USE these for implementation decisions
68
68
 
69
69
  2. IF plan exists: READ → FOLLOW specifications EXACTLY
@@ -61,10 +61,10 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-standards.md → Coding standards
65
- - knowledge-architecture.md → App architecture
66
- - knowledge-domain.md → API contracts, data shapes
67
- → USE these for implementation decisions
64
+ - knowledge-standards/00-index.md → Coding standards (drill into sub-files as needed)
65
+ - knowledge-architecture/00-index.md → App architecture (drill into sub-files as needed)
66
+ - knowledge-domain/00-index.md → API contracts, data shapes (drill into sub-files as needed)
67
+ → USE these as constraints for implementation
68
68
 
69
69
  2. IF plan exists: READ → FOLLOW EXACTLY
70
70
  3. IF no plan + complex: STOP → Request plan
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-standards.md → Performance budgets
65
- - knowledge-architecture.md → System architecture
66
- - knowledge-domain.md → Data flows, API surface
64
+ - knowledge-standards/00-index.md → Performance budgets (drill into sub-files as needed)
65
+ - knowledge-architecture/00-index.md → System architecture (drill into sub-files as needed)
66
+ - knowledge-domain/00-index.md → Data flows, API surface (drill into sub-files as needed)
67
67
  → USE these to understand performance targets
68
68
  ```
69
69
 
package/agents/planner.md CHANGED
@@ -82,10 +82,10 @@ ALWAYS:
82
82
 
83
83
  ```
84
84
  1. CHECK PROJECT DOCS (CRITICAL):
85
- - knowledge-overview.md → Project scope
86
- - knowledge-architecture.md → Existing architecture
87
- - knowledge-domain.md → Data models, API contracts
88
- - knowledge-standards.md → Standards to enforce
85
+ - knowledge-overview/00-index.md → Project scope (drill into sub-files as needed)
86
+ - knowledge-architecture/00-index.md → Existing architecture (drill into sub-files as needed)
87
+ - knowledge-domain/00-index.md → Data models, API contracts (drill into sub-files as needed)
88
+ - knowledge-standards/00-index.md → Standards to enforce (drill into sub-files as needed)
89
89
  → INCORPORATE into plan constraints
90
90
 
91
91
  2. CHECK for prior deliverables:
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-overview.md → Project scope
65
- - knowledge-domain.md → Data/API scope
66
- - business/business-prd.md → Requirements
64
+ - knowledge-overview/00-index.md → Project scope (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Data/API scope (drill into sub-files as needed)
66
+ - business/business-prd/00-index.md → Requirements (drill into sub-files as needed)
67
67
  → USE these for project tracking and scope management
68
68
  ```
69
69
 
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-overview.md → Project context
65
- - knowledge-architecture.md → Technical context
66
- - knowledge-domain.md → Domain concepts
64
+ - knowledge-overview/00-index.md → Project context (drill into sub-files as needed)
65
+ - knowledge-architecture/00-index.md → Technical context (drill into sub-files as needed)
66
+ - knowledge-domain/00-index.md → Domain concepts (drill into sub-files as needed)
67
67
  → USE these to focus research on project needs
68
68
  ```
69
69
 
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-standards.md → Standards to enforce
65
- - knowledge-architecture.md → Architecture to verify
66
- - knowledge-domain.md → Data/API contracts to verify
64
+ - knowledge-standards/00-index.md → Standards to enforce (drill into sub-files as needed)
65
+ - knowledge-architecture/00-index.md → Architecture to verify (drill into sub-files as needed)
66
+ - knowledge-domain/00-index.md → Data/API contracts to verify (drill into sub-files as needed)
67
67
  → VERIFY code follows project standards
68
68
 
69
69
  2. IF ./reports/{topic}/plans/PLAN-{feature} exists:
package/agents/scouter.md CHANGED
@@ -61,9 +61,9 @@ ALWAYS:
61
61
 
62
62
  ```
63
63
  1. CHECK PROJECT DOCS (if ./documents/ exists):
64
- - knowledge-architecture.md → Already documented architecture
65
- - knowledge-domain.md → Data models, API contracts
66
- - knowledge-standards.md → Existing standards
64
+ - knowledge-architecture/00-index.md → Already documented architecture (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Data models, API contracts (drill into sub-files as needed)
66
+ - knowledge-standards/00-index.md → Existing standards (drill into sub-files as needed)
67
67
  → REFERENCE these, don't duplicate findings
68
68
 
69
69
  2. Your output becomes CONSTRAINTS for downstream agents
@@ -62,9 +62,9 @@ ALWAYS:
62
62
 
63
63
  ```
64
64
  CHECK PROJECT DOCS (if ./documents/ exists):
65
- - knowledge-standards.md → Security standards
66
- - knowledge-architecture.md → Attack surface
67
- - knowledge-domain.md → API surface, auth boundaries
65
+ - knowledge-standards/00-index.md → Security standards (drill into sub-files as needed)
66
+ - knowledge-architecture/00-index.md → Attack surface (drill into sub-files as needed)
67
+ - knowledge-domain/00-index.md → API surface, auth boundaries (drill into sub-files as needed)
68
68
  → USE these to understand what to protect
69
69
  ```
70
70
 
@@ -60,9 +60,9 @@ ALWAYS:
60
60
 
61
61
  ```
62
62
  1. CHECK PROJECT DOCS (if ./documents/ exists):
63
- - knowledge-standards.md → Enforce these
64
- - knowledge-architecture.md → Architecture constraints
65
- - knowledge-domain.md → Data/API constraints
63
+ - knowledge-standards/00-index.md → Enforce these (drill into sub-files as needed)
64
+ - knowledge-architecture/00-index.md → Architecture constraints (drill into sub-files as needed)
65
+ - knowledge-domain/00-index.md → Data/API constraints (drill into sub-files as needed)
66
66
  → VERIFY all work aligns with project standards
67
67
 
68
68
  2. IF ./reports/{topic}/plans/PLAN-{feature} exists:
package/agents/tester.md CHANGED
@@ -60,8 +60,8 @@ ALWAYS:
60
60
 
61
61
  ```
62
62
  1. CHECK PROJECT DOCS (if ./documents/ exists):
63
- - knowledge-standards.md → Testing standards
64
- - knowledge-domain.md → Data shapes, API contracts
63
+ - knowledge-standards/00-index.md → Testing standards (drill into sub-files as needed)
64
+ - knowledge-domain/00-index.md → Data shapes, API contracts (drill into sub-files as needed)
65
65
  → USE these for test fixtures/assertions
66
66
 
67
67
  2. IF ./reports/{topic}/plans/PLAN-{feature} exists: