chore(gitignore): ignore .agents/skills shared symlinks#31083
Merged
Conversation
Worktree creation mirrors the shared claude-skills repo into both .claude/skills/ and .agents/skills/. .claude/skills/* is already gitignored (with explicit un-ignores for repo-local skills), but .agents/skills/* wasn't — so the 35-odd mirrored symlinks showed up as untracked in every worktree, and the .claude/ship wrapper's blanket git add -A swept them into commits, tripping the generic-examples pre-commit hook on path strings. Mirror the .claude/skills pattern: ignore .agents/skills/* and explicit un-ignore for the one repo-local skill (testing-design-library-storybook).
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
Original prompt
Three previous /do agents (PRs #31080, #31081, #31082) each had to manually sidestep the `.claude/ship` script because its `git add -A` was staging worktree-mirrored `.agents/skills/*` symlinks, whose paths got rejected by the generic-examples pre-commit hook. Root cause: `.agents/skills/` is re-included by `!.agents/skills/` in `.gitignore` without a subsequent ignore-children rule, so every shared skill symlink shows up as untracked. The `.claude/skills` block already solves the same problem for its mirror; this PR copies that pattern to `.agents/skills`.