trinity-method-sdk 2.0.9 → 2.2.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 (147) hide show
  1. package/CHANGELOG.md +702 -267
  2. package/README.md +550 -540
  3. package/dist/cli/commands/deploy/agents.js +1 -1
  4. package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
  5. package/dist/cli/commands/deploy/ci-cd.js +10 -9
  6. package/dist/cli/commands/deploy/claude-setup.js +28 -35
  7. package/dist/cli/commands/deploy/configuration.js +10 -11
  8. package/dist/cli/commands/deploy/directories.js +13 -14
  9. package/dist/cli/commands/deploy/gitignore.js +3 -5
  10. package/dist/cli/commands/deploy/index.d.ts +1 -1
  11. package/dist/cli/commands/deploy/index.js +7 -3
  12. package/dist/cli/commands/deploy/knowledge-base.js +3 -3
  13. package/dist/cli/commands/deploy/pre-flight.js +1 -1
  14. package/dist/cli/commands/deploy/root-files.js +3 -18
  15. package/dist/cli/commands/deploy/sdk-install.js +1 -1
  16. package/dist/cli/commands/deploy/summary.js +3 -3
  17. package/dist/cli/commands/deploy/templates.js +33 -20
  18. package/dist/cli/commands/update/agents.js +1 -1
  19. package/dist/cli/commands/update/backup.js +6 -12
  20. package/dist/cli/commands/update/commands.d.ts +1 -0
  21. package/dist/cli/commands/update/commands.js +18 -45
  22. package/dist/cli/commands/update/knowledge-base.js +2 -2
  23. package/dist/cli/commands/update/pre-flight.js +11 -11
  24. package/dist/cli/commands/update/summary.js +5 -5
  25. package/dist/cli/commands/update/templates.js +35 -13
  26. package/dist/cli/commands/update/verification.js +5 -5
  27. package/dist/cli/commands/update/version.js +1 -1
  28. package/dist/cli/utils/deploy-ci.d.ts +3 -2
  29. package/dist/cli/utils/deploy-ci.js +24 -24
  30. package/dist/cli/utils/deploy-linting.js +101 -6
  31. package/dist/cli/utils/error-classes.d.ts +2 -2
  32. package/dist/cli/utils/linting-tools.js +14 -6
  33. package/dist/cli/utils/template-processor.js +2 -4
  34. package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +16 -22
  35. package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +10 -10
  36. package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +13 -15
  37. package/dist/templates/{agents → .claude/agents}/aj-team/bon-dependency-manager.md.template +4 -4
  38. package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template +3 -3
  39. package/dist/templates/{agents → .claude/agents}/aj-team/dra-code-reviewer.md.template +8 -10
  40. package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +11 -13
  41. package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template +3 -3
  42. package/dist/templates/{agents → .claude/agents}/audit/juno-auditor.md.template +46 -42
  43. package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +59 -164
  44. package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +25 -22
  45. package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +32 -30
  46. package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +28 -23
  47. package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +10 -6
  48. package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +22 -19
  49. package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +8 -4
  50. package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +8 -4
  51. package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +8 -4
  52. package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +10 -4
  53. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +15 -15
  54. package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
  55. package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +48 -48
  56. package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +32 -54
  57. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +13 -7
  58. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +19 -15
  59. package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +12 -6
  60. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +9 -8
  61. package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +279 -0
  62. package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +2828 -0
  63. package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-readme.md.template +21 -20
  64. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-decompose.md.template +6 -4
  65. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-design.md.template +6 -4
  66. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-plan.md.template +7 -5
  67. package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-requirements.md.template +6 -4
  68. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-continue.md.template +30 -24
  69. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-end.md.template +403 -397
  70. package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-start.md.template +9 -4
  71. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +11 -8
  72. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +56 -57
  73. package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +13 -9
  74. package/dist/templates/ci/ci.yml.template +2 -2
  75. package/dist/templates/root/CLAUDE.md.template +9 -9
  76. package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
  77. package/dist/templates/source/base-CLAUDE.md.template +310 -310
  78. package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
  79. package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
  80. package/dist/templates/source/python-CLAUDE.md.template +510 -510
  81. package/dist/templates/source/react-CLAUDE.md.template +513 -513
  82. package/dist/templates/source/rust-CLAUDE.md.template +653 -653
  83. package/dist/templates/trinity/CLAUDE.md.template +14 -14
  84. package/dist/templates/{knowledge-base → trinity/knowledge-base}/AI-DEVELOPMENT-GUIDE.md.template +1 -1
  85. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ARCHITECTURE.md.template +5 -5
  86. package/dist/templates/{knowledge-base → trinity/knowledge-base}/CODING-PRINCIPLES.md.template +1 -1
  87. package/dist/templates/{knowledge-base → trinity/knowledge-base}/DOCUMENTATION-CRITERIA.md.template +1 -1
  88. package/dist/templates/{knowledge-base → trinity/knowledge-base}/ISSUES.md.template +9 -9
  89. package/dist/templates/{knowledge-base → trinity/knowledge-base}/TESTING-PRINCIPLES.md.template +1 -1
  90. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Technical-Debt.md.template +2 -4
  91. package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +2 -2
  92. package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +6 -6
  93. package/dist/templates/trinity/templates/documentation/api-docs/README.md.template +218 -0
  94. package/dist/templates/trinity/templates/documentation/configuration/documentation-structure.md.template +71 -0
  95. package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +387 -0
  96. package/dist/templates/trinity/templates/documentation/discovery/api-endpoint-scanner.md.template +343 -0
  97. package/dist/templates/trinity/templates/documentation/discovery/component-discovery.md.template +254 -0
  98. package/dist/templates/trinity/templates/documentation/discovery/env-variable-extraction.md.template +316 -0
  99. package/dist/templates/trinity/templates/documentation/discovery/framework-detection.md.template +205 -0
  100. package/dist/templates/trinity/templates/documentation/guides/api-development.md.template +375 -0
  101. package/dist/templates/trinity/templates/documentation/guides/contributing.md.template +488 -0
  102. package/dist/templates/trinity/templates/documentation/guides/deployment.md.template +565 -0
  103. package/dist/templates/trinity/templates/documentation/guides/getting-started.md.template +118 -0
  104. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template +56 -0
  105. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template +60 -0
  106. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/database-er.md.template +49 -0
  107. package/dist/templates/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template +41 -0
  108. package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +166 -0
  109. package/dist/templates/trinity/templates/documentation/processes/fallback-mechanism.md.template +88 -0
  110. package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +343 -0
  111. package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +1337 -0
  112. package/dist/templates/trinity/templates/documentation/reports/juno-final-report.md.template +237 -0
  113. package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +461 -0
  114. package/dist/templates/trinity/templates/documentation/validation/documentation-verification-rules.md.template +379 -0
  115. package/dist/templates/trinity/templates/documentation/validation/juno-quality-gates.md.template +282 -0
  116. package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +14 -14
  117. package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +14 -14
  118. package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +14 -14
  119. package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +14 -14
  120. package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +14 -14
  121. package/dist/templates/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +10 -13
  122. package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +10 -26
  123. package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +10 -26
  124. package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +10 -25
  125. package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +10 -26
  126. package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +10 -26
  127. package/package.json +99 -94
  128. package/dist/templates/agents/leadership/aj-cc.md.template +0 -462
  129. package/dist/templates/ci/cd.yml.template +0 -175
  130. package/dist/templates/ci/github-actions.yml +0 -86
  131. package/dist/templates/root/TRINITY.md.template +0 -52
  132. package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2577
  133. /package/dist/templates/{linting → root/linting}/flutter/.pre-commit-config.yaml.template +0 -0
  134. /package/dist/templates/{linting → root/linting}/flutter/analysis_options.yaml.template +0 -0
  135. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-commonjs.json.template +0 -0
  136. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-esm.json.template +0 -0
  137. /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-typescript.json.template +0 -0
  138. /package/dist/templates/{linting → root/linting}/nodejs/.pre-commit-config.yaml.template +0 -0
  139. /package/dist/templates/{linting → root/linting}/nodejs/.prettierrc.json.template +0 -0
  140. /package/dist/templates/{linting → root/linting}/python/.flake8.template +0 -0
  141. /package/dist/templates/{linting → root/linting}/python/.pre-commit-config.yaml.template +0 -0
  142. /package/dist/templates/{linting → root/linting}/python/pyproject.toml.template +0 -0
  143. /package/dist/templates/{linting → root/linting}/rust/.pre-commit-config.yaml.template +0 -0
  144. /package/dist/templates/{linting → root/linting}/rust/clippy.toml.template +0 -0
  145. /package/dist/templates/{linting → root/linting}/rust/rustfmt.toml.template +0 -0
  146. /package/dist/templates/{documentation → trinity/templates/documentation}/ROOT-README.md.template +0 -0
  147. /package/dist/templates/{documentation → trinity/templates/documentation}/SUBDIRECTORY-README.md.template +0 -0
