pr

GitHub

用于创建或更新针对 main 分支的 Draft PR。流程包括读取模板、检查变更、运行验证脚本,并根据分支类型决定是否先执行发布技能。最终生成符合规范的 PR 并返回预览部署 URL。

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

Trigger Scenarios

用户希望打开拉取请求 完成分支交接

Install

npx skills add zacharyfmarion/openscad-studio --skill pr -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • 285da7d Current 2026-08-20 14:04

Same Skill Collection

.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

Metadata

Files
0
Version
285da7d
Hash
20f4e08e
Indexed
2026-08-20 14:04

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 06:30
浙ICP备14020137号-1 $방문자$