一键导入
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