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
@@ -13,16 +13,16 @@ Resume Trinity Method workflow after interruption.
13
13
  **Context:** User experienced a crash or is returning to an existing session with incomplete work.
14
14
 
15
15
  **When to use:**
16
- - Work orders in trinity/work-orders/ haven't been completed
17
- - Reports in trinity/reports/ haven't been analyzed
18
- - 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
19
19
  - User needs to pick up where they left off
20
20
 
21
21
  **Process:**
22
22
  1. **ALY (CTO)** reviews all current work:
23
- - Check trinity/sessions/ for active session files
24
- - Review trinity/work-orders/ for incomplete work orders
25
- - 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
26
26
 
27
27
  2. **ALY provides session summary:**
28
28
  - Last known state of work
@@ -52,7 +52,7 @@ git log --oneline -5
52
52
 
53
53
  2. **Work Order Checking**:
54
54
  ```bash
55
- cat trinity/work-orders/WO-042-jwt-refresh-implementation.md
55
+ cat .claude/trinity/work-orders/WO-042-jwt-refresh-implementation.md
56
56
  # Status: IN PROGRESS
57
57
  # **Last Updated**: 2 hours ago
58
58
  # Progress: Task 3/7
@@ -60,14 +60,14 @@ cat trinity/work-orders/WO-042-jwt-refresh-implementation.md
60
60
 
61
61
  3. **Session File Reading**:
62
62
  ```bash
63
- cat trinity/sessions/SESSION-2025-12-18-14-30.md
63
+ cat .claude/trinity/sessions/SESSION-2025-12-18-14-30.md
64
64
  # Last entry: "Implementing middleware integration (50% complete)"
65
65
  # Interrupted: Context window limit reached
66
66
  ```
67
67
 
68
68
  4. **Knowledge Base Review**:
69
69
  ```bash
70
- cat trinity/knowledge-base/To-do.md
70
+ cat .claude/trinity/knowledge-base/To-do.md
71
71
  # Shows 4 remaining tasks for JWT implementation
72
72
  ```
73
73
 
@@ -209,7 +209,7 @@ The previous session (3 days ago) was completed successfully:
209
209
  - Or create new work order with `/trinity-workorder`
210
210
 
211
211
  **Option 2: Review Backlog**
212
- - Check trinity/work-orders/ for pending work orders
212
+ - Check .claude/trinity/work-orders/ for pending work orders
213
213
  - Prioritize and select next task
214
214
  - Begin implementation
215
215
 
@@ -406,13 +406,13 @@ git diff HEAD
406
406
  ### 2. Work Order Checking
407
407
  ```bash
408
408
  # List all work orders
409
- ls -lt trinity/work-orders/
409
+ ls -lt .claude/trinity/work-orders/
410
410
 
411
411
  # Find IN PROGRESS work orders
412
- grep -r "Status: IN PROGRESS" trinity/work-orders/
412
+ grep -r "Status: IN PROGRESS" .claude/trinity/work-orders/
413
413
 
414
414
  # Read most recent work order
415
- cat trinity/work-orders/WO-042-*.md
415
+ cat .claude/trinity/work-orders/WO-042-*.md
416
416
  ```
417
417
 
418
418
  **Information Gathered**:
@@ -424,10 +424,10 @@ cat trinity/work-orders/WO-042-*.md
424
424
  ### 3. Session File Reading
425
425
  ```bash
426
426
  # Find most recent session file
427
- ls -lt trinity/sessions/ | head -1
427
+ ls -lt .claude/trinity/sessions/ | head -1
428
428
 
429
429
  # Read session log
430
- cat trinity/sessions/SESSION-2025-12-18-14-30.md
430
+ cat .claude/trinity/sessions/SESSION-2025-12-18-14-30.md
431
431
  ```
432
432
 
433
433
  **Information Gathered**:
@@ -439,13 +439,13 @@ cat trinity/sessions/SESSION-2025-12-18-14-30.md
439
439
  ### 4. Knowledge Base Review
440
440
  ```bash
