基于 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. |
This skill governs the default Git shape of implementation work: which branch to use, how to name it, how to cut commits, and when it is safe to push or open a PR. It is intentionally lighter than the /git-commit-split custom command, which is for taking an already-dirty working tree and splitting it into commits or PRs.
git status --porcelain=v1, and recent commit style when commit messages will be written.Use a feature branch in its own worktree for implementation work.
main, master, a release branch, or another protected/default branch, create a task worktree before edits unless the user explicitly asked to work in the current checkout.Task worktree creation:
git pull --ff-only # when on the main worktree and updating the base branch
git fetch origin
git worktree add -b <branch> ../<repo-name>-<branch-path-slug> origin/<base>
cd ../<repo-name>-<branch-path-slug>
Rules:
<branch> follows the branch name format below.<branch-path-slug> is the branch name with / replaced by -.agent-harness branch feat/worktree-branch-delivery uses ../agent-harness-feat-worktree-branch-delivery.-2, -3, etc. to the worktree path if it already exists.main itself, use git pull --ff-only in the main worktree. Do not use git pull --rebase origin main for the base branch.Branch name format:
<type>/<kebab-subject>
Rules:
<type> is the Conventional Commits type that would be used for the primary commit: feat, fix, refactor, perf, docs, test, build, ci, chore, style, or revert.<kebab-subject> is lowercase ASCII, hyphen-separated, derived from the imperative commit subject with no scope.-2, -3, etc. if a local or remote branch already exists.Examples:
feat/jwt-refresh-token-rotation
fix/parser-empty-input
refactor/extract-query-builder
docs/clarify-install-steps
Commit by intent, not by file.
test:.style: when it would obscure a logic review./git-commit-split custom command when the task is specifically to organize pending changes.Before committing, verify the relevant test or quality gate is green. If the full suite is too expensive or unrelated failures exist, run the narrowest gate that proves the change and report the limitation.
Use Conventional Commits for every commit message.
<type>(<scope>): <imperative subject>
Scope is optional:
Subject rules:
add, fix, remove, rename.Use a body only when the why is not obvious from the subject. Wrap body text at about 72 columns.
Common types:
| type | when to use |
|---|---|
feat | new user-visible capability |
fix | bug fix |
refactor | restructure without behavior change |
perf | performance-only change |
docs | documentation only |
test | test-only change for existing behavior |
build | build system, packaging, dependencies, lockfiles |
ci | CI configuration only |
chore | tooling/config that does not fit elsewhere |
style | formatting only, no logic change |
revert | reverts a previous commit |
Examples:
feat(auth): add JWT refresh-token rotation
fix(parser): handle empty input without panicking
refactor(db): extract query builder from repository
docs: clarify install steps for Apple Silicon
test(auth): cover refresh-token expiry edge case
build(deps): bump axios from 1.6.0 to 1.7.2
For implementation tasks:
git fetch origingit rebase origin/<base> before the first push when the feature branch should be refreshed onto the latest basegit push -u origin <branch>gh pr create -f --base <base>For explicit commit requests:
/git-commit-split custom command instead of improvising partial commits here.For explicit PR requests:
git push -u origin <branch>.gh pr create -f --base <base>.For rebase and force-push:
git rebase origin/<base> is allowed before the first push for a PR branch.git rebase --continue and git rebase --abort are allowed to complete or recover from that narrow workflow.--onto, and rebasing onto local branches are outside the default workflow; ask before using them.git push --force, git push --force-with-lease, and +refspec pushes are not part of the default workflow. Stop and ask the user if a remote history rewrite is genuinely required./git-commit-splitUse this skill for normal work as it is being implemented.
Use the /git-commit-split custom command when the user's task is specifically to organize existing pending changes into multiple commits, multiple branches, or one PR per feature. Do not duplicate its hunk-splitting and PR-per-feature execution flow here.
Source: furedea/agent-harness — distributed by TomeVault.