Claude-skill-registry git
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-bntvllnt-agent-skills" ~/.claude/skills/majiayu000-claude-skill-registry-git && rm -rf "$T"
manifest:
skills/data/git-bntvllnt-agent-skills/SKILL.mdsource content
Git
Clear, repeatable git workflow with a bias toward safety.
Router
Use the smallest workflow that matches the user intent.
| User says | Load reference | Do |
|---|---|---|
| status / what changed (no "worktree" prefix) | | read-only inspection |
| help / usage / man | | show CLI help safely |
| commit / stage | | stage + commit safely |
| branch / switch | | branch operations |
| worktree create/remove/list | | worktree operations |
| worktree cleanup / normalize / consolidate | | auto-clean + consolidate worktrees |
| worktree summary / worktree status / show worktrees | | proactive analysis: PR status, change classification, safe-to-delete verdicts |
| tag / version | | create/list/inspect tags |
| pr / pull request | | create/update PR via gh |
| pr review / fix pr comments / threads | | review + respond + fix |
| merge / rebase / reset / revert | | advanced/recovery (confirm first) |
Config (Edit Here)
Worktree working directories (the folders you
cd into) live outside .git/.
Set this once and use it everywhere:
WORKTREES_DIR=./.worktrees WORKTREE_PATH=$WORKTREES_DIR/<topic>
If you want a different location (e.g.
../.worktrees or ~/worktrees/<repo>), update WORKTREES_DIR above and follow the same shape in references/worktree-workflow.md.
Resilience Rules (Worktrees)
- If multiple worktree root folders are detected (example: both
and./.worktrees/
exist), do not delete anything by default.../repo-feature-x/ - Prefer consolidating into
usingWORKTREES_DIR
(when possible) or a remove+re-add plan.git worktree move - If stale metadata exists, propose a cleanup plan:
+ remove/quarantine orphan directories (with confirmation).git worktree prune
Global Safety Rules (Never Violate)
- Never force push to main/master.
- Never commit secrets (env files, keys, credentials).
- Never rewrite history that is already pushed unless explicitly requested.
- Always show what will change before an irreversible action.
Confirmation Policy
Read-only commands are always OK.
Everything that changes state/history/remote requires explicit user confirmation:
,git add
,git commitgit push
,git merge
,git rebase
,git resetgit revert
,git worktree addgit worktree remove
(create/delete)git taggit branch -d/-D
Quick Start
# Read-only git status git diff # Commit git diff --cached git commit -m "feat(scope): why" # Worktrees git worktree list