用 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. |
Help with Git operations and workflow strategy.
# Inspect current state
git branch -a
git log --oneline -20
git status
Recommend strategy based on project context:
main + short-lived feature branchesmain + develop + feature/* / fix/* branchesmain / develop / release/* / hotfix/*)git diff main --stat — review what changedgit log --format='%an' -- <files>PR: https://github.com/owner/repo/pull/42
Retrieve with: gh pr view --json url --jq .url (GitHub) or glab mr view --output json | jq .web_url (GitLab)git diff --name-only --diff-filter=U — find conflicted filesGuide through git rebase -i for cleaning history before a PR.
If resolving conflicts during rebase, continue non-interactively:
GIT_EDITOR=true git rebase --continue
When the agent runs git or gh/glab, never open an interactive editor or prompt.
Commits — always pass message on the command line:
git commit -m "fix(scope): message"
Rebase continue — --no-edit is not supported, use:
GIT_EDITOR=true git rebase --continue
# or
git -c core.editor=true rebase --continue
Merge — reuse existing message:
git merge --no-edit
Any other git command that could open an editor:
GIT_EDITOR=true git <command>
GitHub CLI — disable prompts and provide all fields explicitly:
GH_PROMPT_DISABLED=1 gh pr create --title "..." --body "..."
GH_PROMPT_DISABLED=1 gh pr merge --squash --delete-branch
GitLab CLI — same principle:
glab mr create --title "..." --description "..." --yes
glab mr merge --yes
Only allow interactive editors or prompts when the user explicitly asks for them.
Source: aretw0/agents-lab — distributed by TomeVault.