441
441
  # Check active tasks
442
- cat trinity/knowledge-base/To-do.md
442
+ cat .claude/trinity/knowledge-base/To-do.md
443
443
 
444
444
  # Review known issues
445
- cat trinity/knowledge-base/ISSUES.md
445
+ cat .claude/trinity/knowledge-base/ISSUES.md
446
446
 
447
447
  # Check recent decisions
448
- tail -20 trinity/knowledge-base/ARCHITECTURE.md
448
+ tail -20 .claude/trinity/knowledge-base/ARCHITECTURE.md
449
449
  ```
450
450
 
451
451
  **Information Gathered**:
@@ -495,7 +495,7 @@ git log origin/main..HEAD --oneline
495
495
  - Terminal history
496
496
  - In-memory variables
497
497
 
498
- **Persisted In**: `trinity/sessions/SESSION-{timestamp}.md`
498
+ **Persisted In**: `.claude/trinity/sessions/SESSION-{timestamp}.md`
499
499
 
500
500
  ### Work Order State
501
501
  **What**: Progress on specific task
@@ -503,7 +503,7 @@ git log origin/main..HEAD --oneline
503
503
  - Current phase
504
504
  - Blockers/issues
505
505
 
506
- **Persisted In**: `trinity/work-orders/WO-XXX-{title}.md`
506
+ **Persisted In**: `.claude/trinity/work-orders/WO-XXX-{title}.md`
507
507
 
508
508
  ### Key Difference
509
509
 
@@ -542,12 +542,12 @@ git log origin/main..HEAD --oneline
542
542
  **/trinity-continue**:
543
543
  - Analyzes current state (git, work orders, sessions)
544
544
  - Provides recovery options
545
- - Resumes with AJ MAESTRO or AJ CC
545
+ - Resumes with AJ MAESTRO
546
546
 
547
547
  **/trinity-end**:
548
548
  - Creates session summary
549
549
  - Updates knowledge base
550
- - Archives work to trinity/archive/
550
+ - Archives work to .claude/trinity/archive/
551
551
  - Clears session state
552
552
 
553
553
  **Don't Use /trinity-end** if you're just taking a break - context will be lost!
@@ -1,7 +1,7 @@
1
1
  # Trinity End
2
2
 
3
3
  **Command:** `/session:trinity-end`
4
- **Purpose:** End session and archive work to trinity/archive/
4
+ **Purpose:** End session and archive work to .claude/trinity/archive/
5
5
  **Architecture:** ALY session summary → Work archival → Documentation update
6
6
  **Trinity Version:** 2.1.0
7
7
  **Last Updated:** 2026-01-21
@@ -18,17 +18,17 @@ End current Trinity Method session and prepare for commit.
18
18
  **STRICT ARCHIVING PROTOCOL:**
19
19
 
20
20
  a. **Archive Completed Work Orders:**
21
- - Read all files from `trinity/sessions/` matching `WO-*.md`
22
- - Move each to `trinity/archive/work-orders/YYYY-MM-DD/`
21
+ - Read all files from `.claude/trinity/sessions/` matching `WO-*.md`
22
+ - Move each to `.claude/trinity/archive/work-orders/YYYY-MM-DD/`
23
23
  - These were moved to sessions/ after completion per work order template
24
24
 
25
25
  b. **Archive Completed Investigations:**
26
- - Read all files from `trinity/sessions/` matching `INV-*.md`
27
- - Move each to `trinity/archive/investigations/YYYY-MM-DD/`
26
+ - Read all files from `.claude/trinity/sessions/` matching `INV-*.md`
27
+ - Move each to `.claude/trinity/archive/investigations/YYYY-MM-DD/`
28
28
  - These were moved to sessions/ after completion per investigation template
29
29
 
30
30
  c. **Archive ALL Reports:**
31
- - Move ALL files from `trinity/reports/` to `trinity/archive/reports/YYYY-MM-DD/`
31
+ - Move ALL files from `.claude/trinity/reports/` to `.claude/trinity/archive/reports/YYYY-MM-DD/`
32
32
  - This includes:
33
33
  - Implementation completion reports
34
34
  - Investigation findings reports
@@ -37,18 +37,18 @@ End current Trinity Method session and prepare for commit.
37
37
  - **NO EXCEPTIONS:** Every file in reports/ must be archived
38
38
 
39
39
  d. **Archive Session Files:**
40
- - Move ALL remaining files from `trinity/sessions/` to `trinity/archive/sessions/YYYY-MM-DD/`
41
- - Create session summary document in `trinity/archive/sessions/YYYY-MM-DD/SESSION-SUMMARY-{date}.md`
40
+ - Move ALL remaining files from `.claude/trinity/sessions/` to `.claude/trinity/archive/sessions/YYYY-MM-DD/`
41
+ - Create session summary document in `.claude/trinity/archive/sessions/YYYY-MM-DD/SESSION-SUMMARY-{date}.md`
42
42
 
43
43
  e. **Verify Clean Slate:**
44
- - **CRITICAL:** After archiving, `trinity/sessions/` MUST be empty
45
- - **CRITICAL:** After archiving, `trinity/reports/` MUST be empty
44
+ - **CRITICAL:** After archiving, `.claude/trinity/sessions/` MUST be empty
45
+ - **CRITICAL:** After archiving, `.claude/trinity/reports/` MUST be empty
46
46
  - If any files remain, archive them or report error
47
47
  - Next session MUST start with completely empty sessions/ and reports/ folders
48
48
 
49
49
  **Archive Structure:**
50
50
  ```
