the signals and their derived score are provisional and subject to change.
validate manually before sharing.
a1e1b3e81f2f806df50afee8fadeab201813df54566fc83f68641 month agoClaude-Session: https://claude.ai/code/session_01ACqiev6r4mDb7BjevAAwL508253de9fda71 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q8e3e01e7bc201 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q902c9cc537d61 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q6ec77b637f071 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q43ebb19328d41 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q3beeaccf18ab1 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Qae3bc161ff5e1 month agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q529bdd45676d2 months agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Qb19257565e882 months agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Qe6094eb4aceb2 months agoCo-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>63ab23d631102 months agoCo-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>a3fed8650ef72 months agoClaude-Session: https://claude.ai/code/session_01WsnsqJvQCmPUe3GWmsM77Q7cb6338e68474 months agoCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>a656170ced2f4 months agoClaude-Session: https://claude.ai/code/session_01TNgKahP3bf4Rg8QPzJrD4e20e026b2ace94 months agoThe "Command-line options" section is generated by claude code from the help06e6579ee6cb6 months agoCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>88dd3ac376c56 months agoCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>143b508425d47 months agoCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>12ac76c350b77 months agoCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0f2870a9589e7 months agoCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>bf8ced11897f7 months agoCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com># Media module instructions
Scoped guidance for `dom/media/`. The global `../AGENTS.md` still applies.
These rules do not apply to vendored code, for example
`platforms/ffmpeg/ffmpeg*/`, `platforms/ffmpeg/libav*/` and
`webrtc/transport/third_party/`.
## Read first
Before you change media code, look for a design doc of that area in
`dom/media/docs/` and read it. `dom/media/docs/index.md` lists the docs.
Read `dom/media/docs/Diagnostics.md` when you read a media bug report.
## Review checklists
- Read t# Receive push messages command-line handler
Read `toolkit/mozapps/pushnotificationhelper/docs/index.md` before working in
this directory.
# Newtab Development
## Documentation
- Newtab source docs: https://firefox-source-docs.mozilla.org/browser/extensions/newtab/docs/index.html
- Design system tokens: https://firefoxux.github.io/firefox-desktop-components/ (visual reference), or locally: `toolkit/themes/shared/design-system/dist/tokens-shared.css`
## File Locations
Most of the code should be located in `browser/extensions/newtab`
- React components: `browser/extensions/newtab/content-src/components/`
- Styles (SCSS): `browser/extensions/ne## Intervention rules
Interventions are **individual JSON files**, one per site. Each file lists the Bugzilla bug numbers, the affected URLs, the type of breakage, and the interventions to apply.
Pick the intervention type that fits the breakage. When more than one type would work, prefer the least-invasive one — for example, hiding an unsupported-browser banner with CSS or `hide_messages` is preferable to shipping a `ua_string` override, even if the UA override would also resolve the issue. UA overrideThis file provides guidance to LLMs and agents when working with the code in this repository.
## Build
NSS uses GYP + Ninja as its primary build system, driven by `build.sh` (or the `mach` wrapper):
**Always build with `--dist`.** The default output directory, `../dist`, is outside the checkout, so
checkouts that sit side by side share it and silently overwrite each other's libraries and binaries.
Give each checkout its own directory and export it as `DIST`, which `tests/all.sh` and every `mach` subcomma# AGENTS.md
This directory is **SpiderMonkey**, the JavaScript engine inside the
Firefox/Gecko monorepo in the parent directly. Project-wide instructions live
in `../AGENTS.md` (referenced from `../CLAUDE.md`). Notes below cover what is
specific to `js/`.
## Test workflow
Tests are run from the `js` test shell, not the browser. There are three suites:
- **jit-test** (`src/jit-test/`) — JIT, GC, and engine internals, run with
`mach jit-test`.
- **jsapi-tests** (`src/jsapi-tests/`) — C++ tests o# qlog/
qlog data model for QUIC and HTTP/3 per IETF drafts (`draft-ietf-quic-qlog-main-schema`, `draft-ietf-quic-qlog-quic-events`, `draft-ietf-quic-qlog-h3-events`). Pure data types + serde serialization; no IO (deferred to consumers).
## STRUCTURE
```
src/
lib.rs # Core types: Qlog, QlogSeq, Trace, TraceSeq, VantagePoint, Configuration, Error
streamer.rs # QlogStreamer -- streaming JSON-SEQ writer with state machine
reader.rs # QlogSeqReader -- streaming JSON-SEQ reader/iterat# Windows Default Browser Agent Development
The Windows Default Browser Agent (or WDBA) is responsible for regaining default browser status when Firefox loses it and providing telemetry for browser defaults without requiring the browser to open in a privacy preserving manner. WDBA runs once every 24 hours as a background task. It reports the user's default browser and, if Firefox has lost default status, can show a toast asking the user to switch back.
## Documentation
Source documentation: https://firefo# Global instructions
Limit the amount of comments you put in the code to a strict minimum. You should almost never add comments, except sometimes on non-trivial code, function definitions if the arguments aren't self-explanatory, and class definitions and their members.
Do not remove existing comments unless they are directly related to what you are changing.
If you see a good first bug that isn't directly related to your work, don't hesitate to propose it as a good first bug (see the `file-good-first-bu# Layout module instructions
Scoped guidance for `layout/`. The global `../AGENTS.md` still applies.
## Start here
Read the docs in `layout/docs/` before non-trivial work.
- `layout/docs/LayoutOverview.md` for frame tree, frame construction, reflow,
and fragmentation.
## Review
- Read `layout/docs/LayoutCodeReviewerChecklist.md` as guidance when reviewing
layout changes.
## Testing
- Write new tests as web-platform-tests (WPT) by default, including
testharness.js tests, reftests, or crashtests. Pu# WebRender module instructions
WebRender is the GPU-based 2D rendering engine used by Firefox, written in Rust.
It is a standalone Cargo workspace vendored into the Firefox repository.
## Layout
- `webrender/` — the renderer crate (scene building, frame building, batching,
clip/spatial trees, GPU backend).
- `webrender_api/` — the serializable display-list API shared with Gecko.
- `wrench/` — standalone test/replay harness (reftests, captures, YAML/RON).
- `swgl/` — software GL backend.
- `wr_g# Push notification helper
Read `docs/index.md` before working in this directory.
{
"mcpServers": {
"moz": {
"type": "http",
"url": "https://mcp-dev.moz.tools/mcp"
}
}
}
{
"mcpServers": {
"moz": {
"type": "http",
"url": "https://mcp-dev.moz.tools/mcp"
},
"firefox-devtools": {
"type": "stdio",
"command": "${MACH_PYTHON:-python3}",
"args": [
"mach",
"--quiet",
"firefox-devtools-mcp",
"--pref",
"remote.prefs.recommended=false",
"--pref",
"browser.smartwindow.enabled=true",
"--enable-privileged-context",
"--enable-script"
]
}
}
}
---
name: android
description: Workflow guide when working with Android builds or the mobile/ directory.
---
# Android
## Workflow
- Instead of `gradlew`, use `./mach gradle` as the wrapper. Use `-p` argument of gradle if you need to run in a subdirectory
## Android Frontend
When working in `mobile/android/fenix`, `mobile/android/focus-android` or `mobile/android/android-components` directories override instructions from the top-level `AGENTS.md` with:
- `./mach lint` is the recommended way to run linter---
name: spec-trace
description: Trace a claim about web spec behaviour through the algorithm call chain and produce a Bugzilla-ready markdown trace ending in a REACHED / NOT REACHED / INCONCLUSIVE verdict. Use when a bug says "the spec says X should happen" and you need to check whether it does, when asked where in the spec some event gets fired or some state gets set, or when a reporter's expected-results section needs a spec citation it did not provide.
argument-hint: "[--gecko] <question in prose>"
all---
name: necko-review
description: Use this skill when reviewing or writing patches to networking code (Necko, netwerk/).
---
# Guidelines for netwerk/ (Necko) patches
These guidelines assume the general Firefox C++ rules, which they do not repeat. Follow the [Mozilla C++ coding style](https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html) (naming prefixes, string argument types, error checking, include rules, `static` linkage, clang-format) and [Using C++ in Mozilla cod---
name: firefox-desktop-frontend
description: You MUST use this skill when working with HTML, JS, CSS and other front-end code.
---
# Firefox desktop front-end
## Workflow
- Whenever you're building, if `./mach build` was previously run and you have not made any changes to C++ or Rust code (nor rebased past incoming changes to such code), you can use `./mach build faster` to skip the compilation and linking steps and only build the front-end code. This can save a lot of time when you're only working on ---
name: gecko-web-standard-implementation
description: You MUST use this skill when working with C++, C, Rust code to implement or modify WebIDL interfaces and their native implementations.
---
# Implementing web standards in Gecko
## Workflow
- When implementing or reviewing new web-exposed interfaces, compare the code against the specification. The relevant link should be in the .webidl file. When reviewing, explicitly check each method's implementation against the corresponding spec algorithm and not---
name: firefox-commits
description: Guidelines to follow when committing, or amending commits
---
# Skill commit message / committing
```
Bug xxxxx - What has been fixed. r?reviewerA,blockingreviewerB!,#reviewergroup
A small number of lines, optional.
Differential Revision: https://phabricator.services.mozilla.com/DNNNNNN
```
`moz-phab submit` adds the `Differential Revision:` line. Write only the lines
above it, removing such a line will create a new review request, lose comment
history and confuse---
name: js-review
description: Use this skill when reviewing code the JS engine (SpiderMonkey, js/src/) or self-reviewing code while producing it.
---
# Reviewing SpiderMonkey code
- The SpiderMonkey team works in Stacks of Commits. Each commit should be a logical unit of work. Each unit should be independently reviewable even if the stack must all land as a unit. Patches which mix up work should be split into their constituent parts.
- Refactoring should be a separate part from functional changes t---
name: stmo
description: >
Manage Redash queries and dashboards on Mozilla's STMO (sql.telemetry.mozilla.org)
using stmo-cli. Use when the user wants to explore telemetry data on STMO, write,
deploy, or execute Redash queries, manage dashboards, or discover data sources.
Also trigger on mentions of STMO, Redash, sql.telemetry.mozilla.org, or when the
user wants to query Mozilla telemetry data (as opposed to probe/metric discovery,
which is mozdata territory).
allowed-tools:
- Bash(stmo-cli:---
name: accessibility-frontend-review
description: >
Performs an accessibility code review of a local diff or Phabricator revision in the style of the
Firefox accessibility team. Use this skill whenever the user asks to review a Phabricator
patch or revision for accessibility issues, mentions a D-number (like D284142) in the
context of accessibility review, asks "does this patch have any a11y issues", or wants
to check a diff against accessibility guidelines. Also use it when the user says thing---
name: documentation
description: Use this skill when working with Firefox documentation,
including building documentation with `./mach doc`,
fixing Sphinx build errors or warnings, modifying existing
documentation, or adding new docs.
---
# Firefox documentation
## Overview
Firefox documentation is built using **Sphinx**
through the `./mach doc` command. Documentation sources are distributed
throughout the repository and are written in **Markdown (`.md`)**.
The documentation system integrates:---
name: api-compat-reviewer
description: Automated code review for backward-incompatible changes in WebRTC public headers. Use this skill to catch renames/removals/signature changes in api/ (and other downstream-consumed headers like pc/session_description.h) that will break Chromium and internal builds, and to verify a deprecation polyfill is in place.
---
# API Compat Reviewer Skill
libWebRTC is consumed by downstream projects (Chromium, and internal,
closed-source Google code) that build out-of-tree ---
name: gn-check-autofix
description: Automatically fix GN check errors in WebRTC BUILD.gn files. Use when encountering "Include not allowed", "rtc_source_set shall not contain cc files", or when needing to clean up non-absolute dependencies.
---
# GN Check Autofix
This skill provides instructions for using `tools_webrtc/gn_check_autofix.py` to
automatically resolve common GN build configuration errors in WebRTC.
## Core Workflows
### Fix Missing Dependencies
When you see "Include not allowed" errors---
name: js-review
description: Use this skill when reviewing code the JS engine (SpiderMonkey, js/src/) or self-reviewing code while producing it.
---
# Reviewing SpiderMonkey code
- The SpiderMonkey team works in Stacks of Commits. Each commit should be a logical unit of work. Each unit should be independently reviewable even if the stack must all land as a unit. Patches which mix up work should be split into their constituent parts.
- Refactoring should be a separate part from functional changes t---
name: profile-capture
description: >
Record a Firefox performance profile with the firefox-devtools MCP. Use when
diagnosing slowness in Firefox: startup, page load, an interaction, a browser
feature, a benchmark, a reduced test case, to obtain profiles - then analyze
with profile-analysis.
allowed-tools:
- mcp__firefox-devtools__*
- Skill(profiler-analysis)
- Read
- Grep
- Glob
---
# Capturing a Firefox profile
## Recording
Use the firefox-devtools MCP:
```
profiler_start(preset="---
name: recomp-frontend-review
description: Review reusable-component and design-system frontend changes in automated patch reviews or standalone Phabricator and local jj/Git reviews, using bundled domain checks.
---
# Recomp Frontend Review
## Choose the review mode
**Injected review:** An automated review system supplies this skill alongside a patch.
Injected review takes precedence over standalone review.
Do not load the standalone workflow in this mode.
Treat the supplied patch and metadata as the ---
name: pre-reviewer
description: Automated pre-review tool to inspect C++ style, concurrency safety, test quality, and CL descriptions before submitting code for human review.
---
<!-- go/cmark -->
<!--* freshness: {owner: 'tommi' reviewed: '2026-06-12'} *-->
# Pre-Reviewer Skill
This skill acts as a pre-review confidence check tool for WebRTC C++
contributions. Use this skill to evaluate code changes for common C++
anti-patterns, concurrency bugs, test hygiene issues, and CL description
completeness---
name: android-new-module
description: Guide for creating new Android gradle modules in the android-components project.
---
# Creating a new Android module
## Overview
This skill helps you create new Android gradle modules following Mozilla's conventions and structure. Components are organized into categories: `browser`, `concept`, `feature`, `lib`, `service`, `support`, `ui`, and `compose`.
## Component Categories
- **browser** - High-level browser components (engine, menu, state, etc.)
- **compose---
name: media-patch-review
description: >
Reviews dom/media code changes ONLY — not any other component. Fans out the
in-tree dom/media review checklists (dom/media/docs/review/*.md) against a patch,
one opus reviewer per checklist, then collects the findings. Temporary local tool
until bugbug's /patch_review loads these docs directly. Triggers on:
"media-patch-review", "/media-patch-review".
argument-hint: <"diff", "local", or D-number>
allowed-tools: [Agent]
---
# media-patch-review — qui---
name: bug-filing
description: File a Bugzilla bug for Firefox/Gecko work, or draft a bug summary and description. Use when the user asks to file a bug, wants a bug summary/description for a change, or needs to report a defect/enhancement/task. Determines the product and component with `mach file-info`, drafts the summary and description, and opens a prefilled enter_bug.cgi form in the browser for the user to submit.
allowed-tools:
- Bash(./mach file-info:*)
- Bash(python3 .agents/skills/bug-filing/f---
name: firefox-desktop-frontend
description: You MUST use this skill when working with HTML, JS, CSS and other front-end code.
---
# Firefox desktop front-end
## Workflow
- Whenever you're building, if `./mach build` was previously run and you have not made any changes to C++ or Rust code (nor rebased past incoming changes to such code), you can use `./mach build faster` to skip the compilation and linking steps and only build the front-end code. This can save a lot of time when you're only working on ---
name: specmap
description: Map relationships between a web spec section, its Firefox implementation code, and Web Platform Tests. Use when starting work on a spec feature, checking implementation coverage, or finding which WPTs to enable.
argument-hint: "[spec-url-or-fragment] [optional: specific-algorithm]"
allowed-tools:
- Bash(searchfox-cli:*)
- Bash(webspec-index:*)
- Bash(curl:*)
- Bash(jq:*)
- Read
- Grep
- Glob
---
# SpecMap: Spec-Code-WPT Mapping
**Spec URL or fragment**: $0
**Sp---
name: stack-reorganize
description: Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them. Use when a stack or its commits are hard to review, carry churn, or have an awkward shape - "my stack is hard to review", "clean up these commits", "organize my patches for review". Works in a git or a Jujutsu (jj) checkout.
allowed-tools:
- Bash(git log:*)
- Bash(git show:*)
- Bash(git blame:*)
- Bash(git add:*)
- Bash(git diff---
name: fluent-migration
description: >
Use this skill when a patch or local changes rename, restructure, move, or
replace Fluent (.ftl) strings - or migrate legacy .properties strings to Fluent
- and you need a migration recipe in python/l10n/fluent_migrations so existing
translations carry over. You read the diff, classify each changed string, write
the recipe by hand, and validate it with the in-tree `./mach
fluent-migration-test`. Triggers: "write/generate a fluent migration", "migrate
t---
name: include-cleaner
description: Runs the WebRTC include-cleaner tool (IWYU replacement) to fix headers in C++ files. Use when preparing a CL for upload, after modifying .cc or .h files, or when instructed to fix include regressions.
---
# WebRTC Include Cleaner
This skill provides instructions for using
`tools_webrtc/iwyu/apply-include-cleaner`, a tool that automatically manages C++
`#include` directives in the WebRTC codebase. It ensures that every header used
is explicitly included and that unuse---
name: webrtc-changelog
description: Generate a professional HTML changelog from WebRTC git logs. Automatically categorizes changes, includes a high-level summary, and provides detailed commit and review links.
---
# WebRTC Changelog Generator
`webrtc-changelog` automates the generation of a professional, categorized HTML
report for WebRTC changes.
## Workflow
1. **Fetch Branch Information:** Navigate to
`https://chromiumdash.appspot.com/branches` and extract the current and
previous branch num---
name: js-perf-investigation
description: >
Structured performance opportunity investigation for SpiderMonkey (the Firefox JavaScript engine).
Use this skill when the user wants to investigate JS engine performance, profile SpiderMonkey,
find optimization opportunities, write performance patches, or evaluate benchmark regressions.
Trigger on mentions of: profiling JS, SpiderMonkey performance, JIT optimization, benchmark
regression analysis, shell benchmarking, or any request to make JS workloa---
name: profile-capture
description: >
Record a Firefox performance profile with the firefox-devtools MCP. Use when
diagnosing slowness in Firefox: startup, page load, an interaction, a browser
feature, a benchmark, a reduced test case, to obtain profiles - then analyze
with profile-analysis.
allowed-tools:
- mcp__firefox-devtools__*
- Skill(profiler-analysis)
- Read
- Grep
- Glob
---
# Capturing a Firefox profile
## Recording
Use the firefox-devtools MCP:
```
profiler_start(preset="---
name: stmo
description: >
Manage Redash queries and dashboards on Mozilla's STMO (sql.telemetry.mozilla.org)
using stmo-cli. Use when the user wants to explore telemetry data on STMO, write,
deploy, or execute Redash queries, manage dashboards, or discover data sources.
Also trigger on mentions of STMO, Redash, sql.telemetry.mozilla.org, or when the
user wants to query Mozilla telemetry data (as opposed to probe/metric discovery,
which is mozdata territory).
allowed-tools:
- Bash(stmo-cli:---
name: necko-review
description: Use this skill when reviewing or writing patches to networking code (Necko, netwerk/).
---
# Guidelines for netwerk/ (Necko) patches
These guidelines assume the general Firefox C++ rules, which they do not repeat. Follow the [Mozilla C++ coding style](https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html) (naming prefixes, string argument types, error checking, include rules, `static` linkage, clang-format) and [Using C++ in Mozilla cod---
name: cl-description
description: Use this skill to draft, write, review, or format a WebRTC Change List (CL) description or Git commit message following WebRTC's guidelines and presubmit rules. Trigger this whenever the user needs help documenting code changes for review or updating the description of an existing Gerrit CL, even if they don't explicitly mention "CL". Do not use this skill for formatting code, explaining logic, or performing general code reviews.
---
# CL Description Skill
This skill ---
name: nimbus-prefs
description: >
Use this skill when a Firefox preference has to be remotely controllable: putting a new feature
behind a pref so it can be experimented on, rolled out gradually, or disabled remotely via
Nimbus. Covers declaring prefs (StaticPrefList.yaml, firefox.js), adding a feature to
toolkit/components/nimbus/FeatureManifest.yaml, choosing between `fallbackPref` and `setPref`,
reading values from JS and C++, recording exposure events, and pairing the pref with Glean
tel---
name: mozlint
description: You MUST use this skill when working with Firefox's linting infrastructure (mozlint), adding new linters, modifying existing linters, running linters, or dealing with linting issues.
---
# Mozlint
## Overview
Firefox's linting infrastructure (mozlint) provides a unified way to run various linters across the codebase. It integrates multiple linters including ESLint, Stylelint, ruff, clippy, clang-format, and many others.
## Workflow
- Run `./mach lint` without arguments to l---
name: webspec-index
description: Query WHATWG, W3C, IETF and TC39 web specifications from the command line. Use to read a spec section or algorithm, find which algorithms invoke a concept and with what arguments, trace a call chain, list who writes a spec field, see what an algorithm may cause (events, tasks), look up IDL, validate an anchor, or read a spec as changed by an open WHATWG PR.
---
# webspec-index
Query WHATWG, W3C, IETF and TC39 web specifications from the command line.
Use `webspec-inde---
name: perftest
description: >
Run Firefox performance tests locally or in CI. Use when the user asks how to run a
perf test, needs the mach invocation for Raptor, Talos, MozPerftest, AWSY, or
browsertime, wants to push perf tests to try, wants to run the tests belonging to an
alert summary (`mach try perf --alert <id>`), or mentions `mach try perf`,
`mach perftest`, `mach raptor`, or `mach talos-test`. Covers picking the right
harness, finding a test's name, and the local-vs-CI tradeoff.
N---
name: bug-filing
description: File a Bugzilla bug for Firefox/Gecko work, or draft a bug summary and description. Use when the user asks to file a bug, wants a bug summary/description for a change, or needs to report a defect/enhancement/task. Determines the product and component with `mach file-info`, drafts the summary and description, and opens a prefilled enter_bug.cgi form in the browser for the user to submit.
allowed-tools:
- Bash(./mach file-info:*)
- Bash(python3 .agents/skills/bug-filing/f---
name: media-patch-review
description: >
Reviews dom/media code changes ONLY — not any other component. Fans out the
in-tree dom/media review checklists (dom/media/docs/review/*.md) against a patch,
one opus reviewer per checklist, then collects the findings. Temporary local tool
until bugbug's /patch_review loads these docs directly. Triggers on:
"media-patch-review", "/media-patch-review".
argument-hint: <"diff", "local", or D-number>
allowed-tools: [Agent]
---
# media-patch-review — qui---
name: stack-split-commit
description: Split one large or hard-to-review commit into several commits that each stand on their own for review, in a git or a Jujutsu (jj) checkout. Use when asked to split a commit or patch, break up a big diff for review, or make a lumped commit more reviewable. One commit at a time - `stack-reorganize` restructures a whole stack.
allowed-tools:
- Bash(git log:*)
- Bash(git show:*)
- Bash(git diff:*)
- Bash(git status:*)
- Bash(git branch:*)
- Bash(git checkout---
name: documentation
description: Use this skill when working with Firefox documentation,
including building documentation with `./mach doc`,
fixing Sphinx build errors or warnings, modifying existing
documentation, or adding new docs.
---
# Firefox documentation
## Overview
Firefox documentation is built using **Sphinx**
through the `./mach doc` command. Documentation sources are distributed
throughout the repository and are written in **Markdown (`.md`)**.
The documentation system integrates:---
name: firefox-commits
description: Guidelines to follow when committing, or amending commits
---
# Skill commit message / committing
```
Bug xxxxx - What has been fixed. r?reviewerA,blockingreviewerB!,#reviewergroup
A small number of lines, optional.
Differential Revision: https://phabricator.services.mozilla.com/DNNNNNN
```
`moz-phab submit` adds the `Differential Revision:` line. Write only the lines
above it, removing such a line will create a new review request, lose comment
history and confuse---
name: android-new-module
description: Guide for creating new Android gradle modules in the android-components project.
---
# Creating a new Android module
## Overview
This skill helps you create new Android gradle modules following Mozilla's conventions and structure. Components are organized into categories: `browser`, `concept`, `feature`, `lib`, `service`, `support`, `ui`, and `compose`.
## Component Categories
- **browser** - High-level browser components (engine, menu, state, etc.)
- **compose---
name: android
description: Workflow guide when working with Android builds or the mobile/ directory.
---
# Android
## Workflow
- Instead of `gradlew`, use `./mach gradle` as the wrapper. Use `-p` argument of gradle if you need to run in a subdirectory
## Android Frontend
When working in `mobile/android/fenix`, `mobile/android/focus-android` or `mobile/android/android-components` directories override instructions from the top-level `AGENTS.md` with:
- `./mach lint` is the recommended way to run linter---
name: file-good-first-bug
description: Use this skill when the user wants to file good-first-bugs in Bugzilla for Firefox. A good-first-bug is a narrow, self-contained, low-risk task scoped so a first-time contributor can land it without deep context. Sources include lint warnings, small typos, dead-code removal, mechanical refactors, docs conversions, or any other small task the user points at. Opens a prefilled `enter_bug.cgi` form per bug in the user's browser for them to submit. Trigger on phrases l---
name: recomp-frontend-review
description: Review reusable-component and design-system frontend changes in automated patch reviews or standalone Phabricator and local jj/Git reviews, using bundled domain checks.
---
# Recomp Frontend Review
## Choose the review mode
**Injected review:** An automated review system supplies this skill alongside a patch.
Injected review takes precedence over standalone review.
Do not load the standalone workflow in this mode.
Treat the supplied patch and metadata as the ---
name: accessibility-frontend-review
description: >
Performs an accessibility code review of a local diff or Phabricator revision in the style of the
Firefox accessibility team. Use this skill whenever the user asks to review a Phabricator
patch or revision for accessibility issues, mentions a D-number (like D284142) in the
context of accessibility review, asks "does this patch have any a11y issues", or wants
to check a diff against accessibility guidelines. Also use it when the user says thing---
name: mozlint
description: You MUST use this skill when working with Firefox's linting infrastructure (mozlint), adding new linters, modifying existing linters, running linters, or dealing with linting issues.
---
# Mozlint
## Overview
Firefox's linting infrastructure (mozlint) provides a unified way to run various linters across the codebase. It integrates multiple linters including ESLint, Stylelint, ruff, clippy, clang-format, and many others.
## Workflow
- Run `./mach lint` without arguments to l---
name: fluent-migration
description: >
Use this skill when a patch or local changes rename, restructure, move, or
replace Fluent (.ftl) strings - or migrate legacy .properties strings to Fluent
- and you need a migration recipe in python/l10n/fluent_migrations so existing
translations carry over. You read the diff, classify each changed string, write
the recipe by hand, and validate it with the in-tree `./mach
fluent-migration-test`. Triggers: "write/generate a fluent migration", "migrate
t---
name: nimbus-prefs
description: >
Use this skill when a Firefox preference has to be remotely controllable: putting a new feature
behind a pref so it can be experimented on, rolled out gradually, or disabled remotely via
Nimbus. Covers declaring prefs (StaticPrefList.yaml, firefox.js), adding a feature to
toolkit/components/nimbus/FeatureManifest.yaml, choosing between `fallbackPref` and `setPref`,
reading values from JS and C++, recording exposure events, and pairing the pref with Glean
tel---
name: hta-reviewer
description: Automated code review following Harald Alvestrand's (hta@) standards for WebRTC. Use this skill to analyze CLs for thread safety, process hygiene, architectural robustness, and modern C++ adoption.
---
# HTA Reviewer Skill
This skill adopts the "Reviewer's Lens" of Harald Alvestrand, a senior WebRTC
engineer. It provides direct, technical, and process-oriented feedback on code
changes.
## Core Mandates
### 1. Process Hygiene
- **Freshness**: Ensure the CL is rebased ---
name: gtest-parallel
description: Run Google Test binaries in parallel using the gtest-parallel script. Use when needing to speed up test execution, run flaky tests with repeat, or filter specific tests.
---
# gtest-parallel
`gtest-parallel` is a script that executes Google Test binaries in parallel,
providing speedup for single-threaded tests and tests that do not run at 100%
CPU.
## Location
The script is located at `third_party/gtest-parallel/gtest-parallel`.
## Core Flags
### Filtering Tests
---
name: stack-reorganize
description: Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them. Use when a stack or its commits are hard to review, carry churn, or have an awkward shape - "my stack is hard to review", "clean up these commits", "organize my patches for review". Works in a git or a Jujutsu (jj) checkout.
allowed-tools:
- Bash(git log:*)
- Bash(git show:*)
- Bash(git blame:*)
- Bash(git add:*)
- Bash(git diff---
name: git-cl
description: Provides commands for interacting with Gerrit CLs using git cl, including issue management and non-interactive uploads.
---
# git cl Skill
This skill provides instructions and best practices for using `git cl` in WebRTC
development.
## Available Workflows
- **Uploading Changes**: For non-interactive uploads, handling chained branches,
and presubmit warnings, see [references/upload.md](references/upload.md).
## Future Extensions
This skill can be extended to cover:
- `g---
name: profiler-analysis
description: |
Analyze Firefox performance profiles using the profiler-cli CLI tool. Trigger when given a profiler.firefox.com or share.firefox.dev link, a local profile path, or when the user wants to investigate an issue in a Firefox profile. Always use this skill instead of WebFetch for Firefox profiler URLs; WebFetch only retrieves the profiler UI's HTML shell and cannot access profile data, whereas profiler-cli downloads and parses the actual profile into a local daemon th---
name: gecko-web-standard-implementation
description: You MUST use this skill when working with C++, C, Rust code to implement or modify WebIDL interfaces and their native implementations.
---
# Implementing web standards in Gecko
## Workflow
- When implementing or reviewing new web-exposed interfaces, compare the code against the specification. The relevant link should be in the .webidl file. When reviewing, explicitly check each method's implementation against the corresponding spec algorithm and not---
name: webspec-index
description: Query WHATWG, W3C, IETF and TC39 web specifications from the command line. Use to read a spec section or algorithm, find which algorithms invoke a concept and with what arguments, trace a call chain, list who writes a spec field, see what an algorithm may cause (events, tasks), look up IDL, validate an anchor, or read a spec as changed by an open WHATWG PR.
---
# webspec-index
Query WHATWG, W3C, IETF and TC39 web specifications from the command line.
Use `webspec-inde---
name: file-good-first-bug
description: Use this skill when the user wants to file good-first-bugs in Bugzilla for Firefox. A good-first-bug is a narrow, self-contained, low-risk task scoped so a first-time contributor can land it without deep context. Sources include lint warnings, small typos, dead-code removal, mechanical refactors, docs conversions, or any other small task the user points at. Opens a prefilled `enter_bug.cgi` form per bug in the user's browser for them to submit. Trigger on phrases l---
name: specmap
description: Map relationships between a web spec section, its Firefox implementation code, and Web Platform Tests. Use when starting work on a spec feature, checking implementation coverage, or finding which WPTs to enable.
argument-hint: "[spec-url-or-fragment] [optional: specific-algorithm]"
allowed-tools:
- Bash(searchfox-cli:*)
- Bash(webspec-index:*)
- Bash(curl:*)
- Bash(jq:*)
- Read
- Grep
- Glob
---
# SpecMap: Spec-Code-WPT Mapping
**Spec URL or fragment**: $0
**Sp---
name: find-reviewer
description: Find the right reviewer for a Firefox/Gecko change so the user does not have to. Use this primarily when committing changes, to fill in the `r=` part of the commit message automatically instead of leaving it blank or guessing. Also use it when the user asks directly who should review a patch or what reviewer group to use.
allowed-tools:
- Bash(./mach file-info:*)
---
# Finding a reviewer
## NEVER invent a reviewer name
A reviewer or group name must be used **exactly---
name: js-perf-investigation
description: >
Structured performance opportunity investigation for SpiderMonkey (the Firefox JavaScript engine).
Use this skill when the user wants to investigate JS engine performance, profile SpiderMonkey,
find optimization opportunities, write performance patches, or evaluate benchmark regressions.
Trigger on mentions of: profiling JS, SpiderMonkey performance, JIT optimization, benchmark
regression analysis, shell benchmarking, or any request to make JS workloa---
name: perftest
description: >
Run Firefox performance tests locally or in CI. Use when the user asks how to run a
perf test, needs the mach invocation for Raptor, Talos, MozPerftest, AWSY, or
browsertime, wants to push perf tests to try, wants to run the tests belonging to an
alert summary (`mach try perf --alert <id>`), or mentions `mach try perf`,
`mach perftest`, `mach raptor`, or `mach talos-test`. Covers picking the right
harness, finding a test's name, and the local-vs-CI tradeoff.
N---
name: perf-regression-triage
description: >
Handle a Perfherder performance regression bug end to end: read the alert bug, confirm
whether the regression is real, find the cause, and iterate to a fix. Use when the user
has a Perfherder/browsertime regression bug (the "N% <test> ... regression on <date>"
bugs filed in Testing::Performance), needs to establish whether an alert summary is a
real regression, is interpreting a PerfCompare baseRev/newRev comparison, or asks what
to do about a patc---
name: find-reviewer
description: Find the right reviewer for a Firefox/Gecko change so the user does not have to. Use this primarily when committing changes, to fill in the `r=` part of the commit message automatically instead of leaving it blank or guessing. Also use it when the user asks directly who should review a patch or what reviewer group to use.
allowed-tools:
- Bash(./mach file-info:*)
---
# Finding a reviewer
## NEVER invent a reviewer name
A reviewer or group name must be used **exactly---
name: perf-regression-triage
description: >
Handle a Perfherder performance regression bug end to end: read the alert bug, confirm
whether the regression is real, find the cause, and iterate to a fix. Use when the user
has a Perfherder/browsertime regression bug (the "N% <test> ... regression on <date>"
bugs filed in Testing::Performance), needs to establish whether an alert summary is a
real regression, is interpreting a PerfCompare baseRev/newRev comparison, or asks what
to do about a patc---
name: profiler-analysis
description: |
Analyze Firefox performance profiles using the profiler-cli CLI tool. Trigger when given a profiler.firefox.com or share.firefox.dev link, a local profile path, or when the user wants to investigate an issue in a Firefox profile. Always use this skill instead of WebFetch for Firefox profiler URLs; WebFetch only retrieves the profiler UI's HTML shell and cannot access profile data, whereas profiler-cli downloads and parses the actual profile into a local daemon th---
name: stack-split-commit
description: Split one large or hard-to-review commit into several commits that each stand on their own for review, in a git or a Jujutsu (jj) checkout. Use when asked to split a commit or patch, break up a big diff for review, or make a lumped commit more reviewable. One commit at a time - `stack-reorganize` restructures a whole stack.
allowed-tools:
- Bash(git log:*)
- Bash(git show:*)
- Bash(git diff:*)
- Bash(git status:*)
- Bash(git branch:*)
- Bash(git checkout---
name: spec-trace
description: Trace a claim about web spec behaviour through the algorithm call chain and produce a Bugzilla-ready markdown trace ending in a REACHED / NOT REACHED / INCONCLUSIVE verdict. Use when a bug says "the spec says X should happen" and you need to check whether it does, when asked where in the spec some event gets fired or some state gets set, or when a reporter's expected-results section needs a spec citation it did not provide.
argument-hint: "[--gecko] <question in prose>"
all# In-tree Agent Skills
These skills live in `.agents/skills/` and are available to AI agents working
in the tree. See the [skills README](skills/README.md) for what belongs there.
```{toctree}
:maxdepth: 1
:glob:
skills/*/SKILL
```
```{toctree}
:hidden:
:glob:
skills/README
skills/*/references/*
```
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
@AGENTS.md
name: Claude Code Review
on:
pull_request:
branches: ["main"]
types: [opened, synchronize, ready_for_review, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
claude-review:
permissions:
contents: read
pull-requests: write # post review comments
issues: read # read issue context for review
uses: mozilla/actions/.github/workflows/claude-review.yml@42622e57e54d9# Gemini Project Context: libyuv Row Functions
This file provides context for the core row-processing architecture of
libyuv. Use these guidelines when refactoring, reviewing, or generating
code within the `row_*.cc` files.
## Architectural Overview
Libyuv uses a dispatch system where high-level conversion functions call
optimized "Row" functions. These functions are categorized by SIMD architecture
and compiler compatibility.
## Source File Map
### x86 Architectures (32-bit and 64-bit)
* **row_gcc.# General workflow
@agents/prompts/common.md @agents/README.md
**Important:** `depot_tools` must be in your `PATH` for working in this checkout
(e.g., for `git new-branch` to work).
# Searching Downstream
When auditing symbol usage or finding references in downstream projects, always
prefer high-precision CodeSearch filters over raw text searches:
- **Semantic References:** Use `usage:webrtc::SymbolName` to find actual
call-sites.
- **Virtual Overrides:** Use `func:MethodName` to find overrides.gitignoreclaude-codeCLAUDE.local.md