@@ -1,10 +1,14 @@
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
 
7
- **Deliverable:** README audit report in `trinity/reports/README-AUDIT-{date}.md`
11
+ **Deliverable:** README audit report in `.claude/trinity/reports/README-AUDIT-{date}.md`
8
12
 
9
13
  ---
10
14
 
@@ -75,7 +79,7 @@ The `/trinity-readme` command invokes APO (Documentation Specialist) to manage R
75
79
 
76
80
  Before finalizing any README, verify:
77
81
 
78
- - [ ] No trinity/ directory in file tree
82
+ - [ ] No .claude/trinity/ directory in file tree
79
83
  - [ ] No .claude/ directory in file tree
80
84
  - [ ] No Trinity commands documented (unless project IS Trinity Method)
81
85
  - [ ] No references to Trinity agents (MON, ROR, KIL, etc.)
@@ -85,7 +89,7 @@ Before finalizing any README, verify:
85
89
  **Verification Command:**
86
90
  ```bash
87
91
  # Check for forbidden Trinity references in README
88
- grep -i "trinity/" README.md && echo "❌ VIOLATION: Documents trinity/ directory"
92
+ grep -i ".claude/trinity/" README.md && echo "❌ VIOLATION: Documents .claude/trinity/ directory"
89
93
  grep -i "\.claude/" README.md && echo "❌ VIOLATION: Documents .claude/ directory"
90
94
  grep -i "/trinity-" README.md && echo "❌ VIOLATION: Documents Trinity commands"
91
95
  ```
