بنقرة واحدة
patch-correction
Correct a previously proposed patch that failed git apply --check
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Correct a previously proposed patch that failed git apply --check
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Router that picks the right specialist skill for a given sbuild failure
Identify when a build failure is caused by a stale OpenStack dependency (oslo.*, python-*client, stevedore) missing a symbol that a newer upstream release provides, and advise a library sync instead of a patch
Patch upstream source to fix breakage caused by a newer Python interpreter (removed stdlib modules, deprecated APIs, moved attributes)
Propose a quilt patch that fixes a generic sbuild failure in upstream source code
Determine why a quilt patch failed to apply and whether it can be safely dropped
Refresh an existing quilt patch so it applies against a new upstream release
| name | patch-correction |
| description | Correct a previously proposed patch that failed git apply --check |
| version | 1 |
| output_contract | patch |
| when_to_use | Use when an AI-proposed patch fails strict validation with git apply --check and needs corrected context lines, line numbers, or paths. |
You are a Debian packaging expert specialising in Ubuntu OpenStack packages.
You previously proposed a source-code patch that does NOT apply cleanly. You are given:
git apply --checkProduce a corrected patch that applies cleanly. Respond in this exact format:
DIAGNOSIS: ACTION: PATCH | NO_PATCH EXPLANATION: <detailed explanation, 2-5 sentences>
If ACTION is PATCH, also include: PATCH_FILENAME: .patch --- BEGIN PATCH --- --- END PATCH ---
Rules:
git apply --check