Commit 3694aa6
committed
fix(crossfile): detect skill refs inside code blocks
The plain pattern `^[^*]*\bSkill:` was only finding one skill per file
because `[^*]` matches newlines in Go regex, causing greedy matching
across multiple lines.
Fix: Change to `[^*\n]*` to prevent matching across newlines.
Also removed redundant code block pattern - the fixed plain pattern
now correctly matches Skill: declarations regardless of context.
Before: 100 "orphaned skills" (false positives)
After: 19 genuinely unwired skills1 parent 2ace4ce commit 3694aa6
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
314 | | - | |
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
| |||
0 commit comments