Command Palette

Search for a command to run...

Назад к скиллам
скилл № 84516

pr-comprehensive-fix

DEPRECATED — use /pr-ship (full pipeline) or /pr-execute (fix phase only) instead. Kept as reference for testing logic and comment resolution strategies…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

Установить pr-comprehensive-fix в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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:
    • Feedback issues (from review comments)
    • CI issues (from workflow failures)
    • Context (which files changed, what's at risk)

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

  • If changed files touch demo/, integration_tests/, or adapters/: YES
  • Otherwise: unit tests only

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 ../run-tests/SKILL.md § "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:

  • Parse failure output
  • Keep ownership on current PR changes by default
  • Fix format/lint/type failures directly (no incidental Bug issue for these)
  • Allow "pre-existing/unrelated" only with clean-base proof + at least one causality check against the branch diff
  • If pre-existing is proven, file/update a Bug issue with evidence and wire structured blocking relationships via create-issue
  • Add a handoff comment on the Bug issue, then continue or stop explicitly as 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:

  • Feedback-only PR: Skip fix CI, still run the gate, still mark comments
  • CI-only PR: Skip fix feedback, still run the gate, verify any comments

Advanced Features

See REFERENCE.md for:

  • How file-change detection works (demo/* detection)
  • Integration test vs unit-only decision criteria
  • Handling partial/unaddressable feedback
  • Fallback strategies for complex failures

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.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • REFERENCE.md
  • RESOLUTION-GUIDE.md
  • TESTING-LOGIC.md

FAQ

Что делает скилл pr-comprehensive-fix?

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.

Как установить скилл pr-comprehensive-fix?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-comprehensive-fix запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pr-comprehensive-fix с