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
@@ -27,11 +27,11 @@
27
27
 
28
28
  ### AJ MAESTRO (Implementation Orchestrator)
29
29
  **File:** [.claude/agents/leadership/aj-maestro.md](.claude/agents/leadership/aj-maestro.md)
30
- **Role:** Implementation coordination using 19-agent team (organized in 5 role-based subdirectories)
30
+ **Role:** Implementation coordination using 18-agent team (organized in 5 role-based subdirectories)
31
31
  **Specialization:** Planning layer, execution layer, support layer coordination
32
32
 
33
33
  **Agent Organization:**
34
- - **Leadership:** ALY, AJ MAESTRO, AJ CC (3 agents)
34
+ - **Leadership:** ALY, AJ MAESTRO (2 agents)
35
35
  - **Deployment:** TAN, ZEN, INO, EIN (4 agents)
36
36
  - **Planning:** MON, ROR, TRA, EUS (4 agents)
37
37
  - **Implementation:** KIL, BAS, DRA, APO, BON, CAP, URO (7 agents)
@@ -49,13 +49,6 @@
49
49
 
50
50
  ---
51
51
 
52
- ### AJ CC (Code Coordinator)
53
- **File:** [.claude/agents/leadership/aj-cc.md](.claude/agents/leadership/aj-cc.md)
54
- **Role:** Code quality and implementation oversight
55
- **Specialization:** Tactical implementation coordination
56
-
57
- ---
58
-
59
52
  ## 🚀 DEPLOYMENT TEAM (4 Specialists)
60
53
 
61
54
  ### TAN (Structure Specialist)
@@ -371,7 +364,7 @@ npx trinity-method-sdk deploy --skip-audit
371
364
  - Reference: "Please review `.claude/agents/leadership/aly-cto.md` to investigate [feature name] and create work order"
372
365
 
373
366
  **2. Implementation phase (AJ):**
374
- - Reference: "Please review `.claude/agents/leadership/aj-cc.md` to implement work order WO-XXX-[feature-name]"
367
+ - Reference: "Please review `.claude/agents/leadership/aj-maestro.md` to implement work order WO-XXX-[feature-name]"
375
368
 
376
369
  **3. Quality review (JUNO):**
377
370
  - Reference: "Please review `.claude/agents/audit/juno-auditor.md` to review implementation of WO-XXX"
@@ -381,7 +374,7 @@ npx trinity-method-sdk deploy --skip-audit
381
374
  - Reference: "Please review `.claude/agents/leadership/aly-cto.md` to investigate bug: [description]"
382
375
 
383
376
  **2. Implement fix (AJ):**
384
- - Reference: "Please review `.claude/agents/leadership/aj-cc.md` to fix bug per investigation findings"
377
+ - Reference: "Please review `.claude/agents/leadership/aj-maestro.md` to fix bug per investigation findings"
385
378
 
386
379
  ### Documentation Updates
387
380
  **Update architecture docs (ZEN):**
@@ -429,6 +422,7 @@ npx trinity-method-sdk deploy --ci-deploy
429
422
  |------|-------|-------|---------------|
430
423
  | **Scale Determination** | ALY | Leadership | N/A (always first) |
431
424
  | **AI Orchestration** | AJ MAESTRO | Leadership | `/trinity-orchestrate` |
425
+ | **Guided Implementation** | AJ MAESTRO | Leadership | `/trinity-breakdown` |
432
426
  | **Requirements** | MON | Planning | `/trinity-requirements` |
433
427
  | **Technical Design** | ROR | Planning | `/trinity-design` |
434
428
  | **Work Planning** | TRA | Planning | `/trinity-plan` |
@@ -457,14 +451,14 @@ npx trinity-method-sdk deploy --ci-deploy
457
451
  ## 📚 ADDITIONAL RESOURCES
458
452
 
459
453
  ### Trinity Method Documentation
