ostacky 0.5.6 → 0.5.7

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,77 +0,0 @@
1
- ---
2
- name: question-validation
3
- description: Validates that the agent uses OpenCode's native question tool instead of the removed ask-user MCP. Triggers on any question-asking scenario.
4
- ---
5
-
6
- # Question Validation
7
-
8
- ## Purpose
9
-
10
- Prevents the agent from attempting to use the removed `ask_user` MCP server. The MCP always times out because it cannot access the TTY in OpenCode's process model.
11
-
12
- ## Rules
13
-
14
- ### BEFORE asking any question
15
-
16
- 1. **NEVER use `ask_user` MCP** — it does not exist anymore and will timeout
17
- 2. **ALWAYS use the native `question` tool** — it works correctly
18
-
19
- ### Correct format
20
-
21
- ```json
22
- {
23
- "questions": [
24
- {
25
- "question": "The question to ask",
26
- "header": "Short label (max 30 chars)",
27
- "options": [
28
- { "label": "Option A", "description": "What this means" },
29
- { "label": "Option B", "description": "What this means" }
30
- ]
31
- }
32
- ]
33
- }
34
- ```
35
-
36
- ### Validation checklist
37
-
38
- - [ ] Did I use `question` tool? (not `ask_user`)
39
- - [ ] Is the `question` field present?
40
- - [ ] Are `options` provided with both `label` and `description`?
41
- - [ ] Is the `header` short (max 30 chars)?
42
-
43
- ### Error recovery
44
-
45
- If you accidentally called `ask_user`:
46
- 1. STOP immediately
47
- 2. Use `question` tool instead
48
- 3. Do not retry the MCP call
49
-
50
- ## Examples
51
-
52
- ### Good
53
-
54
- ```json
55
- {
56
- "questions": [
57
- {
58
- "question": "¿Qué enfoque preferís?",
59
- "header": "Enfoque",
60
- "options": [
61
- { "label": "Directo", "description": "Implementar sin spec" },
62
- { "label": "Con spec", "description": "Generar spec primero" }
63
- ]
64
- }
65
- ]
66
- }
67
- ```
68
-
69
- ### Bad
70
-
71
- ```json
72
- // WRONG — this is the removed MCP
73
- {
74
- "question": "¿Qué preferís?",
75
- "options": ["A", "B"]
76
- }
77
- ```