trinity-method-sdk 2.1.0 → 2.2.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 (101) hide show
  1. package/CHANGELOG.md +728 -467
  2. package/README.md +550 -539
  3. package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
  4. package/dist/cli/commands/deploy/ci-cd.js +10 -9
  5. package/dist/cli/commands/deploy/configuration.js +10 -11
  6. package/dist/cli/commands/deploy/directories.js +13 -14
  7. package/dist/cli/commands/deploy/gitignore.js +3 -4
  8. package/dist/cli/commands/deploy/index.d.ts +1 -1
  9. package/dist/cli/commands/deploy/index.js +6 -2
  10. package/dist/cli/commands/deploy/knowledge-base.js +2 -2
  11. package/dist/cli/commands/deploy/pre-flight.js +1 -1
  12. package/dist/cli/commands/deploy/root-files.js +2 -17
  13. package/dist/cli/commands/deploy/summary.js +3 -3
  14. package/dist/cli/commands/deploy/templates.js +5 -5
  15. package/dist/cli/commands/update/backup.js +6 -12
  16. package/dist/cli/commands/update/index.js +15 -1
  17. package/dist/cli/commands/update/knowledge-base.js +1 -1
  18. package/dist/cli/commands/update/migration.d.ts +31 -0
  19. package/dist/cli/commands/update/migration.js +130 -0
  20. package/dist/cli/commands/update/pre-flight.d.ts +7 -2
  21. package/dist/cli/commands/update/pre-flight.js +21 -20
  22. package/dist/cli/commands/update/summary.js +11 -5
  23. package/dist/cli/commands/update/templates.js +1 -1
  24. package/dist/cli/commands/update/types.d.ts +2 -0
  25. package/dist/cli/commands/update/verification.js +5 -5
  26. package/dist/cli/commands/update/version.js +6 -4
  27. package/dist/cli/utils/deploy-ci.d.ts +3 -2
  28. package/dist/cli/utils/deploy-ci.js +24 -24
  29. package/dist/cli/utils/deploy-linting.js +100 -5
  30. package/dist/cli/utils/error-classes.d.ts +2 -2
  31. package/dist/cli/utils/linting-tools.js +14 -6
  32. package/dist/cli/utils/template-processor.js +1 -3
  33. package/dist/templates/.claude/EMPLOYEE-DIRECTORY.md.template +16 -22
  34. package/dist/templates/.claude/agents/aj-team/apo-documentation-specialist.md.template +7 -7
  35. package/dist/templates/.claude/agents/aj-team/bas-quality-gate.md.template +8 -8
  36. package/dist/templates/.claude/agents/aj-team/dra-code-reviewer.md.template +3 -3
  37. package/dist/templates/.claude/agents/aj-team/kil-task-executor.md.template +6 -6
  38. package/dist/templates/.claude/agents/audit/juno-auditor.md.template +39 -40
  39. package/dist/templates/.claude/agents/deployment/ein-cicd.md.template +56 -159
  40. package/dist/templates/.claude/agents/deployment/ino-context.md.template +21 -21
  41. package/dist/templates/.claude/agents/deployment/tan-structure.md.template +28 -29
  42. package/dist/templates/.claude/agents/deployment/zen-knowledge.md.template +22 -23
  43. package/dist/templates/.claude/agents/leadership/aj-maestro.md.template +6 -6
  44. package/dist/templates/.claude/agents/leadership/aly-cto.md.template +17 -18
  45. package/dist/templates/.claude/agents/planning/eus-decomposer.md.template +4 -4
  46. package/dist/templates/.claude/agents/planning/mon-requirements.md.template +4 -4
  47. package/dist/templates/.claude/agents/planning/ror-design.md.template +4 -4
  48. package/dist/templates/.claude/agents/planning/tra-planner.md.template +4 -4
  49. package/dist/templates/.claude/commands/execution/trinity-audit.md.template +9 -9
  50. package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
  51. package/dist/templates/.claude/commands/execution/trinity-orchestrate.md.template +43 -43
  52. package/dist/templates/.claude/commands/infrastructure/trinity-init.md.template +20 -43
  53. package/dist/templates/.claude/commands/investigation/trinity-create-investigation.md.template +5 -5
  54. package/dist/templates/.claude/commands/investigation/trinity-investigate-templates.md.template +10 -10
  55. package/dist/templates/.claude/commands/investigation/trinity-plan-investigation.md.template +1 -1
  56. package/dist/templates/.claude/commands/maintenance/trinity-changelog.md.template +4 -4
  57. package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +10 -10
  58. package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +62 -62
  59. package/dist/templates/.claude/commands/maintenance/trinity-readme.md.template +16 -16
  60. package/dist/templates/.claude/commands/session/trinity-continue.md.template +22 -22
  61. package/dist/templates/.claude/commands/session/trinity-end.md.template +22 -22
  62. package/dist/templates/.claude/commands/session/trinity-start.md.template +1 -2
  63. package/dist/templates/.claude/commands/utility/trinity-agents.md.template +3 -6
  64. package/dist/templates/.claude/commands/utility/trinity-verify.md.template +48 -54
  65. package/dist/templates/.claude/commands/utility/trinity-workorder.md.template +5 -5
  66. package/dist/templates/ci/ci.yml.template +2 -2
  67. package/dist/templates/root/CLAUDE.md.template +9 -9
  68. package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
  69. package/dist/templates/source/base-CLAUDE.md.template +310 -310
  70. package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
  71. package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
  72. package/dist/templates/source/python-CLAUDE.md.template +510 -510
  73. package/dist/templates/source/react-CLAUDE.md.template +513 -513
  74. package/dist/templates/source/rust-CLAUDE.md.template +653 -653
  75. package/dist/templates/trinity/CLAUDE.md.template +14 -14
  76. package/dist/templates/trinity/knowledge-base/ARCHITECTURE.md.template +4 -4
  77. package/dist/templates/trinity/knowledge-base/ISSUES.md.template +8 -8
  78. package/dist/templates/trinity/knowledge-base/Technical-Debt.md.template +1 -3
  79. package/dist/templates/trinity/knowledge-base/To-do.md.template +1 -1
  80. package/dist/templates/trinity/knowledge-base/Trinity.md.template +5 -5
  81. package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +1 -1
  82. package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +2 -2
  83. package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +7 -7
  84. package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +4 -4
  85. package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +10 -10
  86. package/dist/templates/trinity/templates/investigations/bug.md.template +14 -14
  87. package/dist/templates/trinity/templates/investigations/feature.md.template +14 -14
  88. package/dist/templates/trinity/templates/investigations/performance.md.template +14 -14
  89. package/dist/templates/trinity/templates/investigations/security.md.template +14 -14
  90. package/dist/templates/trinity/templates/investigations/technical.md.template +14 -14
  91. package/dist/templates/trinity/templates/work-orders/ANALYSIS-TEMPLATE.md.template +10 -10
  92. package/dist/templates/trinity/templates/work-orders/AUDIT-TEMPLATE.md.template +10 -10
  93. package/dist/templates/trinity/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +10 -10
  94. package/dist/templates/trinity/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +10 -10
  95. package/dist/templates/trinity/templates/work-orders/PATTERN-TEMPLATE.md.template +10 -10
  96. package/dist/templates/trinity/templates/work-orders/VERIFICATION-TEMPLATE.md.template +10 -10
  97. package/package.json +99 -94
  98. package/dist/templates/.claude/agents/leadership/aj-cc.md.template +0 -467
  99. package/dist/templates/ci/cd.yml.template +0 -175
  100. package/dist/templates/ci/github-actions.yml +0 -86
  101. package/dist/templates/root/TRINITY.md.template +0 -52
