Commit a7dd2d1
Fix #78: use voice-command builtin skill for Pebble voice context
Move the detailed voice-command handling instructions (speech-to-text
error handling, KB path, phonetic disambiguation guidance) out of the
hardcoded _SYSTEM_PROMPT_TEMPLATE and into a dedicated built-in skill
at src/clayde/skills_builtin/voice-command.md.
The system prompt is now minimal structural glue: identity, the skills
catalog, skill-usage policy, and the JSON output contract. Evolving the
voice-command behavior is done by editing the skill file (or placing an
override at ~/skills/personal/voice-command.md), without touching Python.
Also fix discover_skills() priority so non-builtin skills (personal/
shared) are processed before builtin ones, letting user-mounted overrides
win on name collision rather than the shipped default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 618cbfc commit a7dd2d1
3 files changed
Lines changed: 72 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 45 | + | |
67 | 46 | | |
68 | 47 | | |
69 | 48 | | |
| |||
105 | 84 | | |
106 | 85 | | |
107 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
108 | 92 | | |
109 | 93 | | |
110 | 94 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
115 | 101 | | |
116 | 102 | | |
117 | 103 | | |
118 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
119 | 108 | | |
120 | 109 | | |
121 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
| |||
160 | 151 | | |
161 | 152 | | |
162 | 153 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 154 | | |
174 | 155 | | |
175 | 156 | | |
| |||
184 | 165 | | |
185 | 166 | | |
186 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
0 commit comments