dino-spec 18.3.0 → 18.5.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 (177) hide show
  1. package/.claude/rules/dino/auto-context-engineering.md +44 -44
  2. package/.claude/rules/dino/change-categories.md +60 -60
  3. package/.claude/rules/dino/effort-guidance.md +109 -109
  4. package/.claude/rules/dino/ralph-enforcement.md +77 -77
  5. package/.claude/rules/dino/ralph-loop.md +97 -97
  6. package/.claude/rules/dino/session-context.md +124 -124
  7. package/.claude/rules/dino/skill-patterns.md +137 -137
  8. package/.claude/rules/dino/smart-tests.md +67 -67
  9. package/.claude/rules/dino/spec-kit.md +72 -72
  10. package/.claude/skills/dino/SKILL.md +38 -38
  11. package/.claude/skills/dino.analyze-codebase/SKILL.md +166 -0
  12. package/.claude/skills/dino.ralph/SKILL.md +163 -163
  13. package/.claude/skills/dino.ralph-gate/SKILL.md +245 -245
  14. package/.claude/skills/dino.refactor/SKILL.md +367 -0
  15. package/.claude/skills/dino.team/SKILL.md +398 -0
  16. package/.claude/skills/dino.validate-deps/SKILL.md +135 -135
  17. package/.claude/skills/dino.verify/SKILL.md +195 -0
  18. package/dist/commands/hooks/registry.d.ts.map +1 -1
  19. package/dist/commands/hooks/registry.js +43 -0
  20. package/dist/commands/hooks/registry.js.map +1 -1
  21. package/dist/commands/hooks/types.d.ts +1 -1
  22. package/dist/commands/hooks/types.d.ts.map +1 -1
  23. package/dist/commands/hooks/utils.d.ts +4 -0
  24. package/dist/commands/hooks/utils.d.ts.map +1 -1
  25. package/dist/commands/hooks/utils.js +4 -0
  26. package/dist/commands/hooks/utils.js.map +1 -1
  27. package/dist/core/agents/__tests__/action-mask.test.d.ts +2 -1
  28. package/dist/core/agents/__tests__/action-mask.test.d.ts.map +1 -1
  29. package/dist/core/agents/__tests__/action-mask.test.js +13 -59
  30. package/dist/core/agents/__tests__/action-mask.test.js.map +1 -1
  31. package/dist/core/agents/coordination/action-mask.d.ts.map +1 -1
  32. package/dist/core/agents/coordination/action-mask.js +15 -89
  33. package/dist/core/agents/coordination/action-mask.js.map +1 -1
  34. package/dist/core/memory/agents/memory-retrieval-agent.d.ts +6 -5
  35. package/dist/core/memory/agents/memory-retrieval-agent.d.ts.map +1 -1
  36. package/dist/core/memory/agents/memory-retrieval-agent.js +59 -174
  37. package/dist/core/memory/agents/memory-retrieval-agent.js.map +1 -1
  38. package/dist/core/memory/capture-agent.d.ts +47 -0
  39. package/dist/core/memory/capture-agent.d.ts.map +1 -0
  40. package/dist/core/memory/capture-agent.js +170 -0
  41. package/dist/core/memory/capture-agent.js.map +1 -0
  42. package/dist/core/registry/feature-registry.d.ts.map +1 -1
  43. package/dist/core/registry/feature-registry.js +7 -7
  44. package/dist/core/registry/feature-registry.js.map +1 -1
  45. package/dist/core/session/roadmap-sync.js +1 -1
  46. package/dist/core/session/roadmap-sync.js.map +1 -1
  47. package/dist/hooks/memory-capture-hooks.d.ts +38 -0
  48. package/dist/hooks/memory-capture-hooks.d.ts.map +1 -0
  49. package/dist/hooks/memory-capture-hooks.js +198 -0
  50. package/dist/hooks/memory-capture-hooks.js.map +1 -0
  51. package/dist/hooks/memory-capture.d.ts +21 -4
  52. package/dist/hooks/memory-capture.d.ts.map +1 -1
  53. package/dist/hooks/memory-capture.js +151 -11
  54. package/dist/hooks/memory-capture.js.map +1 -1
  55. package/dist/hooks/pre-compact.d.ts +1 -1
  56. package/dist/hooks/pre-compact.js +3 -3
  57. package/dist/hud/render/tools.d.ts +1 -1
  58. package/dist/hud/render/tools.js +1 -1
  59. package/dist/mcp/focus-filter.d.ts.map +1 -1
  60. package/dist/mcp/focus-filter.js +17 -60
  61. package/dist/mcp/focus-filter.js.map +1 -1
  62. package/dist/mcp/registry.d.ts +1 -1
  63. package/dist/mcp/registry.d.ts.map +1 -1
  64. package/dist/mcp/tool-catalog.d.ts.map +1 -1
  65. package/dist/mcp/tool-catalog.js +147 -549
  66. package/dist/mcp/tool-catalog.js.map +1 -1
  67. package/dist/mcp/tool-tiers.d.ts.map +1 -1
  68. package/dist/mcp/tool-tiers.js +20 -72
  69. package/dist/mcp/tool-tiers.js.map +1 -1
  70. package/dist/mcp/tools/__tests__/environment.test.d.ts +6 -1
  71. package/dist/mcp/tools/__tests__/environment.test.d.ts.map +1 -1
  72. package/dist/mcp/tools/__tests__/environment.test.js +13 -212
  73. package/dist/mcp/tools/__tests__/environment.test.js.map +1 -1
  74. package/dist/mcp/tools/agents.d.ts +9 -45
  75. package/dist/mcp/tools/agents.d.ts.map +1 -1
  76. package/dist/mcp/tools/agents.js +228 -464
  77. package/dist/mcp/tools/agents.js.map +1 -1
  78. package/dist/mcp/tools/auto-inject.d.ts +7 -29
  79. package/dist/mcp/tools/auto-inject.d.ts.map +1 -1
  80. package/dist/mcp/tools/auto-inject.js +9 -139
  81. package/dist/mcp/tools/auto-inject.js.map +1 -1
  82. package/dist/mcp/tools/auto-unload.d.ts +7 -18
  83. package/dist/mcp/tools/auto-unload.d.ts.map +1 -1
  84. package/dist/mcp/tools/auto-unload.js +9 -135
  85. package/dist/mcp/tools/auto-unload.js.map +1 -1
  86. package/dist/mcp/tools/chunking.d.ts +7 -32
  87. package/dist/mcp/tools/chunking.d.ts.map +1 -1
  88. package/dist/mcp/tools/chunking.js +9 -207
  89. package/dist/mcp/tools/chunking.js.map +1 -1
  90. package/dist/mcp/tools/effort.d.ts +7 -21
  91. package/dist/mcp/tools/effort.d.ts.map +1 -1
  92. package/dist/mcp/tools/effort.js +9 -96
  93. package/dist/mcp/tools/effort.js.map +1 -1
  94. package/dist/mcp/tools/environment.d.ts +7 -9
  95. package/dist/mcp/tools/environment.d.ts.map +1 -1
  96. package/dist/mcp/tools/environment.js +37 -83
  97. package/dist/mcp/tools/environment.js.map +1 -1
  98. package/dist/mcp/tools/feedback.d.ts +14 -35
  99. package/dist/mcp/tools/feedback.d.ts.map +1 -1
  100. package/dist/mcp/tools/feedback.js +82 -109
  101. package/dist/mcp/tools/feedback.js.map +1 -1
  102. package/dist/mcp/tools/health.d.ts +7 -18
  103. package/dist/mcp/tools/health.d.ts.map +1 -1
  104. package/dist/mcp/tools/health.js +9 -155
  105. package/dist/mcp/tools/health.js.map +1 -1
  106. package/dist/mcp/tools/index.d.ts +23 -21
  107. package/dist/mcp/tools/index.d.ts.map +1 -1
  108. package/dist/mcp/tools/index.js +56 -51
  109. package/dist/mcp/tools/index.js.map +1 -1
  110. package/dist/mcp/tools/lazy-context.d.ts +13 -0
  111. package/dist/mcp/tools/lazy-context.d.ts.map +1 -1
  112. package/dist/mcp/tools/lazy-context.js +4 -4
  113. package/dist/mcp/tools/lazy-context.js.map +1 -1
  114. package/dist/mcp/tools/output-persistence.d.ts +9 -30
  115. package/dist/mcp/tools/output-persistence.d.ts.map +1 -1
  116. package/dist/mcp/tools/output-persistence.js +153 -150
  117. package/dist/mcp/tools/output-persistence.js.map +1 -1
  118. package/dist/mcp/tools/plans.d.ts +7 -12
  119. package/dist/mcp/tools/plans.d.ts.map +1 -1
  120. package/dist/mcp/tools/plans.js +95 -94
  121. package/dist/mcp/tools/plans.js.map +1 -1
  122. package/dist/mcp/tools/prefetch.d.ts +7 -21
  123. package/dist/mcp/tools/prefetch.d.ts.map +1 -1
  124. package/dist/mcp/tools/prefetch.js +9 -138
  125. package/dist/mcp/tools/prefetch.js.map +1 -1
  126. package/dist/mcp/tools/ralph.d.ts +11 -66
  127. package/dist/mcp/tools/ralph.d.ts.map +1 -1
  128. package/dist/mcp/tools/ralph.js +127 -544
  129. package/dist/mcp/tools/ralph.js.map +1 -1
  130. package/dist/mcp/tools/recommendations.d.ts +7 -0
  131. package/dist/mcp/tools/recommendations.d.ts.map +1 -1
  132. package/dist/mcp/tools/recommendations.js +3 -2
  133. package/dist/mcp/tools/recommendations.js.map +1 -1
  134. package/dist/mcp/tools/retrieval.d.ts +2 -10
  135. package/dist/mcp/tools/retrieval.d.ts.map +1 -1
  136. package/dist/mcp/tools/retrieval.js +4 -59
  137. package/dist/mcp/tools/retrieval.js.map +1 -1
  138. package/dist/mcp/tools/scripts.d.ts +9 -21
  139. package/dist/mcp/tools/scripts.d.ts.map +1 -1
  140. package/dist/mcp/tools/scripts.js +179 -224
  141. package/dist/mcp/tools/scripts.js.map +1 -1
  142. package/dist/mcp/tools/session.d.ts +3 -22
  143. package/dist/mcp/tools/session.d.ts.map +1 -1
  144. package/dist/mcp/tools/session.js +6 -281
  145. package/dist/mcp/tools/session.js.map +1 -1
  146. package/dist/mcp/tools/spec-feedback.d.ts +13 -50
  147. package/dist/mcp/tools/spec-feedback.d.ts.map +1 -1
  148. package/dist/mcp/tools/spec-feedback.js +161 -225
  149. package/dist/mcp/tools/spec-feedback.js.map +1 -1
  150. package/dist/mcp/tools/tasks.d.ts +7 -20
  151. package/dist/mcp/tools/tasks.d.ts.map +1 -1
  152. package/dist/mcp/tools/tasks.js +185 -221
  153. package/dist/mcp/tools/tasks.js.map +1 -1
  154. package/dist/mcp/tools/tool-clearing.d.ts +24 -13
  155. package/dist/mcp/tools/tool-clearing.d.ts.map +1 -1
  156. package/dist/mcp/tools/tool-clearing.js +106 -46
  157. package/dist/mcp/tools/tool-clearing.js.map +1 -1
  158. package/dist/mcp/tools/validation.d.ts +7 -11
  159. package/dist/mcp/tools/validation.d.ts.map +1 -1
  160. package/dist/mcp/tools/validation.js +178 -193
  161. package/dist/mcp/tools/validation.js.map +1 -1
  162. package/dist/rules/index.d.ts.map +1 -1
  163. package/dist/rules/index.js +4 -6
  164. package/dist/rules/index.js.map +1 -1
  165. package/dist/services/memory/sqlite.d.ts +21 -0
  166. package/dist/services/memory/sqlite.d.ts.map +1 -1
  167. package/dist/services/memory/sqlite.js +194 -17
  168. package/dist/services/memory/sqlite.js.map +1 -1
  169. package/dist/skills/index.d.ts.map +1 -1
  170. package/dist/skills/index.js +7 -9
  171. package/dist/skills/index.js.map +1 -1
  172. package/package.json +1 -1
  173. package/.claude/skills/dino.aging/SKILL.md +0 -64
  174. package/.claude/skills/dino.discover/SKILL.md +0 -45
  175. package/.claude/skills/dino.hatch/SKILL.md +0 -38
  176. package/.claude/skills/dino.nest/SKILL.md +0 -64
  177. package/.claude/skills/dino.sniff/SKILL.md +0 -38
