trinity-method-sdk 2.0.9 → 2.1.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 +200 -0
- package/README.md +33 -34
- package/dist/cli/commands/deploy/agents.js +1 -1
- package/dist/cli/commands/deploy/claude-setup.js +28 -35
- package/dist/cli/commands/deploy/index.js +1 -1
- package/dist/cli/commands/deploy/knowledge-base.js +1 -1
- package/dist/cli/commands/deploy/root-files.js +1 -1
- package/dist/cli/commands/deploy/sdk-install.js +1 -1
- package/dist/cli/commands/deploy/templates.js +29 -16
- package/dist/cli/commands/update/agents.js +1 -1
- 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 +1 -1
- package/dist/cli/commands/update/templates.js +34 -12
- package/dist/cli/utils/deploy-linting.js +1 -1
- package/dist/cli/utils/template-processor.js +1 -1
- package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +3 -3
- package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +5 -7
- 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 +5 -7
- package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +5 -7
- 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 +7 -2
- package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +3 -5
- package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +4 -1
- package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +4 -1
- package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +6 -0
- package/dist/templates/{agents → .claude/agents}/leadership/aj-cc.md.template +6 -1
- package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +4 -0
- package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +5 -1
- package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +4 -0
- package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +4 -0
- package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +4 -0
- package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +6 -0
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +6 -6
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +5 -5
- package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +12 -11
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +8 -2
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +9 -5
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +11 -5
- package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +5 -4
- 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 +5 -4
- 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 +8 -2
- 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 +8 -2
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +8 -2
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +8 -3
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +8 -4
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +1 -1
- 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/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +0 -3
- package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +0 -16
- package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +0 -16
- package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +0 -15
- package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +0 -16
- package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +0 -16
- package/package.json +1 -1
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2577
- /package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +0 -0
- /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
- /package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +0 -0
- /package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +0 -0
- /package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +0 -0
- /package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +0 -0
- /package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +0 -0
|
@@ -13,67 +13,40 @@ const COMMAND_CATEGORIES = [
|
|
|
13
13
|
'execution',
|
|
14
14
|
'investigation',
|
|
15
15
|
'infrastructure',
|
|
16
|
+
'maintenance',
|
|
16
17
|
'utility',
|
|
17
18
|
];
|
|
18
|
-
/**
|
|
19
|
-
* Determine command category based on filename
|
|
20
|
-
* @param filename - Command file name
|
|
21
|
-
* @returns Category name
|
|
22
|
-
*/
|
|
23
|
-
function determineCommandCategory(filename) {
|
|
24
|
-
if (filename.includes('start') || filename.includes('continue') || filename.includes('end')) {
|
|
25
|
-
return 'session';
|
|
26
|
-
}
|
|
27
|
-
else if (filename.includes('requirements') ||
|
|
28
|
-
filename.includes('design') ||
|
|
29
|
-
filename.includes('plan') ||
|
|
30
|
-
filename.includes('decompose')) {
|
|
31
|
-
return 'planning';
|
|
32
|
-
}
|
|
33
|
-
else if (filename.includes('orchestrate') ||
|
|
34
|
-
filename.includes('audit') ||
|
|
35
|
-
filename.includes('changelog') ||
|
|
36
|
-
filename.includes('docs') ||
|
|
37
|
-
filename.includes('readme')) {
|
|
38
|
-
return 'execution';
|
|
39
|
-
}
|
|
40
|
-
else if (filename.includes('investigation') || filename.includes('investigate')) {
|
|
41
|
-
return 'investigation';
|
|
42
|
-
}
|
|
43
|
-
else if (filename.includes('init')) {
|
|
44
|
-
return 'infrastructure';
|
|
45
|
-
}
|
|
46
|
-
return 'utility';
|
|
47
|
-
}
|
|
48
19
|
/**
|
|
49
20
|
* Update slash command files from SDK to .claude/commands/
|
|
21
|
+
* Commands are now organized by category in source templates
|
|
50
22
|
* @param spinner - ora spinner instance for status display
|
|
51
23
|
* @param stats - update statistics to track progress
|
|
52
24
|
*/
|
|
53
25
|
export async function updateCommands(spinner, stats) {
|
|
54
26
|
spinner.start('Updating slash commands...');
|
|
55
27
|
const sdkPath = await getSDKPath();
|
|
56
|
-
const commandsTemplatePath = path.join(sdkPath, 'dist/templates/
|
|
28
|
+
const commandsTemplatePath = path.join(sdkPath, 'dist/templates/.claude/commands');
|
|
57
29
|
if (!(await fs.pathExists(commandsTemplatePath))) {
|
|
58
30
|
spinner.warn('Commands template path not found, skipping');
|
|
59
31
|
return;
|
|
60
32
|
}
|
|
61
|
-
//
|
|
33
|
+
// Iterate through each category directory
|
|
62
34
|
for (const category of COMMAND_CATEGORIES) {
|
|
35
|
+
const sourceCategoryPath = path.join(commandsTemplatePath, category);
|
|
63
36
|
const targetCategoryPath = path.join('.claude/commands', category);
|
|
64
|
-
await fs.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
37
|
+
if (await fs.pathExists(sourceCategoryPath)) {
|
|
38
|
+
await fs.ensureDir(targetCategoryPath);
|
|
39
|
+
const commandFiles = await fs.readdir(sourceCategoryPath);
|
|
40
|
+
for (const file of commandFiles) {
|
|
41
|
+
if (file.endsWith('.md.template')) {
|
|
42
|
+
const sourcePath = path.join(sourceCategoryPath, file);
|
|
43
|
+
// Remove .template extension for deployed file
|
|
44
|
+
const deployedFileName = file.replace('.template', '');
|
|
45
|
+
const targetPath = path.join(targetCategoryPath, deployedFileName);
|
|
46
|
+
await fs.copy(sourcePath, targetPath, { overwrite: true });
|
|
47
|
+
stats.commandsUpdated++;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
77
50
|
}
|
|
78
51
|
}
|
|
79
52
|
spinner.succeed(`Slash commands updated (${stats.commandsUpdated} files)`);
|
|
@@ -22,7 +22,7 @@ const SDK_MANAGED_KB_FILES = [
|
|
|
22
22
|
export async function updateKnowledgeBase(spinner, stats) {
|
|
23
23
|
spinner.start('Updating knowledge base...');
|
|
24
24
|
const sdkPath = await getSDKPath();
|
|
25
|
-
const kbTemplatePath = path.join(sdkPath, 'dist/templates/knowledge-base');
|
|
25
|
+
const kbTemplatePath = path.join(sdkPath, 'dist/templates/trinity/knowledge-base');
|
|
26
26
|
for (const templateFile of SDK_MANAGED_KB_FILES) {
|
|
27
27
|
const sourcePath = path.join(kbTemplatePath, templateFile);
|
|
28
28
|
if (await fs.pathExists(sourcePath)) {
|
|
@@ -8,6 +8,38 @@ import path from 'path';
|
|
|
8
8
|
import { getSDKPath } from './utils.js';
|
|
9
9
|
/** Template directories to update */
|
|
10
10
|
const TEMPLATE_DIRS = ['work-orders', 'documentation', 'investigations'];
|
|
11
|
+
/**
|
|
12
|
+
* Recursively copy files from source to target directory
|
|
13
|
+
* @param sourcePath - source directory path
|
|
14
|
+
* @param targetPath - target directory path
|
|
15
|
+
* @param stats - update statistics to track progress
|
|
16
|
+
*/
|
|
17
|
+
async function copyTemplatesRecursively(sourcePath, targetPath, stats) {
|
|
18
|
+
const entries = await fs.readdir(sourcePath, { withFileTypes: true });
|
|
19
|
+
for (const entry of entries) {
|
|
20
|
+
const sourceFile = path.join(sourcePath, entry.name);
|
|
21
|
+
const targetFile = path.join(targetPath, entry.name);
|
|
22
|
+
if (entry.isDirectory()) {
|
|
23
|
+
// Recursively copy subdirectories
|
|
24
|
+
await fs.ensureDir(targetFile);
|
|
25
|
+
await copyTemplatesRecursively(sourceFile, targetFile, stats);
|
|
26
|
+
}
|
|
27
|
+
else if (entry.isFile()) {
|
|
28
|
+
// Copy template files (.md.template files get .template stripped)
|
|
29
|
+
if (entry.name.endsWith('.md.template')) {
|
|
30
|
+
const deployedFileName = entry.name.replace('.template', '');
|
|
31
|
+
const targetFilePath = path.join(targetPath, deployedFileName);
|
|
32
|
+
await fs.copy(sourceFile, targetFilePath, { overwrite: true });
|
|
33
|
+
stats.templatesUpdated++;
|
|
34
|
+
}
|
|
35
|
+
// Copy plain .md files (e.g., Mermaid diagram templates)
|
|
36
|
+
else if (entry.name.endsWith('.md')) {
|
|
37
|
+
await fs.copy(sourceFile, targetFile, { overwrite: true });
|
|
38
|
+
stats.templatesUpdated++;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
11
43
|
/**
|
|
12
44
|
* Update template files from SDK to trinity/templates/
|
|
13
45
|
* @param spinner - ora spinner instance for status display
|
|
@@ -16,23 +48,13 @@ const TEMPLATE_DIRS = ['work-orders', 'documentation', 'investigations'];
|
|
|
16
48
|
export async function updateTemplates(spinner, stats) {
|
|
17
49
|
spinner.start('Updating templates...');
|
|
18
50
|
const sdkPath = await getSDKPath();
|
|
19
|
-
const sdkTemplatesPath = path.join(sdkPath, 'dist/templates');
|
|
51
|
+
const sdkTemplatesPath = path.join(sdkPath, 'dist/templates/trinity/templates');
|
|
20
52
|
for (const templateDir of TEMPLATE_DIRS) {
|
|
21
53
|
const sourcePath = path.join(sdkTemplatesPath, templateDir);
|
|
22
54
|
const targetPath = path.join('trinity/templates', templateDir);
|
|
23
55
|
if (await fs.pathExists(sourcePath)) {
|
|
24
56
|
await fs.ensureDir(targetPath);
|
|
25
|
-
|
|
26
|
-
// Copy each file individually, stripping .template extension
|
|
27
|
-
for (const file of files) {
|
|
28
|
-
if (file.endsWith('.md.template')) {
|
|
29
|
-
const sourceFile = path.join(sourcePath, file);
|
|
30
|
-
const deployedFileName = file.replace('.template', '');
|
|
31
|
-
const targetFile = path.join(targetPath, deployedFileName);
|
|
32
|
-
await fs.copy(sourceFile, targetFile, { overwrite: true });
|
|
33
|
-
stats.templatesUpdated++;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
57
|
+
await copyTemplatesRecursively(sourcePath, targetPath, stats);
|
|
36
58
|
}
|
|
37
59
|
}
|
|
38
60
|
spinner.succeed(`Templates updated (${stats.templatesUpdated} files)`);
|
|
@@ -4,7 +4,7 @@ import { processTemplate } from './template-processor.js';
|
|
|
4
4
|
import { validatePath } from './validate-path.js';
|
|
5
5
|
export async function deployLintingTool(tool, stack, templatesPath, variables) {
|
|
6
6
|
const frameworkDir = getFrameworkDirectory(stack.framework);
|
|
7
|
-
const templateDir = path.join(templatesPath, 'linting', frameworkDir);
|
|
7
|
+
const templateDir = path.join(templatesPath, 'root/linting', frameworkDir);
|
|
8
8
|
switch (tool.id) {
|
|
9
9
|
case 'eslint':
|
|
10
10
|
case 'eslint-typescript': // Alias for eslint with TypeScript (backward compatibility)
|
|
@@ -24,7 +24,7 @@ const VARIABLE_RESOLVERS = {
|
|
|
24
24
|
DEPLOYMENT_TIMESTAMP: (v) => toString(v.DEPLOYMENT_TIMESTAMP || v.timestamp) || new Date().toISOString(),
|
|
25
25
|
LANGUAGE: (v) => toString(v.LANGUAGE || v.language) || 'Unknown',
|
|
26
26
|
PACKAGE_MANAGER: (v) => toString(v.PACKAGE_MANAGER || v.packageManager) || 'npm',
|
|
27
|
-
TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.0
|
|
27
|
+
TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.1.0',
|
|
28
28
|
TECHNOLOGY_STACK: (v) => toString(v.TECHNOLOGY_STACK || v.TECH_STACK || v.techStack) || 'Unknown',
|
|
29
29
|
PRIMARY_FRAMEWORK: (v) => toString(v.PRIMARY_FRAMEWORK || v.FRAMEWORK || v.framework) || 'Generic',
|
|
30
30
|
CURRENT_DATE: (v) => toString(v.CURRENT_DATE) || new Date().toISOString().split('T')[0],
|
package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template
RENAMED
|
@@ -566,7 +566,7 @@ Before handing back to KIL:
|
|
|
566
566
|
|
|
567
567
|
---
|
|
568
568
|
|
|
569
|
-
**Agent Maintained By
|
|
570
|
-
**
|
|
571
|
-
**Last Updated:** 2026-01-
|
|
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)
|
|
@@ -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):
|
|
@@ -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
|
|
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
|
|
634
|
-
**Trinity Version:** 2.0
|
|
635
|
-
**Last Updated:** 2026-01-
|
|
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)
|
package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template
RENAMED
|
@@ -664,7 +664,7 @@ Before handing back to KIL:
|
|
|
664
664
|
|
|
665
665
|
---
|
|
666
666
|
|
|
667
|
-
**Agent Maintained By
|
|
668
|
-
**Trinity Version:** 2.0
|
|
669
|
-
**Last Updated:** 2026-01-
|
|
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)
|
|
@@ -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
|
|
@@ -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):
|
|
@@ -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
|
package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template
RENAMED
|
@@ -753,7 +753,7 @@ Before handing back to KIL:
|
|
|
753
753
|
|
|
754
754
|
---
|
|
755
755
|
|
|
756
|
-
**Agent Maintained By
|
|
757
|
-
**Trinity Version:** 2.0
|
|
758
|
-
**Last Updated:** 2026-01-
|
|
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
|
|
|
@@ -445,3 +444,9 @@ trinity/reports/audit-YYYYMMDD-HHMMSS.md
|
|
|
445
444
|
|
|
446
445
|
⚠️ **Content issues:**
|
|
447
446
|
- [List any agents with incomplete sections]
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
451
|
+
**Trinity Version:** 2.1.0
|
|
452
|
+
**Last Updated:** 2026-01-21
|
|
@@ -9,7 +9,6 @@ tools: Read, Write, Edit, Bash
|
|
|
9
9
|
**Role:** Continuous Integration/Continuous Deployment automation with BAS quality gate integration
|
|
10
10
|
**Team:** Deployment Team
|
|
11
11
|
**Specialization:** GitHub Actions, pre-commit hooks, coverage reporting, BAS 6-phase gate integration
|
|
12
|
-
**Trinity Version:** 2.0.9
|
|
13
12
|
|
|
14
13
|
---
|
|
15
14
|
|
|
@@ -689,7 +688,6 @@ Ein's work is complete when:
|
|
|
689
688
|
|
|
690
689
|
---
|
|
691
690
|
|
|
692
|
-
**
|
|
693
|
-
**
|
|
694
|
-
**
|
|
695
|
-
**v2.0 Integration:** BAS quality gates, 80% coverage enforcement, pre-commit hooks
|
|
691
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
692
|
+
**Trinity Version:** 2.1.0
|
|
693
|
+
**Last Updated:** 2026-01-21
|
|
@@ -9,7 +9,6 @@ tools: Read, Write, Edit, Bash
|
|
|
9
9
|
**Role:** CLAUDE.md hierarchy management and ISSUES.md database creation
|
|
10
10
|
**Team:** Deployment Team
|
|
11
11
|
**Specialization:** Project context establishment, behavioral hierarchy, issue tracking structure
|
|
12
|
-
**Trinity Version:** 2.0.9
|
|
13
12
|
|
|
14
13
|
---
|
|
15
14
|
|
|
@@ -731,3 +730,7 @@ Trinity establishes a 2-level CLAUDE.md hierarchy:
|
|
|
731
730
|
**Documentation**: See `.claude/CLAUDE.md` for hierarchy details
|
|
732
731
|
|
|
733
732
|
---
|
|
733
|
+
|
|
734
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
735
|
+
**Trinity Version:** 2.1.0
|
|
736
|
+
**Last Updated:** 2026-01-21
|
|
@@ -9,7 +9,6 @@ tools: Bash, Read, Edit, Glob, Grep
|
|
|
9
9
|
**Role:** Trinity Method v2.0 folder structure verification and validation
|
|
10
10
|
**Team:** Deployment Team
|
|
11
11
|
**Specialization:** Directory structure, agent deployment verification, technical debt baseline establishment
|
|
12
|
-
**Trinity Version:** 2.0.9
|
|
13
12
|
|
|
14
13
|
---
|
|
15
14
|
|
|
@@ -659,3 +658,7 @@ chmod -R 755 trinity/
|
|
|
659
658
|
```
|
|
660
659
|
|
|
661
660
|
---
|
|
661
|
+
|
|
662
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
663
|
+
**Trinity Version:** 2.1.0
|
|
664
|
+
**Last Updated:** 2026-01-21
|
|
@@ -449,3 +449,9 @@ When finished, confirm:
|
|
|
449
449
|
**Deployed:** {{DEPLOYMENT_TIMESTAMP}}
|
|
450
450
|
**Specialist:** ZEN (Knowledge Base)
|
|
451
451
|
**v2.0.9 Integration:** Complete
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
456
|
+
**Trinity Version:** 2.1.0
|
|
457
|
+
**Last Updated:** 2026-01-21
|
|
@@ -456,7 +456,12 @@ As AJ (Implementation Lead), you are:
|
|
|
456
456
|
|
|
457
457
|
---
|
|
458
458
|
|
|
459
|
-
**Trinity Version:** 2.0.9
|
|
460
459
|
**Deployed:** {{DEPLOYMENT_TIMESTAMP}}
|
|
461
460
|
**Project:** {{PROJECT_NAME}}
|
|
462
461
|
**Framework:** {{FRAMEWORK}}
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
466
|
+
**Trinity Version:** 2.1.0
|
|
467
|
+
**Last Updated:** 2026-01-21
|
|
@@ -211,7 +211,7 @@ Implement secure refresh token rotation following OAuth2 best practices.
|
|
|
211
211
|
|
|
212
212
|
**Option 1: APPROVE**
|
|
213
213
|
```
|
|
214
|
-
Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
|
|
214
|
+
Design approved with minor enhancement: Add rate limiting (5 requests/min per IP) to
|
|
215
215
|
refresh endpoint. Proceed to TRA for work planning.
|
|
216
216
|
```
|
|
217
217
|
|
|
@@ -405,3 +405,7 @@ Can AJ MAESTRO resolve? (technical/execution)
|
|
|
405
405
|
- ALY: "Approved - proceed"
|
|
406
406
|
|
|
407
407
|
---
|
|
408
|
+
|
|
409
|
+
**Agent Maintained By:** Trinity Method SDK Team
|
|
410
|
+
**Trinity Version:** 2.1.0
|
|
411
|
+
**Last Updated:** 2026-01-21
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Primary command for executing tasks with AJ MAESTRO orchestration
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# Trinity Orchestration
|
|
6
2
|
|
|
7
|
-
**
|
|
3
|
+
**Command:** `/execution:trinity-orchestrate`
|
|
4
|
+
**Purpose:** Primary command for executing tasks during development sessions with AJ MAESTRO orchestration
|
|
5
|
+
**Architecture:** ALY (CTO) → MON → ROR → TRA → EUS → KIL cycles → BAS gates → JUNO verification
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
8
|
|
|
9
9
|
**Use throughout your session:** This command is used repeatedly as you work through tasks.
|
|
10
10
|
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
# Trinity Initialization
|
|
2
|
+
|
|
3
|
+
**Command:** `/infrastructure:trinity-init`
|
|
4
|
+
**Purpose:** Complete Trinity Method integration with comprehensive setup and quality validation
|
|
5
|
+
**Architecture:** TAN structure validation → ZEN knowledge base → INO context → EIN CI/CD → JUNO audit
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
|
+
|
|
1
9
|
---
|
|
2
|
-
|
|
3
|
-
---
|
|
10
|
+
|
|
4
11
|
# Quick Start - TL;DR
|
|
5
12
|
|
|
6
13
|
**Install Trinity in 3 steps**:
|
|
7
14
|
|
|
8
|
-
1. **Run Init**: `/trinity-init`
|
|
15
|
+
1. **Run Init**: `/infrastructure:trinity-init`
|
|
9
16
|
2. **Wait**: ~30 seconds (deploys 19 agents + knowledge base)
|
|
10
|
-
3. **Verify**: `/trinity-verify` (confirm 100% deployment)
|
|
17
|
+
3. **Verify**: `/utility:trinity-verify` (confirm 100% deployment)
|
|
11
18
|
|
|
12
19
|
**What You Get**:
|
|
13
20
|
- 19 specialized agents in `.claude/agents/`
|
|
@@ -16,13 +23,7 @@ description: Complete Trinity integration with TAN → ZEN → INO → EIN → J
|
|
|
16
23
|
- Work order system in `trinity/work-orders/`
|
|
17
24
|
- Documentation templates in `trinity/templates/documentation/`
|
|
18
25
|
|
|
19
|
-
**Next Steps**: Run `/trinity-start` to begin your first workflow
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
# Trinity Initialization
|
|
24
|
-
|
|
25
|
-
**Purpose:** Complete Trinity Method integration with comprehensive setup and quality validation.
|
|
26
|
+
**Next Steps**: Run `/session:trinity-start` to begin your first workflow
|
|
26
27
|
|
|
27
28
|
## Overview
|
|
28
29
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Trinity Create Investigation
|
|
2
|
+
|
|
3
|
+
**Command:** `/investigation:trinity-create-investigation`
|
|
4
|
+
**Purpose:** Launch the Investigation Wizard to create structured investigations
|
|
5
|
+
**Architecture:** INO wizard → Template selection → File creation
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
|
+
|
|
3
9
|
---
|
|
4
10
|
|
|
5
11
|
Launch the Trinity Method Investigation Wizard to create a structured investigation interactively.
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Guide to Trinity investigation templates for structured problem-solving
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# Trinity Investigation Templates
|
|
6
2
|
|
|
7
|
-
**
|
|
3
|
+
**Command:** `/investigation:trinity-investigate-templates`
|
|
4
|
+
**Purpose:** Guide to Trinity investigation templates for structured problem-solving
|
|
5
|
+
**Architecture:** Documentation reference (no execution)
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Guide users through selecting and using investigation templates for structured, comprehensive problem-solving.
|
|
8
12
|
|
|
9
13
|
## Overview
|
|
10
14
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# Trinity Plan Investigation
|
|
2
|
+
|
|
3
|
+
**Command:** `/investigation:trinity-plan-investigation`
|
|
4
|
+
**Purpose:** Generate AI-powered investigation plans with visualizations
|
|
5
|
+
**Architecture:** INO analysis → Plan generation → Mermaid visualization
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
8
|
+
|
|
3
9
|
---
|
|
4
10
|
|
|
5
11
|
Generate a comprehensive AI-powered investigation plan using the Trinity Method.
|
|
@@ -119,15 +125,15 @@ Save investigation plan to:
|
|
|
119
125
|
```
|
|
120
126
|
1. /trinity-create-investigation
|
|
121
127
|
→ Creates INV-XXX-problem.md
|
|
122
|
-
|
|
128
|
+
|
|
123
129
|
2. /trinity-plan-investigation
|
|
124
130
|
→ Reads INV-XXX-problem.md
|
|
125
131
|
→ Creates investigation-plan-XXX.md
|
|
126
|
-
|
|
132
|
+
|
|
127
133
|
3. Execute investigation
|
|
128
134
|
→ Follow plan
|
|
129
135
|
→ Document findings
|
|
130
|
-
|
|
136
|
+
|
|
131
137
|
4. Archive results
|
|
132
138
|
→ Update INV-XXX with conclusions
|
|
133
139
|
```
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Trinity CHANGELOG Management
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Command:** `/execution:trinity-changelog`
|
|
4
|
+
**Purpose:** Launch APO (Documentation Specialist) to maintain CHANGELOG.md in Keep-a-Changelog format
|
|
5
|
+
**Architecture:** APO 3-phase process (Discovery → Update → Report)
|
|
6
|
+
**Trinity Version:** 2.1.0
|
|
7
|
+
**Last Updated:** 2026-01-21
|
|
4
8
|
|
|
5
9
|
**Use Case:** Ensure CHANGELOG.md exists, follows Keep-a-Changelog format, and documents project changes.
|
|
6
10
|
|
|
@@ -643,6 +647,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
643
647
|
```
|
|
644
648
|
|
|
645
649
|
---
|
|
646
|
-
|
|
647
|
-
** Trinity Version:** 2.0.9
|
|
648
|
-
**Last Updated:** 2026-01-12
|