@@ -329,7 +333,7 @@ filtered_directories = []
329
333
 
330
334
  for each directory in all_directories:
331
335
  # ALWAYS skip Trinity infrastructure
332
- if directory.includes("trinity/") or directory.includes(".claude/"):
336
+ if directory.includes(".claude/trinity/") or directory.includes(".claude/"):
333
337
  echo "SKIP: $directory (Trinity infrastructure - never document)"
334
338
  continue
335
339
 
@@ -347,23 +351,23 @@ done
347
351
 
348
352
  **Trinity Detection Warning:**
349
353
 
350
- If you detect trinity/ or .claude/ directories during Phase 1:
354
+ If you detect .claude/trinity/ or .claude/ directories during Phase 1:
351
355
 
352
- 1. **Acknowledge detection:** "Detected Trinity Method infrastructure (trinity/ directory found)"
353
- 2. **Skip documentation:** Do NOT include trinity/ in file tree or README content
356
+ 1. **Acknowledge detection:** "Detected Trinity Method infrastructure (.claude/trinity/ directory found)"
357
+ 2. **Skip documentation:** Do NOT include .claude/trinity/ in file tree or README content
354
358
  3. **Skip template:** Do NOT use Trinity-specific templates
355
359
  4. **Continue normally:** Process other directories (backend/, frontend/, etc.)