51
- trinity/archive/
51
+ .claude/trinity/archive/
52
52
  ├── work-orders/YYYY-MM-DD/
53
53
  │ ├── WO-001-*.md
54
54
  │ ├── WO-002-*.md
@@ -68,25 +68,25 @@ End current Trinity Method session and prepare for commit.
68
68
  ```
69
69
 
70
70
  **Important Notes:**
71
- - Keep ONLY active/in-progress work orders in `trinity/work-orders/`
72
- - Keep ONLY active/in-progress investigations in `trinity/investigations/`
71
+ - Keep ONLY active/in-progress work orders in `.claude/trinity/work-orders/`
72
+ - Keep ONLY active/in-progress investigations in `.claude/trinity/investigations/`
73
73
  - Do NOT archive incomplete work
74
- - Completed work is identified by presence in `trinity/sessions/` folder
74
+ - Completed work is identified by presence in `.claude/trinity/sessions/` folder
75
75
  - All reports are archived regardless of status
76
76
 
77
77
  2. **ALY analyzes session events:**
78
78
  - Review all work completed during session
79
79
  - Identify patterns and learnings
80
- - Update trinity/knowledge-base/ARCHITECTURE.md with architectural changes
81
- - Update trinity/knowledge-base/ISSUES.md with new known issues
82
- - Update trinity/knowledge-base/To-do.md with next tasks
83
- - Update trinity/knowledge-base/Technical-Debt.md with new debt
80
+ - Update .claude/trinity/knowledge-base/ARCHITECTURE.md with architectural changes
81
+ - Update .claude/trinity/knowledge-base/ISSUES.md with new known issues
82
+ - Update .claude/trinity/knowledge-base/To-do.md with next tasks
83
+ - Update .claude/trinity/knowledge-base/Technical-Debt.md with new debt
84
84
 
85
85
  3. **Clean workspace:**
86
- - Verify trinity/work-orders/ contains only active work
87
- - Verify trinity/investigations/ contains only active investigations
88
- - Verify trinity/reports/ is empty
89
- - Verify trinity/sessions/ is empty
86
+ - Verify .claude/trinity/work-orders/ contains only active work
87
+ - Verify .claude/trinity/investigations/ contains only active investigations
88
+ - Verify .claude/trinity/reports/ is empty
89
+ - Verify .claude/trinity/sessions/ is empty
90
90
  - Ready for next session
91
91
 
92
92
  4. **Git commit instructions:**
@@ -65,7 +65,7 @@ For complex or long-running tasks, suggest creating a work order:
65
65
  /trinity-workorder
66
66
  ```
