You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hooks at named sections inside a command, not only before and after it #5340
Hooks today run before or after a whole step (before_plan, after_tasks). There is no way to run something in the middle of a step, such as after the plan's design and before its constitution check, without forking the command file.
Proposal
Mark named sections in the core command templates, for example <!-- section: design -->.
Let a hook name a section: before: plan.design or after: tasks.generate.
Commands with no marked sections, and hooks with no section, work exactly as they do now.
Why
A team that wants one extra check at one point has to copy the whole command today, and the copy misses every upstream change. We run this model in the SpecKit Companion extension (named nodes plus hooks before or after any of them), and it has removed most of our reasons to fork a command.
Activity