@@ -1,44 +1,44 @@
1
- # Auto Context Engineering (dino v18.2.0)
2
-
3
- ## Automatic Features
4
-
5
- All context engineering features are enabled by default:
6
-
7
- 1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
8
- 2. **Lazy Context Loading** - Resources deferred until needed
9
- 3. **Session State Tracking** - Focus, blockers, progress auto-tracked
10
-
11
- ## No Configuration Required
12
-
13
- Users do NOT need to:
14
- - Set environment variables
15
- - Pass special flags
16
- - Configure anything manually
17
-
18
- These features auto-apply via `dino init` and `dino update`.
19
-
20
- ## Opt-Out (Not Recommended)
21
-
22
- To disable MCP tool filtering:
23
- ```bash
24
- DINO_AGGRESSIVE_FILTERING=false
25
- ```
26
-
27
- This is NOT recommended as it increases context overhead significantly.
28
-
29
- ## Token Savings by Phase
30
-
31
- | Phase | Tools Loaded | Savings |
32
- |-------|-------------|---------|
33
- | Discovery | ~17 | ~60% |
34
- | Planning | ~22 | ~53% |
35
- | Implementation | ~23 | ~51% |
36
- | Completing | ~12 | ~74% |
37
-
38
- ## Phase Auto-Detection
39
-
40
- Phase is auto-detected from:
41
- 1. `## Phase` section in session.md
42
- 2. Default: `discovery` if not set
43
-
44
- The MCP server parses session.md on each `tools/list` request to get the current phase.
1
+ # Auto Context Engineering (dino v18.2.0)
2
+
3
+ ## Automatic Features
4
+
5
+ All context engineering features are enabled by default:
6
+
7
+ 1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
8
+ 2. **Lazy Context Loading** - Resources deferred until needed
9
+ 3. **Session State Tracking** - Focus, blockers, progress auto-tracked
10
+
11
+ ## No Configuration Required
12
+
13
+ Users do NOT need to:
14
+ - Set environment variables
15
+ - Pass special flags
16
+ - Configure anything manually
17
+
18
+ These features auto-apply via `dino init` and `dino update`.
19
+
20
+ ## Opt-Out (Not Recommended)
21
+
22
+ To disable MCP tool filtering:
23
+ ```bash
24
+ DINO_AGGRESSIVE_FILTERING=false
25
+ ```
26
+
27
+ This is NOT recommended as it increases context overhead significantly.
28
+
29
+ ## Token Savings by Phase
30
+
31
+ | Phase | Tools Loaded | Savings |
32
+ |-------|-------------|---------|
33
+ | Discovery | ~17 | ~60% |
34
+ | Planning | ~22 | ~53% |
35
+ | Implementation | ~23 | ~51% |
36
+ | Completing | ~12 | ~74% |
37
+
38
+ ## Phase Auto-Detection
39
+
40
+ Phase is auto-detected from:
41
+ 1. `## Phase` section in session.md
42
+ 2. Default: `discovery` if not set
43
+
44
+ The MCP server parses session.md on each `tools/list` request to get the current phase.
@@ -1,60 +1,60 @@
1
- # Change Categories (dino v18.2.0)
2
-
3
- ## File Classification
4
-
5
- Files are classified into categories based on path and name:
6
-
7
- ### dependency (High Significance)
8
- Files that affect project dependencies:
9
- - `package.json`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
10
- - `requirements.txt`, `Pipfile`, `pyproject.toml`
11
- - `Cargo.toml`, `Cargo.lock`
12
- - `go.mod`, `go.sum`
13
- - `Gemfile`, `Gemfile.lock`
14
-
15
- **Pending Action:** Run package manager install command
16
-
17
- ### structural (High Significance)
18
- Files that affect project structure:
19
- - Entry points: `index.ts`, `main.ts`, `app.ts`
20
- - Configuration: `tsconfig.json`, `webpack.config.js`
21
- - Build configs: `build.js`, `vite.config.ts`
22
- - Directory additions/removals
23
-
24
- **Pending Action:** Verify import paths
25
-
26
- ### config (Medium Significance)
27
- Configuration files:
28
- - `.env`, `.env.*`
29
- - `*.config.js`, `*.config.ts`
30
- - `.eslintrc`, `.prettierrc`
31
- - CI/CD files: `.github/`, `.gitlab-ci.yml`
32
-
33
- ### test (Medium Significance)
34
- Test files:
35
- - `*.test.ts`, `*.test.js`
36
- - `*.spec.ts`, `*.spec.js`
37
- - `test/`, `tests/`, `__tests__/` directories
38
-
39
- ### code (Low Significance)
40
- Source code files:
41
- - `src/`, `lib/` directories
42
- - Main programming language files
43
- - Utility and helper files
44
-
45
- ### documentation (Low Significance)
46
- Documentation files:
47
- - `*.md`, `README*`
48
- - `docs/` directory
49
- - Code comments (when detected)
50
-
51
- ## Impact on Workflow
52
-
53
- | Category | Run Tests | Run Build | Review |
54
- |----------|-----------|-----------|--------|
55
- | dependency | After install | Yes | Changelog |
56
- | structural | Yes | Yes | Imports |
57
- | config | Maybe | Maybe | Side effects |
58
- | test | Yes | No | Coverage |
59
- | code | Yes | Yes | Normal |
60
- | documentation | No | No | Spelling |
1
+ # Change Categories (dino v18.2.0)
2
+
3
+ ## File Classification
4
+
5
+ Files are classified into categories based on path and name:
6
+
7
+ ### dependency (High Significance)
8
+ Files that affect project dependencies:
9
+ - `package.json`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`
10
+ - `requirements.txt`, `Pipfile`, `pyproject.toml`
11
+ - `Cargo.toml`, `Cargo.lock`
12
+ - `go.mod`, `go.sum`
13
+ - `Gemfile`, `Gemfile.lock`
14
+
15
+ **Pending Action:** Run package manager install command
16
+
17
+ ### structural (High Significance)
18
+ Files that affect project structure:
19
+ - Entry points: `index.ts`, `main.ts`, `app.ts`
20
+ - Configuration: `tsconfig.json`, `webpack.config.js`
21
+ - Build configs: `build.js`, `vite.config.ts`
22
+ - Directory additions/removals
23
+
24
+ **Pending Action:** Verify import paths
25
+
26
+ ### config (Medium Significance)
27
+ Configuration files:
28
+ - `.env`, `.env.*`
29
+ - `*.config.js`, `*.config.ts`
30
+ - `.eslintrc`, `.prettierrc`
31
+ - CI/CD files: `.github/`, `.gitlab-ci.yml`
32
+
33
+ ### test (Medium Significance)
34
+ Test files:
35
+ - `*.test.ts`, `*.test.js`
36
+ - `*.spec.ts`, `*.spec.js`
37
+ - `test/`, `tests/`, `__tests__/` directories
38
+
39
+ ### code (Low Significance)
40
+ Source code files:
41
+ - `src/`, `lib/` directories
42
+ - Main programming language files
43
+ - Utility and helper files
44
+
45
+ ### documentation (Low Significance)
46
+ Documentation files:
47
+ - `*.md`, `README*`
48
+ - `docs/` directory
49
+ - Code comments (when detected)
50
+
51
+ ## Impact on Workflow
52
+
53
+ | Category | Run Tests | Run Build | Review |
54
+ |----------|-----------|-----------|--------|
55
+ | dependency | After install | Yes | Changelog |
56
+ | structural | Yes | Yes | Imports |
57
+ | config | Maybe | Maybe | Side effects |
58
+ | test | Yes | No | Coverage |
59
+ | code | Yes | Yes | Normal |
60
+ | documentation | No | No | Spelling |
@@ -1,109 +1,109 @@
1
- # Effort Parameter Guidance (dino v18.2.0)
2
-
3
- ## Overview
4
-
5
- The `effort` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
6
-
7
- ## Effort Levels
8
-
9
- | Level | Model | Thinking Tokens | Use Cases |
10
- |-------|-------|-----------------|-----------|
11
- | **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
12
- | **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
13
- | **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
14
-
15
- ## When to Use Each Level
16
-
17
- ### Low Effort
18
- - Quick status checks (`/dino.status`)
19
- - Simple lookups and reads
20
- - Archival tasks (`/dino.fossil`)
21
- - Focus changes (`/dino.status --focus`)
22
- - Clarification questions (`/dino.sniff`)
23
- - Loading handoff context (`/dino.handoff`)
24
- - Next step suggestions (`/dino.status --next`)
25
- - Context optimization guidance (`/dino.status --tips`)
26
-
27
- **Characteristics:**
28
- - Single-step operations
29
- - Minimal reasoning required
30
- - Speed is more important than depth
31
- - Read-heavy, write-light
32
-
33
- ### Medium Effort
34
- - Research tasks (`/dino.scout`, `/research`)
35
- - Implementation execution (`/dino.hunt`)
36
- - Test verification (`/dino.aging`)
37
- - Task breakdown (`/dino.hatch`)
38
- - Release workflows (`/dino.release`)
39
-
40
- **Characteristics:**
41
- - Multi-step operations
42
- - Moderate reasoning required
43
- - Balance of speed and quality
44
- - Mix of reading and writing
45
-
46
- ### High Effort
47
- - Architecture planning (`/dino.nest`)
48
- - Complex analysis
49
- - Design decisions
50
- - Multi-component changes
51
-
52
- **Characteristics:**
53
- - Deep reasoning required
54
- - Many interdependent decisions
55
- - Quality is more important than speed
56
- - Significant impact on codebase
57
-
58
- ## Opus 4.5 Extended Thinking
59
-
60
- For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
61
-
62
- ```yaml
63
- # In SKILL.md frontmatter
64
- effort: high # Signals to use extended thinking
65
- ```
66
-
67
- **Extended thinking is useful for:**
68
- - Understanding complex requirements
69
- - Exploring multiple approaches
70
- - Identifying edge cases
71
- - Planning multi-file changes
72
- - Architectural decisions
73
-
74
- ## Mapping to SKILL.md
75
-
76
- Each skill specifies its effort level in frontmatter:
77
-
78
- ```yaml
79
- ---
80
- description: Plan implementation with structured approach
81
- model: opus
82
- effort: high
83
- context: fork
84
- ---
85
- ```
86
-
87
- ## Budget Considerations
88
-
89
- Effort level affects token budget:
90
-
91
- | Level | Typical Budget Impact | Cost Factor |
92
- |-------|----------------------|-------------|
93
- | low | ~1K tokens | 1x (cheapest) |
94
- | medium | ~5K tokens | 3x |
95
- | high | ~15K+ tokens | 10x |
96
-
97
- Use the lowest effort level that produces good results for the task.
98
-
99
- ## Dynamic Effort Adjustment
100
-
101
- Consider increasing effort when:
102
- - Initial attempt fails or produces poor results
103
- - Task complexity is higher than expected
104
- - User feedback indicates need for deeper analysis
105
-
106
- Consider decreasing effort when:
107
- - Task is simpler than expected
108
- - Budget constraints are tight
109
- - Speed is prioritized over depth
1
+ # Effort Parameter Guidance (dino v18.2.0)
2
+
3
+ ## Overview
4
+
5
+ The `effort` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
6
+
7
+ ## Effort Levels
8
+
9
+ | Level | Model | Thinking Tokens | Use Cases |
10
+ |-------|-------|-----------------|-----------|
11
+ | **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
12
+ | **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
13
+ | **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
14
+
15
+ ## When to Use Each Level
16
+
17
+ ### Low Effort
18
+ - Quick status checks (`/dino.status`)
19
+ - Simple lookups and reads
20
+ - Archival tasks (`/dino.fossil`)
21
+ - Focus changes (`/dino.status --focus`)
22
+ - Clarification questions (`/dino.sniff`)
23
+ - Loading handoff context (`/dino.handoff`)
24
+ - Next step suggestions (`/dino.status --next`)
25
+ - Context optimization guidance (`/dino.status --tips`)
26
+
27
+ **Characteristics:**
28
+ - Single-step operations
29
+ - Minimal reasoning required
30
+ - Speed is more important than depth
31
+ - Read-heavy, write-light
32
+
33
+ ### Medium Effort
34
+ - Research tasks (`/dino.scout`, `/research`)
35
+ - Implementation execution (`/dino.hunt`)
36
+ - Test verification (`/dino.aging`)
37
+ - Task breakdown (`/dino.hatch`)
38
+ - Release workflows (`/dino.release`)
39
+
40
+ **Characteristics:**
41
+ - Multi-step operations
42
+ - Moderate reasoning required
43
+ - Balance of speed and quality
44
+ - Mix of reading and writing
45
+
46
+ ### High Effort
47
+ - Architecture planning (`/dino.nest`)
48
+ - Complex analysis
49
+ - Design decisions
50
+ - Multi-component changes
51
+
52
+ **Characteristics:**
53
+ - Deep reasoning required
54
+ - Many interdependent decisions
55
+ - Quality is more important than speed
56
+ - Significant impact on codebase
57
+
58
+ ## Opus 4.5 Extended Thinking
59
+
60
+ For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
61
+
62
+ ```yaml
63
+ # In SKILL.md frontmatter
64
+ effort: high # Signals to use extended thinking
65
+ ```
66
+
67
+ **Extended thinking is useful for:**
68
+ - Understanding complex requirements
69
+ - Exploring multiple approaches
70
+ - Identifying edge cases
71
+ - Planning multi-file changes
72
+ - Architectural decisions
73
+
74
+ ## Mapping to SKILL.md
75
+
76
+ Each skill specifies its effort level in frontmatter:
77
+
78
+ ```yaml
79
+ ---
80
+ description: Plan implementation with structured approach
81
+ model: opus
82
+ effort: high
83
+ context: fork
84
+ ---
85
+ ```
86
+
87
+ ## Budget Considerations
88
+
89
+ Effort level affects token budget:
90
+
91
+ | Level | Typical Budget Impact | Cost Factor |
92
+ |-------|----------------------|-------------|
93
+ | low | ~1K tokens | 1x (cheapest) |
94
+ | medium | ~5K tokens | 3x |
95
+ | high | ~15K+ tokens | 10x |
96
+
97
+ Use the lowest effort level that produces good results for the task.
98
+
99
+ ## Dynamic Effort Adjustment
100
+
101
+ Consider increasing effort when:
102
+ - Initial attempt fails or produces poor results
103
+ - Task complexity is higher than expected
104
+ - User feedback indicates need for deeper analysis
105
+
106
+ Consider decreasing effort when:
107
+ - Task is simpler than expected
108
+ - Budget constraints are tight
109
+ - Speed is prioritized over depth
@@ -1,77 +1,77 @@
1
- # Ralph Loop Enforcement (dino v18.2.0)
2
-
3
- ## CRITICAL: Mandatory Ralph Gate
4
-
5
- When a user requests Ralph Loop or any complex multi-story task, you MUST use the `/dino.ralph-gate` skill. This is NOT optional.
6
-
7
- ## Trigger Keywords (Case Insensitive)
8
-
9
- IMMEDIATELY invoke `/dino.ralph-gate` when user message contains:
10
-
11
- | Keyword | Example |
12
- |---------|---------|
13
- | "ralph loop" | "Start ralph loop for this feature" |
14
- | "ralph" | "Use ralph for this" |
15
- | "/dino.ralph" | "/dino.ralph" |
16
- | "fresh context" + "iteration" | "Use fresh context iterations" |
17
- | "multi-story" | "This is multi-story work" |
18
- | "three agent" | "Use three agent system" |
19
- | "gated implementation" | "I want gated implementation" |
20
-
21
- ## Complexity Auto-Trigger
22
-
23
- ALSO invoke `/dino.ralph-gate` when task analysis shows:
24
- - Complexity score > 70
25
- - File count > 10
26
- - Distinct parts >= 3
27
- - Breaking changes + scope >= 15
28
-
29
- ## Forbidden Bypass
30
-
31
- You MUST NOT:
32
- - Skip directly to `/dino.ralph` without gating
33
- - Start implementation without auditor approval
34
- - Proceed with ambiguity score > 0
35
- - Accept confidence < 95% for Ralph-eligible tasks
36
-
37
- ## Three-Agent Requirement
38
-
39
- ALL THREE agents must execute in sequence:
40
-
41
- ```
42
- 1. SCOUT (Research) -> Deep exploration, pattern mining
43
- |
44
- 2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
45
- |
46
- 3. RALPH (Executor) -> Only after GATE: APPROVED
47
- ```
48
-
49
- If auditor rejects, loop back to scout/clarification. Max 3 cycles.
50
-
51
- ## Skill Invocation
52
-
53
- When trigger detected, use Skill tool:
54
-
55
- ```
56
- Skill: dino.ralph-gate
57
- ```
58
-
59
- Do NOT use regular `/dino.ralph` for complex tasks - always use `/dino.ralph-gate`.
60
-
61
- ## Exception: Simple Ralph
62
-
63
- For tasks that:
64
- - Already have complete PRD with stories
65
- - Already went through spec with 90%+ confidence
66
- - User explicitly says "skip gate" or "already specified"
67
-
68
- You MAY use `/dino.ralph` directly, but MUST confirm with user first.
69
-
70
- ## Audit Trail
71
-
72
- All Ralph Gate executions produce:
73
- - `.dino/ralph-gate/research-report.md`
74
- - `.dino/ralph-gate/audit-report.md`
75
- - `.dino/ralph-gate/validated-prd.md`
76
-
77
- These files provide accountability and can be reviewed.
1
+ # Ralph Loop Enforcement (dino v18.2.0)
2
+
3
+ ## CRITICAL: Mandatory Ralph Gate
4
+
5
+ When a user requests Ralph Loop or any complex multi-story task, you MUST use the `/dino.ralph-gate` skill. This is NOT optional.
6
+
7
+ ## Trigger Keywords (Case Insensitive)
8
+
9
+ IMMEDIATELY invoke `/dino.ralph-gate` when user message contains:
10
+
11
+ | Keyword | Example |
12
+ |---------|---------|
13
+ | "ralph loop" | "Start ralph loop for this feature" |
14
+ | "ralph" | "Use ralph for this" |
15
+ | "/dino.ralph" | "/dino.ralph" |
16
+ | "fresh context" + "iteration" | "Use fresh context iterations" |
17
+ | "multi-story" | "This is multi-story work" |
18
+ | "three agent" | "Use three agent system" |
19
+ | "gated implementation" | "I want gated implementation" |
20
+
21
+ ## Complexity Auto-Trigger
22
+
23
+ ALSO invoke `/dino.ralph-gate` when task analysis shows:
24
+ - Complexity score > 70
25
+ - File count > 10
26
+ - Distinct parts >= 3
27
+ - Breaking changes + scope >= 15
28
+
29
+ ## Forbidden Bypass
30
+
31
+ You MUST NOT:
32
+ - Skip directly to `/dino.ralph` without gating
33
+ - Start implementation without auditor approval
34
+ - Proceed with ambiguity score > 0
35
+ - Accept confidence < 95% for Ralph-eligible tasks
36
+
37
+ ## Three-Agent Requirement
38
+
39
+ ALL THREE agents must execute in sequence:
40
+
41
+ ```
42
+ 1. SCOUT (Research) -> Deep exploration, pattern mining
43
+ |
44
+ 2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
45
+ |
46
+ 3. RALPH (Executor) -> Only after GATE: APPROVED
47
+ ```
48
+
49
+ If auditor rejects, loop back to scout/clarification. Max 3 cycles.
50
+
51
+ ## Skill Invocation
52
+
53
+ When trigger detected, use Skill tool:
54
+
55
+ ```
56
+ Skill: dino.ralph-gate
57
+ ```
58
+
59
+ Do NOT use regular `/dino.ralph` for complex tasks - always use `/dino.ralph-gate`.
60
+
61
+ ## Exception: Simple Ralph
62
+
63
+ For tasks that:
64
+ - Already have complete PRD with stories
65
+ - Already went through spec with 90%+ confidence
66
+ - User explicitly says "skip gate" or "already specified"
67
+
68
+ You MAY use `/dino.ralph` directly, but MUST confirm with user first.
69
+
70
+ ## Audit Trail
71
+
72
+ All Ralph Gate executions produce:
73
+ - `.dino/ralph-gate/research-report.md`
74
+ - `.dino/ralph-gate/audit-report.md`
75
+ - `.dino/ralph-gate/validated-prd.md`
76
+
77
+ These files provide accountability and can be reviewed.