67
67
 
68
- This creates a structured investigation in `trinity/work-orders/` with:
68
+ This creates a structured investigation in `.claude/trinity/work-orders/` with:
69
69
  - Problem statement
70
70
  - Requirements and acceptance criteria
71
71
  - Design decisions
@@ -77,7 +77,6 @@ This creates a structured investigation in `trinity/work-orders/` with:
77
77
  **Leadership:**
78
78
  - ALY (CTO) - Strategic planning, architecture decisions
79
79
  - AJ MAESTRO - Workflow orchestration and planning
80
- - AJ CC - Code quality oversight
81
80
 
82
81
  **Deployment:**
83
82
  - TAN - Trinity structure deployment
@@ -16,11 +16,10 @@ Display the Trinity Method Agent Directory with all 19 specialized agents.
16
16
 
17
17
  Agents are organized in 5 subdirectories by role:
18
18
 
19
- ### 1. Leadership Team (3 agents)
19
+ ### 1. Leadership Team (2 agents)
20
20
  Located in: `.claude/agents/leadership/`
21
21
  - **ALY (Chief Technology Officer)** - Strategic planning and architecture decisions
22
22
  - **AJ MAESTRO (Orchestration Lead)** - Workflow planning and agent coordination
23
- - **AJ CC (Code Coordinator)** - Code quality and implementation oversight
24
23
 
25
24
  ### 2. Deployment Team (4 agents)
26
25
  Located in: `.claude/agents/deployment/`
@@ -105,7 +104,6 @@ Ask which agent you want to learn more about, and Claude will read that agent's
105
104
  |-------|------|-------------|---------------|
106
105
  | **ALY** | CTO | Strategic decisions, stop point reviews | leadership/aly-cto.md |
107
106
  | **AJ MAESTRO** | Orchestrator | Coordinate Medium/Large workflows | leadership/aj-maestro.md |
108
- | **AJ CC** | Continuity | Session recovery, investigations | leadership/aj-cc.md |
109
107
  | **TAN** | Structure | Deploy Trinity folders (init only) | deployment/tan-structure.md |
110
108
  | **ZEN** | Knowledge | Populate knowledge base (init only) | deployment/zen-knowledge.md |
111
109
  | **INO** | Context | CLAUDE.md hierarchy (init only) | deployment/ino-context.md |
@@ -134,9 +132,9 @@ What do you need?
134
132
 
135
133
  ├─ Start new work → ALY (determines scale) → AJ MAESTRO
136
134
 
137
- ├─ Resume interrupted work → AJ CC (session recovery)
135
+ ├─ Resume interrupted work → AJ MAESTRO (session recovery)
138
136
 
139
- ├─ Investigation only → AJ CC (read-only analysis)
137
+ ├─ Investigation only → ALY (read-only analysis)
140
138
 
141
139
  └─ Specific task:
142
140
 
@@ -165,7 +163,6 @@ What do you need?
165
163
  **Examples**:
166
164
  - **ALY** - Chief Technology Officer (CTO)
167
165
  - **AJ MAESTRO** - Implementation Orchestrator
168
- - **AJ CC** - Continuous Context Specialist
169
166
  - **MON** - Requirements Analyst
170
167
  - **KIL** - Task Executor
171
168
 
@@ -12,27 +12,26 @@ Verify that Trinity Method is properly installed in this project.
12
12
 
13
13
  Check for:
14
14
  1. **Trinity Core Structure (14 directories):**
