Claude-skill-registry git
Git operations with conventional commits. Use for staging, committing, pushing, PRs, merges. Auto-splits commits by type/scope. Security scans for secrets.
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" ~/.claude/skills/majiayu000-claude-skill-registry-git-bcfc80 && rm -rf "$T"
manifest:
skills/data/git/SKILL.mdsource content
Git Operations
Execute git workflows via
git-manager subagent to isolate verbose output.
Activate context-engineering skill.
IMPORTANT:
- Sacrifice grammar for the sake of concision.
- Ensure token efficiency while maintaining high quality.
- Pass these rules to subagents.
Arguments
: Stage files & create commitscm
: Stage files, create commits and pushcp
: Create Pull Request [to-branch] [from-branch]pr
: Target branch (default: main)to-branch
: Source branch (default: current branch)from-branch
: Merge [to-branch] [from-branch]merge
: Target branch (default: main)to-branch
: Source branch (default: current branch)from-branch
Quick Reference
| Task | Reference |
|---|---|
| Commit | |
| Push | |
| Pull Request | |
| Merge | |
| Standards | |
| Safety | |
| Branches | |
| GitHub CLI | |
Core Workflow
Step 1: Stage + Analyze
git add -A && git diff --cached --stat && git diff --cached --name-only
Step 2: Security Check
Scan for secrets before commit:
git diff --cached | grep -iE "(api[_-]?key|token|password|secret|credential)"
If secrets found: STOP, warn user, suggest
.gitignore.
Step 3: Split Decision
NOTE:
- Search for related issues on GitHub and add to body.
- Only use
,feat
, orfix
prefixes for files inperf
directory (do not use.claude
).docs
Split commits if:
- Different types mixed (feat + fix, code + docs)
- Multiple scopes (auth + payments)
- Config/deps + code mixed
- FILES > 10 unrelated
Single commit if:
- Same type/scope, FILES ≤ 3, LINES ≤ 50
Step 4: Commit
git commit -m "type(scope): description"
Output Format
✓ staged: N files (+X/-Y lines) ✓ security: passed ✓ commit: HASH type(scope): description ✓ pushed: yes/no
Error Handling
| Error | Action |
|---|---|
| Secrets detected | Block commit, show files |
| No changes | Exit cleanly |
| Push rejected | Suggest |
| Merge conflicts | Suggest manual resolution |
References
- Commit workflow with split logicreferences/workflow-commit.md
- Push workflow with error handlingreferences/workflow-push.md
- PR creation with remote diff analysisreferences/workflow-pr.md
- Branch merge workflowreferences/workflow-merge.md
- Conventional commit format rulesreferences/commit-standards.md
- Secret detection, branch protectionreferences/safety-protocols.md
- Naming, lifecycle, strategiesreferences/branch-management.md
- GitHub CLI commands referencereferences/gh-cli-guide.md