trinity-method-sdk 2.0.8 → 2.1.0

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 (123) hide show
  1. package/CHANGELOG.md +235 -0
  2. package/README.md +34 -35
  3. package/dist/cli/commands/deploy/agents.js +1 -1
  4. package/dist/cli/commands/deploy/claude-setup.js +28 -35
  5. package/dist/cli/commands/deploy/index.js +1 -1
  6. package/dist/cli/commands/deploy/knowledge-base.js +1 -1
  7. package/dist/cli/commands/deploy/root-files.js +1 -1
  8. package/dist/cli/commands/deploy/sdk-install.js +1 -1
  9. package/dist/cli/commands/deploy/templates.js +29 -16
  10. package/dist/cli/commands/update/agents.js +1 -1
  11. package/dist/cli/commands/update/commands.d.ts +1 -0
  12. package/dist/cli/commands/update/commands.js +18 -45
  13. package/dist/cli/commands/update/knowledge-base.js +1 -1
  14. package/dist/cli/commands/update/templates.js +34 -12
  15. package/dist/cli/utils/deploy-linting.js +1 -1
  16. package/dist/cli/utils/template-processor.js +1 -1
  17. package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +1 -1
  18. package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +3 -3
  19. package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +6 -8
  20. package/dist/templates/{agents → .claude/agents}/aj-team/bon-dependency-manager.md.template +8 -8
  21. package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template +3 -3
  22. package/dist/templates/{agents → .claude/agents}/aj-team/dra-code-reviewer.md.template +5 -7
  23. package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +5 -7
  24. package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template +3 -3
  25. package/dist/templates/{agents → .claude/agents}/audit/juno-auditor.md.template +7 -2
  26. package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +3 -4
  27. package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +6 -3
  28. package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +4 -1
  29. package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +11 -5
  30. package/dist/templates/{agents → .claude/agents}/leadership/aj-cc.md.template +7 -2
  31. package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +4 -0
  32. package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +5 -1
  33. package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +4 -0
  34. package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +4 -0
  35. package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +4 -0
  36. package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +6 -0
  37. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +6 -6
  38. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +5 -5
  39. package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +12 -11
  40. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +8 -2
  41. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +9 -5
  42. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +11 -5
  43. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +5 -4
  44. package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +279 -0
  45. package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +2828 -0
  46. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-readme.md.template +144 -35
  47. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-decompose.md.template +6 -4
  48. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-design.md.template +6 -4
  49. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-plan.md.template +7 -5
  50. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-requirements.md.template +6 -4
  51. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-continue.md.template +9 -3
  52. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-end.md.template +8 -2
  53. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-start.md.template +8 -2
  54. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +8 -2
  55. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +9 -4
  56. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +8 -4
  57. package/dist/templates/root/TRINITY.md.template +1 -1
  58. package/dist/templates/source/base-CLAUDE.md.template +310 -310
  59. package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
  60. package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
  61. package/dist/templates/source/python-CLAUDE.md.template +510 -510
  62. package/dist/templates/source/react-CLAUDE.md.template +513 -513
  63. package/dist/templates/source/rust-CLAUDE.md.template +653 -653
  64. package/dist/templates/{knowledge-base → trinity/knowledge-base}/AI-DEVELOPMENT-GUIDE.md.template +1 -1
  65. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ARCHITECTURE.md.template +3 -3
  66. package/dist/templates/{knowledge-base → trinity/knowledge-base}/CODING-PRINCIPLES.md.template +1 -1
  67. package/dist/templates/{knowledge-base → trinity/knowledge-base}/DOCUMENTATION-CRITERIA.md.template +1 -1
  68. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ISSUES.md.template +3 -3
  69. package/dist/templates/{knowledge-base → trinity/knowledge-base}/TESTING-PRINCIPLES.md.template +1 -1
  70. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Technical-Debt.md.template +3 -3
  71. package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +3 -3
  72. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +4 -3
  73. package/dist/templates/{documentation → trinity/templates/documentation}/SUBDIRECTORY-README.md.template +1 -1
  74. package/dist/templates/trinity/templates/documentation/api-docs/README.md.template +218 -0
  75. package/dist/templates/trinity/templates/documentation/configuration/documentation-structure.md.template +71 -0
  76. package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +387 -0
  77. package/dist/templates/trinity/templates/documentation/discovery/api-endpoint-scanner.md.template +343 -0
  78. package/dist/templates/trinity/templates/documentation/discovery/component-discovery.md.template +254 -0
  79. package/dist/templates/trinity/templates/documentation/discovery/env-variable-extraction.md.template +316 -0
  80. package/dist/templates/trinity/templates/documentation/discovery/framework-detection.md.template +205 -0
  81. package/dist/templates/trinity/templates/documentation/guides/api-development.md.template +375 -0
  82. package/dist/templates/trinity/templates/documentation/guides/contributing.md.template +488 -0
  83. package/dist/templates/trinity/templates/documentation/guides/deployment.md.template +565 -0
  84. package/dist/templates/trinity/templates/documentation/guides/getting-started.md.template +118 -0
  85. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template +56 -0
  86. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template +60 -0
  87. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/database-er.md.template +49 -0
  88. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template +41 -0
  89. package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +166 -0
  90. package/dist/templates/trinity/templates/documentation/processes/fallback-mechanism.md.template +88 -0
  91. package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +343 -0
  92. package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +1337 -0
  93. package/dist/templates/trinity/templates/documentation/reports/juno-final-report.md.template +237 -0
  94. package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +461 -0
  95. package/dist/templates/trinity/templates/documentation/validation/documentation-verification-rules.md.template +379 -0
  96. package/dist/templates/trinity/templates/documentation/validation/juno-quality-gates.md.template +282 -0
  97. package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +2 -2
  98. package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +2 -2
  99. package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +2 -2
  100. package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +2 -2
  101. package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +2 -2
  102. package/dist/templates/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +0 -3
  103. package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +0 -16
  104. package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +0 -16
  105. package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +0 -15
  106. package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +0 -16
  107. package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +0 -16
  108. package/package.json +1 -1
  109. package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2208
  110. /package/dist/templates/{linting → root/linting}/flutter/.pre-commit-config.yaml.template +0 -0
  111. /package/dist/templates/{linting → root/linting}/flutter/analysis_options.yaml.template +0 -0
  112. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-commonjs.json.template +0 -0
  113. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-esm.json.template +0 -0
  114. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-typescript.json.template +0 -0
  115. /package/dist/templates/{linting → root/linting}/nodejs/.pre-commit-config.yaml.template +0 -0
  116. /package/dist/templates/{linting → root/linting}/nodejs/.prettierrc.json.template +0 -0
  117. /package/dist/templates/{linting → root/linting}/python/.flake8.template +0 -0
  118. /package/dist/templates/{linting → root/linting}/python/.pre-commit-config.yaml.template +0 -0
  119. /package/dist/templates/{linting → root/linting}/python/pyproject.toml.template +0 -0
  120. /package/dist/templates/{linting → root/linting}/rust/.pre-commit-config.yaml.template +0 -0
  121. /package/dist/templates/{linting → root/linting}/rust/clippy.toml.template +0 -0
  122. /package/dist/templates/{linting → root/linting}/rust/rustfmt.toml.template +0 -0
  123. /package/dist/templates/{documentation → trinity/templates/documentation}/ROOT-README.md.template +0 -0