15
- - trinity/knowledge-base/
16
- - trinity/reports/
17
- - trinity/sessions/
18
- - trinity/investigations/
19
- - trinity/investigations/plans/
20
- - trinity/patterns/
21
- - trinity/work-orders/
22
- - trinity/templates/
23
- - trinity/templates/work-orders/
24
- - trinity/templates/investigations/
25
- - trinity/archive/work-orders/
26
- - trinity/archive/investigations/
27
- - trinity/archive/reports/
28
- - trinity/archive/sessions/
15
+ - .claude/trinity/knowledge-base/
16
+ - .claude/trinity/reports/
17
+ - .claude/trinity/sessions/
18
+ - .claude/trinity/investigations/
19
+ - .claude/trinity/investigations/plans/
20
+ - .claude/trinity/work-orders/
21
+ - .claude/trinity/templates/
22
+ - .claude/trinity/templates/work-orders/
23
+ - .claude/trinity/templates/investigations/
24
+ - .claude/trinity/archive/work-orders/
25
+ - .claude/trinity/archive/investigations/
26
+ - .claude/trinity/archive/reports/
27
+ - .claude/trinity/archive/sessions/
29
28
 
30
29
  2. **CLAUDE.md Context Files:**
31
30
  - Root CLAUDE.md (behavioral hierarchy)
32
- - trinity/CLAUDE.md (Trinity-specific context)
31
+ - .claude/trinity/CLAUDE.md (Trinity-specific context)
33
32
 
34
- 3. **Agent Organization (19 agents in 5 subdirectories):**
35
- - .claude/agents/leadership/ (3 agents: ALY, AJ MAESTRO, AJ CC)
33
+ 3. **Agent Organization (18 agents in 5 subdirectories):**
34
+ - .claude/agents/leadership/ (2 agents: ALY, AJ MAESTRO)
36
35
  - .claude/agents/deployment/ (4 agents: TAN, ZEN, INO, EIN)
37
36
  - .claude/agents/audit/ (1 agent: JUNO)
38
37
  - .claude/agents/planning/ (4 agents: MON, ROR, TRA, EUS)
@@ -48,9 +47,9 @@ Check for:
48
47
  - Utility: verify, agents, workorder
49
48
 
50
49
  5. **Templates (13 total):**
51
- - Work Orders: 6 templates in trinity/templates/work-orders/
52
- - Investigations: 5 templates in trinity/templates/investigations/
53
- - Documentation: 2 templates in trinity/templates/documentation/
50
+ - Work Orders: 6 templates in .claude/trinity/templates/work-orders/
51
+ - Investigations: 5 templates in .claude/trinity/templates/investigations/
52
+ - Documentation: 2 templates in .claude/trinity/templates/documentation/
54
53
 
55
54
  6. **Knowledge Base Files (9 files):**
56
55
  - ARCHITECTURE.md, Trinity.md, To-do.md, ISSUES.md, Technical-Debt.md
@@ -59,7 +58,6 @@ Check for:
59
58
 
60
59
  7. **CI/CD Workflows (if deployed):**
61
60
  - .github/workflows/ci.yml (BAS 6-phase quality gates)
62
- - .github/workflows/cd.yml (Deployment pipeline)
63
61
 
64
62
  Report:
65
63
  - ✅ Installed components
@@ -86,17 +84,16 @@ Report:
86
84
  - ✅ .claude/
87
85
  - ✅ .claude/agents/ (5 subdirectories)
88
86
  - ✅ .claude/commands/
89
- - ✅ trinity/knowledge-base/
90
- - ✅ trinity/work-orders/
91
- - ✅ trinity/sessions/
92
- - ✅ trinity/planning/
93
- - ✅ trinity/reports/
94
-
95
- ### 2. Agent Deployment ✅ (19/19)
96
- **Leadership** (3/3):
87
+ - ✅ .claude/trinity/knowledge-base/
88
+ - ✅ .claude/trinity/work-orders/
89
+ - ✅ .claude/trinity/sessions/
90
+ - ✅ .claude/trinity/planning/
91
+ - ✅ .claude/trinity/reports/
92
+
93
+ ### 2. Agent Deployment ✅ (18/18)
94
+ **Leadership** (2/2):
97
95
  - ✅ aly-cto.md (2.4 KB)
