用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ChunMinChang/dotfiles --skill create-patch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Invariant-driven Firefox investigation for Codex. Use for suspicious code, possible security issues, suspected specification violations, or vague claims that need static validation, reachability analysis, proof tests, and a revision-pinned bug-style report.
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.
First-principles Firefox problem solving for Codex. Use for Bugzilla bugs or Firefox failures that need evidence-based diagnosis, revision-pinned source links, proof tests, invariant-driven solution design, independent evaluation, implementation, and durable follow-up documentation.
正在显示 SKILL.md
基于 SOC 职业分类
| 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.