Commit 5533447
committed
fix: apply hook-invocation note to generic --skills SKILL.md output
_build_skill_content() duplicated SkillsIntegration.setup()'s per-file
body but dropped the call to post_process_skill_content(), which
injects the dot-to-hyphen hook-invocation note before every "For each
executable hook" instruction. Without it, a configured extension hook
(e.g. speckit.git.commit) would be invoked verbatim as
/speckit.git.commit, which doesn't exist under the
speckit-<name>/SKILL.md layout this feature introduces.
Add a small _GenericSkillsHelper(SkillsIntegration) — the same
delegation pattern CopilotIntegration uses for its own skills mode —
and call its post_process_skill_content() after building the SKILL.md
body. Add a regression test asserting the note appears.1 parent 588c904 commit 5533447
2 files changed
Lines changed: 35 additions & 1 deletion
File tree
- src/specify_cli/integrations/generic
- tests/integrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
21 | 34 | | |
22 | 35 | | |
23 | 36 | | |
| |||
156 | 169 | | |
157 | 170 | | |
158 | 171 | | |
| 172 | + | |
159 | 173 | | |
160 | 174 | | |
161 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
256 | 276 | | |
257 | 277 | | |
258 | 278 | | |
| |||
0 commit comments