@@ -39,7 +39,7 @@
39
39
  ### Session Initialization
40
40
  ```markdown
41
41
  ## Required Steps at Session Start:
42
- 1. Load project context from ../CLAUDE.md
42
+ 1. Load project context from ../../CLAUDE.md
43
43
  2. Review outstanding tasks in knowledge-base/To-do.md
44
44
  3. Check system health and performance metrics
45
45
  4. Update dependencies if needed
@@ -63,7 +63,7 @@
63
63
  ### Session Artifacts Management
64
64
  ```yaml
65
65
  Session Artifacts:
66
- Location: trinity/sessions/[YYYY-MM-DD]-[HHMMSS]/
66
+ Location: .claude/trinity/sessions/[YYYY-MM-DD]-[HHMMSS]/
67
67
  Required Files:
68
68
  - SESSION-SUMMARY.md # Session overview and accomplishments
69
69
  - investigation-summary.md # What was investigated
@@ -94,7 +94,7 @@ Session Artifacts:
94
94
  ```markdown
95
95
  ## Response for Performance Degradation:
96
96
  1. Measure current performance metrics
97
- 2. Compare against established baselines in ../CLAUDE.md
97
+ 2. Compare against established baselines in ../../CLAUDE.md
98
98
  3. Identify performance bottlenecks
99
99
  4. Investigate using Trinity methodology
100
100
  5. Implement targeted optimizations
@@ -237,14 +237,14 @@ const trinityMetrics = {
237
237
  ### Knowledge Persistence Framework
238
238
  ```yaml
239
239
  Knowledge Base Structure:
240
- trinity/knowledge-base/
240
+ .claude/trinity/knowledge-base/
241
241
  - ISSUES.md # Common problems and solutions
242
242
  - Trinity.md # Trinity Method project guide
243
243
  - ARCHITECTURE.md # System architecture documentation
244
244
  - Technical-Debt.md # Technical debt tracking
245
245
  - To-do.md # Task tracking and planning
246
246
 
247
- trinity/sessions/
247
+ .claude/trinity/sessions/
248
248
  - [YYYY-MM-DD]-[HHMMSS]/ # Session artifacts
249
249
  - SESSION-SUMMARY.md
250
250
  - investigation-summary.md
@@ -252,13 +252,13 @@ Knowledge Base Structure:
252
252
  - issues-resolved.md
253
253
  - performance-report.md
254
254
 
255
- trinity/investigations/
255
+ .claude/trinity/investigations/
256
256
  - [investigation-name]/ # Investigation work products
257
257
 
258
- trinity/patterns/
258
+ .claude/trinity/patterns/
259
259
  - [pattern-name].md # Reusable solution patterns
260
260
 
