feat: add modifies_hooks to disable git before_specify on install#1
Merged
feat: add modifies_hooks to disable git before_specify on install#1
Conversation
Declares modifies_hooks in extension.yml so that installing this extension automatically disables the git extension's before_specify -> speckit.git.feature hook (with explicit user consent). This keeps the primary checkout on a stable branch while worktrees handle feature branch isolation. Requires: github/spec-kit#2209 (modifies_hooks support) Made-with: Cursor
dango85
pushed a commit
that referenced
this pull request
Apr 14, 2026
Re-adds modifies_hooks to disable git before_specify on install with consent. Bumps extension to 1.2.2. Supersedes the 1.2.1 revert for users who want automatic hook coordination. Requires: github/spec-kit#2209 Made-with: Cursor
dango85
added a commit
that referenced
this pull request
Apr 15, 2026
Re-adds modifies_hooks to disable git before_specify on install with consent. Bumps extension to 1.2.2. Supersedes the 1.2.1 revert for users who want automatic hook coordination. Requires: github/spec-kit#2209 Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
modifies_hooksdeclaration toextension.ymlso installing this extension automatically disables the git extension'sbefore_specify -> speckit.git.featurehook (with explicit user consent)Why
The worktree-parallel workflow keeps the primary checkout on a stable branch (e.g.
main). The git extension'sbefore_specifyhook forces branch switching before every/speckit.specifycall, which breaks parallel agent isolation. This change makes installation handle the conflict automatically instead of requiring manualextensions.ymledits.Depends on
modifies_hookssupport in the Spec Kit extension systemTest plan
extension.ymlpasses manifest validation withmodifies_hooksbefore_specifyhook with consentspecify extension remove worktreesrestores original hook stateMade with Cursor