98
96
  - ✅ aj-maestro.md (18.2 KB)
99
- - ✅ aj-cc.md (12.1 KB)
100
97
 
101
98
  **Deployment** (4/4):
102
99
  - ✅ tan-structure.md (8.5 KB)
@@ -152,7 +149,6 @@ Report:
152
149
 
153
150
  ### 5. CI/CD Workflows ✅ (Optional)
154
151
  - ✅ .github/workflows/ci.yml (BAS 6-phase gates)
155
- - ✅ .github/workflows/cd.yml (Deployment pipeline)
156
152
 
157
153
  ## Summary
158
154
  **Status**: ✅ FULLY DEPLOYED
@@ -177,17 +173,16 @@ Report:
177
173
  - ✅ .claude/
178
174
  - ✅ .claude/agents/ (5 subdirectories)
179
175
  - ✅ .claude/commands/
180
- - ✅ trinity/knowledge-base/
181
- - ❌ trinity/work-orders/ (MISSING)
182
- - ✅ trinity/sessions/
183
- - ✅ trinity/planning/
184
- - ❌ trinity/reports/ (MISSING)
185
-
186
- ### 2. Agent Deployment ⚠️ (17/19)
187
- **Leadership** (3/3):
176
+ - ✅ .claude/trinity/knowledge-base/
177
+ - ❌ .claude/trinity/work-orders/ (MISSING)
178
+ - ✅ .claude/trinity/sessions/
179
+ - ✅ .claude/trinity/planning/
180
+ - ❌ .claude/trinity/reports/ (MISSING)
181
+
182
+ ### 2. Agent Deployment ⚠️ (16/18)
183
+ **Leadership** (2/2):
188
184
  - ✅ aly-cto.md
189
185
  - ✅ aj-maestro.md
190
- - ✅ aj-cc.md
191
186
 
192
187
  **Deployment** (2/4):
193
188
  - ✅ tan-structure.md
@@ -250,8 +245,8 @@ Report:
250
245
 
251
246
  **Symptom**:
252
247
  ```
253
- ❌ trinity/work-orders/ not found
254
- ❌ trinity/reports/ not found
248
+ .claude/trinity/work-orders/ not found
249
+ .claude/trinity/reports/ not found
255
250
  ```
256
251
 
257
252
  **Cause**: Incomplete `trinity deploy` or TAN agent failure
@@ -259,19 +254,19 @@ Report:
259
254
  **Fix**:
260
255
  ```bash
261
256
  # Manually create missing directories
262
- mkdir -p trinity/work-orders
263
- mkdir -p trinity/reports
264
- mkdir -p trinity/sessions
265
- mkdir -p trinity/planning
257
+ mkdir -p .claude/trinity/work-orders
258
+ mkdir -p .claude/trinity/reports
259
+ mkdir -p .claude/trinity/sessions
260
+ mkdir -p .claude/trinity/planning
266
261
 
267
262
  # Verify creation
268
- ls -la trinity/
263
+ ls -la .claude/trinity/
269
264
  ```
270
265
 
271
266
  **Verification**:
272
267
  ```bash
273
268
  # Should show all directories
274
- trinity/
269
+ .claude/trinity/
275
270
  ├── work-orders/
276
271
  ├── reports/
277
272
  ├── sessions/
@@ -331,20 +326,20 @@ find .claude/agents -name "*.md" -type f
331
326
 
332
327
  # OR manually populate files
333
328
  # ISSUES.md should contain:
334
- echo "# Known Issues\n\nNo issues currently tracked." > trinity/knowledge-base/ISSUES.md
329
+ echo "# Known Issues\n\nNo issues currently tracked." > .claude/trinity/knowledge-base/ISSUES.md
335
330
 
336
331
  # To-do.md should contain:
337
- echo "# Project To-Do List\n\nNo tasks currently tracked." > trinity/knowledge-base/To-do.md
332
+ echo "# Project To-Do List\n\nNo tasks currently tracked." > .claude/trinity/knowledge-base/To-do.md
338
333
  ```