@@ -1,6 +1,10 @@
1
1
  # Trinity README Management
2
2
 
3
- **Purpose:** Launch APO (Documentation Specialist) to ensure 100% CLAUDE.md → README.md coverage with accurate, up-to-date content.
3
+ **Command:** `/execution:trinity-readme`
4
+ **Purpose:** Launch APO (Documentation Specialist) to ensure 100% CLAUDE.md → README.md coverage with accurate content
5
+ **Architecture:** APO 5-phase process (Discovery → Audit → Update → Create → Report)
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
4
8
 
5
9
  **Use Case:** Create missing READMEs, update existing READMEs with current codebase reality, fix inaccuracies.
6
10
 
@@ -71,6 +75,27 @@ The `/trinity-readme` command invokes APO (Documentation Specialist) to manage R
71
75
 
72
76
  **Why:** Trinity Method SDK is a tool for developers. The project's documentation should focus exclusively on the project's code, features, and usage - not on the development methodology used to create it.
73
77
 
78
+ ### Rule 1 Enforcement Checklist
79
+
80
+ Before finalizing any README, verify:
81
+
82
+ - [ ] No trinity/ directory in file tree
83
+ - [ ] No .claude/ directory in file tree
84
+ - [ ] No Trinity commands documented (unless project IS Trinity Method)
85
+ - [ ] No references to Trinity agents (MON, ROR, KIL, etc.)
86
+ - [ ] No Trinity session files documented
87
+ - [ ] No Trinity work orders documented
88
+
89
+ **Verification Command:**
90
+ ```bash
91
+ # Check for forbidden Trinity references in README
92
+ grep -i "trinity/" README.md && echo "❌ VIOLATION: Documents trinity/ directory"
93
+ grep -i "\.claude/" README.md && echo "❌ VIOLATION: Documents .claude/ directory"
94
+ grep -i "/trinity-" README.md && echo "❌ VIOLATION: Documents Trinity commands"
95
+ ```
96
+
97
+ **If any violations found:** Remove the offending documentation immediately.
98
+
74
99
  ---
