Pr comprehensive fix

From CERTCC/Vultron · View interactive version

Pr comprehensive fix is an AI agent skill from the GitHub repository CERTCC/Vultron. DEPRECATED — use /pr-ship (full pipeline) or /pr-execute (fix phase only) instead. Kept as reference for testing logic and comment resolution strategies absorbed into pr-execute/REFERENCE.md; do not invoke directly for new work.

How to use this skill

Skill file

Comprehensive PR Fix Workflow

Deprecated. This skill has been superseded by pr-execute, which reads

a triage artifact rather than re-discovering problems. TESTING-LOGIC.md

and RESOLUTION-GUIDE.md remain authoritative references consumed by

pr-execute/REFERENCE.md. Do not invoke /pr-comprehensive-fix for new work.

Purpose

When a PR has accumulated review comments AND CI failures, the typical fix-all

patterns can get incomplete: they address feedback but miss CI problems, or

forget to mark comments as resolved, or never run the gate at all.

This skill provides a structured, checkpoint-based workflow that:

  1. Inventories all problems (unresolved comments + CI failures)
  2. Fixes code systematically (feedback + CI issues)
  3. Tests with the targeted gate, whatever the diff touches (PAD-18-003)
  4. Verifies CI passes
  5. Resolves comments individually with explanations

Quick Start

# Fix all issues on the current PR systematically
/pr comprehensive-fix

# Answer prompts:
# - Review inventory of problems
# - Approve each fix phase
# - Verify final state

Workflow: Step by Step

Step 1: Inventory All Problems

  1. Fetch all unresolved review comments from the PR
  2. Parse CI failure logs from the most recent workflow run
  3. Display inventory with categorization:

Decision Point: Do CI failures suggest this PR needs integration tests?

Proceed? (yes/no)

Step 2: Batch-Fix Code

If proceeding, invoke sub-skills in order:

  1. /pr fix feedback — Address all unresolved review comments
  2. /pr fix ci — Fix all CI failures

Checkpoint: Code fixed locally. Stop and let user review if needed.

Step 3: Re-Run the Local Gate

There is one gate and it is targeted: the test files targeted-tests derives

from the diff. No local gate runs the whole suite (PAD-18-003, PAD-18-008,

PAD-18-015); CI runs both on every push. See

CODE0 § "The Targeted Gate".

logs="/tmp/vultron-$(basename "$(git rev-parse --show-toplevel)")"
git fetch origin <base> || { echo "fetch failed — stop and report"; exit 1; }
gate=$(PYTHONPATH= uv run targeted-tests --base origin/<base> --pytest); rc=$?
[ "$rc" -eq 0 ] && { eval "$gate" > "$logs-gate.log" 2>&1; rc=$?; tail -20 "$logs-gate.log"; }; echo "exit: $rc"; (exit $rc)

If tests fail:

causality check against the branch diff

structured blocking relationships via create-issue

blocked/unblocked

Proceed to resolve comments? (yes/no)

Step 4: Mark Comments Resolved Individually

For each unresolved comment:

  1. Check if the code change addresses it
  2. If YES: resolve the comment with a note like "Addressed in latest commit: [summary]"
  3. If NO or PARTIAL: add a comment explaining why it couldn't be fully addressed, and

ask for clarification

Final verification: All comments resolved, CI green, tests passing?

Workflows

Full comprehensive fix

1. Inventory → approve
2. Fix feedback (subskill) → review
3. Fix CI (subskill) → review
4. Run the local gate → check results
5. Resolve comments individually → verify all addressed

When feedback + CI failures both exist

The workflow doesn't rerun tests after feedback-only (to avoid duplication),

because Step 3 runs the local gate once both feedback and CI fixes are applied.

When only one type of problem exists

Still follow the full workflow to ensure nothing is missed:

Advanced Features

See REFERENCE.md for:

Next Steps

  1. Run the skill on a problem PR
  2. Follow the checkpoint prompts carefully
  3. Review code changes before allowing test runs
  4. Verify each comment resolution before marking done

Tip: "Cryptic" failures are still branch-owned until disproven by evidence.

Do not classify as unrelated without clean-base and causality proof.

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.