Preparation Summary
Analyze progress logs and commits to produce a summary covering implementation, review findings, and readiness to proceed. If a related plan exists, include plan alignment analysis.
Context
- Repo root: !
git rev-parse --show-toplevel 2>/dev/null || pwd
- Current branch: !
git rev-parse --abbrev-ref HEAD
- Unpushed commits: !
git log @{upstream}..HEAD --oneline 2>/dev/null || git log origin/main..HEAD --oneline
- Unpushed commit details: !
git log @{upstream}..HEAD --format="%h %s%n%b---" 2>/dev/null || git log origin/main..HEAD --format="%h %s%n%b---"
- Changed files: !
git diff @{upstream}..HEAD --stat 2>/dev/null || git diff origin/main..HEAD --stat
- Full diff: !
git diff @{upstream}..HEAD 2>/dev/null || git diff origin/main..HEAD
- Working tree status: !
git status --short
- Latest plan: !
R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && ls -t "$R/docs/plans/completed/" 2>/dev/null | head -1
- Progress logs: !
R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && ls -t "$R/.ralphex/progress/" 2>/dev/null | head -5
Working directory
docs/plans/completed/, .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.
Step 1: Gather artifacts
Progress log(s): Find the most recently modified logs in .ralphex/progress/. If there are variants (e.g. -review), read all of them. Extract what was done, issues encountered, review findings, and fixes applied.
Plan doc (optional): If Latest plan is not empty, read it — but only use it if it relates to the work described in the progress log. If the plan is unrelated (different feature, old work), disregard it. Tell the user which plan was found and whether it was used or skipped.
Commits and diff: Use context data (Unpushed commit details, Changed files, Full diff).
Step 2: Analyze
If a related plan was found, analyze:
- Plan alignment: Which plan items were implemented, which were skipped or deferred
- Unplanned additions: Files or behavior not in the original plan
- Design divergences: Where implementation differs from planned approach
Based on progress logs and code changes, identify:
- What was done: Concrete changes implemented, grouped by area
- Review findings fixed: Issues caught during review and resolved
- Review findings dismissed: Findings evaluated and rejected as false positives, with reasons
- Unaddressed concerns: Issues raised but neither fixed nor dismissed
Step 3: Output summary
## Preparation Summary
**Plan**: {plan title} (or "No related plan found")
**Commits**: {count} on branch
**Files changed**: {count}
### What was done
{Bulleted list of implemented changes, grouped by area}
### Plan alignment (if plan is present)
{Brief statement: does the implementation match the plan?}
{List divergences — what plan said vs what was built, whether intentional}
{List any unplanned additions}
{List any missing plan items}
### Review findings
- **Fixed**: {bulleted list of real issues found and resolved}
- **Dismissed**: {bulleted list of false positives with brief reason}
- **Unaddressed**: {bulleted list of open concerns, if any}
### Recommendation
{Any concerns to address, or "Ready to proceed with /reset and /commit"}
Important
- This skill only analyzes and reports — it does NOT modify any files, create commits, or push code
- If there are no unpushed commits and no uncommitted changes, report that and stop
- If the progress log cannot be found, proceed with just the commits and diff
- Be concise — focus on meaningful divergences and actionable findings
1---2name: pr-prepare3description: Analyze progress log, commits, and optionally a plan to summarize what was done, what diverged, and what review found.4---56# Preparation Summary78Analyze progress logs and commits to produce a summary covering implementation, review findings, and readiness to proceed. If a related plan exists, include plan alignment analysis.910## Context11- Repo root: !`git rev-parse --show-toplevel 2>/dev/null || pwd`12- Current branch: !`git rev-parse --abbrev-ref HEAD`13- Unpushed commits: !`git log @{upstream}..HEAD --oneline 2>/dev/null || git log origin/main..HEAD --oneline`14- Unpushed commit details: !`git log @{upstream}..HEAD --format="%h %s%n%b---" 2>/dev/null || git log origin/main..HEAD --format="%h %s%n%b---"`15- Changed files: !`git diff @{upstream}..HEAD --stat 2>/dev/null || git diff origin/main..HEAD --stat`16- Full diff: !`git diff @{upstream}..HEAD 2>/dev/null || git diff origin/main..HEAD`17- Working tree status: !`git status --short`18- Latest plan: !`R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && ls -t "$R/docs/plans/completed/" 2>/dev/null | head -1`19- Progress logs: !`R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && ls -t "$R/.ralphex/progress/" 2>/dev/null | head -5`2021## Working directory2223`docs/plans/completed/`, `.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.2425## Step 1: Gather artifacts26271. **Progress log(s)**: Find the most recently modified logs in `.ralphex/progress/`. If there are variants (e.g. `-review`), read all of them. Extract what was done, issues encountered, review findings, and fixes applied.28292. **Plan doc (optional)**: If **Latest plan** is not empty, read it — but only use it if it relates to the work described in the progress log. If the plan is unrelated (different feature, old work), disregard it. Tell the user which plan was found and whether it was used or skipped.30313. **Commits and diff**: Use context data (**Unpushed commit details**, **Changed files**, **Full diff**).3233## Step 2: Analyze3435If a related plan was found, analyze:36- **Plan alignment**: Which plan items were implemented, which were skipped or deferred37- **Unplanned additions**: Files or behavior not in the original plan38- **Design divergences**: Where implementation differs from planned approach3940Based on progress logs and code changes, identify:41- **What was done**: Concrete changes implemented, grouped by area42- **Review findings fixed**: Issues caught during review and resolved43- **Review findings dismissed**: Findings evaluated and rejected as false positives, with reasons44- **Unaddressed concerns**: Issues raised but neither fixed nor dismissed4546## Step 3: Output summary4748```49## Preparation Summary5051**Plan**: {plan title} (or "No related plan found")52**Commits**: {count} on branch53**Files changed**: {count}5455### What was done56{Bulleted list of implemented changes, grouped by area}5758### Plan alignment (if plan is present)59{Brief statement: does the implementation match the plan?}60{List divergences — what plan said vs what was built, whether intentional}61{List any unplanned additions}62{List any missing plan items}6364### Review findings65- **Fixed**: {bulleted list of real issues found and resolved}66- **Dismissed**: {bulleted list of false positives with brief reason}67- **Unaddressed**: {bulleted list of open concerns, if any}6869### Recommendation70{Any concerns to address, or "Ready to proceed with /reset and /commit"}71```7273## Important7475- This skill only **analyzes and reports** — it does NOT modify any files, create commits, or push code76- If there are no unpushed commits and no uncommitted changes, report that and stop77- If the progress log cannot be found, proceed with just the commits and diff78- Be concise — focus on meaningful divergences and actionable findings