460
- - [Trinity Methodology](../trinity/knowledge-base/Trinity.md)
461
- - [Project Architecture](../trinity/knowledge-base/ARCHITECTURE.md)
462
- - [Current Tasks](../trinity/knowledge-base/To-do.md)
463
- - [Known Issues](../trinity/knowledge-base/ISSUES.md)
464
- - [Technical Debt](../trinity/knowledge-base/Technical-Debt.md)
454
+ - [Trinity Methodology](trinity/knowledge-base/Trinity.md)
455
+ - [Project Architecture](trinity/knowledge-base/ARCHITECTURE.md)
456
+ - [Current Tasks](trinity/knowledge-base/To-do.md)
457
+ - [Known Issues](trinity/knowledge-base/ISSUES.md)
458
+ - [Technical Debt](trinity/knowledge-base/Technical-Debt.md)
465
459
 
466
460
  ### Work Order Templates
467
- Located in `trinity/templates/work-orders/`:
461
+ Located in `.claude/trinity/templates/work-orders/`:
468
462
  - INVESTIGATION-TEMPLATE.md
469
463
  - IMPLEMENTATION-TEMPLATE.md
470
464
  - ANALYSIS-TEMPLATE.md
@@ -473,7 +467,7 @@ Located in `trinity/templates/work-orders/`:
473
467
  - VERIFICATION-TEMPLATE.md
474
468
 
475
469
  ### Investigation Templates
476
- Located in `trinity/templates/investigations/`:
470
+ Located in `.claude/trinity/templates/investigations/`:
477
471
  - bug.md - Bug investigation with Five Whys analysis
478
472
  - feature.md - Feature analysis with epic breakdown
479
473
  - technical.md - Technical investigation with ADR format
@@ -531,13 +525,13 @@ pre-commit install
531
525
 
532
526
  **Trinity Method Context Files**:
533
527
  - [../CLAUDE.md](../CLAUDE.md) - Project overview and global requirements
534
- - [../trinity/CLAUDE.md](../trinity/CLAUDE.md) - Trinity Method enforcement and protocols
528
+ - [trinity/CLAUDE.md](trinity/CLAUDE.md) - Trinity Method enforcement and protocols
535
529
  - [../src/CLAUDE.md](../src/CLAUDE.md) - Framework-specific implementation rules
536
530
 
537
531
  **Knowledge Base**:
538
- - [Investigation Protocols](../trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
539
- - [Quality Gates](../trinity/CLAUDE.md#quality-standards) - BAS 6-phase quality gates
540
- - [Crisis Management](../trinity/CLAUDE.md#crisis-management) - Emergency escalation protocols
532
+ - [Investigation Protocols](trinity/CLAUDE.md#investigation-protocols) - Investigation-first methodology
533
+ - [Quality Gates](trinity/CLAUDE.md#quality-standards) - BAS 6-phase quality gates
534
+ - [Crisis Management](trinity/CLAUDE.md#crisis-management) - Emergency escalation protocols
541
535
 
542
536
  ---
543
537
 
@@ -27,7 +27,7 @@ You are primarily invoked via three focused documentation slash commands for tar
27
27
  /trinity-readme # Ensure all directories with CLAUDE.md have README.md
28
28
  ```
29
29
 
30
- **Deliverable:** `trinity/reports/README-AUDIT-{date}.md`
30
+ **Deliverable:** `.claude/trinity/reports/README-AUDIT-{date}.md`
31
31
 
32
32
  **Process:** 7-phase README management with validation checkpoints
33
33
 
@@ -41,7 +41,7 @@ You are primarily invoked via three focused documentation slash commands for tar
41
41
  /trinity-docs # Create/organize docs/ directory structure
42
42
  ```
43
43
 
44
- **Deliverable:** `trinity/reports/DOCS-ORGANIZATION-{date}.md`
44
+ **Deliverable:** `.claude/trinity/reports/DOCS-ORGANIZATION-{date}.md`
45
45
 
46
46
  **Process:** 4-phase docs/ organization (discovery, structure, navigation, report)
47
47
 
@@ -55,15 +55,15 @@ You are primarily invoked via three focused documentation slash commands for tar
55
55
  /trinity-changelog # Ensure CHANGELOG.md exists and is compliant
56
56
  ```
57
57
 
58
- **Deliverable:** `trinity/reports/CHANGELOG-AUDIT-{date}.md`
58
+ **Deliverable:** `.claude/trinity/reports/CHANGELOG-AUDIT-{date}.md`
59
59
 
60
60
  **Process:** 3-phase CHANGELOG management (discovery, validation, compliance)
61
61
 
62
62
  ---
63
63
 
64
64
  **README Templates Available:**
65
- - `trinity/templates/documentation/ROOT-README.md`
66
- - `trinity/templates/documentation/SUBDIRECTORY-README.md`
65
+ - `.claude/trinity/templates/documentation/ROOT-README.md`
66
+ - `.claude/trinity/templates/documentation/SUBDIRECTORY-README.md`
67
67
 
68
68
  **Workflow Integration:**
69
69
  ```
@@ -92,8 +92,8 @@ You are **APO**, the Documentation Specialist for Trinity Method SDK v2.0. You m
92
92
 
93
93
  Read these Trinity documents:
94
94
 
95
- 1. **trinity/knowledge-base/DOCUMENTATION-CRITERIA.md** - Documentation standards
96
- 2. **trinity/knowledge-base/CODING-PRINCIPLES.md** - Code documentation requirements
95
+ 1. **.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md** - Documentation standards
96
+ 2. **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code documentation requirements
97
97
  3. **docs/plans/design/DESIGN-{feature}.md** - Feature specifications for context
98
98
 
99
99
  ---
@@ -566,7 +566,7 @@ Before handing back to KIL:
566
566
 
567
567
  ---
568
568
 
569
- **Agent Maintained By**: Trinity Method SDK Team
570
- ** Trinity Version:** 2.0.9
571
- **Last Updated:** 2026-01-12
569
+ **Agent Maintained By:** Trinity Method SDK Team
570
+ **Trinity Version:** 2.1.0
571
+ **Last Updated:** 2026-01-21
572
572
  **Coordinates With**: JUNO (receives audit findings), KIL (invoked for API docs during implementation)
@@ -26,9 +26,9 @@ You are **BAS**, the Quality Gate for Trinity Method SDK v2.0. You execute a rig
26
26
 
27
27
  Read these Trinity documents:
28
28
 
29
- 1. **trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
30
- 2. **trinity/knowledge-base/TESTING-PRINCIPLES.md** - Test quality standards
31
- 3. **trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Quality gate workflow
29
+ 1. **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
30
+ 2. **.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md** - Test quality standards
31
+ 3. **.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Quality gate workflow
32
32
 
33
33
  ---
34
34
 
@@ -55,7 +55,7 @@ Phase 6: Final Review (best practices)
55
55
  ```
56
56
 
57
57
  **Coverage Threshold Configuration:**
58
- - Check `trinity/knowledge-base/TESTING-PRINCIPLES.md` for `COVERAGE_THRESHOLD`
58
+ - Check `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md` for `COVERAGE_THRESHOLD`
59
59
  - Check environment variable `TRINITY_COVERAGE_THRESHOLD`
60
60
  - Default: 80% (if not configured)
61
61
 
@@ -239,7 +239,7 @@ npm test
239
239
 
240
240
  **Purpose**: Validate code coverage ≥threshold% (configured or default 80%)
241
241
 
242
- **Configuration**: Read from `trinity/knowledge-base/TESTING-PRINCIPLES.md` (`COVERAGE_THRESHOLD`) or env var `TRINITY_COVERAGE_THRESHOLD`
242
+ **Configuration**: Read from `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md` (`COVERAGE_THRESHOLD`) or env var `TRINITY_COVERAGE_THRESHOLD`
243
243
 
244
244
  **Commands**:
245
245
  ```bash
@@ -725,7 +725,7 @@ Before approving task:
725
725
 
726
726
  ### Coverage Threshold
727
727
 
728
- **Configuration**: Read from `trinity/knowledge-base/TESTING-PRINCIPLES.md` (`COVERAGE_THRESHOLD`) or env var `TRINITY_COVERAGE_THRESHOLD`
728
+ **Configuration**: Read from `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md` (`COVERAGE_THRESHOLD`) or env var `TRINITY_COVERAGE_THRESHOLD`
729
729
 
730
730
  **Threshold% minimum** (default 80%) for:
731
731
  - Line coverage
@@ -770,13 +770,6 @@ Before approving task:
770
770
 
771
771
  ---
772
772
 
773
- **Agent Maintained By**: Trinity Method SDK Team
774
- **Trinity Version:** 2.0.9
775
- **Last Updated:** 2026-01-12
776
- **Coordinates With**: KIL, DRA
777
-
778
- ---
779
-
780
773
  ## Configuration Priority Order
781
774
 
782
775
  Trinity supports configuration at multiple levels. Priority (highest to lowest):
@@ -789,10 +782,10 @@ Trinity supports configuration at multiple levels. Priority (highest to lowest):
789
782
 
790
783
  2. **Knowledge Base Configuration** (Project Standard)
791
784
  ```markdown
792
- # trinity/knowledge-base/TESTING-PRINCIPLES.md
785
+ # .claude/trinity/knowledge-base/TESTING-PRINCIPLES.md
793
786
  COVERAGE_THRESHOLD=85
794
787
 
795
- # trinity/knowledge-base/CODING-PRINCIPLES.md
788
+ # .claude/trinity/knowledge-base/CODING-PRINCIPLES.md
796
789
  MAX_FUNCTION_LENGTH=50
797
790
  ```
798
791
 
@@ -904,3 +897,8 @@ Attempt 3 (after coverage improvement):
904
897
  ```
905
898
 
906
899
  ---
900
+
901
+ **Agent Maintained By**: Trinity Method SDK Team
902
+ **Trinity Version:** 2.1.0
903
+ **Last Updated:** 2026-01-21
904
+ **Coordinates With**: KIL, DRA
@@ -369,7 +369,7 @@ npm install email-validator@^2.0.0
369
369
 
370
370
  # 4. Verify
371
371
  npm ls email-validator
372
- # ✅ email-validator@2.0.9
372
+ # ✅ email-validator@2.1.0
373
373
 
374
374
  # 5. Run tests
375
375
  npm test
@@ -630,7 +630,7 @@ Before handing back to KIL:
630
630
 
631
631
  ---
632
632
 
633
- **Agent Maintained By**: Trinity Method SDK Team
634
- **Trinity Version:** 2.0.9
635
- **Last Updated:** 2026-01-12
633
+ **Agent Maintained By:** Trinity Method SDK Team
634
+ **Trinity Version:** 2.1.0
635
+ **Last Updated:** 2026-01-21
636
636
  **Coordinates With**: KIL (invoked as-needed)
@@ -664,7 +664,7 @@ Before handing back to KIL:
664
664
 
665
665
  ---
666
666
 
667
- **Agent Maintained By**: Trinity Method SDK Team
668
- **Trinity Version:** 2.0.9
669
- **Last Updated:** 2026-01-12
667
+ **Agent Maintained By:** Trinity Method SDK Team
668
+ **Trinity Version:** 2.1.0
669
+ **Last Updated:** 2026-01-21
670
670
  **Coordinates With**: KIL (invoked as-needed)
@@ -26,9 +26,9 @@ You are **DRA**, the Code Reviewer for Trinity Method SDK v2.0. You handle quali
26
26
 
27
27
  Read these Trinity documents:
28
28
 
29
- 1. **trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
30
- 2. **trinity/knowledge-base/TESTING-PRINCIPLES.md** - Test quality standards
31
- 3. **trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Development workflows
29
+ 1. **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
30
+ 2. **.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md** - Test quality standards
31
+ 3. **.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Development workflows
32
32
  4. **docs/plans/design/DESIGN-{feature}.md** - Design specifications
33
33
  5. **docs/plans/tasks/TASKS-{feature}.md** - Task breakdown
34
34
 
@@ -655,13 +655,6 @@ Before approving phase completion:
655
655
 
656
656
  ---
657
657
 
658
- **Agent Maintained By**: Trinity Method SDK Team
659
- **Trinity Version:** 2.0.9
660
- **Last Updated:** 2026-01-12
661
- **Coordinates With**: BAS, KIL, AJ MAESTRO
662
-
663
- ---
664
-
665
658
  ## Compliance Scoring Methodology
666
659
 
667
660
  ### How DRA Calculates Compliance
@@ -766,3 +759,8 @@ Total: 65/100 (FAIL - < 70% threshold)
766
759
  **Minimum Pass**: 70/100
767
760
 
768
761
  ---
762
+
763
+ **Agent Maintained By**: Trinity Method SDK Team
764
+ **Trinity Version:** 2.1.0
765
+ **Last Updated:** 2026-01-21
766
+ **Coordinates With**: BAS, KIL, AJ MAESTRO
@@ -26,9 +26,9 @@ You are **KIL**, the Task Executor for Trinity Method SDK v2.0. You implement at
26
26
 
27
27
  Read these Trinity documents:
28
28
 
29
- 1. **trinity/knowledge-base/TESTING-PRINCIPLES.md** - TDD cycle (RED-GREEN-REFACTOR)
30
- 2. **trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
31
- 3. **trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Task execution standards
29
+ 1. **.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md** - TDD cycle (RED-GREEN-REFACTOR)
30
+ 2. **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
31
+ 3. **.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Task execution standards
32
32
  4. **docs/plans/design/DESIGN-{feature}.md** - Design specifications for current feature
33
33
  5. **docs/plans/tasks/TASKS-{feature}.md** - Task breakdown from EUS
34
34
 
@@ -80,7 +80,7 @@ Each task you execute:
80
80
  4. Escalate if high similarity found (threshold: {{DUPLICATION_THRESHOLD}} matches or default 3+ matches)
81
81
 
82
82
  **Duplication Threshold Configuration:**
83
- - Check `trinity/knowledge-base/CODING-PRINCIPLES.md` for `DUPLICATION_THRESHOLD`
83
+ - Check `.claude/trinity/knowledge-base/CODING-PRINCIPLES.md` for `DUPLICATION_THRESHOLD`
84
84
  - Check environment variable `TRINITY_DUPLICATION_THRESHOLD`
85
85
  - Default: 3 matches (if not configured)
86
86
 
@@ -139,7 +139,7 @@ Update todos in real-time:
139
139
 
140
140
  #### Similar Function Duplication Check
141
141
 
142
- **Configuration**: Read threshold from `trinity/knowledge-base/CODING-PRINCIPLES.md` (`DUPLICATION_THRESHOLD`) or env var `TRINITY_DUPLICATION_THRESHOLD` (default: 3)
142
+ **Configuration**: Read threshold from `.claude/trinity/knowledge-base/CODING-PRINCIPLES.md` (`DUPLICATION_THRESHOLD`) or env var `TRINITY_DUPLICATION_THRESHOLD` (default: 3)
143
143
 
144
144
  **High Duplication (Escalate)** - Threshold or more matches (default: 3+):
145
145
  - [ ] Same domain/responsibility
@@ -693,13 +693,6 @@ Acceptance Criteria:
693
693
 
694
694
  ---
695
695
 
696
- **Agent Maintained By**: Trinity Method SDK Team
697
- **Trinity Version:** 2.0.9
698
- **Last Updated:** 2026-01-12
699
- **Coordinates With**: EUS, BAS, DRA, APO, BON, CAP, URO
700
-
701
- ---
702
-
703
696
  ## Configuration Priority Order
704
697
 
705
698
  Trinity supports configuration at multiple levels. Priority (highest to lowest):
@@ -712,7 +705,7 @@ Trinity supports configuration at multiple levels. Priority (highest to lowest):
712
705
 
713
706
  2. **Knowledge Base Configuration** (Project Standard)
714
707
  ```markdown
715
- # trinity/knowledge-base/CODING-PRINCIPLES.md
708
+ # .claude/trinity/knowledge-base/CODING-PRINCIPLES.md
716
709
  DUPLICATION_THRESHOLD=3
717
710
  COMPLEXITY_THRESHOLD=10
718
711
  ```
@@ -762,3 +755,8 @@ After completing each task, KIL hands off to BAS for 6-phase validation:
762
755
  **All phases must pass** before task is considered complete.
763
756
 
764
757
  ---
758
+
759
+ **Agent Maintained By**: Trinity Method SDK Team
760
+ **Trinity Version:** 2.1.0
761
+ **Last Updated:** 2026-01-21
762
+ **Coordinates With**: EUS, BAS, DRA, APO, BON, CAP, URO
@@ -753,7 +753,7 @@ Before handing back to KIL:
753
753
 
754
754
  ---
755
755
 
756
- **Agent Maintained By**: Trinity Method SDK Team
757
- **Trinity Version:** 2.0.9
758
- **Last Updated:** 2026-01-12
756
+ **Agent Maintained By:** Trinity Method SDK Team
757
+ **Trinity Version:** 2.1.0
758
+ **Last Updated:** 2026-01-21
759
759
  **Coordinates With**: KIL (invoked during REFACTOR phase)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: JUNO (Quality Auditor)
3
3
  description: Comprehensive Trinity v2.0 deployment audit and quality assurance
4
- tools: Read, Bash, Glob, Grep
4
+ tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  ---
6
6
 
7
7
  # JUNO - Quality Auditor
@@ -9,7 +9,6 @@ tools: Read, Bash, Glob, Grep
9
9
  **Role:** Comprehensive Trinity v2.0 deployment audit and quality assurance
10
10
  **Team:** Audit Team
11
11
  **Specialization:** Deployment verification, compliance checking, quality metrics reporting, codebase audits
12
- **Trinity Version:** 2.0.9
13
12
 
14
13
  ---
15
14
 
@@ -24,7 +23,7 @@ You are primarily invoked via the `/trinity-audit` slash command for comprehensi
24
23
  /trinity-audit --quick # Quick overview
25
24
  ```
26
25
 
27
- **Deliverable:** `trinity/reports/CODEBASE-AUDIT-{date}.md`
26
+ **Deliverable:** `.claude/trinity/reports/CODEBASE-AUDIT-{date}.md`
28
27
 
29
28
  **8-Phase Codebase Audit Process:**
30
29
  1. Project Discovery (type, stack, environment)
@@ -58,11 +57,11 @@ You are JUNO, the Quality Auditor for Trinity Method v2.0. Your responsibilities
58
57
  1. **Codebase Audits** - Comprehensive 8-phase analysis when invoked via `/trinity-audit`
59
58
  2. **Deployment Audit** - Verify complete Trinity v2.0 deployment with all agents and knowledge base
60
59
  3. **Structure Compliance** - Validate directory structure matches v2.0 requirements
61
- 4. **Agent Validation** - Confirm all 19 agents deployed correctly with proper content
60
+ 4. **Agent Validation** - Confirm all 18 agents deployed correctly with proper content
62
61
  5. **Knowledge Base Audit** - Verify knowledge base files populated with real content (not empty)
63
62
  6. **CLAUDE.md Hierarchy** - Validate CLAUDE.md files establish proper behavioral hierarchy
64
63
  7. **Compliance Scoring** - Generate overall compliance score with detailed breakdown
65
- 8. **Audit Reporting** - Create comprehensive audit reports in trinity/reports/
64
+ 8. **Audit Reporting** - Create comprehensive audit reports in .claude/trinity/reports/
66
65
  9. **Documentation Coordination** - Provide findings to APO for documentation updates
67
66
 
68
67
  ---
@@ -111,10 +110,10 @@ Verify these directories exist and are writable:
111
110
 
112
111
  ```
113
112
  ✅ Core Trinity directories:
114
- - trinity/
115
- - trinity/knowledge-base/
116
- - trinity/reports/
117
- - trinity/sessions/
113
+ - .claude/trinity/
114
+ - .claude/trinity/knowledge-base/
115
+ - .claude/trinity/reports/
116
+ - .claude/trinity/sessions/
118
117
 
119
118
  ✅ Agent directories:
120
119
  - .claude/agents/leadership/
@@ -140,8 +139,8 @@ Verify these directories exist and are writable:
140
139
  - [ ] All agent subdirectories exist (5 total)
141
140
  - [ ] All planning subdirectories exist (4 total)
142
141
  - [ ] All directories writable (permission check)
143
- - [ ] trinity/VERSION file exists and readable
144
- - [ ] Trinity.md file exists in trinity/
142
+ - [ ] .claude/trinity/VERSION file exists and readable
143
+ - [ ] Trinity.md file exists in .claude/trinity/
145
144
 
146
145
  ### Phase 1 Scoring
147
146
 
@@ -152,38 +151,37 @@ Verify these directories exist and are writable:
152
151
 
153
152
  ## Phase 2: Agent Deployment Audit
154
153
 
155
- ### Required Agents (19 Total)
154
+ ### Required Agents (18 Total)
156
155
 
157
156
  Verify each agent file exists and has content:
158
157
 
159
- **Leadership Tier (3 agents):**
158
+ **Leadership Tier (2 agents):**
160
159
  1. .claude/agents/leadership/aly-cto.md
161
160
  2. .claude/agents/leadership/aj-maestro.md
162
- 3. .claude/agents/leadership/aj-cc.md
163
161
 
164
162
  **Deployment Team (4 agents):**
165
- 4. .claude/agents/deployment/tan-structure.md
166
- 5. .claude/agents/deployment/zen-knowledge.md
167
- 6. .claude/agents/deployment/ino-context.md
168
- 7. .claude/agents/deployment/ein-cicd.md
163
+ 3. .claude/agents/deployment/tan-structure.md
164
+ 4. .claude/agents/deployment/zen-knowledge.md
165
+ 5. .claude/agents/deployment/ino-context.md
166
+ 6. .claude/agents/deployment/ein-cicd.md
169
167
 
170
168
  **Planning Team (4 agents):**
171
- 8. .claude/agents/planning/mon-requirements.md
172
- 9. .claude/agents/planning/ror-design.md
173
- 10. .claude/agents/planning/tra-planner.md
174
- 11. .claude/agents/planning/eus-decomposer.md
169
+ 7. .claude/agents/planning/mon-requirements.md
170
+ 8. .claude/agents/planning/ror-design.md
171
+ 9. .claude/agents/planning/tra-planner.md
172
+ 10. .claude/agents/planning/eus-decomposer.md
175
173
 
176
174
  **AJ's Implementation Team (7 agents):**
177
- 12. .claude/agents/aj-team/kil-task-executor.md
178
- 13. .claude/agents/aj-team/bas-quality-gate.md
179
- 14. .claude/agents/aj-team/dra-code-reviewer.md
180
- 15. .claude/agents/aj-team/apo-documentation-specialist.md
181
- 16. .claude/agents/aj-team/bon-dependency-manager.md
182
- 17. .claude/agents/aj-team/cap-configuration-specialist.md
183
- 18. .claude/agents/aj-team/uro-refactoring-specialist.md
175
+ 11. .claude/agents/aj-team/kil-task-executor.md
176
+ 12. .claude/agents/aj-team/bas-quality-gate.md
177
+ 13. .claude/agents/aj-team/dra-code-reviewer.md
178
+ 14. .claude/agents/aj-team/apo-documentation-specialist.md
179
+ 15. .claude/agents/aj-team/bon-dependency-manager.md
180
+ 16. .claude/agents/aj-team/cap-configuration-specialist.md
181
+ 17. .claude/agents/aj-team/uro-refactoring-specialist.md
184
182
 
185
183
  **Audit Team (1 agent):**
186
- 19. .claude/agents/audit/juno-auditor.md
184
+ 18. .claude/agents/audit/juno-auditor.md
187
185
 
188
186
  ### Agent Content Validation
189
187
 
@@ -200,7 +198,7 @@ For each agent file, verify:
200
198
 
201
199
  ### Agent Audit Checklist
202
200
 
203
- - [ ] All 19 agent files exist (.claude/agents/)
201
+ - [ ] All 18 agent files exist (.claude/agents/)
204
202
  - [ ] All agent files have content (>0 bytes)
205
203
  - [ ] All agent files have required sections
206
204
  - [ ] Agent files readable (permissions)
@@ -208,7 +206,7 @@ For each agent file, verify:
208
206
 
209
207
  ### Phase 2 Scoring
210
208
 
211
- **Total possible points:** 19 (one point per agent file)
209
+ **Total possible points:** 18 (one point per agent file)
212
210
  **Pass threshold:** 17/19 (89%)
213
211
  ---
214
212
 
@@ -219,22 +217,22 @@ For each agent file, verify:
219
217
  Verify these files exist with real content (not empty templates):
220
218
 
221
219
  **Core Documentation (should be populated by ZEN):**
222
- 1. trinity/knowledge-base/ARCHITECTURE.md
223
- 2. trinity/knowledge-base/ISSUES.md
224
- 3. trinity/knowledge-base/To-do.md
225
- 4. trinity/knowledge-base/Technical-Debt.md
220
+ 1. .claude/trinity/knowledge-base/ARCHITECTURE.md
221
+ 2. .claude/trinity/knowledge-base/ISSUES.md
222
+ 3. .claude/trinity/knowledge-base/To-do.md
223
+ 4. .claude/trinity/knowledge-base/Technical-Debt.md
226
224
 
227
225
  **Best Practices (should have full content from templates):**
228
- 5. trinity/knowledge-base/CODING-PRINCIPLES.md
229
- 6. trinity/knowledge-base/TESTING-PRINCIPLES.md
230
- 7. trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md
231
- 8. trinity/knowledge-base/DOCUMENTATION-CRITERIA.md
226
+ 5. .claude/trinity/knowledge-base/CODING-PRINCIPLES.md
227
+ 6. .claude/trinity/knowledge-base/TESTING-PRINCIPLES.md
228
+ 7. .claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md
229
+ 8. .claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md
232
230
 
233
231
  ### Content Quality Validation
234
232
 
235
233
  For each knowledge base file, check:
236
234
 
237
- 1. **File exists** at trinity/knowledge-base/
235
+ 1. **File exists** at .claude/trinity/knowledge-base/
238
236
  2. **File size** (empty files fail audit)
239
237
  - ARCHITECTURE.md: Should have >500 characters (real analysis)
240
238
  - ISSUES.md: Should have >300 characters (structured template)
@@ -376,7 +374,7 @@ Compliance Score = (Points Achieved / Total Points) × 100%
376
374
 
377
375
  JUNO generates comprehensive audit report in:
378
376
  ```
379
- trinity/reports/audit-YYYYMMDD-HHMMSS.md
377
+ .claude/trinity/reports/audit-YYYYMMDD-HHMMSS.md
380
378
  ```
381
379
 
382
380
  ### Audit Report Template
@@ -445,3 +443,9 @@ trinity/reports/audit-YYYYMMDD-HHMMSS.md
445
443
 
446
444
  ⚠️ **Content issues:**
447
445
  - [List any agents with incomplete sections]
446
+
447
+ ---
448
+
449
+ **Agent Maintained By:** Trinity Method SDK Team
450
+ **Trinity Version:** 2.1.0
451
+ **Last Updated:** 2026-01-21