75
100
 
76
101
  ## When to Use `/trinity-readme`
@@ -298,6 +323,52 @@ for (let i = 0; i < glob_output_lines; i++) {
298
323
  }
299
324
  ```
300
325
 
326
+ **Step 4.5: Filter Gitignored and Trinity Directories (CRITICAL)**
327
+
328
+ **CRITICAL: Remove Trinity infrastructure and gitignored directories from documentation.**
329
+
330
+ ```bash
331
+ # Filter out Trinity infrastructure (ALWAYS excluded)
332
+ filtered_directories = []
333
+
334
+ for each directory in all_directories:
335
+ # ALWAYS skip Trinity infrastructure
336
+ if directory.includes("trinity/") or directory.includes(".claude/"):
337
+ echo "SKIP: $directory (Trinity infrastructure - never document)"
338
+ continue
339
+
340
+ # Check if gitignored (optional but recommended)
341
+ if git check-ignore -q "$directory" 2>/dev/null; then
342
+ echo "SKIP: $directory (gitignored)"
343
+ continue
344
+ fi
345
+
346
+ # Include this directory
347
+ filtered_directories.push(directory)
348
+ echo "INCLUDE: $directory"
349
+ done
350
+ ```
351
+
352
+ **Trinity Detection Warning:**
353
+
354
+ If you detect trinity/ or .claude/ directories during Phase 1:
355
+
356
+ 1. **Acknowledge detection:** "Detected Trinity Method infrastructure (trinity/ directory found)"
357
+ 2. **Skip documentation:** Do NOT include trinity/ in file tree or README content
358
+ 3. **Skip template:** Do NOT use Trinity-specific templates
359
+ 4. **Continue normally:** Process other directories (backend/, frontend/, etc.)
360
+
361
+ **Example Output:**
362
+ ```
363
+ ✓ Detected directories: backend/, frontend/, docs/, trinity/
364
+ ✓ Filtering Trinity infrastructure and gitignored directories...
365
+ - trinity/ (Trinity infrastructure) → SKIP
366
+ - .claude/ (Trinity infrastructure) → SKIP
367
+ ✓ Final directories to document: backend/, frontend/, docs/
368
+ ```
369
+
370
+ **Rule:** Trinity infrastructure (trinity/, .claude/) is ALWAYS excluded from user-facing READMEs, even if not gitignored.
371
+
301
372
  **Step 5: Report Complete Inventory (Using Validated Count)**
302
373
 
303
374
  APO MUST output:
@@ -352,7 +423,8 @@ APO MUST answer ALL checklist items:
352
423
  - If NO: STOP and use Glob output count
353
424
 
354
425
  6. **Project Structure Sanity:**
355
- - For project with backend/, frontend/, database/, trinity/, do I expect nested CLAUDE.md files? ✅ YES | ❌ NO
426
+ - For project with backend/, frontend/, database/, do I expect nested CLAUDE.md files? ✅ YES | ❌ NO
427
+ - Do I see trinity/ or .claude/ directories? ⚠️ IGNORE (methodology infrastructure, not project code)
356
428
  - If YES but none found: Re-run Glob with explicit paths
357
429
 
358
430
  **Self-Verification Action:**
@@ -362,12 +434,79 @@ IF any critical item = ❌ NO:
362
434
  - backend/**/CLAUDE.md
363
435
  - frontend/**/CLAUDE.md
364
436
  - database/**/CLAUDE.md
365
- - trinity/**/CLAUDE.md
437
+ - src/**/CLAUDE.md
438
+ - lib/**/CLAUDE.md
366
439
  Merge results and re-validate
367
440
 
441
+ **Note:** Do NOT include trinity/ or .claude/ patterns - these are methodology infrastructure.
442
+
368
443
  **Checklist Completion:** ✅ 6/6 items verified
369
444
  ```
