pr

GitHub

用于创建或更新指向 main 分支的 Draft PR。检查变更、执行验证脚本、按模板撰写内容,并处理预览部署流程。

.claude/skills/pr/SKILL.md zacharyfmarion/openscad-studio

触发场景

用户要求打开 Pull Request 完成分支交接

安装

npx skills add zacharyfmarion/openscad-studio --skill pr -g -y
更多选项

非标准路径

npx skills add https://github.com/zacharyfmarion/openscad-studio/tree/main/.claude/skills/pr -g -y

不安装直接使用

npx skills use zacharyfmarion/openscad-studio@pr

指定 Agent (Claude Code)

npx skills add zacharyfmarion/openscad-studio --skill pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add zacharyfmarion/openscad-studio --all -g -y

预览 repo 内 skill

npx skills add zacharyfmarion/openscad-studio --list

SKILL.md

Frontmatter
{
    "name": "pr",
    "description": "Use when the user wants to open a pull request or finish a branch handoff. Read the PR template, inspect changes vs main, run the release skill first if the branch name looks like a version, validate the branch with the shared repo checks, open a draft PR targeting main, and return the preview deployment URL when one applies."
}

Open Pull Request

  1. Read .github/PULL_REQUEST_TEMPLATE.md and understand its required sections.
  2. Inspect what has changed on this branch vs main. If there are unrelated changes, stop and ask the user what to do.
  3. If the branch name looks like a release branch or versioned release workflow, run the release skill first before continuing.
  4. Choose the right validation scopes for the changed files and run them through scripts/validate-changes.sh.
  5. Prefer bash scripts/validate-changes.sh --scope baseline for normal TS or workflow changes. Add scopes when needed:
    • --scope formatter for formatter behavior changes
    • --scope rust for apps/ui/src-tauri or other desktop-only changes
    • --scope e2e-web for materially changed user-facing web flows
  6. If formatting fixes are still needed before validation, run pnpm format intentionally first, then rerun the validation helper in check mode. Do not rely on the helper to mutate files unless you explicitly choose --fix.
  7. Draft a PR title and body that follow the template exactly, filling each section from the actual branch changes, validations run, validations skipped, and tests added.
  8. Open or update a draft PR against main:
    • Create with gh pr create --draft --base main when no PR exists for the branch.
    • Update the existing PR body when one already exists.
  9. After the PR exists, wait for the Deploy PR Preview workflow when the change is web-relevant.
  10. Return:
  • the full PR URL
  • the preview URL when one applies
  • any explicit follow-up if the preview deploy or sticky comment failed

Preview Expectations

  • Web-relevant PRs should publish to https://pr-<number>.openscad-studio.pages.dev
  • Docs-only and desktop-only PRs may skip preview deployment
  • If Cloudflare deploy succeeds but the sticky comment fails, report that separately instead of pretending the preview is unavailable

版本历史

  • 285da7d 当前 2026-08-20 14:04

同 Skill 集合

.agents/skills/adapt/SKILL.md
.agents/skills/animate/SKILL.md
.agents/skills/arrange/SKILL.md
.agents/skills/audit/SKILL.md
.agents/skills/bolder/SKILL.md
.agents/skills/clarify/SKILL.md
.agents/skills/colorize/SKILL.md
.agents/skills/create-feature/SKILL.md
.agents/skills/critique/SKILL.md
.agents/skills/delight/SKILL.md
.agents/skills/distill/SKILL.md
.agents/skills/extract/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/harden/SKILL.md
.agents/skills/normalize/SKILL.md
.agents/skills/onboard/SKILL.md
.agents/skills/optimize/SKILL.md
.agents/skills/overdrive/SKILL.md
.agents/skills/polish/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/quieter/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/teach-impeccable/SKILL.md
.agents/skills/typeset/SKILL.md

元信息

文件数
0
版本
285da7d
Hash
20f4e08e
收录时间
2026-08-20 14:04

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-18 20:45
浙ICP备14020137号-1