with one click
create-patch
Create a commit or patch file for Firefox contributions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create a commit or patch file for Firefox contributions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Hypothesis-driven Firefox investigation for Codex. Use when a user has a suspicious code pattern, potential security issue, suspected spec violation, or vague claim and wants to prove whether it is a real bug, find consequences, and write proof tests.
Create a Firefox patch from local changes. Use when the user wants Codex to inspect modified files, draft or polish a commit message, and prepare a patch without adding Codex co-authorship.
Fix Firefox fuzzing bugs. Use for fuzzing reports, crash reducers, sanitizer failures, testcase minimization, root-cause debugging, and proof-oriented Firefox fixes.
Independent red-team review for Firefox root-cause analyses and proposed fixes. Use to critique an analysis, patch, Phabricator revision, commit, diff, or working tree with isolated Codex subagents and structured verdicts.
Firefox bug root-cause analysis for Codex. Use for Bugzilla bugs or Firefox failures where you need evidence-based diagnosis, revision-pinned source links, code-path tracing, proof tests, resumable run directories, and later solution discussion.
Firefox Bugzilla triage workflow for Codex. Use for polling or processing Bugzilla triage scopes, drafting comments, applying canned responses, and tracking pending triage actions.
| name | create-patch |
| command | /patch |
| description | Create a commit or patch file for Firefox contributions |
You are helping create a commit or patch file for a Firefox bug fix or feature.
Show context: Display git status and recent commits to understand the context
git status --short
git log --oneline -5
Ask all questions at once: Use a SINGLE AskUserQuestion call to ask:
If user selects "Let me select specific files", use a SECOND AskUserQuestion with multiSelect.
Analyze changes and context:
git log --oneline -3) to understand:
Generate or receive title and message:
IMPORTANT: Regardless of whether Claude generates the message or polishes user's draft, the final commit message MUST be as clear and concise as possible. Follow these principles:
If Claude generates it:
If user writes it themselves:
4a. Review loop (when Claude generates or polishes):
Create commit or patch:
If committing (recommended):
git add <files>Bug <number> - <title>
<detailed summary>
git format-patch -1 HEAD to export laterIf creating patch:
bug-<number>-<slug>.patchBug 2012791 - Fix CheckedInt overflow in AudioData::CopyTo
Adds isValid() check before calling value() on CheckedInt to prevent
assertion failures when integer overflow occurs during buffer size
calculation.
This complements the crashtest added in the previous commit, which
reproduces the fuzzer-found issue with large numberOfFrames values.
The fix ensures overflow is detected and a proper RangeError is thrown
instead of crashing.