smithery.ai

create-patch

Create a commit or patch file for Firefox contributions

First seen Apr 3, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,885 B
  • docs SUMMARY.md 75 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

You are helping create a commit or patch file for a Firefox bug fix or feature.

Workflow

  1. Show context: Display git status and recent commits to understand the context

``bash git status --short git log --oneline -5 ``

  1. Ask all questions at once: Use a SINGLE AskUserQuestion call to ask:

- Bug number (infer from branch name if possible, e.g., "b2012791" → "2012791") - Commit or patch preference (recommend "Commit directly" - explain it's preferred for Mozilla workflow) - Which files to include (provide common presets + "Let me select specific files" option) - Commit message authorship: Who writes the title and summary? - "Claude generates it (Recommended)" - Claude analyzes and writes the message - "I'll write it myself" - User provides their own title and summary

If user selects "Let me select specific files", use a SECOND AskUserQuestion with multiSelect.

  1. Analyze changes and context:

- Read the selected files and their diffs - Look at recent commits on this branch (git log --oneline -3) to understand: - The overall bug being fixed - What work has already been done - How this commit relates to previous commits - Understand what changed, why, and the technical details

  1. 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: - Be direct and precise - avoid unnecessary words - Focus on what and why, not how - Use technical accuracy without verbosity - Every sentence should add value

If Claude generates it: - Create a concise title (without "Bug XXXXX -" prefix, 50-72 chars) - Write a clear, focused summary that: - Describes what changed and why (be specific but brief) - Explains the purpose and goal (in 1-2 sentences if possible) - References previous commits if this is a follow-up - Includes only essential technical details - Removes any redundant or obvious information - Show the message to user for review (see step 4a below)

If user writes it themselves: - Ask the user to provide the title and summary (use text input or let them type it) - After receiving their message, ask: "Would you like me to polish/improve this message?" - If yes: Review and improve for clarity, conciseness, and Mozilla conventions. Remove verbosity, strengthen weak phrasing, ensure technical accuracy. Then show the message to user for review (see step 4a below) - If no: Use their message as-is (skip step 4a)

4a. Review loop (when Claude generates or polishes): - Display the proposed title and summary to the user - Ask: "Would you like to: (1) Use this message, (2) Edit it, (3) Start over" - If user chooses to edit: let them type changes, then polish again and repeat this step - Continue until user approves the message

  1. Create commit or patch:

If committing (recommended): - Stage files: git add <files> - Create commit: ``` Bug <number> - <title>

<detailed summary> `` - Show commit hash and explain: git format-patch -1 HEAD` to export later

If creating patch: - Filename: bug-<number>-<slug>.patch - Include commit-style message + git diff output - Save to current directory

Commit Message Guidelines

  • Clarity and Conciseness: Every word must earn its place. Remove filler, avoid redundancy
  • First line: Concise title (50-72 chars) that clearly states what changed
  • Body: Explain what and why, not how. Be direct and specific
  • Context: Reference related commits or bugs only when it adds value
  • Details: Include only essential technical specifics that reviewers need
  • No Co-authored-by: Do NOT include Claude co-authorship line
  • Avoid: Obvious statements, unnecessary adjectives, verbose explanations

Example

Bug 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.

Important

  • Ask all questions in ONE call (not multiple rounds)
  • Look at previous commits for context
  • Commit is preferred over patch files
  • Commit messages must be CLEAR and CONCISE - no verbosity, no fluff
  • Whether generating or polishing, prioritize clarity and brevity over completeness