Open pr

From analogjs/analog · View interactive version

Open pr is an AI agent skill from the GitHub repository analogjs/analog. Commit the current work, push the current feature branch, and open a GitHub PR filled out from the repo's PR template. Defaults the base branch to `beta`. Assumes you're already on a feature branch — it does not create branches. Use when the user says "open a PR", "create a PR", "make a PR", or asks

How to use this skill

Skill file

Take the current working changes and turn them into a GitHub pull request: commit, format, push, and open the PR with gh, filling out the repository's PR template.

This skill prepares and opens the PR only. It does not create branches and does not write code. It assumes you are already on the feature branch you want to submit. Default the base branch to beta; if the user names a different base (e.g. "PR to main"), use that instead.

1. Assess the working tree

2. Guard the branch — don't commit to base

3. Format, then commit

npx prettier --write <changed files> then npx prettier --check <changed files>.

(Prefer the repo's own prettier if installed; fall back to npx when deps aren't installed.)

4. Push

5. Open the PR

```

gh pr create --base beta --title "<conventional title>" --body "$(cat <<'EOF'

<filled-out template>

EOF

)"

```

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.