ostacky 0.6.0 → 0.6.2

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.
@@ -1,235 +1,235 @@
1
- ---
2
- name: graceful-degradation
3
- description: "Handle situations where multiple tools (CodeGraph, Engram MCP, Controller) are unavailable. Provides a systematic approach to continue working with reduced capabilities."
4
- ---
5
-
6
- # Graceful Degradation
7
-
8
- When critical tools are unavailable, this skill provides a systematic approach to continue working with reduced capabilities instead of failing completely.
9
-
10
- **Follow Core Instructions** — `ostacky.md` Core Instructions section for CodeGraph and Engram usage patterns.
11
-
12
- **IMPORTANT:** Engram is an **MCP server**, not a skill. Tools `mem_save`, `mem_search`, `mem_context` are MCP tools. Do NOT use `skill("engram")` — it doesn't exist.
13
-
14
- ---
15
-
16
- ## Tool Availability Matrix
17
-
18
- | Tool | Type | Fallback Chain | Impact |
19
- |------|------|----------------|--------|
20
- | CodeGraph | MCP server | Engram → Read + Glob | No structural analysis, manual exploration |
21
- | Engram | MCP server | Continue without memory | No persistence across sessions |
22
- | Controller | MCP server | Inline validation + manual state | No state machine, no edit validation |
23
- | Context7 | MCP server (remote) | Skip documentation | No external API docs |
24
-
25
- ## Detection
26
-
27
- After health check pre-vuelo, classify the situation:
28
-
29
- ### All Tools Available
30
- Normal operation. No degradation needed.
31
-
32
- ### Partial Degradation (1-2 tools down)
33
- Continue with available tools. Report to user.
34
-
35
- ### Complete Degradation (All tools down)
36
- Switch to basic mode with manual workflows.
37
-
38
- ## Degraded Workflows
39
-
40
- ### Without CodeGraph
41
-
42
- **Available alternatives:**
43
- 1. **Engram** — Check if previous analysis exists for the area
44
- 2. **Read + Glob** — Manual file exploration
45
-
46
- **Workflow:**
47
- ```
48
- 1. mem_search for related analysis (if Engram available)
49
- 2. Use Glob to find relevant files: **/*.ts, src/**/*.ts
50
- 3. Read files manually to understand structure
51
- 4. Proceed with caution — no blast radius analysis
52
- ```
53
-
54
- **Limitations:**
55
- - No call path analysis
56
- - No blast radius calculation
57
- - No symbol search
58
- - Higher risk of missing dependencies
59
-
60
- ### Without Engram
61
-
62
- **Available alternatives:**
63
- 1. **OpenSpec** — Check for active changes with proposals/designs
64
- 2. **Filesystem** — Check for previous analysis docs
65
-
66
- **Workflow:**
67
- ```
68
- 1. Check openspec/changes/ for active change artifacts
69
- 2. Check docs/superpowers/specs/ for design documents
70
- 3. Proceed without session memory
71
- 4. At session end, document key decisions in a summary
72
- ```
73
-
74
- **Limitations:**
75
- - No cross-session memory
76
- - No decision history
77
- - Risk of repeating previous mistakes
78
-
79
- ### Without Controller
80
-
81
- **Available alternatives:**
82
- 1. **Inline validation** — Manual edit validation
83
- 2. **Manual state tracking** — Track progress in conversation
84
-
85
- **Workflow:**
86
- ```
87
- 1. For each edit:
88
- - Read file fresh
89
- - Verify oldString ≠ newString
90
- - Verify oldString appears exactly once
91
- - Execute edit
92
- 2. Track completed tasks mentally or in conversation
93
- 3. No automatic state persistence
94
- ```
95
-
96
- **IMPORTANT — No check_pending_state:**
97
- When controller is unavailable, `check_pending_state` does NOT exist.
98
- - Do NOT try to call it — it will fail
99
- - The enforcement rule in Core Instructions applies ONLY when controller is available
100
- - In degraded mode, rely on the "Una pregunta por turno" rule directly
101
-
102
- **Limitations:**
103
- - No automatic edit validation
104
- - No task completion tracking
105
- - No state persistence across crashes
106
- - No pending state enforcement (check_pending_state unavailable)
107
-
108
- ### Without Context7
109
-
110
- **Impact:** Minimal — only affects external API documentation lookups.
111
-
112
- **Workflow:** Proceed normally. Use existing knowledge.
113
-
114
- ## Communication Protocol
115
-
116
- ### Status Report Format
117
-
118
- When degradation is detected, report to user:
119
-
120
- ```
121
- ⚠️ [Tool] no disponible — usando fallback: [fallback]
122
-
123
- Herramientas disponibles:
124
- ✅ [Tool1] — [status]
125
- ❌ [Tool2] — [fallback being used]
126
- ⚠️ [Tool3] — [degraded mode]
127
-
128
- ¿Continuar con funcionalidad reducida?
129
- ```
130
-
131
- ### Example Reports
132
-
133
- **CodeGraph down:**
134
- ```
135
- ⚠️ CodeGraph no disponible — usando fallback: Engram → Read
136
-
137
- Herramientas disponibles:
138
- ✅ Controller — ping OK
139
- ❌ CodeGraph — timeout 10s
140
- ✅ Engram — disponible
141
- ✅ Context7 — disponible
142
-
143
- ¿Continuar con lectura manual de archivos?
144
- ```
145
-
146
- **All tools down:**
147
- ```
148
- 🔴 Stack de herramientas no disponible — modo básico activado
149
-
150
- Herramientas disponibles:
151
- ❌ Controller — no responde
152
- ❌ CodeGraph — no instalado
153
- ❌ Engram — timeout 5s
154
- ✅ Context7 — disponible (pero sin docs relevantes)
155
-
156
- Modo básico: sin validación de edits, sin memoria persistente, sin análisis estructural.
157
- ¿Continuar o cancelar?
158
- ```
159
-
160
- ## Recovery After Degradation
161
-
162
- When a tool becomes available again during the session:
163
-
164
- 1. **Detect:** Health check succeeds on next call
165
- 2. **Report:** "✅ [Tool] disponible nuevamente"
166
- 3. **Resume:** Switch back to normal workflow
167
- 4. **Catch up:** Use the tool to verify recent work
168
-
169
- ## Guardrails
170
-
171
- ### During Degradation
172
-
173
- - **Never skip validation** — Use inline validation when controller is down
174
- - **Never assume structure** — Read files even if you think you know them
175
- - **Document decisions** — Write down key choices since Engram may be down
176
- - **Report limitations** — User must know what's working and what's not
177
-
178
- ### When Choosing to Continue
179
-
180
- Ask yourself:
181
- 1. Can I safely complete this task without the missing tool?
182
- 2. What's the worst case if I proceed without it?
183
- 3. Is the user aware of the limitations?
184
-
185
- If unsure → ask the user.
186
-
187
- ### When to Stop
188
-
189
- - All critical tools are down AND the task requires them
190
- - The task is high-risk without structural analysis (CodeGraph)
191
- - The user requests to stop
192
-
193
- ## Integration
194
-
195
- This skill is loaded automatically when the agent detects tool failures during the health check pre-vuelo.
196
-
197
- It does NOT replace other skills — it provides degraded workflows for them.
198
-
199
- ## Examples
200
-
201
- ### Example 1: CodeGraph fails, others work
202
-
203
- ```
204
- Agent: ⚠️ CodeGraph no disponible (timeout 10s).
205
-
206
- Voy a usar Engram para buscar análisis previos y luego leer archivos manualmente.
207
-
208
- ¿Continuar con esta aproximación?
209
-
210
- User: Sí
211
-
212
- Agent: [Uses mem_search to find related analysis]
213
- [Uses Glob to find relevant files]
214
- [Reads files manually]
215
- [Proceeds with task]
216
- ```
217
-
218
- ### Example 2: Controller fails
219
-
220
- ```
221
- Agent: ⚠️ Controller no disponible — operando con validación inline.
222
-
223
- Cada edit será validado manualmente:
224
- - oldString ≠ newString
225
- - oldString aparece exactamente una vez
226
-
227
- ¿Continuar?
228
-
229
- User: Sí
230
-
231
- Agent: [Reads file fresh]
232
- [Validates oldString manually]
233
- [Executes edit]
234
- [Reports completion]
235
- ```
1
+ ---
2
+ name: graceful-degradation
3
+ description: "Handle situations where multiple tools (CodeGraph, Engram MCP, Controller) are unavailable. Provides a systematic approach to continue working with reduced capabilities."
4
+ ---
5
+
6
+ # Graceful Degradation
7
+
8
+ When critical tools are unavailable, this skill provides a systematic approach to continue working with reduced capabilities instead of failing completely.
9
+
10
+ **Follow Core Instructions** — `ostacky.md` Core Instructions section for CodeGraph and Engram usage patterns.
11
+
12
+ **IMPORTANT:** Engram is an **MCP server**, not a skill. Tools `mem_save`, `mem_search`, `mem_context` are MCP tools. Do NOT use `skill("engram")` — it doesn't exist.
13
+
14
+ ---
15
+
16
+ ## Tool Availability Matrix
17
+
18
+ | Tool | Type | Fallback Chain | Impact |
19
+ |------|------|----------------|--------|
20
+ | CodeGraph | MCP server | Engram → Read + Glob | No structural analysis, manual exploration |
21
+ | Engram | MCP server | Continue without memory | No persistence across sessions |
22
+ | Controller | MCP server | Inline validation + manual state | No state machine, no edit validation |
23
+ | Context7 | MCP server (remote) | Skip documentation | No external API docs |
24
+
25
+ ## Detection
26
+
27
+ After health check pre-vuelo, classify the situation:
28
+
29
+ ### All Tools Available
30
+ Normal operation. No degradation needed.
31
+
32
+ ### Partial Degradation (1-2 tools down)
33
+ Continue with available tools. Report to user.
34
+
35
+ ### Complete Degradation (All tools down)
36
+ Switch to basic mode with manual workflows.
37
+
38
+ ## Degraded Workflows
39
+
40
+ ### Without CodeGraph
41
+
42
+ **Available alternatives:**
43
+ 1. **Engram** — Check if previous analysis exists for the area
44
+ 2. **Read + Glob** — Manual file exploration
45
+
46
+ **Workflow:**
47
+ ```
48
+ 1. mem_search for related analysis (if Engram available)
49
+ 2. Use Glob to find relevant files: **/*.ts, src/**/*.ts
50
+ 3. Read files manually to understand structure
51
+ 4. Proceed with caution — no blast radius analysis
52
+ ```
53
+
54
+ **Limitations:**
55
+ - No call path analysis
56
+ - No blast radius calculation
57
+ - No symbol search
58
+ - Higher risk of missing dependencies
59
+
60
+ ### Without Engram
61
+
62
+ **Available alternatives:**
63
+ 1. **OpenSpec** — Check for active changes with proposals/designs
64
+ 2. **Filesystem** — Check for previous analysis docs
65
+
66
+ **Workflow:**
67
+ ```
68
+ 1. Check openspec/changes/ for active change artifacts
69
+ 2. Check docs/superpowers/specs/ for design documents
70
+ 3. Proceed without session memory
71
+ 4. At session end, document key decisions in a summary
72
+ ```
73
+
74
+ **Limitations:**
75
+ - No cross-session memory
76
+ - No decision history
77
+ - Risk of repeating previous mistakes
78
+
79
+ ### Without Controller
80
+
81
+ **Available alternatives:**
82
+ 1. **Inline validation** — Manual edit validation
83
+ 2. **Manual state tracking** — Track progress in conversation
84
+
85
+ **Workflow:**
86
+ ```
87
+ 1. For each edit:
88
+ - Read file fresh
89
+ - Verify oldString ≠ newString
90
+ - Verify oldString appears exactly once
91
+ - Execute edit
92
+ 2. Track completed tasks mentally or in conversation
93
+ 3. No automatic state persistence
94
+ ```
95
+
96
+ **IMPORTANT — No check_pending_state:**
97
+ When controller is unavailable, `check_pending_state` does NOT exist.
98
+ - Do NOT try to call it — it will fail
99
+ - The enforcement rule in Core Instructions applies ONLY when controller is available
100
+ - In degraded mode, rely on the "Una pregunta por turno" rule directly
101
+
102
+ **Limitations:**
103
+ - No automatic edit validation
104
+ - No task completion tracking
105
+ - No state persistence across crashes
106
+ - No pending state enforcement (check_pending_state unavailable)
107
+
108
+ ### Without Context7
109
+
110
+ **Impact:** Minimal — only affects external API documentation lookups.
111
+
112
+ **Workflow:** Proceed normally. Use existing knowledge.
113
+
114
+ ## Communication Protocol
115
+
116
+ ### Status Report Format
117
+
118
+ When degradation is detected, report to user:
119
+
120
+ ```
121
+ ⚠️ [Tool] no disponible — usando fallback: [fallback]
122
+
123
+ Herramientas disponibles:
124
+ ✅ [Tool1] — [status]
125
+ ❌ [Tool2] — [fallback being used]
126
+ ⚠️ [Tool3] — [degraded mode]
127
+
128
+ ¿Continuar con funcionalidad reducida?
129
+ ```
130
+
131
+ ### Example Reports
132
+
133
+ **CodeGraph down:**
134
+ ```
135
+ ⚠️ CodeGraph no disponible — usando fallback: Engram → Read
136
+
137
+ Herramientas disponibles:
138
+ ✅ Controller — ping OK
139
+ ❌ CodeGraph — timeout 10s
140
+ ✅ Engram — disponible
141
+ ✅ Context7 — disponible
142
+
143
+ ¿Continuar con lectura manual de archivos?
144
+ ```
145
+
146
+ **All tools down:**
147
+ ```
148
+ 🔴 Stack de herramientas no disponible — modo básico activado
149
+
150
+ Herramientas disponibles:
151
+ ❌ Controller — no responde
152
+ ❌ CodeGraph — no instalado
153
+ ❌ Engram — timeout 5s
154
+ ✅ Context7 — disponible (pero sin docs relevantes)
155
+
156
+ Modo básico: sin validación de edits, sin memoria persistente, sin análisis estructural.
157
+ ¿Continuar o cancelar?
158
+ ```
159
+
160
+ ## Recovery After Degradation
161
+
162
+ When a tool becomes available again during the session:
163
+
164
+ 1. **Detect:** Health check succeeds on next call
165
+ 2. **Report:** "✅ [Tool] disponible nuevamente"
166
+ 3. **Resume:** Switch back to normal workflow
167
+ 4. **Catch up:** Use the tool to verify recent work
168
+
169
+ ## Guardrails
170
+
171
+ ### During Degradation
172
+
173
+ - **Never skip validation** — Use inline validation when controller is down
174
+ - **Never assume structure** — Read files even if you think you know them
175
+ - **Document decisions** — Write down key choices since Engram may be down
176
+ - **Report limitations** — User must know what's working and what's not
177
+
178
+ ### When Choosing to Continue
179
+
180
+ Ask yourself:
181
+ 1. Can I safely complete this task without the missing tool?
182
+ 2. What's the worst case if I proceed without it?
183
+ 3. Is the user aware of the limitations?
184
+
185
+ If unsure → ask the user.
186
+
187
+ ### When to Stop
188
+
189
+ - All critical tools are down AND the task requires them
190
+ - The task is high-risk without structural analysis (CodeGraph)
191
+ - The user requests to stop
192
+
193
+ ## Integration
194
+
195
+ This skill is loaded automatically when the agent detects tool failures during the health check pre-vuelo.
196
+
197
+ It does NOT replace other skills — it provides degraded workflows for them.
198
+
199
+ ## Examples
200
+
201
+ ### Example 1: CodeGraph fails, others work
202
+
203
+ ```
204
+ Agent: ⚠️ CodeGraph no disponible (timeout 10s).
205
+
206
+ Voy a usar Engram para buscar análisis previos y luego leer archivos manualmente.
207
+
208
+ ¿Continuar con esta aproximación?
209
+
210
+ User: Sí
211
+
212
+ Agent: [Uses mem_search to find related analysis]
213
+ [Uses Glob to find relevant files]
214
+ [Reads files manually]
215
+ [Proceeds with task]
216
+ ```
217
+
218
+ ### Example 2: Controller fails
219
+
220
+ ```
221
+ Agent: ⚠️ Controller no disponible — operando con validación inline.
222
+
223
+ Cada edit será validado manualmente:
224
+ - oldString ≠ newString
225
+ - oldString aparece exactamente una vez
226
+
227
+ ¿Continuar?
228
+
229
+ User: Sí
230
+
231
+ Agent: [Reads file fresh]
232
+ [Validates oldString manually]
233
+ [Executes edit]
234
+ [Reports completion]
235
+ ```