@uluops/setup 0.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 (107) hide show
  1. package/README.md +178 -0
  2. package/assets/agents/api-contract-validator-agent.md +960 -0
  3. package/assets/agents/aristotle-analyst-agent.md +705 -0
  4. package/assets/agents/aristotle-explorer-agent.md +152 -0
  5. package/assets/agents/aristotle-forecaster-agent.md +666 -0
  6. package/assets/agents/aristotle-validator-agent.md +667 -0
  7. package/assets/agents/assumption-excavator-agent.md +1354 -0
  8. package/assets/agents/code-auditor-agent.md +1061 -0
  9. package/assets/agents/code-optimizer-agent.md +876 -0
  10. package/assets/agents/code-validator-agent.md +846 -0
  11. package/assets/agents/docs-validator-agent.md +490 -0
  12. package/assets/agents/frontend-validator-agent.md +844 -0
  13. package/assets/agents/mcp-validator-agent.md +827 -0
  14. package/assets/agents/pre-implementation-architect-agent.md +1036 -0
  15. package/assets/agents/prompt-engineer-agent.md +1158 -0
  16. package/assets/agents/prompt-pattern-analyzer-agent.md +907 -0
  17. package/assets/agents/prompt-quality-validator-agent.md +1018 -0
  18. package/assets/agents/public-interface-validator-agent.md +951 -0
  19. package/assets/agents/release-readiness-agent.md +482 -0
  20. package/assets/agents/security-analyst-agent.md +1093 -0
  21. package/assets/agents/test-architect-agent.md +861 -0
  22. package/assets/agents/type-safety-validator-agent.md +932 -0
  23. package/assets/agents/workflow-synthesis-agent.md +836 -0
  24. package/assets/commands/agents/api-contract.md +135 -0
  25. package/assets/commands/agents/architect.md +135 -0
  26. package/assets/commands/agents/aristotle-analyst.md +115 -0
  27. package/assets/commands/agents/aristotle-explorer.md +92 -0
  28. package/assets/commands/agents/aristotle-forecaster.md +114 -0
  29. package/assets/commands/agents/aristotle-validator.md +114 -0
  30. package/assets/commands/agents/assumption-excavator.md +114 -0
  31. package/assets/commands/agents/audit.md +136 -0
  32. package/assets/commands/agents/docs-validate.md +133 -0
  33. package/assets/commands/agents/frontend.md +135 -0
  34. package/assets/commands/agents/mcp-validate.md +136 -0
  35. package/assets/commands/agents/optimize.md +133 -0
  36. package/assets/commands/agents/pattern-analyzer.md +126 -0
  37. package/assets/commands/agents/prompt-quality.md +134 -0
  38. package/assets/commands/agents/prompt-validate.md +135 -0
  39. package/assets/commands/agents/public-interface.md +134 -0
  40. package/assets/commands/agents/release.md +135 -0
  41. package/assets/commands/agents/security.md +137 -0
  42. package/assets/commands/agents/test-review.md +136 -0
  43. package/assets/commands/agents/type-safety.md +135 -0
  44. package/assets/commands/agents/validate.md +134 -0
  45. package/assets/commands/agents/workflow-synthesis.md +101 -0
  46. package/assets/commands/workflows/aristotle.md +543 -0
  47. package/assets/commands/workflows/post-implementation.md +577 -0
  48. package/assets/commands/workflows/pre-implementation.md +670 -0
  49. package/assets/commands/workflows/prompt-audit.md +754 -0
  50. package/assets/commands/workflows/ship.md +721 -0
  51. package/dist/cli.d.ts +2 -0
  52. package/dist/cli.js +436 -0
  53. package/dist/lib/config-merger.d.ts +26 -0
  54. package/dist/lib/config-merger.js +63 -0
  55. package/dist/lib/file-ops.d.ts +23 -0
  56. package/dist/lib/file-ops.js +86 -0
  57. package/dist/lib/hash.d.ts +1 -0
  58. package/dist/lib/hash.js +4 -0
  59. package/dist/lib/manifest.d.ts +16 -0
  60. package/dist/lib/manifest.js +34 -0
  61. package/dist/lib/paths.d.ts +14 -0
  62. package/dist/lib/paths.js +49 -0
  63. package/dist/lib/settings-merger.d.ts +43 -0
  64. package/dist/lib/settings-merger.js +91 -0
  65. package/dist/steps/agents.d.ts +8 -0
  66. package/dist/steps/agents.js +14 -0
  67. package/dist/steps/auth.d.ts +12 -0
  68. package/dist/steps/auth.js +80 -0
  69. package/dist/steps/commands.d.ts +9 -0
  70. package/dist/steps/commands.js +69 -0
  71. package/dist/steps/detect.d.ts +9 -0
  72. package/dist/steps/detect.js +30 -0
  73. package/dist/steps/mcp.d.ts +6 -0
  74. package/dist/steps/mcp.js +40 -0
  75. package/dist/steps/metrics.d.ts +22 -0
  76. package/dist/steps/metrics.js +176 -0
  77. package/dist/steps/shell.d.ts +2 -0
  78. package/dist/steps/shell.js +48 -0
  79. package/dist/steps/signup.d.ts +13 -0
  80. package/dist/steps/signup.js +92 -0
  81. package/dist/steps/verify.d.ts +10 -0
  82. package/dist/steps/verify.js +184 -0
  83. package/dist/test/auth.test.d.ts +1 -0
  84. package/dist/test/auth.test.js +43 -0
  85. package/dist/test/config-io.test.d.ts +1 -0
  86. package/dist/test/config-io.test.js +56 -0
  87. package/dist/test/config-merger.test.d.ts +1 -0
  88. package/dist/test/config-merger.test.js +94 -0
  89. package/dist/test/detect.test.d.ts +1 -0
  90. package/dist/test/detect.test.js +25 -0
  91. package/dist/test/file-ops.test.d.ts +1 -0
  92. package/dist/test/file-ops.test.js +100 -0
  93. package/dist/test/hash.test.d.ts +1 -0
  94. package/dist/test/hash.test.js +14 -0
  95. package/dist/test/manifest.test.d.ts +1 -0
  96. package/dist/test/manifest.test.js +78 -0
  97. package/dist/test/paths.test.d.ts +1 -0
  98. package/dist/test/paths.test.js +30 -0
  99. package/dist/test/settings-merger.test.d.ts +1 -0
  100. package/dist/test/settings-merger.test.js +167 -0
  101. package/dist/test/shell-profile.test.d.ts +1 -0
  102. package/dist/test/shell-profile.test.js +40 -0
  103. package/dist/test/shell.test.d.ts +1 -0
  104. package/dist/test/shell.test.js +71 -0
  105. package/dist/test/signup.test.d.ts +1 -0
  106. package/dist/test/signup.test.js +83 -0
  107. package/package.json +36 -0
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: api-contract
3
+ description: Run API Contract Validator to check consistency between docs, types, and implementation. Use after any API endpoint changes.
4
+ ---
5
+
6
+ # API Contract Validator
7
+ Run API Contract Validator to check consistency between docs, types, and implementation. Use after any API endpoint changes.
8
+
9
+ ## Arguments
10
+
11
+ **Usage:** `/agents:api-contract <directory>`
12
+
13
+ **Examples:**
14
+ - `/agents:api-contract ./api`
15
+ - `/agents:api-contract ./services/api`
16
+ - `/agents:api-contract .`
17
+
18
+ **Target Directory:** $ARGUMENTS
19
+
20
+ ---
21
+
22
+ ## Pre-Flight
23
+
24
+ ```bash
25
+ echo "Running API contract validation on $ARGUMENTS..."
26
+ echo "================================================"
27
+ ```
28
+
29
+ Verify the target directory exists:
30
+
31
+ ```bash
32
+ test -d "$ARGUMENTS" && echo "✓ Directory exists: $ARGUMENTS" || echo "ERROR: Directory '$ARGUMENTS' not found"
33
+ ```
34
+
35
+ Enter and confirm location:
36
+
37
+ ```bash
38
+ cd "$ARGUMENTS" && pwd
39
+ ```
40
+
41
+ Check path exists:
42
+
43
+ ```bash
44
+ [ -e "$ARGUMENTS" ] && echo "✓ $ARGUMENTS exists" || echo "Target directory does not exist"
45
+ ```
46
+
47
+
48
+ ---
49
+
50
+ ## Agent Invocation
51
+
52
+ Run the API Contract Validator agent on the validated target directory:
53
+
54
+ **Agent:** api-contract-validator-agent.md
55
+ **Model:** Sonnet
56
+ **Target:** $ARGUMENTS
57
+
58
+ The agent performs code quality validation across 4 categories (100 points total):
59
+
60
+ | Category | Points | Focus |
61
+ |----------|--------|-------|
62
+ | Endpoint Completeness | 25 | Validates all routes have documentation and type definitions |
63
+ | Request Contract | 25 | Validates request schemas match implementation |
64
+ | Response Contract | 25 | Validates response schemas match actual output |
65
+ | Breaking Change Safety | 25 | Validates breaking changes are handled properly |
66
+
67
+ ---
68
+
69
+ ## Auto-Fail Conditions
70
+
71
+ Critical issues that trigger immediate FAIL regardless of score:
72
+
73
+ | ID | Condition |
74
+ |----|-----------|
75
+ | **AF-001** | Required request fields not documented |
76
+ | **AF-002** | Response fields in docs but not returned |
77
+ | **AF-003** | Sensitive fields exposed without documentation |
78
+ | **AF-004** | Breaking changes without versioning |
79
+ | **AF-005** | Error formats inconsistent across endpoints |
80
+ | **AF-006** | Security-relevant fields undocumented |
81
+
82
+ ---
83
+
84
+ ## Decision Thresholds
85
+
86
+ | Score | Decision | Meaning |
87
+ |-------|----------|---------|
88
+ | **>=80** | ✅ PASS | Validation passed, proceed to next phase |
89
+ | **<80** | ❌ FAIL | Validation failed, fix issues before proceeding |
90
+
91
+ **Note:** Any critical issue triggers FAIL regardless of score.
92
+
93
+ ---
94
+
95
+
96
+ ## PERSIST TO TRACKER (Required)
97
+
98
+ > **IMPORTANT:** Save to tracker IMMEDIATELY after agent completes, BEFORE presenting the summary to the user. The workflow is not complete until results are persisted.
99
+ **1. Get token metrics from buffer:**
100
+ ```bash
101
+ agent-metrics buffer list --since 5m -f tracker
102
+ ```
103
+
104
+ **2. Save to tracker (DO THIS FIRST):**
105
+
106
+ mcp__uluops-tracker__save_features_list
107
+
108
+ **3. Verify saved:** Compare `json.summary.total_issues` with saved count.
109
+
110
+ **4. THEN present summary to user.**
111
+
112
+ ### Field Mappings
113
+
114
+ **From JSON OUTPUT to Tracker:**
115
+ | Source | Tracker Field | Notes |
116
+ |--------|---------------|-------|
117
+ | `json.result.score` | `validators[].score` | Total score |
118
+ | `json.result.decision` | `validators[].status` | PASS/FAIL |
119
+ | `buffer.model` | `validators[].model` | From agent-metrics buffer |
120
+ | `buffer.tokens.input_tokens` | `input_tokens` | Raw input tokens |
121
+ | `buffer.tokens.output_tokens` | `output_tokens` | Output tokens |
122
+ | `buffer.tokens.cache_creation_tokens` | `cache_creation_tokens` | Cache creation |
123
+ | `buffer.tokens.cache_read_tokens` | `cache_read_tokens` | Cache reads |
124
+ | `buffer.tokens.total_effective_tokens` | `total_effective_tokens` | Effective total |
125
+ | `json.categories[].findings[].issues[]` | `recommendations[]` | Flatten nested structure |
126
+
127
+ **Note:** `json` = agent's JSON OUTPUT, `buffer` = `agent-metrics buffer list -f tracker`
128
+
129
+ ---
130
+
131
+ ## Source
132
+
133
+ **CDL Schema:** `udl/definition-languages/cdl-schema-v1.1.0.json`
134
+ **CDL Source:** `/home/alexs/uluops/uluops-agent-workflows/udl/cdl/v1/api-contract.command.yaml`
135
+ **Agent:** `agents/api-contract-validator-agent.md`
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: architect
3
+ description: Run Pre-Implementation Architect to validate design before coding. Reviews architectural fit, complexity, scope. Use BEFORE starting implementation.
4
+ ---
5
+
6
+ # Pre-Implementation Architect
7
+ Run Pre-Implementation Architect to validate design before coding. Reviews architectural fit, complexity, scope. Use BEFORE starting implementation.
8
+
9
+ ## Arguments
10
+
11
+ **Usage:** `/agents:architect <directory>`
12
+
13
+ **Examples:**
14
+ - `/agents:architect ./docs/design.md`
15
+ - `/agents:architect ./PRD.md`
16
+ - `/agents:architect .`
17
+
18
+ **Target Directory:** $ARGUMENTS
19
+
20
+ ---
21
+
22
+ ## Pre-Flight
23
+
24
+ ```bash
25
+ echo "Running architecture review on $ARGUMENTS..."
26
+ echo "============================================"
27
+ ```
28
+
29
+ Verify the target directory exists:
30
+
31
+ ```bash
32
+ test -d "$ARGUMENTS" && echo "✓ Directory exists: $ARGUMENTS" || echo "ERROR: Directory '$ARGUMENTS' not found"
33
+ ```
34
+
35
+ Enter and confirm location:
36
+
37
+ ```bash
38
+ cd "$ARGUMENTS" && pwd
39
+ ```
40
+
41
+ Check path exists:
42
+
43
+ ```bash
44
+ [ -e "$ARGUMENTS" ] && echo "✓ $ARGUMENTS exists" || echo "Target directory does not exist"
45
+ ```
46
+
47
+
48
+ ---
49
+
50
+ ## Agent Invocation
51
+
52
+ Run the Pre-Implementation Architect agent on the validated target directory:
53
+
54
+ **Agent:** pre-implementation-architect-agent.md
55
+ **Model:** Sonnet
56
+ **Target:** $ARGUMENTS
57
+
58
+ The agent performs code quality validation across 4 categories (100 points total):
59
+
60
+ | Category | Points | Focus |
61
+ |----------|--------|-------|
62
+ | Architectural Fit | 25 | Follows existing patterns, consistent conventions, clean integration |
63
+ | Design Quality | 25 | Single responsibility, separation of concerns, balanced abstraction levels |
64
+ | Scope & Complexity | 25 | Phase sized within limits (<500 LOC, <10 files, <3 deps), complexity justified, simpler alternatives considered |
65
+ | Completeness | 25 | Edge cases, error scenarios, data flow, API contracts, testing strategy |
66
+
67
+ ---
68
+
69
+ ## Auto-Fail Conditions
70
+
71
+ Critical issues that trigger immediate FAIL regardless of score:
72
+
73
+ | ID | Condition |
74
+ |----|-----------|
75
+ | **AF-001** | Design contradicts existing architecture without justification |
76
+ | **AF-002** | Missing error handling strategy for critical paths |
77
+ | **AF-003** | Scope too large for single implementation phase |
78
+ | **AF-004** | Circular dependencies would be introduced |
79
+ | **AF-005** | No clear data flow or API contracts |
80
+ | **AF-006** | Breaking changes without migration strategy |
81
+
82
+ ---
83
+
84
+ ## Decision Thresholds
85
+
86
+ | Score | Decision | Meaning |
87
+ |-------|----------|---------|
88
+ | **>=80** | ✅ PASS | Validation passed, proceed to next phase |
89
+ | **<80** | ❌ FAIL | Validation failed, fix issues before proceeding |
90
+
91
+ **Note:** Any critical issue triggers FAIL regardless of score.
92
+
93
+ ---
94
+
95
+
96
+ ## PERSIST TO TRACKER (Required)
97
+
98
+ > **IMPORTANT:** Save to tracker IMMEDIATELY after agent completes, BEFORE presenting the summary to the user. The workflow is not complete until results are persisted.
99
+ **1. Get token metrics from buffer:**
100
+ ```bash
101
+ agent-metrics buffer list --since 5m -f tracker
102
+ ```
103
+
104
+ **2. Save to tracker (DO THIS FIRST):**
105
+
106
+ mcp__uluops-tracker__save_features_list
107
+
108
+ **3. Verify saved:** Compare `json.summary.total_issues` with saved count.
109
+
110
+ **4. THEN present summary to user.**
111
+
112
+ ### Field Mappings
113
+
114
+ **From JSON OUTPUT to Tracker:**
115
+ | Source | Tracker Field | Notes |
116
+ |--------|---------------|-------|
117
+ | `json.result.score` | `validators[].score` | Total score |
118
+ | `json.result.decision` | `validators[].status` | PASS/FAIL |
119
+ | `buffer.model` | `validators[].model` | From agent-metrics buffer |
120
+ | `buffer.tokens.input_tokens` | `input_tokens` | Raw input tokens |
121
+ | `buffer.tokens.output_tokens` | `output_tokens` | Output tokens |
122
+ | `buffer.tokens.cache_creation_tokens` | `cache_creation_tokens` | Cache creation |
123
+ | `buffer.tokens.cache_read_tokens` | `cache_read_tokens` | Cache reads |
124
+ | `buffer.tokens.total_effective_tokens` | `total_effective_tokens` | Effective total |
125
+ | `json.categories[].findings[].issues[]` | `recommendations[]` | Flatten nested structure |
126
+
127
+ **Note:** `json` = agent's JSON OUTPUT, `buffer` = `agent-metrics buffer list -f tracker`
128
+
129
+ ---
130
+
131
+ ## Source
132
+
133
+ **CDL Schema:** `udl/definition-languages/cdl-schema-v1.1.0.json`
134
+ **CDL Source:** `/home/alexs/uluops/uluops-agent-workflows/udl/cdl/v1/architect.command.yaml`
135
+ **Agent:** `agents/pre-implementation-architect-agent.md`
@@ -0,0 +1,115 @@
1
+ ---
2
+ name: aristotle-analyst
3
+ description: Performs Aristotelian four-cause decomposition on any artifact. Identifies material, formal, efficient, and final causes. Distinguishes essential from accidental properties. Assesses telos coherence. Decision: TELEOLOGICAL/ATELEOLOGICAL.
4
+ ---
5
+
6
+ # Aristotle Analyst
7
+ Performs Aristotelian four-cause decomposition on any artifact — code, specs, plans, architectures, or documents. First cognitive lens agent from the Cognitive Lens Library.
8
+
9
+ ## Arguments
10
+
11
+ **Usage:** `/agents:aristotle-analyst <target>`
12
+
13
+ **Examples:**
14
+ - `/agents:aristotle-analyst uluops-registry-api/`
15
+ - `/agents:aristotle-analyst udl/adl/v3/code-validator.agent.yaml`
16
+ - `/agents:aristotle-analyst docs/specs/cognitive-lens-library-spec.md`
17
+ - `/agents:aristotle-analyst packages/cli/`
18
+
19
+ **Target:** $ARGUMENTS
20
+
21
+ ---
22
+
23
+ ## Pre-Flight
24
+
25
+ Verify the target exists:
26
+
27
+ ```bash
28
+ [ -e "$ARGUMENTS" ] && echo "✓ $ARGUMENTS exists" || echo "Target file or directory does not exist"
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Agent Invocation
34
+
35
+ Run the Aristotle Analyst agent on the target:
36
+
37
+ **Agent:** aristotle-analyst-agent.md
38
+ **Model:** Opus
39
+ **Target:** $ARGUMENTS
40
+
41
+ The agent performs Aristotelian decomposition across 5 categories (100 points total):
42
+
43
+ | Category | Points | Focus |
44
+ |----------|--------|-------|
45
+ | Four-Cause Completeness | 25 | Material, formal, efficient, final causes per element |
46
+ | Telos Coherence | 25 | Purpose identified, defended, served by parts |
47
+ | Essential/Accidental | 20 | Properties classified with destruction-test justification |
48
+ | Categorical Classification | 15 | Genus and differentia identified |
49
+ | Potentiality-Actuality | 15 | Current state vs. unrealized potential |
50
+
51
+ ## Auto-Fail Conditions
52
+
53
+ | ID | Condition | Severity |
54
+ |----|-----------|----------|
55
+ | AF-001 | No genuine four-cause decomposition performed | Critical |
56
+ | AF-002 | Efficient and final causes systematically conflated | Critical |
57
+ | AF-003 | Telos is circular or tautological | Critical |
58
+ | AF-004 | Essential/accidental not distinguished | Critical |
59
+ | AF-005 | Generic analysis relabeled with Aristotelian terms | Critical |
60
+
61
+ ---
62
+
63
+ ## Decision Thresholds
64
+
65
+ | Score | Decision | Meaning |
66
+ |-------|----------|---------|
67
+ | **>=70** | TELEOLOGICAL | Artifact has coherent causal structure ordered toward identifiable telos |
68
+ | **<70** | ATELEOLOGICAL | Artifact's telos is unclear, contradicted, or analysis incomplete |
69
+
70
+ **Note:** This is an advisory decision, not a deployment gate. TELEOLOGICAL means the artifact's parts serve a coherent purpose — not that the artifact is correct or desirable.
71
+
72
+ ---
73
+
74
+ ## PERSIST TO TRACKER (Required)
75
+
76
+ > **IMPORTANT:** Save to tracker IMMEDIATELY after agent completes, BEFORE presenting the summary to the user.
77
+
78
+ **1. Get token metrics from buffer:**
79
+ ```bash
80
+ agent-metrics buffer list --since 5m -f tracker
81
+ ```
82
+
83
+ **2. Save to tracker (DO THIS FIRST):**
84
+
85
+ mcp__uluops-tracker__save_features_list
86
+
87
+ **3. Verify saved:** Compare `json.summary.total_issues` with saved count.
88
+
89
+ **4. THEN present summary to user.**
90
+
91
+ ### Field Mappings
92
+
93
+ **From JSON OUTPUT to Tracker:**
94
+ | Source | Tracker Field | Notes |
95
+ |--------|---------------|-------|
96
+ | `json.result.score` | `validators[].score` | Total score |
97
+ | `json.result.decision` | `validators[].status` | TELEOLOGICAL/ATELEOLOGICAL |
98
+ | `buffer.model` | `validators[].model` | From agent-metrics buffer |
99
+ | `buffer.tokens.input_tokens` | `input_tokens` | Raw input tokens |
100
+ | `buffer.tokens.output_tokens` | `output_tokens` | Output tokens |
101
+ | `buffer.tokens.cache_creation_tokens` | `cache_creation_tokens` | Cache creation |
102
+ | `buffer.tokens.cache_read_tokens` | `cache_read_tokens` | Cache reads |
103
+ | `buffer.tokens.total_effective_tokens` | `total_effective_tokens` | Effective total |
104
+ | `json.categories[].findings[].issues[]` | `recommendations[]` | Flatten nested structure |
105
+
106
+ **Note:** `json` = agent's JSON OUTPUT, `buffer` = `agent-metrics buffer list -f tracker`
107
+
108
+ ---
109
+
110
+ ## Source
111
+
112
+ **ADL Schema:** `udl/definition-languages/adl-schema-v1.9.0.json`
113
+ **ADL Source:** `udl/adl/v3/aristotle-analyst.agent.yaml`
114
+ **Agent:** `agents/v3/aristotle-analyst-agent.md`
115
+ **Spec:** `docs/specs/cognitive-lens-library-spec.md`
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: aristotle-explorer
3
+ description: Performs Aristotelian categorical mapping on any artifact. Identifies what KIND of thing each element is, determines genus and differentia, distinguishes necessary from accidental properties. Produces a taxonomic map of the problem domain.
4
+ ---
5
+
6
+ # Aristotle Explorer
7
+ Performs Aristotelian categorical mapping on any artifact — code, specs, plans, architectures, or documents. Cognitive lens agent from the Cognitive Lens Library.
8
+
9
+ ## Arguments
10
+
11
+ **Usage:** `/agents:aristotle-explorer <target>`
12
+
13
+ **Examples:**
14
+ - `/agents:aristotle-explorer uluops-registry-api/`
15
+ - `/agents:aristotle-explorer udl/adl/v3/code-validator.agent.yaml`
16
+ - `/agents:aristotle-explorer docs/specs/cognitive-lens-library-spec.md`
17
+ - `/agents:aristotle-explorer packages/cli/`
18
+
19
+ **Target:** $ARGUMENTS
20
+
21
+ ---
22
+
23
+ ## Pre-Flight
24
+
25
+ Verify the target exists:
26
+
27
+ ```bash
28
+ [ -e "$ARGUMENTS" ] && echo "✓ $ARGUMENTS exists" || echo "Target file or directory does not exist"
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Agent Invocation
34
+
35
+ Run the Aristotle Explorer agent on the target:
36
+
37
+ **Agent:** aristotle-explorer-agent.md
38
+ **Model:** Opus
39
+ **Target:** $ARGUMENTS
40
+
41
+ The agent performs Aristotelian categorical mapping through 4 phases:
42
+
43
+ | Phase | Name | Focus |
44
+ |-------|------|-------|
45
+ | 1 | Inventory | Read artifact, identify elements, note stated roles |
46
+ | 2 | Classification | Identify genus/differentia, destruction-test, accidental properties |
47
+ | 3 | Taxonomic Mapping | Build taxonomic tree, find divergences, surface fluid categories |
48
+ | 4 | Synthesis | Write complete map, state classifications, note limitations |
49
+
50
+ **Note:** Explorers produce structured taxonomic maps, not numeric scores. The output is a categorical classification of the artifact's domain.
51
+
52
+ ---
53
+
54
+ ## PERSIST TO TRACKER (Required)
55
+
56
+ > **IMPORTANT:** Save to tracker IMMEDIATELY after agent completes, BEFORE presenting the summary to the user.
57
+
58
+ **1. Get token metrics from buffer:**
59
+ ```bash
60
+ agent-metrics buffer list --since 5m -f tracker
61
+ ```
62
+
63
+ **2. Save to tracker (DO THIS FIRST):**
64
+
65
+ mcp__uluops-tracker__save_features_list
66
+
67
+ **3. Verify saved:** Compare `json.summary.total_issues` with saved count.
68
+
69
+ **4. THEN present summary to user.**
70
+
71
+ ### Field Mappings
72
+
73
+ **From JSON OUTPUT to Tracker:**
74
+ | Source | Tracker Field | Notes |
75
+ |--------|---------------|-------|
76
+ | `buffer.model` | `validators[].model` | From agent-metrics buffer |
77
+ | `buffer.tokens.input_tokens` | `input_tokens` | Raw input tokens |
78
+ | `buffer.tokens.output_tokens` | `output_tokens` | Output tokens |
79
+ | `buffer.tokens.cache_creation_tokens` | `cache_creation_tokens` | Cache creation |
80
+ | `buffer.tokens.cache_read_tokens` | `cache_read_tokens` | Cache reads |
81
+ | `buffer.tokens.total_effective_tokens` | `total_effective_tokens` | Effective total |
82
+
83
+ **Note:** `buffer` = `agent-metrics buffer list -f tracker`
84
+
85
+ ---
86
+
87
+ ## Source
88
+
89
+ **ADL Schema:** `udl/definition-languages/adl-schema-v1.10.0.json`
90
+ **ADL Source:** `udl/adl/v3/aristotle-explorer.agent.yaml`
91
+ **Agent:** `agents/v3/aristotle-explorer-agent.md`
92
+ **Spec:** `docs/specs/cognitive-lens-library-spec.md`
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: aristotle-forecaster
3
+ description: Performs Aristotelian potentiality-to-actuality projection on any artifact. Maps trajectory from current state to full actualization, identifies impediments to telos realization. Decision: HIGH_CONFIDENCE/MODERATE_CONFIDENCE/LOW_CONFIDENCE.
4
+ ---
5
+
6
+ # Aristotle Forecaster
7
+ Performs Aristotelian potentiality-to-actuality projection on any artifact — code, specs, plans, architectures, or documents. Cognitive lens agent from the Cognitive Lens Library.
8
+
9
+ ## Arguments
10
+
11
+ **Usage:** `/agents:aristotle-forecaster <target>`
12
+
13
+ **Examples:**
14
+ - `/agents:aristotle-forecaster uluops-registry-api/`
15
+ - `/agents:aristotle-forecaster udl/adl/v3/code-validator.agent.yaml`
16
+ - `/agents:aristotle-forecaster docs/specs/cognitive-lens-library-spec.md`
17
+ - `/agents:aristotle-forecaster packages/cli/`
18
+
19
+ **Target:** $ARGUMENTS
20
+
21
+ ---
22
+
23
+ ## Pre-Flight
24
+
25
+ Verify the target exists:
26
+
27
+ ```bash
28
+ [ -e "$ARGUMENTS" ] && echo "✓ $ARGUMENTS exists" || echo "Target file or directory does not exist"
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Agent Invocation
34
+
35
+ Run the Aristotle Forecaster agent on the target:
36
+
37
+ **Agent:** aristotle-forecaster-agent.md
38
+ **Model:** Opus
39
+ **Target:** $ARGUMENTS
40
+
41
+ The agent performs Aristotelian potentiality-to-actuality projection across 5 categories (100 points total):
42
+
43
+ | Category | Points | Focus |
44
+ |----------|--------|-------|
45
+ | Potentiality Identification | 25 | Latent capabilities, structural grounding, potentiality vs possibility |
46
+ | Actualization Pathways | 25 | Pathway specificity, natural ordering, form alignment |
47
+ | Impediment Analysis | 20 | Structural impediments (not resource constraints), actionable specificity |
48
+ | Teleological Trajectory | 15 | Movement toward/away from telos, potentiality-telos connection |
49
+ | Temporal Precision | 15 | Actualization stages, current position on trajectory |
50
+
51
+ ## Auto-Fail Conditions
52
+
53
+ | ID | Condition | Severity |
54
+ |----|-----------|----------|
55
+ | AF-001 | Feature requests presented as potentiality analysis | Critical |
56
+ | AF-002 | Impediments listed as resource constraints rather than structural barriers | Critical |
57
+ | AF-003 | No connection between potentialities and artifact's telos | Critical |
58
+
59
+ ---
60
+
61
+ ## Decision Thresholds
62
+
63
+ | Score | Decision | Meaning |
64
+ |-------|----------|---------|
65
+ | **>=75** | HIGH_CONFIDENCE | Trajectory is clear, potentialities well-mapped, impediments specific |
66
+ | **50-74** | MODERATE_CONFIDENCE | Trajectory partially clear, some potentialities uncertain |
67
+ | **<50** | LOW_CONFIDENCE | Trajectory unclear, insufficient structural evidence for projection |
68
+
69
+ **Note:** This is an advisory decision. HIGH_CONFIDENCE means the artifact's trajectory is well-understood — not that the trajectory is desirable.
70
+
71
+ ---
72
+
73
+ ## PERSIST TO TRACKER (Required)
74
+
75
+ > **IMPORTANT:** Save to tracker IMMEDIATELY after agent completes, BEFORE presenting the summary to the user.
76
+
77
+ **1. Get token metrics from buffer:**
78
+ ```bash
79
+ agent-metrics buffer list --since 5m -f tracker
80
+ ```
81
+
82
+ **2. Save to tracker (DO THIS FIRST):**
83
+
84
+ mcp__uluops-tracker__save_features_list
85
+
86
+ **3. Verify saved:** Compare `json.summary.total_issues` with saved count.
87
+
88
+ **4. THEN present summary to user.**
89
+
90
+ ### Field Mappings
91
+
92
+ **From JSON OUTPUT to Tracker:**
93
+ | Source | Tracker Field | Notes |
94
+ |--------|---------------|-------|
95
+ | `json.result.score` | `validators[].score` | Total score |
96
+ | `json.result.decision` | `validators[].status` | HIGH_CONFIDENCE/MODERATE_CONFIDENCE/LOW_CONFIDENCE |
97
+ | `buffer.model` | `validators[].model` | From agent-metrics buffer |
98
+ | `buffer.tokens.input_tokens` | `input_tokens` | Raw input tokens |
99
+ | `buffer.tokens.output_tokens` | `output_tokens` | Output tokens |
100
+ | `buffer.tokens.cache_creation_tokens` | `cache_creation_tokens` | Cache creation |
101
+ | `buffer.tokens.cache_read_tokens` | `cache_read_tokens` | Cache reads |
102
+ | `buffer.tokens.total_effective_tokens` | `total_effective_tokens` | Effective total |
103
+ | `json.categories[].findings[].issues[]` | `recommendations[]` | Flatten nested structure |
104
+
105
+ **Note:** `json` = agent's JSON OUTPUT, `buffer` = `agent-metrics buffer list -f tracker`
106
+
107
+ ---
108
+
109
+ ## Source
110
+
111
+ **ADL Schema:** `udl/definition-languages/adl-schema-v1.10.0.json`
112
+ **ADL Source:** `udl/adl/v3/aristotle-forecaster.agent.yaml`
113
+ **Agent:** `agents/v3/aristotle-forecaster-agent.md`
114
+ **Spec:** `docs/specs/cognitive-lens-library-spec.md`