261
- trinity/work-orders/
261
+ .claude/trinity/work-orders/
262
262
  - WORKORDER-XXX.md # Active work orders
263
263
  ```
264
264
 
@@ -326,9 +326,9 @@ Execute Framework Crisis Protocol
326
326
 
327
327
  ### Hierarchical Context Loading
328
328
  ```
329
- 1. ../CLAUDE.md → Global project context (load FIRST)
330
- 2. trinity/CLAUDE.md (this file) → Trinity Method enforcement (load SECOND)
331
- 3. ../{{SOURCE_DIR}}/CLAUDE.md → Technology-specific rules (load THIRD)
329
+ 1. ../../CLAUDE.md → Global project context (load FIRST)
330
+ 2. .claude/trinity/CLAUDE.md (this file) → Trinity Method enforcement (load SECOND)
331
+ 3. ../../{{SOURCE_DIR}}/CLAUDE.md → Technology-specific rules (load THIRD)
332
332
  ```
333
333
 
334
334
  ### Context Priority Rules
@@ -341,7 +341,7 @@ Execute Framework Crisis Protocol
341
341
 
342
342
  ## Reference to Parent Context
343
343
 
344
- This file extends and enforces the global requirements defined in `../CLAUDE.md`. All Trinity Method protocols must comply with:
344
+ This file extends and enforces the global requirements defined in `../../CLAUDE.md`. All Trinity Method protocols must comply with:
345
345
  - Global performance baselines
346
346
  - Project-wide behavioral requirements
347
347
  - Technology stack specifications
@@ -355,10 +355,10 @@ For technology-specific implementation details, see: `../src/CLAUDE.md`
355
355
 
356
356
  This file enforces Trinity Method protocols for all development work.
357
357
 
358
- **Parent Context**: [../CLAUDE.md](../CLAUDE.md) - Project overview and global requirements
358
+ **Parent Context**: [../../CLAUDE.md](../../CLAUDE.md) - Project overview and global requirements
359
359
  **Child Context**: [../src/CLAUDE.md](../src/CLAUDE.md) - Framework-specific implementation rules
360
360
  **Related Resources**:
361
- - [Agent Directory](../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team guide
361
+ - [Agent Directory](../EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team guide
362
362
  - [Architecture Documentation](knowledge-base/ARCHITECTURE.md) - System architecture and patterns
363
363
  - [Known Issues](knowledge-base/ISSUES.md) - Issue patterns and resolutions
364
364
  - [Technical Debt](knowledge-base/Technical-Debt.md) - Debt tracking and reduction plans
@@ -27,7 +27,7 @@ const {{PROJECT_VAR_NAME}}Stack = {
27
27
  ```
28
28
  {{PROJECT_NAME}}/
29
29
  ├── {{SOURCE_DIR}}/ # Main source code
30
- ├── trinity/ # Trinity Method implementation
30
+ ├── .claude/trinity/ # Trinity Method implementation
31
31
  │ ├── knowledge-base/ # Architecture & documentation
32
32
  ├── tests/ # Test suites
33
33
  └── docs/ # Additional documentation
@@ -308,9 +308,9 @@ graph LR
308
308
 
309
309
  ### Knowledge Capture
310
310
  - Architecture decisions recorded here
311
- - Patterns documented in trinity/patterns/
312
- - Issues tracked in trinity/knowledge-base/ISSUES.md
313
- - Sessions archived in trinity/sessions/
311
+ - Patterns documented in .claude/trinity/patterns/
312
+ - Issues tracked in .claude/trinity/knowledge-base/ISSUES.md
313
+ - Sessions archived in .claude/trinity/sessions/
314
314
 
315
315
  ---
316
316
 
@@ -225,8 +225,8 @@ Pattern_Prevention_Rate: {{PERCENTAGE}}%
225
225
  - Dependencies: {{DEPENDENCIES}}
226
226
 
227
227
  ### Completed Investigations (This Session)
228
- - [x] {{COMPLETED_1}} - See: trinity/investigations/{{DATE}}-{{INVESTIGATION}}.md
229
- - [x] {{COMPLETED_2}} - See: trinity/investigations/{{DATE}}-{{INVESTIGATION}}.md
228
+ - [x] {{COMPLETED_1}} - See: .claude/trinity/investigations/{{DATE}}-{{INVESTIGATION}}.md
229
+ - [x] {{COMPLETED_2}} - See: .claude/trinity/investigations/{{DATE}}-{{INVESTIGATION}}.md
230
230
 
231
231
  ---
232
232
 
@@ -285,7 +285,7 @@ Solution:
285
285
 
286
286
  Prevention:
287
287
  Pattern_Created: {{YES/NO}}
288
- Pattern_Location: trinity/patterns/{{PATTERN_FILE}}
288
+ Pattern_Location: .claude/trinity/patterns/{{PATTERN_FILE}}
289
289
  Guidelines_Updated: {{YES/NO}}
290
290
 
291
291
  Metrics:
@@ -346,7 +346,7 @@ Metrics:
346
346
  - **ARCHITECTURE.md**: System design and components
347
347
  - **Trinity.md**: Methodology implementation
348
348
  - **To-do.md**: Pending fixes and improvements
349
- - **Pattern Library**: trinity/patterns/
349
+ - **Pattern Library**: .claude/trinity/patterns/
350
350
 
