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.
- package/CHANGELOG.md +702 -267
- package/README.md +550 -540
- package/dist/cli/commands/deploy/agents.js +1 -1
- package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
- package/dist/cli/commands/deploy/ci-cd.js +10 -9
- package/dist/cli/commands/deploy/claude-setup.js +28 -35
- package/dist/cli/commands/deploy/configuration.js +10 -11
- package/dist/cli/commands/deploy/directories.js +13 -14
- package/dist/cli/commands/deploy/gitignore.js +3 -5
- package/dist/cli/commands/deploy/index.d.ts +1 -1
- package/dist/cli/commands/deploy/index.js +7 -3
- package/dist/cli/commands/deploy/knowledge-base.js +3 -3
- package/dist/cli/commands/deploy/pre-flight.js +1 -1
- package/dist/cli/commands/deploy/root-files.js +3 -18
- package/dist/cli/commands/deploy/sdk-install.js +1 -1
- package/dist/cli/commands/deploy/summary.js +3 -3
- package/dist/cli/commands/deploy/templates.js +33 -20
- package/dist/cli/commands/update/agents.js +1 -1
- package/dist/cli/commands/update/backup.js +6 -12
- package/dist/cli/commands/update/commands.d.ts +1 -0
- package/dist/cli/commands/update/commands.js +18 -45
- package/dist/cli/commands/update/knowledge-base.js +2 -2
- package/dist/cli/commands/update/pre-flight.js +11 -11
- package/dist/cli/commands/update/summary.js +5 -5
- package/dist/cli/commands/update/templates.js +35 -13
- package/dist/cli/commands/update/verification.js +5 -5
- package/dist/cli/commands/update/version.js +1 -1
- package/dist/cli/utils/deploy-ci.d.ts +3 -2
- package/dist/cli/utils/deploy-ci.js +24 -24
- package/dist/cli/utils/deploy-linting.js +101 -6
- package/dist/cli/utils/error-classes.d.ts +2 -2
- package/dist/cli/utils/linting-tools.js +14 -6
- package/dist/cli/utils/template-processor.js +2 -4
- package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +16 -22
- package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +10 -10
- package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +13 -15
- package/dist/templates/{agents → .claude/agents}/aj-team/bon-dependency-manager.md.template +4 -4
- package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template +3 -3
- package/dist/templates/{agents → .claude/agents}/aj-team/dra-code-reviewer.md.template +8 -10
- package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +11 -13
- package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template +3 -3
- package/dist/templates/{agents → .claude/agents}/audit/juno-auditor.md.template +46 -42
- package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +59 -164
- package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +25 -22
- package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +32 -30
- package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +28 -23
- package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +10 -6
- package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +22 -19
- package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +10 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +15 -15
- package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +48 -48
- package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +32 -54
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +13 -7
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +19 -15
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +12 -6
- package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +9 -8
- package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +279 -0
- package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +2828 -0
- package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-readme.md.template +21 -20
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-decompose.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-design.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-plan.md.template +7 -5
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-requirements.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-continue.md.template +30 -24
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-end.md.template +403 -397
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-start.md.template +9 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +11 -8
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +56 -57
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +13 -9
- package/dist/templates/ci/ci.yml.template +2 -2
- package/dist/templates/root/CLAUDE.md.template +9 -9
- package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -310
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
- package/dist/templates/source/python-CLAUDE.md.template +510 -510
- package/dist/templates/source/react-CLAUDE.md.template +513 -513
- package/dist/templates/source/rust-CLAUDE.md.template +653 -653
- package/dist/templates/trinity/CLAUDE.md.template +14 -14
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/AI-DEVELOPMENT-GUIDE.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/ARCHITECTURE.md.template +5 -5
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/CODING-PRINCIPLES.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/DOCUMENTATION-CRITERIA.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/ISSUES.md.template +9 -9
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/TESTING-PRINCIPLES.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/Technical-Debt.md.template +2 -4
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +2 -2
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +6 -6
- package/dist/templates/trinity/templates/documentation/api-docs/README.md.template +218 -0
- package/dist/templates/trinity/templates/documentation/configuration/documentation-structure.md.template +71 -0
- package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +387 -0
- package/dist/templates/trinity/templates/documentation/discovery/api-endpoint-scanner.md.template +343 -0
- package/dist/templates/trinity/templates/documentation/discovery/component-discovery.md.template +254 -0
- package/dist/templates/trinity/templates/documentation/discovery/env-variable-extraction.md.template +316 -0
- package/dist/templates/trinity/templates/documentation/discovery/framework-detection.md.template +205 -0
- package/dist/templates/trinity/templates/documentation/guides/api-development.md.template +375 -0
- package/dist/templates/trinity/templates/documentation/guides/contributing.md.template +488 -0
- package/dist/templates/trinity/templates/documentation/guides/deployment.md.template +565 -0
- package/dist/templates/trinity/templates/documentation/guides/getting-started.md.template +118 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template +56 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template +60 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/database-er.md.template +49 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template +41 -0
- package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +166 -0
- package/dist/templates/trinity/templates/documentation/processes/fallback-mechanism.md.template +88 -0
- package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +343 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +1337 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-final-report.md.template +237 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +461 -0
- package/dist/templates/trinity/templates/documentation/validation/documentation-verification-rules.md.template +379 -0
- package/dist/templates/trinity/templates/documentation/validation/juno-quality-gates.md.template +282 -0
- package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +14 -14
- package/dist/templates/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +10 -13
- package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +10 -25
- package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +10 -26
- package/package.json +99 -94
- package/dist/templates/agents/leadership/aj-cc.md.template +0 -462
- package/dist/templates/ci/cd.yml.template +0 -175
- package/dist/templates/ci/github-actions.yml +0 -86
- package/dist/templates/root/TRINITY.md.template +0 -52
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2577
- /package/dist/templates/{linting → root/linting}/flutter/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/flutter/analysis_options.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-commonjs.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-esm.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-typescript.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.prettierrc.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/.flake8.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/pyproject.toml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/clippy.toml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/rustfmt.toml.template +0 -0
- /package/dist/templates/{documentation → trinity/templates/documentation}/ROOT-README.md.template +0 -0
- /package/dist/templates/{documentation → trinity/templates/documentation}/SUBDIRECTORY-README.md.template +0 -0
|
@@ -50,7 +50,7 @@ You are **ZEN**, Trinity Method v2.0 Knowledge Base Specialist for {{PROJECT_NAM
|
|
|
50
50
|
|
|
51
51
|
### Phase 1: Create ARCHITECTURE.md
|
|
52
52
|
|
|
53
|
-
Location:
|
|
53
|
+
Location: `.claude/trinity/knowledge-base/ARCHITECTURE.md`
|
|
54
54
|
|
|
55
55
|
```markdown
|
|
56
56
|
# {{PROJECT_NAME}} - Architecture
|
|
@@ -89,7 +89,7 @@ Location: `trinity/knowledge-base/ARCHITECTURE.md`
|
|
|
89
89
|
```
|
|
90
90
|
{{PROJECT_NAME}}/
|
|
91
91
|
├── {{SOURCE_DIR}}/ # Application source
|
|
92
|
-
├── trinity/
|
|
92
|
+
├── .claude/trinity/
|
|
93
93
|
│ ├── knowledge-base/ # Documentation + Best Practices (v2.0)
|
|
94
94
|
│ │ ├── ARCHITECTURE.md (this file)
|
|
95
95
|
│ │ ├── ISSUES.md
|
|
@@ -149,7 +149,7 @@ See: `docs/plans/adrs/` for Architecture Decision Records created by ROR agent d
|
|
|
149
149
|
|
|
150
150
|
### Phase 2: Create Trinity.md
|
|
151
151
|
|
|
152
|
-
Location:
|
|
152
|
+
Location: `.claude/trinity/knowledge-base/Trinity.md`
|
|
153
153
|
|
|
154
154
|
```markdown
|
|
155
155
|
# {{PROJECT_NAME}} - Trinity Method v2.0
|
|
@@ -217,10 +217,9 @@ Trinity v2.0 adapts implementation approach based on scope:
|
|
|
217
217
|
5. Update knowledge base documentation
|
|
218
218
|
|
|
219
219
|
**Work Order System (Legacy):**
|
|
220
|
-
- Investigation orders: trinity/work-orders/
|
|
221
|
-
- Work order templates: trinity/templates/work-orders/
|
|
222
|
-
- Investigation templates: trinity/templates/investigations/
|
|
223
|
-
- Patterns: trinity/patterns/
|
|
220
|
+
- Investigation orders: .claude/trinity/work-orders/
|
|
221
|
+
- Work order templates: .claude/trinity/templates/work-orders/
|
|
222
|
+
- Investigation templates: .claude/trinity/templates/investigations/
|
|
224
223
|
- *Note: v2.0 uses scale-based workflows, work orders optional*
|
|
225
224
|
|
|
226
225
|
### Quality Standards (v2.0)
|
|
@@ -232,7 +231,7 @@ Trinity v2.0 adapts implementation approach based on scope:
|
|
|
232
231
|
- Try-catch wraps all async operations
|
|
233
232
|
- No code duplication (DRY principle)
|
|
234
233
|
|
|
235
|
-
**See:**
|
|
234
|
+
**See:** `.claude/trinity/knowledge-base/CODING-PRINCIPLES.md`
|
|
236
235
|
|
|
237
236
|
**Testing Quality (enforced by BAS Phase 4-5):**
|
|
238
237
|
- TDD cycle: RED-GREEN-REFACTOR mandatory
|
|
@@ -240,14 +239,14 @@ Trinity v2.0 adapts implementation approach based on scope:
|
|
|
240
239
|
- Independent tests (no interdependencies)
|
|
241
240
|
- Test names descriptive and clear
|
|
242
241
|
|
|
243
|
-
**See:**
|
|
242
|
+
**See:** `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md`
|
|
244
243
|
|
|
245
244
|
**AI Development (scale workflows):**
|
|
246
245
|
- Small scale: Direct implementation, 0 stops
|
|
247
246
|
- Medium scale: Design + tasks, 2 stops
|
|
248
247
|
- Large scale: Full planning (PRD + ADR + design + plan + tasks), 4 stops
|
|
249
248
|
|
|
250
|
-
**See:**
|
|
249
|
+
**See:** `.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md`
|
|
251
250
|
|
|
252
251
|
**Documentation Quality:**
|
|
253
252
|
- Architecture: Always current
|
|
@@ -256,13 +255,13 @@ Trinity v2.0 adapts implementation approach based on scope:
|
|
|
256
255
|
- Issues: Catalogued with patterns
|
|
257
256
|
- Scale-based requirements
|
|
258
257
|
|
|
259
|
-
**See:**
|
|
258
|
+
**See:** `.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md`
|
|
260
259
|
|
|
261
260
|
## Trinity v2.0 Structure
|
|
262
261
|
|
|
263
262
|
```
|
|
264
263
|
{{PROJECT_NAME}}/
|
|
265
|
-
├── trinity/
|
|
264
|
+
├── .claude/trinity/
|
|
266
265
|
│ ├── knowledge-base/
|
|
267
266
|
│ │ ├── ARCHITECTURE.md
|
|
268
267
|
│ │ ├── Trinity.md (this file)
|
|
@@ -300,7 +299,7 @@ Trinity v2.0 adapts implementation approach based on scope:
|
|
|
300
299
|
|
|
301
300
|
### Phase 3: Create To-do.md
|
|
302
301
|
|
|
303
|
-
Location:
|
|
302
|
+
Location: `.claude/trinity/knowledge-base/To-do.md`
|
|
304
303
|
|
|
305
304
|
```markdown
|
|
306
305
|
# {{PROJECT_NAME}} - Tasks
|
|
@@ -345,19 +344,19 @@ When adding new tasks, estimate scale:
|
|
|
345
344
|
|
|
346
345
|
## Technical Debt
|
|
347
346
|
|
|
348
|
-
See:
|
|
347
|
+
See: `.claude/trinity/knowledge-base/Technical-Debt.md` for comprehensive debt tracking with v2.0 compliance checks.
|
|
349
348
|
|
|
350
349
|
## Best Practices Documents (v2.0)
|
|
351
350
|
|
|
352
351
|
Reference these for all implementations:
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
-
|
|
352
|
+
- `.claude/trinity/knowledge-base/CODING-PRINCIPLES.md` - Code quality standards
|
|
353
|
+
- `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md` - TDD methodology
|
|
354
|
+
- `.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md` - Scale workflows
|
|
355
|
+
- `.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md` - Doc requirements
|
|
357
356
|
|
|
358
357
|
## Session Archive
|
|
359
358
|
|
|
360
|
-
Completed sessions archived to
|
|
359
|
+
Completed sessions archived to `.claude/trinity/sessions/[DATE]-[SESSION]/`
|
|
361
360
|
```
|
|
362
361
|
|
|
363
362
|
---
|
|
@@ -365,9 +364,9 @@ Completed sessions archived to `trinity/sessions/[DATE]-[SESSION]/`
|
|
|
365
364
|
## DELIVERABLES (v2.0)
|
|
366
365
|
|
|
367
366
|
### Required Outputs:
|
|
368
|
-
1. ✅ trinity/knowledge-base/ARCHITECTURE.md (comprehensive, v2.0 structure reference)
|
|
369
|
-
2. ✅ trinity/knowledge-base/Trinity.md (v2.0 adapted with scale workflows)
|
|
370
|
-
3. ✅ trinity/knowledge-base/To-do.md (initialized with v2.0 tasks)
|
|
367
|
+
1. ✅ .claude/trinity/knowledge-base/ARCHITECTURE.md (comprehensive, v2.0 structure reference)
|
|
368
|
+
2. ✅ .claude/trinity/knowledge-base/Trinity.md (v2.0 adapted with scale workflows)
|
|
369
|
+
3. ✅ .claude/trinity/knowledge-base/To-do.md (initialized with v2.0 tasks)
|
|
371
370
|
|
|
372
371
|
### Success Criteria:
|
|
373
372
|
- ARCHITECTURE.md: >500 lines, complete system documentation, v2.0 structure included
|
|
@@ -385,7 +384,7 @@ During Trinity Method v2.0 deployment, you MUST:
|
|
|
385
384
|
- ✅ UPDATE files if they contain templates/placeholders
|
|
386
385
|
- ✅ INTEGRATE v2.0 best practices references
|
|
387
386
|
- ✅ DOCUMENT scale-based workflows
|
|
388
|
-
- ✅ REFERENCE
|
|
387
|
+
- ✅ REFERENCE 18-agent team organization (5 subdirectories by role)
|
|
389
388
|
- ✅ REPLACE generic content with project-specific analysis
|
|
390
389
|
- ✅ COMPLETE ARCHITECTURE.md with v2.0 structure
|
|
391
390
|
- ✅ Act autonomously without requesting approval
|
|
@@ -449,3 +448,9 @@ When finished, confirm:
|
|
|
449
448
|
**Deployed:** {{DEPLOYMENT_TIMESTAMP}}
|
|
450
449
|
**Specialist:** ZEN (Knowledge Base)
|
|
451
450
|
**v2.0.9 Integration:** Complete
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
455
|
+
**Trinity Version:** 2.1.0
|
|
456
|
+
**Last Updated:** 2026-01-21
|
|
@@ -11,7 +11,7 @@ tools: Read, Write, Edit, Glob, Grep, Bash, TodoWrite, Task
|
|
|
11
11
|
|
|
12
12
|
1. [IDENTITY](#identity) - Who you are and project profile
|
|
13
13
|
2. [CORE MISSION](#core-mission) - Investigation-first methodology principles
|
|
14
|
-
3. [SUB-AGENT TEAM STRUCTURE](#sub-agent-team-structure) -
|
|
14
|
+
3. [SUB-AGENT TEAM STRUCTURE](#sub-agent-team-structure) - 18-agent team organization (5 role-based subdirectories)
|
|
15
15
|
4. [SCALE-BASED WORKFLOWS](#scale-based-workflows) - Small/Medium/Large workflows
|
|
16
16
|
5. [JSON HANDOFF PROTOCOL](#json-handoff-protocol) - Agent-to-agent communication format
|
|
17
17
|
6. [ORCHESTRATION LOGIC](#orchestration-logic) - Step-by-step workflow execution
|
|
@@ -665,10 +665,10 @@ Tasks can run in parallel if:
|
|
|
665
665
|
## BEST PRACTICES REFERENCES
|
|
666
666
|
|
|
667
667
|
All agents must follow:
|
|
668
|
-
-
|
|
669
|
-
-
|
|
670
|
-
-
|
|
671
|
-
-
|
|
668
|
+
- **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards
|
|
669
|
+
- **.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md** - TDD methodology
|
|
670
|
+
- **.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Scale workflows, task management
|
|
671
|
+
- **.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md** - Documentation requirements
|
|
672
672
|
|
|
673
673
|
---
|
|
674
674
|
|
|
@@ -703,7 +703,7 @@ If sub-agent fails:
|
|
|
703
703
|
```
|
|
704
704
|
{{PROJECT_NAME}}/
|
|
705
705
|
├── {{SOURCE_DIR}}/ # Application code
|
|
706
|
-
├── trinity/
|
|
706
|
+
├── .claude/trinity/
|
|
707
707
|
│ ├── knowledge-base/ # Best practices docs
|
|
708
708
|
│ │ ├── CODING-PRINCIPLES.md
|
|
709
709
|
│ │ ├── TESTING-PRINCIPLES.md
|
|
@@ -941,3 +941,7 @@ Total: 4.5 hours (18% faster)
|
|
|
941
941
|
4. Ensures BAS validates each task before proceeding
|
|
942
942
|
|
|
943
943
|
---
|
|
944
|
+
|
|
945
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
946
|
+
**Trinity Version:** 2.1.0
|
|
947
|
+
**Last Updated:** 2026-01-21
|
|
@@ -44,7 +44,7 @@ You are **Aly**, Chief Technology Officer for {{PROJECT_NAME}}.
|
|
|
44
44
|
- Validate DRA compliance reports after phases
|
|
45
45
|
|
|
46
46
|
### 3. Knowledge Base Management
|
|
47
|
-
- Maintain trinity/knowledge-base/ documentation
|
|
47
|
+
- Maintain .claude/trinity/knowledge-base/ documentation
|
|
48
48
|
- Update best practices documents (CODING, TESTING, AI-DEV, DOCS)
|
|
49
49
|
- Track issues, technical debt, and architectural decisions
|
|
50
50
|
- Ensure documentation stays current after each session
|
|
@@ -96,35 +96,34 @@ You are **Aly**, Chief Technology Officer for {{PROJECT_NAME}}.
|
|
|
96
96
|
### Best Practices Documents (v2.0)
|
|
97
97
|
|
|
98
98
|
All agents and implementations must follow:
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
99
|
+
- **.claude/trinity/knowledge-base/CODING-PRINCIPLES.md** - Code quality standards (≤2 params, try-catch, etc.)
|
|
100
|
+
- **.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md** - TDD methodology (RED-GREEN-REFACTOR)
|
|
101
|
+
- **.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md** - Scale workflows, quality gates, task management
|
|
102
|
+
- **.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md** - Documentation requirements by scale
|
|
103
103
|
|
|
104
104
|
### Knowledge Base Management
|
|
105
105
|
|
|
106
106
|
All project knowledge lives in:
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
107
|
+
- `.claude/trinity/knowledge-base/ARCHITECTURE.md` - System design and architecture decisions
|
|
108
|
+
- `.claude/trinity/knowledge-base/ISSUES.md` - Known problems and their status
|
|
109
|
+
- `.claude/trinity/knowledge-base/To-do.md` - Task tracking and priorities
|
|
110
|
+
- `.claude/trinity/knowledge-base/Technical-Debt.md` - Debt management and paydown plans
|
|
111
|
+
- `.claude/trinity/knowledge-base/CODING-PRINCIPLES.md` - Code standards (v2.0)
|
|
112
|
+
- `.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md` - TDD standards (v2.0)
|
|
113
|
+
- `.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md` - AI workflows (v2.0)
|
|
114
|
+
- `.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md` - Doc standards (v2.0)
|
|
115
115
|
|
|
116
116
|
**Keep these files always updated** after each session, major decision, and phase completion.
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
120
|
-
## AJ MAESTRO & THE
|
|
120
|
+
## AJ MAESTRO & THE 18-AGENT TEAM
|
|
121
121
|
|
|
122
122
|
### Team Structure (5 Role-Based Subdirectories)
|
|
123
123
|
|
|
124
|
-
**Leadership Tier** (
|
|
124
|
+
**Leadership Tier** (2 agents):
|
|
125
125
|
- **ALY** (CTO) - Strategic leadership and AJ MAESTRO coordination
|
|
126
126
|
- **AJ MAESTRO** - Implementation orchestration
|
|
127
|
-
- **AJ CC** - Continuous context and session continuity
|
|
128
127
|
|
|
129
128
|
**Deployment Team** (4 agents):
|
|
130
129
|
- **TAN** - Trinity folder structure deployment
|
|
@@ -211,7 +210,7 @@ Implement secure refresh token rotation following OAuth2 best practices.
|
|
|
211
210
|
|
|
212
211
|
**Option 1: APPROVE**
|
|
213
212
|
```
|
|
214
|
-
Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
|
|
213
|
+
Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
|
|
215
214
|
refresh endpoint. Proceed to TRA for work planning.
|
|
216
215
|
```
|
|
217
216
|
|
|
@@ -327,7 +326,7 @@ APPROVED - Proceed with merge
|
|
|
327
326
|
**Deployed:** {{DEPLOYMENT_TIMESTAMP}}
|
|
328
327
|
**Project:** {{PROJECT_NAME}}
|
|
329
328
|
**Framework:** {{FRAMEWORK}}
|
|
330
|
-
**AJ MAESTRO Integration:** v2.0 (
|
|
329
|
+
**AJ MAESTRO Integration:** v2.0 (18-agent orchestration)
|
|
331
330
|
**Quality Gates:** BAS 6-phase + DRA compliance validation
|
|
332
331
|
|
|
333
332
|
---
|
|
@@ -347,7 +346,7 @@ APPROVED - Proceed with merge
|
|
|
347
346
|
- ❌ NOT: Technical implementation details
|
|
348
347
|
|
|
349
348
|
**AJ MAESTRO (Tactical)**:
|
|
350
|
-
- ✅ Orchestrate
|
|
349
|
+
- ✅ Orchestrate 18-agent team
|
|
351
350
|
- ✅ Coordinate planning agents (MON, ROR, TRA, EUS)
|
|
352
351
|
- ✅ Execute implementation (KIL, BAS, DRA)
|
|
353
352
|
- ✅ Handle execution errors
|
|
@@ -405,3 +404,7 @@ Can AJ MAESTRO resolve? (technical/execution)
|
|
|
405
404
|
- ALY: "Approved - proceed"
|
|
406
405
|
|
|
407
406
|
---
|
|
407
|
+
|
|
408
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
409
|
+
**Trinity Version:** 2.1.0
|
|
410
|
+
**Last Updated:** 2026-01-21
|
|
@@ -108,10 +108,10 @@ Decompose implementation plans into atomic tasks following the "1 task = 1 commi
|
|
|
108
108
|
## TRINITY V2.0 BEST PRACTICES
|
|
109
109
|
|
|
110
110
|
### Reference Documents
|
|
111
|
-
- **Coding Standards:** [trinity/knowledge-base/CODING-PRINCIPLES.md](trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
112
|
-
- **Testing Standards:** [trinity/knowledge-base/TESTING-PRINCIPLES.md](trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
113
|
-
- **AI Development Guide:** [trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
114
|
-
- **Documentation Standards:** [trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
111
|
+
- **Coding Standards:** [.claude/trinity/knowledge-base/CODING-PRINCIPLES.md](.claude/trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
112
|
+
- **Testing Standards:** [.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md](.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
113
|
+
- **AI Development Guide:** [.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
114
|
+
- **Documentation Standards:** [.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
115
115
|
|
|
116
116
|
### Decomposition Principles
|
|
117
117
|
|
|
@@ -494,3 +494,7 @@ Task 8: Integration tests
|
|
|
494
494
|
- Parallel: 5 phases × 1 hour = 5 hours (37% faster)
|
|
495
495
|
|
|
496
496
|
---
|
|
497
|
+
|
|
498
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
499
|
+
**Trinity Version:** 2.1.0
|
|
500
|
+
**Last Updated:** 2026-01-21
|
|
@@ -105,10 +105,10 @@ User request describing desired functionality or changes
|
|
|
105
105
|
## TRINITY V2.0 BEST PRACTICES
|
|
106
106
|
|
|
107
107
|
### Reference Documents
|
|
108
|
-
- **Coding Standards:** [trinity/knowledge-base/CODING-PRINCIPLES.md](trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
109
|
-
- **Testing Standards:** [trinity/knowledge-base/TESTING-PRINCIPLES.md](trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
110
|
-
- **AI Development Guide:** [trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
111
|
-
- **Documentation Standards:** [trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
108
|
+
- **Coding Standards:** [.claude/trinity/knowledge-base/CODING-PRINCIPLES.md](.claude/trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
109
|
+
- **Testing Standards:** [.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md](.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
110
|
+
- **AI Development Guide:** [.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
111
|
+
- **Documentation Standards:** [.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
112
112
|
|
|
113
113
|
### Key Principles
|
|
114
114
|
|
|
@@ -321,3 +321,7 @@ Skip MON for:
|
|
|
321
321
|
- Complex business logic requiring clarification
|
|
322
322
|
|
|
323
323
|
---
|
|
324
|
+
|
|
325
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
326
|
+
**Trinity Version:** 2.1.0
|
|
327
|
+
**Last Updated:** 2026-01-21
|
|
@@ -135,10 +135,10 @@ Transform requirements into detailed technical designs with clear function signa
|
|
|
135
135
|
## TRINITY V2.0 BEST PRACTICES
|
|
136
136
|
|
|
137
137
|
### Reference Documents
|
|
138
|
-
- **Coding Standards:** [trinity/knowledge-base/CODING-PRINCIPLES.md](trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
139
|
-
- **Testing Standards:** [trinity/knowledge-base/TESTING-PRINCIPLES.md](trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
140
|
-
- **AI Development Guide:** [trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
141
|
-
- **Documentation Standards:** [trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
138
|
+
- **Coding Standards:** [.claude/trinity/knowledge-base/CODING-PRINCIPLES.md](.claude/trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
139
|
+
- **Testing Standards:** [.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md](.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
140
|
+
- **AI Development Guide:** [.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
141
|
+
- **Documentation Standards:** [.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
142
142
|
|
|
143
143
|
### Design Principles (DRA Compliance)
|
|
144
144
|
|
|
@@ -463,3 +463,7 @@ Sometimes initial scale assessment changes during design phase.
|
|
|
463
463
|
**Recommendation to ALY**: "Downgrade to Small scale - simpler than anticipated"
|
|
464
464
|
|
|
465
465
|
---
|
|
466
|
+
|
|
467
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
468
|
+
**Trinity Version:** 2.1.0
|
|
469
|
+
**Last Updated:** 2026-01-21
|
|
@@ -125,10 +125,10 @@ Transform technical designs into executable implementation plans with optimal ta
|
|
|
125
125
|
## TRINITY V2.0 BEST PRACTICES
|
|
126
126
|
|
|
127
127
|
### Reference Documents
|
|
128
|
-
- **Coding Standards:** [trinity/knowledge-base/CODING-PRINCIPLES.md](trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
129
|
-
- **Testing Standards:** [trinity/knowledge-base/TESTING-PRINCIPLES.md](trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
130
|
-
- **AI Development Guide:** [trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
131
|
-
- **Documentation Standards:** [trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
128
|
+
- **Coding Standards:** [.claude/trinity/knowledge-base/CODING-PRINCIPLES.md](.claude/trinity/knowledge-base/CODING-PRINCIPLES.md)
|
|
129
|
+
- **Testing Standards:** [.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md](.claude/trinity/knowledge-base/TESTING-PRINCIPLES.md)
|
|
130
|
+
- **AI Development Guide:** [.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md](.claude/trinity/knowledge-base/AI-DEVELOPMENT-GUIDE.md)
|
|
131
|
+
- **Documentation Standards:** [.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md](.claude/trinity/knowledge-base/DOCUMENTATION-CRITERIA.md)
|
|
132
132
|
|
|
133
133
|
### Planning Principles
|
|
134
134
|
|
|
@@ -430,3 +430,9 @@ Always output structured JSON for EUS to consume:
|
|
|
430
430
|
---
|
|
431
431
|
|
|
432
432
|
**Remember:** TRA's plan guides the entire implementation. Accurate sequencing and realistic estimates ensure smooth execution. BAS quality gates enforce quality at every step, preventing defects from accumulating.
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
437
|
+
**Trinity Version:** 2.1.0
|
|
438
|
+
**Last Updated:** 2026-01-21
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Launch comprehensive, deterministic codebase audit with JUNO
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# Trinity Audit
|
|
6
2
|
|
|
7
|
-
**
|
|
3
|
+
**Command:** `/execution:trinity-audit`
|
|
4
|
+
**Purpose:** Launch JUNO to perform systematic, framework-agnostic codebase audit
|
|
5
|
+
**Architecture:** JUNO automated analysis → Baseline comparison → Report generation
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
8
|
|
|
9
9
|
**Primary Use Case:** Comprehensive quality assessment of any codebase (JavaScript, Python, Rust, Go, etc.)
|
|
10
10
|
|
|
11
|
-
**IMPORTANT:** When the user invokes `/trinity-audit`, proceed immediately with systematic analysis. The audit is deterministic and reproducible.
|
|
11
|
+
**IMPORTANT:** When the user invokes `/execution:trinity-audit`, proceed immediately with systematic analysis. The audit is deterministic and reproducible.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -28,8 +28,8 @@ description: Launch comprehensive, deterministic codebase audit with JUNO
|
|
|
28
28
|
- ✅ **Tool-based:** Uses actual linters/scanners, not just file reading
|
|
29
29
|
|
|
30
30
|
**Deliverable:**
|
|
31
|
-
-
|
|
32
|
-
-
|
|
31
|
+
- `.claude/trinity/reports/CODEBASE-AUDIT-{date}.md` (human-readable report)
|
|
32
|
+
- `.claude/trinity/reports/AUDIT-BASELINE-{date}.json` (machine-readable baseline for future comparisons)
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
@@ -56,7 +56,7 @@ description: Launch comprehensive, deterministic codebase audit with JUNO
|
|
|
56
56
|
|
|
57
57
|
### ⚠️ Second Audit Behavior:
|
|
58
58
|
|
|
59
|
-
When a baseline exists (
|
|
59
|
+
When a baseline exists (`.claude/trinity/reports/AUDIT-BASELINE-*.json`):
|
|
60
60
|
- **FIXED issues:** ✅ Marked as resolved (celebrate!)
|
|
61
61
|
- **NEW issues:** ⚠️ Flagged as introduced since last audit
|
|
62
62
|
- **PERSISTENT issues:** 🔴 Still present from previous audit
|
|
@@ -75,7 +75,7 @@ JUNO follows a **strict, repeatable process** to ensure consistent results:
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# Check for existing baseline
|
|
78
|
-
IF trinity/reports/AUDIT-BASELINE-*.json exists:
|
|
78
|
+
IF .claude/trinity/reports/AUDIT-BASELINE-*.json exists:
|
|
79
79
|
- Load previous findings
|
|
80
80
|
- Track what's been fixed ✅
|
|
81
81
|
- Track what's new ⚠️
|
|
@@ -425,7 +425,7 @@ IF baseline exists:
|
|
|
425
425
|
|
|
426
426
|
**Two files created:**
|
|
427
427
|
|
|
428
|
-
#### 1. Human-Readable Report:
|
|
428
|
+
#### 1. Human-Readable Report: `.claude/trinity/reports/CODEBASE-AUDIT-{date}.md`
|
|
429
429
|
|
|
430
430
|
```markdown
|
|
431
431
|
# Codebase Audit Report
|
|
@@ -503,10 +503,10 @@ Expected result: "0 new issues, 0 persistent issues, X fixed issues"
|
|
|
503
503
|
|
|
504
504
|
**Audit Complete:** {timestamp}
|
|
505
505
|
**Confidence:** {HIGH|MEDIUM|LOW}
|
|
506
|
-
**Baseline Saved:** trinity/reports/AUDIT-BASELINE-{date}.json
|
|
506
|
+
**Baseline Saved:** .claude/trinity/reports/AUDIT-BASELINE-{date}.json
|
|
507
507
|
```
|
|
508
508
|
|
|
509
|
-
#### 2. Machine-Readable Baseline:
|
|
509
|
+
#### 2. Machine-Readable Baseline: `.claude/trinity/reports/AUDIT-BASELINE-{date}.json`
|
|
510
510
|
|
|
511
511
|
```json
|
|
512
512
|
{
|
|
@@ -599,8 +599,8 @@ JUNO: Loading previous audit baseline...
|
|
|
599
599
|
|
|
600
600
|
**Recommendation:** You're done! The codebase is in excellent shape.
|
|
601
601
|
|
|
602
|
-
**Audit saved:** trinity/reports/CODEBASE-AUDIT-2025-12-21.md
|
|
603
|
-
**Baseline updated:** trinity/reports/AUDIT-BASELINE-2025-12-21.json
|
|
602
|
+
**Audit saved:** .claude/trinity/reports/CODEBASE-AUDIT-2025-12-21.md
|
|
603
|
+
**Baseline updated:** .claude/trinity/reports/AUDIT-BASELINE-2025-12-21.json
|
|
604
604
|
```
|
|
605
605
|
|
|
606
606
|
**This is how the cycle ends.**
|