From dev
Resolve missing gitignored files in a git worktree by symlinking them from the main repository.
npx claudepluginhub derogab/agent-kit --plugin gitThis skill uses the workspace's default tool permissions.
- Git common dir: !`git rev-parse --git-common-dir`
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
git rev-parse --git-common-dirgit rev-parse --git-dirgit worktree listgit rev-parse --show-toplevelResolve the missing file or path described in: $ARGUMENTS
$ARGUMENTS is empty, stop immediately and tell the user to provide the error message or missing path. Do nothing else.Git common dir and Git dir resolve to the same path, this is not a worktree. Stop and tell the user the missing file issue is unrelated to worktrees. Do nothing else.Extract the missing file or directory path(s) from $ARGUMENTS. It may be:
src/config/keys)Cannot find module './config/secrets.js')Resolve each path relative to the project root. Canonicalize it and verify the absolute path is strictly within the project root. If it escapes the project root (e.g. via ../ traversal), refuse the operation and inform the user.
If multiple paths are provided, repeat the workflow below for each one.
Skip this step if the missing item is clearly not something an install command would generate (e.g. credentials, API keys, .env files, config secrets).
Otherwise:
package.json, requirements.txt, Gemfile, go.mod, etc.) and check for prepare, postinstall, build, or similar scripts.The first entry in Worktree list is the main worktree. Construct the expected path by combining the main repo root with the relative path of the missing item. If the item does not exist in the main repo either, stop and inform the user.
perl -e 'use File::Spec; print File::Spec->abs2rel($ARGV[0], $ARGV[1])' "<source-path>" "<symlink-parent-dir>"
ln -sfn "<relative-path-to-source>" "<target-path-in-worktree>"
ls -la, test -e).