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★ 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.mdandRESOLUTION-GUIDE.mdremain authoritative references consumed bypr-execute/REFERENCE.md. Do not invoke/pr-comprehensive-fixfor 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:
- Inventories all problems (unresolved comments + CI failures)
- Fixes code systematically (feedback + CI issues)
- Tests with the targeted gate, whatever the diff touches (PAD-18-003)
- Verifies CI passes
- 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
- Fetch all unresolved review comments from the PR
- Parse CI failure logs from the most recent workflow run
- 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/, oradapters/: YES - Otherwise: unit tests only
Proceed? (yes/no)
Step 2: Batch-Fix Code
If proceeding, invoke sub-skills in order:
/pr fix feedback— Address all unresolved review comments/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:
- Check if the code change addresses it
- If YES: resolve the comment with a note like "Addressed in latest commit: [summary]"
- 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
- Run the skill on a problem PR
- Follow the checkpoint prompts carefully
- Review code changes before allowing test runs
- 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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…