Skip to content

feat: add modifies_hooks to disable git before_specify on install#1

Merged
dango85 merged 1 commit intomainfrom
feat/modifies-hooks
Apr 14, 2026
Merged

feat: add modifies_hooks to disable git before_specify on install#1
dango85 merged 1 commit intomainfrom
feat/modifies-hooks

Conversation

@dango85
Copy link
Copy Markdown
Owner

@dango85 dango85 commented Apr 13, 2026

Summary

  • Adds modifies_hooks declaration to extension.yml so installing this extension automatically disables the git extension's before_specify -> speckit.git.feature hook (with explicit user consent)
  • Bumps version to 1.1.0
  • Updates README with hook override documentation and consent UX
  • Updates CHANGELOG

Why

The worktree-parallel workflow keeps the primary checkout on a stable branch (e.g. main). The git extension's before_specify hook forces branch switching before every /speckit.specify call, which breaks parallel agent isolation. This change makes installation handle the conflict automatically instead of requiring manual extensions.yml edits.

Depends on

Test plan

  • Verified extension.yml passes manifest validation with modifies_hooks
  • Manual test: install disables before_specify hook with consent
  • Manual test: specify extension remove worktrees restores original hook state

Made with Cursor

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 dango85 merged commit ebf89eb into main Apr 14, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant