用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-workflow |
| description | > Use when this capability is needed. |
Opinionated, safe Git operations that match this repository's conventions. Every action defaults to non-destructive. Destructive operations (force-push, reset --hard, branch -D) require explicit user confirmation.
Recent history reveals the project uses Conventional Commits with optional scope:
<type>(<scope>): <summary> (#<issue-number>)
| Type | When |
|---|---|
feat | new capability or behaviour |
fix | bug correction |
refactor | structural change, no behaviour change |
chore | maintenance, deps, config |
docs | documentation only |
test | tests only |
fix(cli):, fix(compaction):)/commit)When to use: Staged or unstaged changes ready to land on the current branch.
Steps:
git status and git diff HEAD to understand the full changesetgit log --oneline -10 to match commit message style.env, credentials, lock files unless intentional)Safety checks:
.env, *.pem, credentials.json)--no-verify/commit-push-pr)When to use: Feature or fix is complete and ready for review.
Steps:
main, create a feature branch first:
git checkout -b <type>/<short-description>
git push -u origin <branch>
gh pr create:
mainRequirements: gh CLI installed and authenticated (gh auth login)
/code-review <PR-number>)Multi-agent deep review. Run on any open, non-draft PR.
Phase 1 — Eligibility (Haiku agent):
Phase 2 — Context gathering (Haiku agent):
gh pr diff <number>Phase 3 — Summary (Haiku agent):
Phase 4 — Parallel review (5 Sonnet agents):
| Agent | Focus |
|---|---|
| #1 | CLAUDE.md compliance |
| #2 | Shallow bug scan (changes only, skip pre-existing issues) |
| #3 | Git blame & history context |
| #4 | Prior PR comments on same files |
| #5 | Code comments compliance |
Phase 5 — Confidence scoring (parallel Haiku per issue): Score 0–100. Filter out anything below 80.
Phase 6 — Post comment via gh pr comment:
### Code review
Found N issues:
1. <description> (CLAUDE.md says "...")
<github.com/owner/repo/blob/<full-sha>/path/file.ext#L10-L15>
/clean_gone)Remove local branches whose remote tracking branch has been deleted.
Steps:
# Update remote refs
git fetch --prune
# List [gone] branches
git branch -v | grep '\[gone\]'
# For each [gone] branch:
# 1. Check for associated worktrees → git worktree list
# 2. Remove worktree first if present → git worktree remove --force <path>
# 3. Delete branch → git branch -D <branch>
Safety: Only deletes branches already removed from the remote. Never touches main.
Common patterns available on request:
| Task | Command |
|---|---|
| List all branches (local + remote) | git branch -a |
| Switch to existing branch | git checkout <branch> |
| Create + switch to new branch | git checkout -b <branch> |
| Delete local branch (safe) | git branch -d <branch> |
| Rename current branch | git branch -m <new-name> |
| Compare branch to main | git diff main...<branch> |
| Rebase onto main | git fetch && git rebase origin/main |
| View commit graph | git log --oneline --graph --all |
| Task | Command |
|---|---|
| Stash with description | git stash push -m "description" |
| List stashes | git stash list |
| Apply latest | git stash pop |
| Apply specific | git stash apply stash@{N} |
| Drop specific | git stash drop stash@{N} |
main or masterreset --hard without explicit user confirmationgit clean -f without explicit user confirmation--no-verify (bypass hooks) — fix the hook instead.env, secrets, or binary blobs unless user explicitly confirms/commit-push-pr workflowSource: angelburgosrosado/hermes-agent — distributed by TomeVault.