skills/ralph-run-reconcile-claude-code/SKILL.md
Audit and reconcile the latest Ralph run in Claude Code. Use when Ralph finishes with failures, tentative outcomes, or suspected missing merges; inspect story branches, state/spec drift, and merge conflicts, then produce or execute a prioritized remediation plan.
npx skillsauth add becerra-alberto/ralphetamine ralph-run-reconcile-claude-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run a deterministic post-run reconcile pass after ralph run. Detect missing merges, state drift, and run failures quickly, then apply only the fixes the user approves.
Load references/reconcile-checks.md before starting analysis.
Use one mode per run:
report (default): collect evidence and produce a remediation plan without code changes.execute-safe: apply low-risk fixes only, then verify.execute-approved: apply low/medium/high fixes explicitly approved by the user.Run and record:
git rev-parse --abbrev-ref HEAD
git rev-parse HEAD
git status --short
date -u +"%Y-%m-%dT%H:%M:%SZ"
If the workspace is dirty, continue, but avoid reverting unrelated changes.
Run deterministic checks:
ls -la .ralph 2>/dev/null || true
test -f .ralph/stories.txt && sed -n '1,220p' .ralph/stories.txt || true
test -f .ralph/state.json && jq '.completed_stories, .merged_stories, .retry_counts' .ralph/state.json || true
git for-each-ref --format='%(refname:short)' refs/heads/ralph/story-* || true
ralph status || true
ralph reconcile || true
test -f progress.txt && tail -n 120 progress.txt || true
When present, inspect run logs under ralph-run-terminal-logs/ and .ralph/logs/.
Use the checklist in references/reconcile-checks.md and produce a table with:
Finding IDSeverityEvidenceImpactRecommended ActionAuto-executable (yes or no)Focus first on orphaned ralph/story-* branches with unmerged commits.
Map findings to risk tiers:
low: deterministic and reversible (ralph reconcile --apply, queue metadata fix, status alignment).medium: targeted edits or retries touching implementation files.high: merge conflicts, broad refactors, or uncertain root cause.Always provide an ordered execution plan and explicit stop conditions.
Apply this order:
ralph reconcile --apply if low-risk orphaned branches exist..ralph/config.json when configured.Never run destructive recovery commands (git reset --hard, force branch deletes, mass file deletions) unless the user explicitly asks.
End with a concise report:
Resolved: list of findings fixed now.Pending: remaining findings and why they were deferred.Verification: tests/checks run and outcomes.Next Command: exact next command for the user.When done, provide:
One-line status (green/yellow/red style summary in plain text).Findings table sorted by severity.Execution log summary (commands actually run).Next-step queue with concrete IDs and owners.When the user requests extra assurance, produce a handoff prompt for Codex that includes:
development
Audit and reconcile the latest Ralph run in Codex-driven repositories. Use when Ralph finishes and you want a post-run diagnostic or remediation pass to catch unmerged story branches, failures, state/spec drift, and merge issues, then execute a bounded recovery plan.
testing
Run the complete Ralphetamine pipeline interactively: PRD creation, multi-perspective Review Party gates, spec generation, premortem review, and run script generation. Pauses for user input at key decision points. Triggers on: /ralph-pipeline-interactive, interactive ralph pipeline, ralph guided pipeline.
devops
Run the complete Ralphetamine pipeline fully autonomously with zero user input: PRD creation, spec generation, double premortem review, and run script generation. Triggers on: /ralph-pipeline-full-auto, ralph autopilot, ralph full auto, ralph autonomous pipeline, ralph auto.
tools
Convert a PRD into Ralphetamine story specs and queue. Reads a PRD file and generates specs/epic-{N}/story-{N.M}-{slug}.md files plus .ralph/stories.txt. Triggers on: /ralph, convert prd to specs, generate ralph specs, create story specs.