用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill pr-creation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pr-creation |
| description | > Use when this capability is needed. |
IMPORTANT: Always follow this skill before creating any PR. Do not skip steps, especially the self-critique.
Activate this skill when the user says any of the following (or similar):
Also activate when:
Do NOT use this skill for:
gh pr view or gh pr diff instead)gh pr merge)gh pr edit)gh) must be authenticated$CLAUDE_CODE_BASE_REF/master)Before updating an existing PR (pushing new commits, editing the description, etc.), you MUST check its current status:
gh pr view <pr-number> --json state to check the PR state$CLAUDE_CODE_BASE_REFgit diff <base-branch>...HEAD to see all changesgit log <base-branch>..HEAD --oneline to see all commitsBefore creating the PR, you MUST read critique-prompt.md and launch a critique sub-agent using the Task tool:
subagent_type: "general-purpose"description: "Critique code changes"prompt: Include the full diff output and the critique prompt from that fileDo NOT skip reading the resource file — it contains the detailed checklist the sub-agent needs.
Run the project's test/lint/typecheck commands (see pr-templates.md for common commands per language). Fix any failures before proceeding.
You MUST read pr-templates.md for the PR template and formatting guidelines before this step.
git push -u origin HEADEXISTING_PR=$(gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number' 2>/dev/null)
If a PR already exists, update it with gh pr edit instead of creating a new one.gh pr create with the template from the resource file. Make sure that you use the target branchAfter creating the PR, and after any subsequent fix commits, update the PR description with gh pr edit --body "..." to reflect the current state of all changes.
gh pr checks <pr-number> --watch to monitorProvide the PR URL and confirm all CI checks have passed.
User says: "I'm done fixing the login bug, create a PR"
Claude's actions:
git diff $CLAUDE_CODE_BASE_REF...HEAD — sees changes in src/auth/login.ts and tests/auth/login.test.tsgit log $CLAUDE_CODE_BASE_REF..HEAD --oneline — sees 2 commitsfix: add null check for empty session tokenpnpm check && pnpm test && pnpm lint — all passgh pr create --title "fix: handle null session token in login flow" --body "..."
gh pr checks 47 --watch — all greenUser says: "Submit this for review"
Claude's actions:
git diff $CLAUDE_CODE_BASE_REF...HEAD — sees changes across 8 files including new components, tests, and API routesgit log $CLAUDE_CODE_BASE_REF..HEAD --oneline — sees 5 commitsUser says: "Push this up"
Claude asks: "I see you have changes on branch feat/user-dashboard. Would you like me to create a pull request against $CLAUDE_CODE_BASE_REF, or just push the branch without creating a PR?"
gh not authenticated: Tell user to run gh auth login or set GH_TOKENgh pr list --head "$(git branch --show-current)", then use gh pr edit to updateConverted and distributed by TomeVault — claim your Tome and manage your conversions.