370
445
 
446
+ **Step 7: License Verification (CRITICAL)**
447
+
448
+ **CRITICAL: Verify actual LICENSE file before generating license badges.**
449
+
450
+ Before generating any license badge, read and verify the LICENSE file:
451
+
452
+ 1. **Check for LICENSE file:**
453
+ ```bash
454
+ # Check for LICENSE file (various naming conventions)
455
+ if exists("LICENSE"): LICENSE_FILE = "LICENSE"
456
+ elif exists("LICENSE.md"): LICENSE_FILE = "LICENSE.md"
457
+ elif exists("LICENSE.txt"): LICENSE_FILE = "LICENSE.txt"
458
+ elif exists("LICENCE"): LICENSE_FILE = "LICENCE"
459
+ else: LICENSE_FILE = null
460
+ ```
461
+
462
+ 2. **Read LICENSE file and detect type:**
463
+ ```javascript
464
+ // Read first 3 lines to identify license type
465
+ firstLine = read(LICENSE_FILE).lines[0].toUpperCase()
466
+ firstThreeLines = read(LICENSE_FILE).lines.slice(0, 3).join(' ').toUpperCase()
467
+
468
+ // Detect license type from file header
469
+ if (firstLine.includes('MIT LICENSE')): DETECTED_LICENSE = 'MIT'
470
+ elif (firstLine.includes('ISC LICENSE')): DETECTED_LICENSE = 'ISC'
471
+ elif (firstLine.includes('APACHE LICENSE')): DETECTED_LICENSE = 'Apache-2.0'
472
+ elif (firstLine.includes('BSD 3-CLAUSE')): DETECTED_LICENSE = 'BSD-3-Clause'
473
+ elif (firstLine.includes('BSD 2-CLAUSE')): DETECTED_LICENSE = 'BSD-2-Clause'
474
+ elif (firstThreeLines.includes('GNU GENERAL PUBLIC LICENSE VERSION 3')): DETECTED_LICENSE = 'GPL-3.0'
475
+ elif (firstThreeLines.includes('GNU GENERAL PUBLIC LICENSE VERSION 2')): DETECTED_LICENSE = 'GPL-2.0'
476
+ elif (firstThreeLines.includes('GNU LESSER GENERAL PUBLIC LICENSE')): DETECTED_LICENSE = 'LGPL-3.0'
477
+ else: DETECTED_LICENSE = null
478
+ ```
479
+
480
+ 3. **Compare with package.json (if exists):**
481
+ ```javascript
482
+ if exists("package.json"):
483
+ PACKAGE_LICENSE = read("package.json").license
484
+
485
+ if (DETECTED_LICENSE && PACKAGE_LICENSE && DETECTED_LICENSE != PACKAGE_LICENSE):
486
+ echo "⚠️ WARNING: package.json claims ${PACKAGE_LICENSE} but LICENSE file is ${DETECTED_LICENSE}"
487
+ echo "Using LICENSE file as source of truth: ${DETECTED_LICENSE}"
488
+ ```
489
+
490
+ 4. **Determine badge license (priority order):**
491
+ ```javascript
492
+ // Priority: LICENSE file > package.json > default
493
+ if (DETECTED_LICENSE):
494
+ BADGE_LICENSE = DETECTED_LICENSE // Use LICENSE file (source of truth)
495
+ elif (PACKAGE_LICENSE):
496
+ BADGE_LICENSE = PACKAGE_LICENSE // Fall back to package.json
497
+ else:
498
+ BADGE_LICENSE = "Unlicensed" // Default if neither found
499
+ ```
500
+
501
+ 5. **Generate license badge:**
502
+ ```markdown
503
+ [![License](https://img.shields.io/badge/License-${BADGE_LICENSE}-yellow)](LICENSE)
504
+ ```
505
+
506
+ **Rule:** The LICENSE file is the legal source of truth. package.json metadata is secondary.
507
+
508
+ **Mismatch Detection:** If LICENSE file and package.json disagree, always use LICENSE file and warn user to update package.json.
509
+
371
510
  ---
