Open PR
Open a pull request on pascalorg/editor from your current branch.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/open-pr-pascalorg/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Open a pull request on pascalorg/editor using the repo's PR template. Use when the user asks to open/create a PR, push and PR, or ship a branch in the editor repo.
What this skill does
Open a pull request against pascalorg/editor from the current branch.
1. Pre-flight
git status # confirm working tree state
git branch --show-current # confirm we're on a feature branch, not main
git log --oneline main..HEAD
Stop if:
- The current branch is
main. Ask the user to create a feature branch first. - The branch has no commits ahead of
main. Nothing to open a PR for. - There are uncommitted changes the user hasn't asked to commit.
Run a build sanity check if the change is non-trivial:
bun typecheck
bun build
Don't open the PR with a broken build.
2. Read the PR template
The template is at .github/pull_request_template.md. Read it before composing the body β the section headings and checklist items are the source of truth, not your memory of them.
cat .github/pull_request_template.md
Mirror the template exactly:
## What does this PR do?β one paragraph or a short bullet list. Link related issues withFixes #123when applicable.## How to testβ numbered, concrete reviewer steps (commands to run, what to click, expected outcome).## Screenshots / screen recordingβ if the change is visual, paste a recording link or note that one will be added. If purely non-visual (refactor, internal API), say so explicitly so the reviewer knows nothing is missing.## Checklistβ copy the boxes verbatim, ticking the ones already verified.
3. Push and open
git push -u origin HEAD
Check for an existing PR first:
gh pr view --json number,url,title,body 2>/dev/null
3a. No existing PR β create one
Pass the body via HEREDOC to preserve markdown formatting:
gh pr create --title "short, scope-prefixed title" --body "$(cat <<'EOF'
## What does this PR do?
<one-paragraph description; link issues>
## How to test
1. <step>
2. <step>
3. <step>
## Screenshots / screen recording
<link or "N/A β non-visual change">
## Checklist
- [x] I've tested this locally with `bun dev`
- [x] My code follows the existing code style (run `bun check` to verify)
- [ ] I've updated relevant documentation (if applicable)
- [x] This PR targets the `main` branch
EOF
)"
Keep the title under ~70 characters. Use a scope prefix when there's an obvious one (viewer:, core:, editor:, mcp:).
3b. PR already exists β update its description
Do not recreate the PR. Refresh the existing body so it reflects everything currently on the branch, while keeping the template structure and any reviewer-meaningful state the user already set.
-
Capture the existing body and the full branch history:
gh pr view --json number,body -q '.number, .body' > /tmp/existing-pr.txt git log --oneline main..HEAD git diff --stat main..HEAD -
Reconstruct the body section-by-section. Keep the four template headings in the same order (
## What does this PR do?,## How to test,## Screenshots / screen recording,## Checklist). For each section:- What does this PR do? β rewrite from the current commits and diff on the branch, not from memory. Preserve any
Fixes #123/Refs #123lines from the old body. - How to test β regenerate concrete steps for the current behaviour. If a previous step is still valid, keep its wording; drop steps that no longer apply; add steps for new commits.
- Screenshots / screen recording β preserve the existing content verbatim (links, embedded images, "N/A β β¦"). Do not blank it out. Only change it if the user explicitly provided a new recording.
- Checklist β preserve the user's tick state (
[x]vs[ ]) for every item that still exists in the template. Add any new template items as unchecked.
If the old body contains extra sections the template doesn't have (e.g. a manual "Notes" block), keep them at the end.
- What does this PR do? β rewrite from the current commits and diff on the branch, not from memory. Preserve any
-
Apply the update:
gh pr edit <number> --body "$(cat <<'EOF' ## What does this PR do? β¦ EOF )"Use
gh pr edit --titleonly if the branch's scope has clearly changed; otherwise leave the title alone. -
Print the PR URL so the user can confirm the edit.
4. Report
Return:
- PR URL
- Title used
- Local typecheck/build status (if you ran them)
- A note for the reviewer if anything in the checklist is left unchecked
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
UI/UX Pro Max
anthropics
Build production-grade web components and interfaces with distinctive, polished design.
Artifact Theme Toolkit
anthropics
Apply professional color and font themes to slides, docs, and web pages.
Multi-Component Web Artifacts
anthropics
Build complex React artifacts with Tailwind CSS and shadcn/ui components.