Commit 104ec87
committed
skills: parse SKILL.md frontmatter with yaml.safe_load
Replaces the hand-rolled block-scalar walker (added one commit ago) with
PyYAML's safe_load. PyYAML's default SafeLoader is pure-Python — no C
extension required — and handles every YAML edge case for free instead
of reimplementing them.
Side-benefit: also fixes a second latent bug. The regex parser stripped
the outer YAML quotes but left inner `\"` escapes intact as literal
backslash-quote characters, so descriptions like
`"... mentions \"switch workspace\"..."` ended up in manifest.json
with the backslashes preserved. yaml.safe_load resolves these
correctly. Regenerated manifest reflects the fix for databricks-config.
Co-authored-by: Isaac1 parent e3a3dc1 commit 104ec87
2 files changed
Lines changed: 8 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 199 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 200 | + | |
208 | 201 | | |
209 | 202 | | |
210 | 203 | | |
| |||
214 | 207 | | |
215 | 208 | | |
216 | 209 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
235 | 213 | | |
236 | 214 | | |
237 | 215 | | |
| |||
0 commit comments