372
511
 
373
512
  ### Phase 2: README Audit (Root + Subdirectories)
@@ -940,7 +1079,7 @@ Scan README.md for common stale content patterns:
940
1079
 
941
1080
  **Outdated Date References:**
942
1081
  ```markdown
943
- - "Last updated: 2021"
1082
+ - "**Last Updated**: 2021"
944
1083
  - "As of January 2022"
945
1084
  - "In version 1.0 (released 2020)"
946
1085
  ```
@@ -1039,7 +1178,7 @@ Scan README for version mentions:
1039
1178
  ```markdown
1040
1179
  ❌ **Outdated Date Reference**
1041
1180
  - **File:** README.md (line Y)
1042
- - **Current (WRONG):** "Last updated: January 2022"
1181
+ - **Current (WRONG):** "**Last Updated**: January 2022"
1043
1182
  - **Reality:** Current year is 2025, content is stale
1044
1183
  - **Correct:** Update date or remove if unnecessary
1045
1184
  - **Fix in:** Phase 3 (Root README Update)
@@ -1333,33 +1472,6 @@ for each directory in directories_to_create:
1333
1472
  See [{directory}/CLAUDE.md](CLAUDE.md) for architecture details.
1334
1473
  ```
1335
1474
 
1336
- **Type C: Trinity Directory**
1337
- - **Detection:** Directory name is "trinity"
1338
- - **Template:**
1339
- ```markdown
1340
- # Trinity Method
1341
-
1342
- Trinity Method v2.0 implementation for {project name}.
1343
-
1344
- ## Directory Structure
1345
- {Use ls to show trinity/ subdirectories}
1346
-
1347
- ## Key Files
1348
- {List actual files in trinity/knowledge-base/ with line counts}
1349
-
1350
- ## Trinity Commands
1351
- ```bash
1352
- /trinity-start # Start workflow guide
1353
- /trinity-audit # Run codebase audit
1354
- /trinity-readme # Update READMEs
1355
- /trinity-docs # Organize docs/
1356
- /trinity-changelog # Update CHANGELOG
1357
- ```
1358
-
1359
- ## Documentation
1360
- See [trinity/CLAUDE.md](CLAUDE.md) for Trinity Method context.
1361
- ```
1362
-
1363
1475
  **Type D: Test Directory**