356
360
 
357
361
  **Example Output:**
358
362
  ```
359
- ✓ Detected directories: backend/, frontend/, docs/, trinity/
363
+ ✓ Detected directories: backend/, frontend/, docs/, .claude/trinity/
360
364
  ✓ Filtering Trinity infrastructure and gitignored directories...
361
- - trinity/ (Trinity infrastructure) → SKIP
365
+ - .claude/trinity/ (Trinity infrastructure) → SKIP
362
366
  - .claude/ (Trinity infrastructure) → SKIP
363
367
  ✓ Final directories to document: backend/, frontend/, docs/
364
368
  ```
365
369
 
366
- **Rule:** Trinity infrastructure (trinity/, .claude/) is ALWAYS excluded from user-facing READMEs, even if not gitignored.
370
+ **Rule:** Trinity infrastructure (.claude/trinity/, .claude/) is ALWAYS excluded from user-facing READMEs, even if not gitignored.
367
371
 
368
372
  **Step 5: Report Complete Inventory (Using Validated Count)**
369
373
 
@@ -420,7 +424,7 @@ APO MUST answer ALL checklist items:
420
424
 
421
425
  6. **Project Structure Sanity:**
422
426
  - For project with backend/, frontend/, database/, do I expect nested CLAUDE.md files? ✅ YES | ❌ NO
423
- - Do I see trinity/ or .claude/ directories? ⚠️ IGNORE (methodology infrastructure, not project code)
427
+ - Do I see .claude/trinity/ or .claude/ directories? ⚠️ IGNORE (methodology infrastructure, not project code)
424
428
  - If YES but none found: Re-run Glob with explicit paths
425
429
 
426
430
  **Self-Verification Action:**
@@ -434,7 +438,7 @@ IF any critical item = ❌ NO:
434
438
  - lib/**/CLAUDE.md
435
439
  Merge results and re-validate
436
440
 
437
- **Note:** Do NOT include trinity/ or .claude/ patterns - these are methodology infrastructure.
441
+ **Note:** Do NOT include .claude/trinity/ or .claude/ patterns - these are methodology infrastructure.
438
442
 
439
443
  **Checklist Completion:** ✅ 6/6 items verified
440
444
  ```
@@ -621,7 +625,7 @@ Check all documentation links in root README.md work:
621
625
 
622
626
  If JUNO audit report exists, cross-reference root README.md claims:
623
627
 
624
- 1. Read `trinity/reports/CODEBASE-AUDIT-{latest}.md`
628
+ 1. Read `.claude/trinity/reports/CODEBASE-AUDIT-{latest}.md`
625
629
  2. Extract actual counts (files, components, tests, etc.)
626
630
  3. Use audit findings as source of truth for root README.md
627
631
  4. Identify inaccuracies in root README.md for Phase 2.5 commitment
@@ -1835,7 +1839,7 @@ All directories with CLAUDE.md have README.md files.
1835
1839
 
1836
1840
  ### Phase 7: README Audit Report
1837
1841
 
1838
- **APO Generates:** `trinity/reports/README-AUDIT-{date}.md`
1842
+ **APO Generates:** `.claude/trinity/reports/README-AUDIT-{date}.md`
1839
1843
 
1840
1844
  **CRITICAL: Report MUST document COMPLETED work, not future recommendations.**
1841
1845
 
@@ -2023,7 +2027,7 @@ OR
2023
2027
  ---
2024
2028
 
2025
2029
  **Report Generated:** {timestamp}
2026
- **Report Location:** trinity/reports/README-AUDIT-{date}.md
2030
+ **Report Location:** .claude/trinity/reports/README-AUDIT-{date}.md
2027
2031
  ```