351
351
  ---
352
352
 
@@ -417,7 +417,7 @@ Updates_Required:
417
417
  - Active_Issues: Add new issue with P0/P1/P2/P3 priority
418
418
  - Issue_Template: Fill with symptoms, root cause, solution
419
419
  - Pattern_Check: Is this a recurring issue? Create pattern if yes
420
- - Investigation_Link: Link to trinity/investigations/ file if investigation done
420
+ - Investigation_Link: Link to .claude/trinity/investigations/ file if investigation done
421
421
  - Cross_References:
422
422
  - To-do.md: Add fix task with priority
423
423
  - Technical-Debt.md: Add debt if issue reveals shortcuts
@@ -442,7 +442,7 @@ Updates_Required:
442
442
  - Pattern_Frequency: Update occurrence count
443
443
  - Related_Issues: Link all issue IDs that match this pattern
444
444
  - Prevention_Measures: Document how to prevent this pattern
445
- - Pattern_Library: Create pattern file in trinity/patterns/
445
+ - Pattern_Library: Create pattern file in .claude/trinity/patterns/
446
446
  - Cross_References:
447
447
  - Technical-Debt.md: Link pattern to debt if applicable
448
448
  - CODING-PRINCIPLES.md: Add principle if pattern reveals standard gap
@@ -481,7 +481,7 @@ Updates_Required:
481
481
  4. **Link Investigation**: If investigation file exists, link it
482
482
  5. **Update Metrics**: Increment counts, update averages
483
483
  6. **Cross-Reference**: Update related documents (To-do, Technical-Debt, etc.)
484
- 7. **Pattern Library**: Create trinity/patterns/ file if reusable solution
484
+ 7. **Pattern Library**: Create .claude/trinity/patterns/ file if reusable solution
485
485
  8. **Update Timestamp**: Set `**Last Updated**: {{CURRENT_DATE}}` to actual date
486
486
 
487
487
  **Quality Checklist:**
@@ -530,7 +530,7 @@ Updates_Required:
530
530
  **Update Frequency**: Real-time (as issues discovered) + session-based
531
531
  **Maintained By**: Development team using Trinity Method
532
532
  **Referenced By**: `/trinity-end` command for session updates
533
- **Pattern Library**: Creates trinity/patterns/ files
533
+ **Pattern Library**: Creates .claude/trinity/patterns/ files
534
534
  **Last Updated**: {{CURRENT_DATE}}
535
535
 
536
536
  ---
