用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill git-safe-pr-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| 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.
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-safe-pr-workflow |
| description | >- Use when this capability is needed. |
Guide users through a GitHub-first PR workflow that keeps main clean without requiring
frequent local rebases. Prefer short-lived feature branches, merge origin/main into the
feature branch when syncing, and land changes with Squash and merge.
Bias toward safety over elegance. Choose reversible operations, avoid rewriting shared history, and teach the user in small steps while you work.
main and master as shared, sensitive branches.git fetch before any sync, merge, or recovery action.origin/main into a feature branch over rebasing it.git revert over rewriting history when commits may already be pushed.Squash and merge to keep main clean.Before any Git operation that changes history, branches, or remote state, inspect:
If you cannot determine whether a branch is shared, assume it is shared and choose the safer path.
Use this as the default GitHub workflow for low-experience users:
main.main, merge origin/main into the feature branch.Squash and merge.Do not teach users to routinely rebase pushed PR branches just to get the latest main.
That workflow is where many novices re-introduce old code or lose work.
When helping a user open a PR, treat the PR title as the likely final squash-merge commit.
main after Squash and merge.WIP, fix stuff, address comments, or update branch.Good default patterns:
feat: add <skill-name> skillfeat(<skill-name>): add <capability>fix(<skill-name>): correct <problem>docs: document <policy or workflow>For the PR body:
If the repo uses GitHub squash merges, prefer the PR title as the default squash commit message.
main on a feature branch? Use fetch, then merge origin/main into the
feature branch.main history? Rely on Squash and merge, not local rebasing of the feature
branch.revert.If a user asks to rebase a pushed branch, explain why that is risky and propose merging
origin/main instead.
For detailed conflict-handling steps and examples, read references/conflict-resolution.md.
reflog or rebase abort.revert.For recovery playbooks, read references/recovery.md.
main unless the user explicitly asks and the repo policy allows it.main or other protected branches.git reset --hard, git clean -fd, branch deletion, or tag deletion unless the user
clearly wants destructive cleanup.If the user explicitly wants a risky operation, explain the safer alternative first. Only proceed when the request is clear and the branch is not a protected/shared branch.
Teach in short, repeatable notes while working:
origin/main, explain that this preserves the branch's existing commits and is
easier to recover from.When asked how to support this workflow at the repo level, recommend:
mainSquash and mergeRebase and mergePull request titleFor repo policy details, read references/repo-settings.md.
Before syncing a feature branch:
mainorigin/main, do not rebase by defaultBefore pushing:
status and diffBefore undoing:
revert for pushed workSource: caidanw/skills — distributed by TomeVault.