2028
2032
 
2029
2033
  ---
@@ -2086,7 +2090,7 @@ If Phase 6 validation shows coverage < 100%, status = ❌ FAILED even if Phase 4
2086
2090
 
2087
2091
  **After `/trinity-readme` completes, verify:**
2088
2092
 
2089
- 1. ✅ Check final report in `trinity/reports/README-AUDIT-{date}.md`
2093
+ 1. ✅ Check final report in `.claude/trinity/reports/README-AUDIT-{date}.md`
2090
2094
  2. ✅ Verify coverage = 100% in report
2091
2095
  3. ✅ Verify all Phase 2.5 fixes show "✅ FIXED" status
2092
2096
  4. ✅ Verify all checkpoints show "✅ PASSED"
@@ -2098,6 +2102,3 @@ If Phase 6 validation shows coverage < 100%, status = ❌ FAILED even if Phase 4
2098
2102
  - Re-run command if failures detected
2099
2103
 
2100
2104
  ---
2101
-
2102
- ** Trinity Version:** 2.0.9
2103
- **Last Updated:** 2026-01-12
@@ -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.
@@ -7,16 +13,16 @@ Resume Trinity Method workflow after interruption.
7
13
  **Context:** User experienced a crash or is returning to an existing session with incomplete work.
8
14
 
9
15
  **When to use:**
10
- - Work orders in trinity/work-orders/ haven't been completed
11
- - Reports in trinity/reports/ haven't been analyzed
12
- - Session files in trinity/sessions/ need review
16
+ - Work orders in .claude/trinity/work-orders/ haven't been completed
17
+ - Reports in .claude/trinity/reports/ haven't been analyzed
18
+ - Session files in .claude/trinity/sessions/ need review
13
19
  - User needs to pick up where they left off
14
20
 
15
21
  **Process:**
16
22
  1. **ALY (CTO)** reviews all current work:
17
- - Check trinity/sessions/ for active session files
18
- - Review trinity/work-orders/ for incomplete work orders
19
- - Analyze trinity/reports/ for unprocessed reports
23
+ - Check .claude/trinity/sessions/ for active session files
24
+ - Review .claude/trinity/work-orders/ for incomplete work orders
25
+ - Analyze .claude/trinity/reports/ for unprocessed reports
20
26
 
21
27
  2. **ALY provides session summary:**
22
28
  - Last known state of work
@@ -46,7 +52,7 @@ git log --oneline -5
46
52
 
47
53
  2. **Work Order Checking**:
48
54
  ```bash
49
- cat trinity/work-orders/WO-042-jwt-refresh-implementation.md
55
+ cat .claude/trinity/work-orders/WO-042-jwt-refresh-implementation.md
50
56
  # Status: IN PROGRESS
51
57
  # **Last Updated**: 2 hours ago
52
58
  # Progress: Task 3/7
@@ -54,14 +60,14 @@ cat trinity/work-orders/WO-042-jwt-refresh-implementation.md
54
60
 
55
61
  3. **Session File Reading**:
56
62
  ```bash
57
- cat trinity/sessions/SESSION-2025-12-18-14-30.md
63
+ cat .claude/trinity/sessions/SESSION-2025-12-18-14-30.md
58
64
  # Last entry: "Implementing middleware integration (50% complete)"
59
65
  # Interrupted: Context window limit reached
60
66
  ```
61
67
 
62
68
  4. **Knowledge Base Review**:
63
69
  ```bash
64
- cat trinity/knowledge-base/To-do.md
70
+ cat .claude/trinity/knowledge-base/To-do.md
65
71
  # Shows 4 remaining tasks for JWT implementation