@@ -402,8 +402,6 @@ const calculateDebtScore = () => {
402
402
  - **ARCHITECTURE.md**: System design decisions
403
403
  - **Trinity.md**: Methodology implementation
404
404
  - **To-do.md**: Actionable task list
405
- - **Pattern Library**: trinity/patterns/
406
-
407
405
  ---
408
406
 
409
407
  ## 📝 WHEN TO UPDATE THIS DOCUMENT
@@ -512,7 +510,7 @@ Updates_Required:
512
510
  - Debt_Reduction_Plan: Add to Quick Wins or Strategic Improvements
513
511
  - Cross_References:
514
512
  - ISSUES.md: Link to duplication pattern if causes issues
515
- - trinity/patterns/: Create pattern file
513
+ - Document pattern in Pattern Library section above
516
514
  ```
517
515
 
518
516
  **Scenario: Security Vulnerability Fixed**
@@ -29,7 +29,7 @@
29
29
  ### Feature Development
30
30
  - [ ] **{{FEATURE_1}}**
31
31
  - Investigation Required: YES
32
- - Pattern Check: trinity/patterns/
32
+ - Pattern Check: Technical-Debt.md#pattern-library
33
33
  - Tests Required: Unit + Integration
34
34
  - Documentation: Update ARCHITECTURE.md
35
35
  - Estimated: {{TIME_ESTIMATE}}
@@ -30,12 +30,12 @@ Every feature/fix in {{PROJECT_NAME}} requires investigation:
30
30
  - Security considerations
31
31
 
32
32
  3. **Pattern Discovery** (5 minutes)
33
- - Check trinity/patterns/ for existing solutions
33
+ - Check .claude/trinity/patterns/ for existing solutions
34
34
  - Document new patterns if discovered
35
35
  - Update pattern library
36
36
 
37
37
  4. **Documentation** (5 minutes)
38
- - Save to trinity/investigations/[date]-[feature].md
38
+ - Save to .claude/trinity/investigations/[date]-[feature].md
39
39
  - Update relevant knowledge base files
40
40
  - Link to issues if applicable
41
41
 
@@ -103,7 +103,7 @@ Debug_Levels:
103
103
 
104
104
  ### Pre-Implementation Checklist
105
105
  - [ ] Investigation completed
106
- - [ ] Existing patterns reviewed (trinity/patterns/)
106
+ - [ ] Existing patterns reviewed (.claude/trinity/patterns/)
107
107
  - [ ] Performance impact assessed
108
108
  - [ ] Security implications considered
109
109
  - [ ] Test plan created
@@ -233,7 +233,7 @@ Session_End:
233
233
  - Update metrics
234
234
 
235
235
  3_Archive:
236
- - Move to trinity/sessions/[date]/
236
+ - Move to .claude/trinity/sessions/[date]/
237
237
  - Create session summary
238
238
  - Update project metrics
239
239
  - Plan next session
@@ -245,7 +245,7 @@ Session_End:
245
245
 
246
246
  ### Pattern Discovery Process
247
247
  1. **Identify**: Recognize recurring solutions
248
- 2. **Document**: Create pattern file in trinity/patterns/
248
+ 2. **Document**: Create pattern file in .claude/trinity/patterns/
249
249
  3. **Validate**: Test pattern effectiveness
250
250
  4. **Share**: Update pattern index
251
251
  5. **Reuse**: Apply in future implementations
@@ -326,7 +326,7 @@ APO-3 will receive these pre-filled variables from JUNO's audit report:
326
326
  ```markdown
327
327
  ## File 1: .env.example
328
328
 
329
- **Template:** trinity/templates/documentation/config/env-example-generator.md.template
329
+ **Template:** .claude/trinity/templates/documentation/config/env-example-generator.md.template
330
330
 
331
331
  **Variables to Replace:**
332
332
  - {{PROJECT_NAME}}: "dnd-tool"
@@ -107,7 +107,7 @@ Details: [ADDITIONAL_INFO]
107
107
 
108
108
  **Tier 1 (ABORT):**
109
109
  - Cannot read JUNO report from global state
110
- - Cannot read guide templates from trinity/templates/documentation/
110
+ - Cannot read guide templates from .claude/trinity/templates/documentation/
111
111
  - Cannot write guide files (permission denied)
112
112
 
113
113
  **Tier 2 (WARN):**
@@ -149,7 +149,7 @@ if (juno_incomplete || data_missing) {
149
149
  LOG: `Reason: ${fallback_reason}`;
150
150
 
151
151
  // Use discovery templates directly
152
- // See trinity/templates/discovery/ for patterns
152
+ // See .claude/trinity/templates/discovery/ for patterns
153
153
 
154
154
  // Mark fallback usage
155
155
  fallback_used = true;
@@ -11,14 +11,14 @@
11
11
 
12
12
  ```
13
13
  Use Task tool with subagent_type="APO (Documentation Specialist)" to write:
14
- - File path: trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md
14
+ - File path: .claude/trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md
15
15
  - Content: Copy of this template
16
16
  ```
17
17
 
18
18
  **Example file paths:**
19
- - APO-1: `trinity/reports/apo-1-docs-update-checklist.md`
20
- - APO-2: `trinity/reports/apo-2-docs-update-checklist.md`
21
- - APO-3: `trinity/reports/apo-3-docs-update-checklist.md`
19
+ - APO-1: `.claude/trinity/reports/apo-1-docs-update-checklist.md`
20
+ - APO-2: `.claude/trinity/reports/apo-2-docs-update-checklist.md`
21
+ - APO-3: `.claude/trinity/reports/apo-3-docs-update-checklist.md`
22
22
 
23
23
  **You MUST use Task skill Write to create your checklist file before proceeding.**
24
24
 
@@ -29,7 +29,7 @@ Use Task tool with subagent_type="APO (Documentation Specialist)" to write:
29
29
  1. **Use Task skill Read to read JUNO's audit report:**
30
30
  ```
31
31
  Use Task tool with subagent_type="APO (Documentation Specialist)" to read:
32
- - File path: trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md
32
+ - File path: .claude/trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md
33
33
  ```
34
34
 
35
35
  2. **Find your section:**
@@ -68,7 +68,7 @@ Use Task tool with subagent_type="APO (Documentation Specialist)" to write:
68
68
  1. **Start with the first unchecked task** on your list
69
69
  2. **Complete the task** (create or update the documentation file using Task skill)
70
70
  3. **Update your checklist** - Mark the task as complete: `- [x]`
71
- 4. **Use Task skill Edit to save your updated checklist** to `trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md`
71
+ 4. **Use Task skill Edit to save your updated checklist** to `.claude/trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md`
72
72
  5. **Move to the next task** and repeat
73
73
 
74
74
  **DO NOT:**
@@ -298,7 +298,7 @@ import ComponentName from './ComponentName';
298
298
  1.  All tasks on your checklist are marked `- [x]`
299
299
  2.  All documentation files created/updated
300
300
  3.  All files saved to correct locations
301
- 4.  Your checklist saved to `trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md`
301
+ 4.  Your checklist saved to `.claude/trinity/reports/apo-{{DESIGNATION}}-docs-update-checklist.md`
302
302
 
303
303
  **Once all tasks complete:**
304
304
  - Report completion
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Purpose:** Comprehensive audit checklist for trinity-docs-update command
4
4
  **Agent:** JUNO (Quality Auditor)
5
- **Output:** Audit report saved to `trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md`
5
+ **Output:** Audit report saved to `.claude/trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md`
6
6
 
7
7
  ---
8
8
 
@@ -835,7 +835,7 @@ When assigning frontend modules to APO-3:
835
835
 
836
836
  ## Step 1.4: Generate 3-Part Audit Report
837
837
 
838
- **Use template:** `trinity/templates/documentation/reports/docs-update-audit.md`
838
+ **Use template:** `.claude/trinity/templates/documentation/reports/docs-update-audit.md`
839
839
 
840
840
  ### Part 1: Base Documentation Updates Needed
841
841
 
@@ -1308,7 +1308,7 @@ Aborting documentation update.
1308
1308
 
1309
1309
  ```
1310
1310
  Use Task tool with subagent_type="APO (Documentation Specialist)" to write the file:
1311
- - File path: trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md
1311
+ - File path: .claude/trinity/reports/DOCS-UPDATE-AUDIT-{{DATE}}.md
1312
1312
  - Content: Complete audit report with all sections above
1313
1313
  ```
1314
1314
 
@@ -1328,7 +1328,7 @@ Use Task tool with subagent_type="APO (Documentation Specialist)" to write the f
1328
1328
  Once audit is complete:
1329
1329
  1. ✅ Audit report generated with three unchecked checklists
1330
1330
  2. ✅ Each checklist has clear, actionable work items
1331
- 3. ✅ Report saved to `trinity/reports/` using Task skill Write
1331
+ 3. ✅ Report saved to `.claude/trinity/reports/` using Task skill Write
1332
1332
  4. ✅ **Phase 1 complete**
1333
1333
 
1334
1334
  **DO NOT execute any documentation updates.**
@@ -55,7 +55,7 @@
55
55
  **Priority:** {{MVC_PRIORITY}}
56
56
  **Estimated Time:** {{MVC_TIME}}
57
57
 
58
- **Template Path:** `trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template`
58
+ **Template Path:** `.claude/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template`
59
59
 
60
60
  **Variables to Replace:**
61
61
  - `{{DATABASE}}`: "{{DATABASE_VALUE}}"
@@ -77,7 +77,7 @@
77
77
  **Priority:** {{ER_PRIORITY}}
78
78
  **Estimated Time:** {{ER_TIME}}
79
79
 
80
- **Template Path:** `trinity/templates/documentation/mermaid-diagrams/database-er.md.template`
80
+ **Template Path:** `.claude/trinity/templates/documentation/mermaid-diagrams/database-er.md.template`
81
81
 
82
82
  **Variables to Replace:**
83
83
  - `{{DATABASE_TYPE}}`: "{{DATABASE_TYPE_VALUE}}"
@@ -96,7 +96,7 @@
96
96
  **Priority:** {{API_MAP_PRIORITY}}
97
97
  **Estimated Time:** {{API_MAP_TIME}}
98
98
 
99
- **Template Path:** `trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template`
99
+ **Template Path:** `.claude/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template`
100
100
 
101
101
  **Variables to Replace:**
102
102
  - `{{BASE_URL}}`: "{{BASE_URL_VALUE}}"
@@ -115,7 +115,7 @@
115
115
  **Priority:** {{COMPONENT_PRIORITY}}
116
116
  **Estimated Time:** {{COMPONENT_TIME}}
117
117
 
118
- **Template Path:** `trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template`
118
+ **Template Path:** `.claude/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template`
119
119
 
120
120
  **Variables to Replace:**
121
121
  - `{{FRAMEWORK}}`: "{{COMPONENT_FRAMEWORK_VALUE}}"
@@ -136,7 +136,7 @@
136
136
  **Priority:** {{API_DOCS_PRIORITY}}
137
137
  **Estimated Time:** {{API_DOCS_TIME}}
138
138
 
139
- **Template Path:** `trinity/templates/documentation/api-docs/README.md.template`
139
+ **Template Path:** `.claude/trinity/templates/documentation/api-docs/README.md.template`
140
140
 
141
141
  **Endpoints to Document:** {{ENDPOINT_COUNT}}
142
142
 
@@ -174,7 +174,7 @@
174
174
  **Priority:** {{GETTING_STARTED_PRIORITY}}
175
175
  **Estimated Time:** {{GETTING_STARTED_TIME}}
176
176
 
177
- **Template Path:** `trinity/templates/documentation/guides/getting-started.md.template`
177
+ **Template Path:** `.claude/trinity/templates/documentation/guides/getting-started.md.template`
178
178
 
179
179
  **Variables to Replace:**
180
180
  - `{{PROJECT_NAME}}`: "{{PROJECT_NAME}}"
@@ -207,7 +207,7 @@
207
207
  **Priority:** {{API_DEV_PRIORITY}}
208
208
  **Estimated Time:** {{API_DEV_TIME}}
209
209
 
210
- **Template Path:** `trinity/templates/documentation/guides/api-development.md.template`
210
+ **Template Path:** `.claude/trinity/templates/documentation/guides/api-development.md.template`
211
211
 
212
212
  **Variables to Replace:**
213
213
  - `{{PROJECT_NAME}}`: "{{PROJECT_NAME}}"
@@ -250,7 +250,7 @@
250
250
  **Priority:** {{DEPLOYMENT_PRIORITY}}
251
251
  **Estimated Time:** {{DEPLOYMENT_TIME}}
252
252
 
253
- **Template Path:** `trinity/templates/documentation/guides/deployment.md.template`
253
+ **Template Path:** `.claude/trinity/templates/documentation/guides/deployment.md.template`
254
254
 
255
255
  **Variables to Replace:**
256
256
  - `{{PROJECT_NAME}}`: "{{PROJECT_NAME}}"
@@ -297,7 +297,7 @@
297
297
  **Priority:** {{CONTRIBUTING_PRIORITY}}
298
298
  **Estimated Time:** {{CONTRIBUTING_TIME}}
299
299
 
300
- **Template Path:** `trinity/templates/documentation/guides/contributing.md.template`
300
+ **Template Path:** `.claude/trinity/templates/documentation/guides/contributing.md.template`
301
301
 
302
302
  **Variables to Replace:**
303
303
  - `{{PROJECT_NAME}}`: "{{PROJECT_NAME}}"
@@ -342,7 +342,7 @@
342
342
  **Estimated Time:** {{ENV_TIME}}
343
343
 
344
344
  **Environment Variables Discovered ({{ENV_VAR_COUNT}}):**
345
- **Template Path:** `trinity/templates/documentation/config/env-example-generator.md.template`
345
+ **Template Path:** `.claude/trinity/templates/documentation/config/env-example-generator.md.template`
346
346
 
347
347
  **Variables to Replace:**
348
348
  - `{{PROJECT_NAME}}`: "{{PROJECT_NAME}}"
@@ -399,7 +399,7 @@ describe('Regression: {{title}}', () => {
399
399
 
400
400
  ### Investigation Report Format
401
401
  **Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
402
- **Location:** `trinity/reports/`
402
+ **Location:** `.claude/trinity/reports/`
403
403
 
404
404
  ### Required Sections
405
405
  1. **Investigation Summary** - Brief overview of what was investigated
@@ -422,22 +422,22 @@ describe('Regression: {{title}}', () => {
422
422
 
423
423
  When investigation is complete:
424
424
  1. **Create Investigation Report:**
425
- - [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
425
+ - [ ] Save findings report to `.claude/trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
426
426
  - [ ] Include all required sections listed above
427
427
  - [ ] Attach all evidence and supporting documentation
428
428
 
429
429
  2. **Move Investigation File:**
430
- - [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
431
- - [ ] Keep report in `trinity/reports/` until end of session
430
+ - [ ] Move this investigation file (INV-{{investigationId}}.md) to `.claude/trinity/sessions/`
431
+ - [ ] Keep report in `.claude/trinity/reports/` until end of session
432
432
 
433
433
  3. **Session Cleanup:**
434
434
  - [ ] Run `/trinity-end` to archive both investigation and report
435
- - [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
436
- - [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
435
+ - [ ] Investigation will be archived to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
436
+ - [ ] Report will be archived to `.claude/trinity/archive/reports/YYYY-MM-DD/`
437
437
 
438
438
  4. **Clean Slate:**
439
- - [ ] Verify `trinity/sessions/` is empty (ready for next session)
440
- - [ ] Verify `trinity/reports/` is empty (ready for next session)
439
+ - [ ] Verify `.claude/trinity/sessions/` is empty (ready for next session)
440
+ - [ ] Verify `.claude/trinity/reports/` is empty (ready for next session)
441
441
 
442
442
  ---
443
443
 
@@ -445,15 +445,15 @@ When investigation is complete:
445
445
 
446
446
  **Trinity Method Core:**
447
447
  - [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
448
- - [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
448
+ - [Investigation Requirements](../../.claude/trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
449
449
  - [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
450
450
 
451
451
  **Knowledge Base:**
452
- - [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
453
- - [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
454
- - [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
455
- - [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
456
- - [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
452
+ - [Architecture](../../.claude/trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
453
+ - [Known Issues](../../.claude/trinity/knowledge-base/ISSUES.md) - Issue patterns database
454
+ - [Technical Debt](../../.claude/trinity/knowledge-base/Technical-Debt.md) - Debt tracking
455
+ - [Testing Standards](../../.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
456
+ - [Coding Standards](../../.claude/trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
457
457
 
458
458
  **Investigation Protocols:**
459
459
  - READ-ONLY: No file modifications during investigation
@@ -473,15 +473,15 @@ describe('Feature E2E', () => {
473
473
 
474
474
  **Trinity Method Core:**
475
475
  - [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
476
- - [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
476
+ - [Investigation Requirements](../../.claude/trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
477
477
  - [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
478
478
 
479
479
  **Knowledge Base:**
480
- - [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
481
- - [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
482
- - [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
483
- - [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
484
- - [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
480
+ - [Architecture](../../.claude/trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
481
+ - [Known Issues](../../.claude/trinity/knowledge-base/ISSUES.md) - Issue patterns database
482
+ - [Technical Debt](../../.claude/trinity/knowledge-base/Technical-Debt.md) - Debt tracking
483
+ - [Testing Standards](../../.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
484
+ - [Coding Standards](../../.claude/trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
485
485
 
486
486
  **Investigation Protocols:**
487
487
  - READ-ONLY: No file modifications during investigation
@@ -495,7 +495,7 @@ describe('Feature E2E', () => {
495
495
 
496
496
  ### Investigation Report Format
497
497
  **Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
498
- **Location:** `trinity/reports/`
498
+ **Location:** `.claude/trinity/reports/`
499
499
 
500
500
  ### Required Sections
501
501
  1. **Investigation Summary** - Feature analysis overview and business value
@@ -519,22 +519,22 @@ describe('Feature E2E', () => {
519
519
 
520
520
  When investigation is complete:
521
521
  1. **Create Investigation Report:**
522
- - [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
522
+ - [ ] Save findings report to `.claude/trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
523
523
  - [ ] Include all required sections listed above
524
524
  - [ ] Attach all evidence and supporting documentation
525
525
 
526
526
  2. **Move Investigation File:**
527
- - [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
528
- - [ ] Keep report in `trinity/reports/` until end of session
527
+ - [ ] Move this investigation file (INV-{{investigationId}}.md) to `.claude/trinity/sessions/`
528
+ - [ ] Keep report in `.claude/trinity/reports/` until end of session
529
529
 
530
530
  3. **Session Cleanup:**
531
531
  - [ ] Run `/trinity-end` to archive both investigation and report
532
- - [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
533
- - [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
532
+ - [ ] Investigation will be archived to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
533
+ - [ ] Report will be archived to `.claude/trinity/archive/reports/YYYY-MM-DD/`
534
534
 
535
535
  4. **Clean Slate:**
536
- - [ ] Verify `trinity/sessions/` is empty (ready for next session)
537
- - [ ] Verify `trinity/reports/` is empty (ready for next session)
536
+ - [ ] Verify `.claude/trinity/sessions/` is empty (ready for next session)
537
+ - [ ] Verify `.claude/trinity/reports/` is empty (ready for next session)
538
538
 
539
539
  ---
540
540
 
@@ -537,7 +537,7 @@ describe('Performance: getUserOrders', () => {
537
537
 
538
538
  ### Investigation Report Format
539
539
  **Filename:** `INV-{{investigationId}}-findings-[TIMESTAMP].md`
540
- **Location:** `trinity/reports/`
540
+ **Location:** `.claude/trinity/reports/`
541
541
 
542
542
  ### Required Sections
543
543
  1. **Investigation Summary** - Performance issue overview and user impact
@@ -561,22 +561,22 @@ describe('Performance: getUserOrders', () => {
561
561
 
562
562
  When investigation is complete:
563
563
  1. **Create Investigation Report:**
564
- - [ ] Save findings report to `trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
564
+ - [ ] Save findings report to `.claude/trinity/reports/INV-{{investigationId}}-findings-[TIMESTAMP].md`
565
565
  - [ ] Include all required sections listed above
566
566
  - [ ] Attach all evidence and supporting documentation
567
567
 
568
568
  2. **Move Investigation File:**
569
- - [ ] Move this investigation file (INV-{{investigationId}}.md) to `trinity/sessions/`
570
- - [ ] Keep report in `trinity/reports/` until end of session
569
+ - [ ] Move this investigation file (INV-{{investigationId}}.md) to `.claude/trinity/sessions/`
570
+ - [ ] Keep report in `.claude/trinity/reports/` until end of session
571
571
 
572
572
  3. **Session Cleanup:**
573
573
  - [ ] Run `/trinity-end` to archive both investigation and report
574
- - [ ] Investigation will be archived to `trinity/archive/investigations/YYYY-MM-DD/`
575
- - [ ] Report will be archived to `trinity/archive/reports/YYYY-MM-DD/`
574
+ - [ ] Investigation will be archived to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
575
+ - [ ] Report will be archived to `.claude/trinity/archive/reports/YYYY-MM-DD/`
576
576
 
577
577
  4. **Clean Slate:**
578
- - [ ] Verify `trinity/sessions/` is empty (ready for next session)
579
- - [ ] Verify `trinity/reports/` is empty (ready for next session)
578
+ - [ ] Verify `.claude/trinity/sessions/` is empty (ready for next session)
579
+ - [ ] Verify `.claude/trinity/reports/` is empty (ready for next session)
580
580
 
581
581
  ---
582
582
 
@@ -584,15 +584,15 @@ When investigation is complete:
584
584
 
585
585
  **Trinity Method Core:**
586
586
  - [Trinity Method Protocols](../../CLAUDE.md) - Root Trinity guidance
587
- - [Investigation Requirements](../../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
587
+ - [Investigation Requirements](../../.claude/trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
588
588
  - [Agent Directory](../../.claude/EMPLOYEE-DIRECTORY.md) - 19-agent Trinity team
589
589
 
590
590
  **Knowledge Base:**
591
- - [Architecture](../../trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
592
- - [Known Issues](../../trinity/knowledge-base/ISSUES.md) - Issue patterns database
593
- - [Technical Debt](../../trinity/knowledge-base/Technical-Debt.md) - Debt tracking
594
- - [Testing Standards](../../trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
595
- - [Coding Standards](../../trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
591
+ - [Architecture](../../.claude/trinity/knowledge-base/ARCHITECTURE.md) - System architecture and patterns
592
+ - [Known Issues](../../.claude/trinity/knowledge-base/ISSUES.md) - Issue patterns database
593
+ - [Technical Debt](../../.claude/trinity/knowledge-base/Technical-Debt.md) - Debt tracking
594
+ - [Testing Standards](../../.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md) - Test requirements
595
+ - [Coding Standards](../../.claude/trinity/knowledge-base/CODING-PRINCIPLES.md) - Code quality
596
596
 
597
597
  **Investigation Protocols:**
598
598
  - READ-ONLY: No file modifications during investigation