.agents/skills/create-pr/SKILL.md
Create a GitHub PR from the current branch: handle uncommitted changes, generate a summary, and submit.
Before doing anything else, remind the user to rebase onto main if they haven't already. Ask if they'd like to proceed or rebase first.
Run git status to check for staged, unstaged, or untracked changes.
Run these commands in parallel to understand the branch:
git log main..HEAD --oneline to see all commits on this branch.git diff main..HEAD --stat to get the list of changed files.git diff main..HEAD to understand what changed in each file.git rev-parse --abbrev-ref HEAD to get the current branch name.git status to check if the branch has been pushed to remote.Title: Generate a concise PR title (under 72 characters) that captures the intent of the change. Use conventional style: lowercase, imperative mood (e.g., "prevent chat list from reordering when renaming sessions").
Body: Generate a PR summary with these four sections:
Start with metadata tags, then a Problem/Solution block:
**Category:** — one of: new-feature, improvement, fix, infrastructure**User Impact:** — one sentence describing what changed from the user's perspective. Write this as a standalone sentence a non-technical stakeholder would understand (e.g., "Users can now create and schedule repeatable tasks directly from the desktop app."). This line is used for project changelogs.**Problem:** — describe the user-facing confusion, mismatch, or friction this PR addresses.**Solution:** — explain how the change resolves that UX problem and, if applicable, why the approach was chosen.Keep Problem + Solution to 2-4 sentences total. Prioritize intent and expected user experience, but include brief high-level implementation rationale when it explains reliability, maintainability, or code quality.
Wrap this section in a collapsible <details> block with the summary "File changes".
Inside, list every changed file. For each file, use the filename as a bold header, then underneath write one or two sentences about what was changed and why. Focus on intent, not implementation details.
Format:
<details>
<summary>File changes</summary>
**path/to/file.ts**
What changed and why.
**path/to/other.rs**
What changed and why.
</details>
Numbered steps in plain English for how an engineer can see the outcome of this PR. Assume they know how to run the project. Focus on where to look and what they should see.
If the PR includes visual changes, include before/after screenshots or a short demo. If there are no visual changes, omit this section entirely.
git push -u origin HEADgh pr create with the generated title and body. Use a HEREDOC for the body to preserve formatting.Write from the perspective of a product designer explaining their thinking to engineers. Be clear and concise — just enough to establish intent. They can read the code; your job is to guide their understanding of the "why."