66
72
  ```
67
73
 
@@ -203,7 +209,7 @@ The previous session (3 days ago) was completed successfully:
203
209
  - Or create new work order with `/trinity-workorder`
204
210
 
205
211
  **Option 2: Review Backlog**
206
- - Check trinity/work-orders/ for pending work orders
212
+ - Check .claude/trinity/work-orders/ for pending work orders
207
213
  - Prioritize and select next task
208
214
  - Begin implementation
209
215
 
@@ -400,13 +406,13 @@ git diff HEAD
400
406
  ### 2. Work Order Checking
401
407
  ```bash
402
408
  # List all work orders
403
- ls -lt trinity/work-orders/
409
+ ls -lt .claude/trinity/work-orders/
404
410
 
405
411
  # Find IN PROGRESS work orders
406
- grep -r "Status: IN PROGRESS" trinity/work-orders/
412
+ grep -r "Status: IN PROGRESS" .claude/trinity/work-orders/
407
413
 
408
414
  # Read most recent work order
409
- cat trinity/work-orders/WO-042-*.md
415
+ cat .claude/trinity/work-orders/WO-042-*.md
410
416
  ```
411
417
 
412
418
  **Information Gathered**:
@@ -418,10 +424,10 @@ cat trinity/work-orders/WO-042-*.md
418
424
  ### 3. Session File Reading
419
425
  ```bash
420
426
  # Find most recent session file
421
- ls -lt trinity/sessions/ | head -1
427
+ ls -lt .claude/trinity/sessions/ | head -1
422
428
 
423
429
  # Read session log
424
- cat trinity/sessions/SESSION-2025-12-18-14-30.md
430
+ cat .claude/trinity/sessions/SESSION-2025-12-18-14-30.md
425
431
  ```
426
432
 
427
433
  **Information Gathered**:
@@ -433,13 +439,13 @@ cat trinity/sessions/SESSION-2025-12-18-14-30.md
433
439
  ### 4. Knowledge Base Review
434
440
  ```bash
435
441
  # Check active tasks
436
- cat trinity/knowledge-base/To-do.md
442
+ cat .claude/trinity/knowledge-base/To-do.md
437
443
 
438
444
  # Review known issues
439
- cat trinity/knowledge-base/ISSUES.md
445
+ cat .claude/trinity/knowledge-base/ISSUES.md
440
446
 
441
447
  # Check recent decisions
442
- tail -20 trinity/knowledge-base/ARCHITECTURE.md
448
+ tail -20 .claude/trinity/knowledge-base/ARCHITECTURE.md
443
449
  ```
444
450
 
445
451
  **Information Gathered**:
@@ -489,7 +495,7 @@ git log origin/main..HEAD --oneline
489
495
  - Terminal history
490
496
  - In-memory variables
491
497
 
492
- **Persisted In**: `trinity/sessions/SESSION-{timestamp}.md`
498
+ **Persisted In**: `.claude/trinity/sessions/SESSION-{timestamp}.md`
493
499
 
494
500
  ### Work Order State
495
501
  **What**: Progress on specific task
@@ -497,7 +503,7 @@ git log origin/main..HEAD --oneline
497
503
  - Current phase
498
504
  - Blockers/issues
499
505
 
500
- **Persisted In**: `trinity/work-orders/WO-XXX-{title}.md`
506
+ **Persisted In**: `.claude/trinity/work-orders/WO-XXX-{title}.md`
501
507
 
502
508
  ### Key Difference
503
509
 
@@ -536,12 +542,12 @@ git log origin/main..HEAD --oneline
536
542
  **/trinity-continue**:
537
543
  - Analyzes current state (git, work orders, sessions)
538
544
  - Provides recovery options
539
- - Resumes with AJ MAESTRO or AJ CC
545
+ - Resumes with AJ MAESTRO
540
546
 
541
547
  **/trinity-end**:
542
548
  - Creates session summary
543
549
  - Updates knowledge base
544
- - Archives work to trinity/archive/
550
+ - Archives work to .claude/trinity/archive/
545
551
  - Clears session state
546
552
 
547
553
  **Don't Use /trinity-end** if you're just taking a break - context will be lost!