Skip to content

Prepare Git Hooks in Task Worktrees - #815

Merged
ptr727 merged 1 commit into
developfrom
fix/worktree-hook-bootstrap
Aug 18, 2026
Merged

Prepare Git Hooks in Task Worktrees#815
ptr727 merged 1 commit into
developfrom
fix/worktree-hook-bootstrap

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Summary

  • prepare Husky.Net hook runtimes when a task worktree is created
  • prepare Python pre-commit hooks through the repository's declared environment
  • keep repository-specific hook setup authoritative and prohibit hook bypasses
  • regenerate the carried Copilot and Claude skill distributions

Why

Fresh worktrees contain tracked hook configuration but omit generated runtimes such as .husky/_/husky.sh. A first commit can therefore fail even when the clone-level hook path is configured. Worktree preparation now installs supported hook runtimes before the first commit.

Verification

  • full OPERATIONS.md local verification chain
  • 727 unit tests
  • audit and write-guard self-tests
  • generated skill distribution consistency
  • repository and prose gates
  • JSON and spec validation
  • editorconfig-checker, ShellCheck, and PSScriptAnalyzer

CopilotAI lite review requested due to automatic review settings August 18, 2026 19:39

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repo-worktree skill documentation to ensure new task worktrees proactively prepare Git hook runtimes (Husky.Net and Python pre-commit), preventing first-commit failures caused by missing generated hook artifacts in fresh worktrees.

Changes:

  • Extend the repo-worktree skill description to include hook preparation as part of standard worktree setup.
  • Add a new "Preparing Git Hooks" section describing when and how to install Husky.Net and Python pre-commit hooks in a newly created or attached worktree.
  • Regenerate the carried skill distributions and update the fleet-skills source digest to match.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

FileDescription
.github/skills/repo-worktree/SKILL.mdAdds documented worktree-step guidance for preparing Husky.Net and Python pre-commit hook runtimes.
.agents/skills/repo-worktree/SKILL.mdMirrors the same hook-preparation guidance in the agents skill distribution copy.
.claude-plugin/fleet-skills/skills/repo-worktree/SKILL.mdMirrors the same hook-preparation guidance in the Claude plugin skill distribution copy.
.claude-plugin/fleet-skills/.source-digestUpdates the digest to reflect the regenerated carried skill distribution content.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 merged commit 02d2758 into developAug 18, 2026
8 checks passed
@ptr727ptr727 mentioned this pull request Aug 18, 2026
ptr727 added a commit that referenced this pull request Aug 18, 2026
## Summary
- promote the current `develop` branch to `main`
- include the worktree hook preparation guidance from #815
- distribute the updated `repo-worktree` skill to downstream Copilot
reviewers
## Verification
- #815 passed all required checks
- Copilot reviewed the current #815 head and full diff with no findings
- the full local verification chain passed before #815 was merged
Closesptr727/PhotoCleaner#61
@ptr727
ptr727 deleted the fix/worktree-hook-bootstrap branch August 18, 2026 20:37
Sign up for freeto 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.

2 participants

@ptr727