基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
| name | git-workflow |
| description | >- Use when this capability is needed. |
One skill, all git ops. Configurable via CLAUDE.local.md.
Before any operation, read CLAUDE.local.md (repo root) if it exists. Look for a ## Git conventions block. Use those values to override the defaults below. Examples of overridable values: commit format, default branch, branch naming, Co-Authored-By inclusion, PR title format.
If no CLAUDE.local.md or no ## Git conventions block, use the defaults documented in each section.
Defaults:
[TICKET-XXX] type: description if current branch matches ^[A-Z]+-\d+, else type: descriptionfeat/fix/refactor/docs/test/chore/perf/ci/build/style/revert)Co-Authored-By trailerWorkflow:
git status --short — see all changesgit add path1 path2. Never git add . or git add -A unless explicitly asked.env, credentials, API keys): warn and excludegit diff --staged — reviewgit branch --show-current | grep -oE '^[A-Z]+-[0-9]+'[KEY] git commit -m "$(cat <<'EOF'
[XYZ-123] type: imperative subject
Optional body. What changed and why.
EOF
)"
git log --oneline -1 — confirmDefaults:
git push for regular branches--force (handled by .claude/hooks/block-dangerous-git.sh if installed; otherwise warn and refuse)main/master/develop without explicit confirmationWorkflow:
git branch --show-currentmain/master/develop, ask for explicit confirmationgit rev-parse --abbrev-ref @{u} 2>/dev/nullgit push -u origin "$(git branch --show-current)". Else git pushopen PR, create pull request)Defaults:
[TICKET-XXX] type: description)gh pr create — never the web UIWorkflow:
git symbolic-ref --short refs/remotes/origin/HEAD)## Summary
- <bullet from each commit>
## Test plan
- [ ] <test item>
- [ ] <test item>
[KEY] type: description if ticket present in branch, else type: descriptiongh pr create --title "..." --body "$(cat <<'EOF'
## Summary
...
## Test plan
...
EOF
)"
sync with main, rebase)Defaults:
Workflow:
git fetch origin
git rebase origin/<default-branch>
If conflicts: report them, do NOT auto-resolve, let user decide.
new branch, switch branch)Defaults:
git switch -c (not git checkout -b)Workflow:
git switch -c <ticket>-<slug>
# or
git switch -c <ticket>/<slug>
stash my work)Defaults:
git stash push -m "..."git stashWorkflow:
git stash push -m "<short description of what's being saved>"
block-dangerous-git.sh hook is installed via bootstrap-workflow. If absent, manually refuse the same patterns (force-push, hard-reset, etc.)..github/PULL_REQUEST_TEMPLATE.md, use it as the body skeleton instead of the generic summary/test-plan format above.Source: dominikwozniak/claude-kit — distributed by TomeVault.