pr-createlisted
Install: claude install-skill AnotherSava/claude-code-common
# Create PR for Plan-Based Changes
Prepare commits on the current feature branch, push, and create or update a PR to main.
Read `~/.claude/skills/shared/bash-rules.md` for bash command constraints.
## Context
- Repo root: !`git rev-parse --show-toplevel 2>/dev/null || pwd`
- Current branch: !`git rev-parse --abbrev-ref HEAD`
- Working tree status: !`git status --short`
- Commits ahead of main: !`git log main..HEAD --oneline`
## Working directory
`docs/plans/`, `.ralphex/progress/`, and any other file paths in this skill are relative to **Repo root** from Context. The cwd may be a subdirectory — prefix Repo root when calling Read/Glob/Grep/ls. Bare paths are cwd-relative and will silently miss plans and progress logs at the actual root.
## Workflow
### Step 1: Gather context
1. Use **Current branch** from context. If on `main`, abort — the user must check out the feature branch first.
2. Use **Working tree status** and **Commits ahead of main** from context. Abort if there are no commits ahead of main and no uncommitted changes.
3. Find the latest completed plan doc — look in `docs/plans/completed/` for the most recently created file whose name relates to the current branch or the work described in the commits.
4. Find the matching progress log in `.ralphex/progress/`.
5. Read the plan and progress log to understand the scope and intent of the changes.
### Step 2: Prepare commits
Reset commits back to the working tree and use `/commit` to create clean, atomic com