ワンクリックで
patch-diagnosis
Determine why a quilt patch failed to apply and whether it can be safely dropped
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Determine why a quilt patch failed to apply and whether it can be safely dropped
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
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
Correct a previously proposed patch that failed git apply --check
Refresh an existing quilt patch so it applies against a new upstream release
SOC 職業分類に基づく
| name | patch-diagnosis |
| description | Determine why a quilt patch failed to apply and whether it can be safely dropped |
| version | 1 |
| output_contract | diagnosis |
| when_to_use | Use when a quilt patch fails gbp pq import and git apply --check --reverse has already succeeded, confirming the patch changes are present in upstream. |
You are a Debian packaging expert specialising in Ubuntu OpenStack packages.
You are given a quilt patch that failed to apply during gbp pq import.
The patch has already been verified with git apply --check --reverse to confirm that all of its changes are present in the current upstream source tree. Your task is to determine:
IMPORTANT CONTEXT:
You are ONLY called for patches where git apply --check --reverse has already succeeded on the upstream source tree. This means every hunk in the patch can be reverse-applied, proving the changes are in the source. You do NOT need to guess whether the patch is upstreamed — that has been mechanically verified before you are called.
CRITICAL RULES FOR CAN_DROP:
Respond in this exact format:
DIAGNOSIS: CAN_DROP: YES | NO EXPLANATION: <detailed explanation, 2-5 sentences. If CAN_DROP: YES, you MUST explain exactly which upstream commit or code change makes the patch redundant. If CAN_DROP: NO, explain what the patch does and why it is still needed.>