1364
1476
  - **Detection:** Directory name contains "test", "__tests__", "spec"
1365
1477
  - **Template:**
@@ -1990,6 +2102,3 @@ If Phase 6 validation shows coverage < 100%, status = ❌ FAILED even if Phase 4
1990
2102
  - Re-run command if failures detected
1991
2103
 
1992
2104
  ---
1993
-
1994
- **Command Specification Version:** 2.0.0
1995
- **Last Updated:** 2025-12-27
@@ -1,9 +1,11 @@
1
- ---
2
- description: Decompose work into atomic tasks using EUS (Task Decomposer)
3
- ---
4
-
5
1
  # Trinity Task Decomposition - EUS
6
2
 
3
+ **Command:** `/planning:trinity-decompose`
4
+ **Purpose:** Decompose work into atomic tasks using EUS (Task Decomposer)
5
+ **Architecture:** EUS task breakdown → Atomic task validation → TDD cycle planning
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
7
9
  **Agent:** EUS (Task Decomposer)
8
10
  **Role:** Break work into atomic tasks following "1 task = 1 commit" rule
9
11
 
@@ -1,9 +1,11 @@
1
- ---
2
- description: Create technical design using ROR (Design Architect)
3
- ---
4
-
5
1
  # Trinity Technical Design - ROR
6
2
 
3
+ **Command:** `/planning:trinity-design`
4
+ **Purpose:** Create technical design using ROR (Design Architect)
5
+ **Architecture:** ROR design doc creation → ADR generation → Architecture definition
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
7
9
  **Agent:** ROR (Design Architect)
8
10
  **Role:** Technical design, ADRs, and Design Doc creation
9
11
 
@@ -1,9 +1,11 @@
1
- ---
2
- description: Create implementation plan using TRA (Work Planner)
3
- ---
4
-
5
1
  # Trinity Work Planning - TRA
6
2
 
3
+ **Command:** `/planning:trinity-plan`
4
+ **Purpose:** Create implementation plan using TRA (Work Planner)
5
+ **Architecture:** TRA implementation sequencing → BAS quality gates → Timeline estimation
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
7
9
  **Agent:** TRA (Work Planner)
8
10
  **Role:** Implementation sequencing, BAS quality gates, and timeline estimation
9
11
 
@@ -153,7 +155,7 @@ Tasks must be sequential if:
153
155
  Sequential (WRONG):
154
156
  ```
155
157
  1. Create auth service → 2 hours
156
- 2. Create auth middleware → 1 hour
158
+ 2. Create auth middleware → 1 hour
157
159
  3. Add types → 30 min
158
160
  4. Write tests → 2 hours
159
161
  Total: 5.5 hours
@@ -1,9 +1,11 @@
1
- ---
2
- description: Analyze requirements using MON (Requirements Analyst)
3
- ---
4
-
5
1
  # Trinity Requirements Analysis - MON
6
2
 
3
+ **Command:** `/planning:trinity-requirements`
4
+ **Purpose:** Analyze requirements using MON (Requirements Analyst)
5
+ **Architecture:** MON requirements analysis → Scale determination → Acceptance criteria definition
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
7
9
  **Agent:** MON (Requirements Analyst)
8
10
  **Role:** Scale determination, acceptance criteria, and requirements documentation
9
11
 
@@ -1,5 +1,11 @@
1
- ---
2
- description: Resume work after interruption (ALY reviews state)
1
+ # Trinity Continue
2
+
3
+ **Command:** `/session:trinity-continue`
4
+ **Purpose:** Resume work after interruption (ALY reviews state)
5
+ **Architecture:** ALY session state review → Context restoration → Work resumption
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
3
9
  ---
4
10
 
5
11
  Resume Trinity Method workflow after interruption.
@@ -48,7 +54,7 @@ git log --oneline -5
48
54
  ```bash
