claude/ai-resources-plugin/skills/local-init/SKILL.md
This skill should be used when the user wants to initialize a new local private repository in the current directory. This sets up the .local directory for versioning private AI configuration files separately from the main repository.
npx skillsauth add amhuppert/my-ai-resources local-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Description of private versioning pattern: !echo $HOME/.claude/agent-docs/local-files-pattern.md
mkdir .local && git -C .local init --bare:
!mkdir .local && git -C .local init --bare
Configure team repo: Make sure that .git/info/exclude is ignoring these private files:
# Example .git/info/exclude
# Ignore private repo
.local
# Ignore private files
.claude
CLAUDE.md
dev-local
memory-bank
Configure private repo:
.local/info/exclude is ignoring all files from the team repo (/*) and is whitelisting the private files (!.claude, etc)Configure post-checkout hook that makes the private repo branch auto-follow the team repo branch:
# .git/hooks/post-checkout
current_branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null)
echo "post-checkout hook, current branch is $current_branch"
if [ -n "$current_branch" ] && [ -d ".local" ] && command -v lgit >/dev/null 2>&1; then
echo "lgit - Switching to or creating branch $current_branch in .local repo"
lgit switch "$current_branch" 2>/dev/null \
|| lgit switch -c "$current_branch"
fi
development
Debug a running web app via the web-debugger SDK: app logs, application state, runtime snapshots, React state, query cache.
development
Thoroughly understand a software development objective before implementation: research, identify ambiguities, ask clarifying questions. Use before starting implementation of a non-trivial or ambiguously specified feature, or when requirements leave open design decisions.
development
Locate the on-disk Claude Code transcript file (.jsonl under ~/.claude/projects/) for the current or a specified conversation.
development
Reflect on codebase navigation effectiveness at end of conversation. Surfaces dead ends, inefficiencies, missing context. Does not write files — pair with /kiro:steering-custom to persist.