339
334
 
340
335
  **Verification**:
341
336
  ```bash
342
337
  # Check file sizes (should be >0 bytes)
343
- ls -lh trinity/knowledge-base/*.md
338
+ ls -lh .claude/trinity/knowledge-base/*.md
344
339
 
345
340
  # Verify content
346
- cat trinity/knowledge-base/ISSUES.md
347
- cat trinity/knowledge-base/To-do.md
341
+ cat .claude/trinity/knowledge-base/ISSUES.md
342
+ cat .claude/trinity/knowledge-base/To-do.md
348
343
  ```
349
344
 
350
345
  ---
@@ -452,7 +447,6 @@ ls -la .github/workflows/
452
447
 
453
448
  # Expected (if CI/CD requested):
454
449
  # ci.yml
455
- # cd.yml
456
450
  ```
457
451
 
458
452
  ---
@@ -42,7 +42,7 @@ When `/trinity-workorder` is invoked, the agent will:
42
42
  - Deliverables and acceptance criteria
43
43
  - Priority and estimated effort
44
44
 
45
- 2. **Select appropriate template** from `trinity/templates/work-orders/`:
45
+ 2. **Select appropriate template** from `.claude/trinity/templates/work-orders/`:
46
46
  - **Investigation:** Research and analysis tasks
47
47
  - **Implementation:** Feature development tasks
48
48
  - **Analysis:** Code analysis and review tasks
@@ -50,7 +50,7 @@ When `/trinity-workorder` is invoked, the agent will:
50
50
  - **Pattern:** Pattern detection and analysis
51
51
  - **Verification:** Verification and validation tasks
52
52
 
53
- 3. **Create work order file** in `trinity/work-orders/WO-XXX-{task-name}.md`
53
+ 3. **Create work order file** in `.claude/trinity/work-orders/WO-XXX-{task-name}.md`
54
54
 
55
55
  4. **Populate template** with:
56
56
  - Clear mission objective
@@ -78,13 +78,13 @@ When `/trinity-workorder` is invoked, the agent will:
78
78
 
79
79
  ## Orchestration
80
80
 
81
- Once work order is created in `trinity/work-orders/`, execute it:
81
+ Once work order is created in `.claude/trinity/work-orders/`, execute it:
82
82
 
83
83
  ```bash
84
84
  /trinity-orchestrate @WO-001-example-task.md