49
55
  cat trinity/work-orders/WO-042-jwt-refresh-implementation.md
50
56
  # Status: IN PROGRESS
51
- # Last updated: 2 hours ago
57
+ # **Last Updated**: 2 hours ago
52
58
  # Progress: Task 3/7
53
59
  ```
54
60
 
@@ -1,5 +1,11 @@
1
- ---
2
- description: End session and archive work to trinity/archive/
1
+ # Trinity End
2
+
3
+ **Command:** `/session:trinity-end`
4
+ **Purpose:** End session and archive work to trinity/archive/
5
+ **Architecture:** ALY session summary → Work archival → Documentation update
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
3
9
  ---
4
10
 
5
11
  End current Trinity Method session and prepare for commit.
@@ -1,5 +1,11 @@
1
- ---
2
- description: Guide through your first Trinity workflow
1
+ # Trinity Start
2
+
3
+ **Command:** `/session:trinity-start`
4
+ **Purpose:** Guide through your first Trinity workflow
5
+ **Architecture:** ALY workflow selection → Context setup → First task planning
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
3
9
  ---
4
10
 
5
11
  Guide the user through starting their first Trinity Method workflow.
@@ -1,5 +1,11 @@
1
- ---
2
- description: Display Trinity agent directory and information
1
+ # Trinity Agents
2
+
3
+ **Command:** `/utility:trinity-agents`
4
+ **Purpose:** Display Trinity agent directory and information
5
+ **Architecture:** Reference documentation (no execution)
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
3
9
  ---
4
10
 
5
11
  Display the Trinity Method Agent Directory with all 19 specialized agents.
@@ -1,5 +1,11 @@
1
- ---
2
- description: Verify Trinity Method installation completeness
1
+ # Trinity Verify
2
+
3
+ **Command:** `/utility:trinity-verify`
4
+ **Purpose:** Verify Trinity Method installation completeness
5
+ **Architecture:** TAN structure validation → File integrity checks → Deployment verification
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
3
9
  ---
4
10
 
5
11
  Verify that Trinity Method is properly installed in this project.
@@ -68,7 +74,7 @@ Report:
68
74
  ### Example 1: Complete Installation (100%)
69
75
 
70
76
  ```markdown
71
- # Trinity v2.0 Verification Report
77
+ # Trinity Verification Report
72
78
 
73
79
  **Project**: MyApp
74
80
  **Date**: 2025-12-18
@@ -450,4 +456,3 @@ ls -la .github/workflows/
450
456
  ```
451
457
 
452
458
  ---
453
-
@@ -1,9 +1,13 @@
1
- ---
2
- description: Create Trinity Method work orders interactively
3
- ---
4
-
5
1
  # Trinity Work Orders
6
2
 
3
+ **Command:** `/utility:trinity-workorder`
4
+ **Purpose:** Create Trinity Method work orders interactively
5
+ **Architecture:** MON wizard → Template selection → Work order creation
6
+ **Trinity Version:** 2.1.0
7
+ **Last Updated:** 2026-01-21
8
+
9
+ ---
10
+
7
11
  ## What Are Work Orders?
8
12
 
9
13
  Work orders are structured task documents that provide clear objectives, task breakdown, progress tracking, context preservation, and quality assurance.
@@ -1,6 +1,6 @@
1
1
  # {{PROJECT_NAME}} - Trinity Method
2
2
 
3
- **Version:** {{TRINITY_VERSION}}
3
+ ** Trinity Version:** {{TRINITY_VERSION}}
4
4
  **Deployed:** {{DEPLOYMENT_TIMESTAMP}}
5
5
 
6
6
  ---