85
85
  ```
86
86
 
87
- **AJ MAESTRO** picks up the work order from `trinity/work-orders/` and orchestrates the 19-agent team to complete the task following Trinity Method workflows.
87
+ **AJ MAESTRO** picks up the work order from `.claude/trinity/work-orders/` and orchestrates the 18-agent team to complete the task following Trinity Method workflows.
88
88
 
89
89
  ---
90
90
 
@@ -96,7 +96,7 @@ See WO-042 example in work order files showing full structure with objectives, i
96
96
 
97
97
  ## Available Templates
98
98
 
99
- Work order templates are located in `trinity/templates/work-orders/`:
99
+ Work order templates are located in `.claude/trinity/templates/work-orders/`:
100
100
  - **INVESTIGATION-TEMPLATE.md** - Research and analysis tasks
101
101
  - **IMPLEMENTATION-TEMPLATE.md** - Feature development tasks
102
102
  - **ANALYSIS-TEMPLATE.md** - Code analysis and review tasks
@@ -1,9 +1,9 @@
1
- # {{PROJECT_NAME}} - Trinity Method CI/CD Pipeline
1
+ # {{PROJECT_NAME}} - Trinity Method CI Pipeline
2
2
  # Trinity Method v{{TRINITY_VERSION}}
3
3
  # Framework: {{FRAMEWORK}}
4
4
  # Generated by: EIN (CI/CD Specialist)
5
5
 
6
- name: Trinity CI/CD Pipeline
6
+ name: Trinity CI Pipeline
7
7
 
8
8
  on:
9
9
  push:
@@ -20,7 +20,7 @@ This project uses the Trinity Method with layered context files:
20
20
  Project-specific overview, architecture, and living documentation references.
21
21
 
22
22
  ### 2. Trinity Method Context
23
- **File**: [trinity/CLAUDE.md](trinity/CLAUDE.md)
23
+ **File**: [.claude/trinity/CLAUDE.md](.claude/trinity/CLAUDE.md)
24
24
  Enforces Trinity Method protocols: investigation-first development, quality gates, crisis management.
25
25
 
26
26
  ### 3. Technology-Specific Context
@@ -29,7 +29,7 @@ Framework-specific debugging standards, performance optimization, testing patter
29
29
 
30
30
  ### 4. Agent Directory
31
31
  **File**: [.claude/EMPLOYEE-DIRECTORY.md](.claude/EMPLOYEE-DIRECTORY.md)
32
- Complete guide to the 19-agent Trinity team and workflow orchestration.
32
+ Complete guide to the 18-agent Trinity team and workflow orchestration.
33
33
 
34
34
  ---
35
35
 
@@ -37,29 +37,29 @@ Complete guide to the 19-agent Trinity team and workflow orchestration.
37
37
 
38
38
  ### Architecture
39
39
 
40
- See: [trinity/knowledge-base/ARCHITECTURE.md](trinity/knowledge-base/ARCHITECTURE.md)
40
+ See: [.claude/trinity/knowledge-base/ARCHITECTURE.md](.claude/trinity/knowledge-base/ARCHITECTURE.md)
41
41
 
42
42
  ### Current Tasks
43
43
 
44
- See: [trinity/knowledge-base/To-do.md](trinity/knowledge-base/To-do.md)
44
+ See: [.claude/trinity/knowledge-base/To-do.md](.claude/trinity/knowledge-base/To-do.md)
45
45
 
46
46
  ### Known Issues
47
47
 
48
- See: [trinity/knowledge-base/ISSUES.md](trinity/knowledge-base/ISSUES.md)
48
+ See: [.claude/trinity/knowledge-base/ISSUES.md](.claude/trinity/knowledge-base/ISSUES.md)
49
49
 
50
50
  ### Technical Debt
51
51
 
52
- See: [trinity/knowledge-base/Technical-Debt.md](trinity/knowledge-base/Technical-Debt.md)
52
+ See: [.claude/trinity/knowledge-base/Technical-Debt.md](.claude/trinity/knowledge-base/Technical-Debt.md)
53
53
 
54
54
  ### Testing Standards
55
55
 
56
- See: [trinity/knowledge-base/TESTING-PRINCIPLES.md](trinity/knowledge-base/TESTING-PRINCIPLES.md)
56
+ See: [.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md](.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md)
57
57
 
58
58
  ### Coding Principles
59
59
 
60
- See: [trinity/knowledge-base/CODING-PRINCIPLES.md](trinity/knowledge-base/CODING-PRINCIPLES.md)
60
+ See: [.claude/trinity/knowledge-base/CODING-PRINCIPLES.md](.claude/trinity/knowledge-base/CODING-PRINCIPLES.md)
61
61
 
62
62
  ---
63
63
 
64
64
  **Trinity Method:** Investigation-first development methodology
65
- **Session Location:** trinity/sessions/
65
+ **Session Location:** .claude/trinity/sessions/
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env sh
2
+ # {{PROJECT_NAME}} - Pre-commit Quality Gates
3
+ # Trinity Method v{{TRINITY_VERSION}}
4
+ # Framework: {{FRAMEWORK}}
5
+ npx lint-staged