All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Migrate existing Appium scenarios down in
testing/mobile-testingwhen writing or fixing tests: an in-scope spec in the touched feature with no device/native boundary moves to component-view or integration in the same change, without asking (references/placement/e2e-to-lower-layer.md). Specs outside the touched feature stay as they are. (#216) - Use the task-bound Harness for compact tool discovery in Recipe Cook. Verify the adapter and checkout at setup, then look up only the recipe or action needed. For a dev or fix-bug debrief requested directly in chat, identify the instruction or tool output that would have saved the most time. (#311)
- Record Recipe Cook's final PR proof from the clean commit proposed for publication. Preserve the selected attempt's screenshot paths when Pretty PR packages evidence. (#311)
- Update
testing/mobile-visual-testingfor@metamask/client-mcp-core0.16.1 and@metamask/device-mcp0.10.0. Refs of unnamed orambiguousnodes only work withmm click, which taps them at their bounds (targetends in(bounds)); other target commands refuse them withMM_TARGET_NOT_FOUNDand ahint. An unknown command or a badlaunchvalue exits 2 before any daemon starts, and a non-integer numeric flag such as--timeout abcexits 2 instead of being dropped. iOSmm type <field> ""exits 0,mm cdpandmm hermes-targetskeep the Metro port the launch resolved fromMM_METRO_PORT, and daemon log lines name the call's target. (#329) - Update
testing/visual-testingfor@metamask/client-mcp-core0.16.1.mm screenshot --selectoror--framewith--timeoutwaits that long for a missing element (without it, the command still fails after 2 s withMM_TARGET_NOT_FOUND), and the TradingView chart notes say that its canvas is in a nested iframe that--framedoes not enter. (#328) - Update
testing/visual-testingfor@metamask/client-mcp-core0.16.0. An unknown command or a badlaunchvalue exits 2 withMM_INVALID_INPUT, a target that matches several elements fails withMM_TARGET_NOT_FOUND,mm screenshot --selectortakes--timeoutand fails after 2 s withMM_TARGET_NOT_FOUNDwhen nothing matches, a--framewrapper with one iframe resolves to that iframe,mm mock-network requestsredacts URLs, and daemon log lines name the call's target. (#316) - Update
testing/visual-testingfor@metamask/client-mcp-core0.15.0. Addmm events mark,mm logsandmm networkwith a per-flow recipe in place ofconsole.errorhooks and CDP network capture,mm cdp --target swand--fresh, iframe refs and--frame,mm screenshot --selector, mock-network request bodies and service-worker, offscreen and snap matching, the hidden-checkboxclickedLabelclick, therefshorthand inrun-steps, and the one timeout budget withMM_QUEUE_TIMEOUT. (#297) - Update
testing/mobile-visual-testingfor@metamask/client-mcp-core0.15.0 and@metamask/device-mcp0.9.0. Android taps on a covered target now fail withMM_TARGET_OBSCURED,visible: falsenow marks off-screen elements on Android too,mm type <field> ""clears a field, andmm cdpreuses the launch Metro port over one persistent connection. The "Androidvisibleis alwaystrue", "pass--metro-porton everycdpcall" andpress-button backkeyboard workarounds are removed. The skill adds the slow-first-screen recipe (wait-forthe new screen, do not tap again), therun-stepsrefshorthand, the shared timeout budget withMM_QUEUE_TIMEOUT, the iOS tab bar that is not in the tree, and a warning that a mobile ref is resolved again at tap time and can tap another element with the same test ID or label (#298). - Run the
mmCLI intesting/mobile-visual-testingasnode_modules/.bin/mm <command>from the repository root: the Mobile overlay states the invocation rule once in its prerequisites, writes commands asmm <command>, and uses the full form in the first Launch block.yarn mm <command>is noted as also working but slower, andyarn mm:doctoris unchanged. (#309) - Run
mmasnode_modules/.bin/mmfrom the repository root intesting/visual-testing: the Extension overlay states the rule in its prerequisites and uses the full path in its launch and cleanup commands.yarn mmalso works but is slower, because Yarn starts on every call. (#308)
- Add the stable
spotlightskill for viewing Sentry events (transactions, spans, errors, logs) locally in the Spotlight browser UI. It installs in MetaMask Mobile withyarn skillsand ships aspotlight.shscript (on,status,mcp,off) that sets the env flag, starts the sidecar and opens the UI. (#294) - Add the
device-capabilitybase skill for adapting UI to the hardware tier, network transport tier and measured latency, with a MetaMask Mobile overlay. (#276) - Add experimental
component-structureskill for laying out React and React Native components and screens (one component per file, body order, screen hooks, effects, state shape, memoization under React Compiler, subscription isolation), with a review checklist and Mobile and Extension overlays. (#277) - Add the experimental, explicit-only
assets/epic-decomposerskill for splitting tech-debt, cleanup and quality work into an epic of super-atomic Jira tickets (one small PR each, headless verification only) that cloud agents can land. It pilots one ticket, files only after approval, never adds theai-agentlabel, and shipsmd2adfandfile-ticketsscripts. (#286, #287, #291) - Add experimental
assets/dependency-bump-auditskill for proving a dependency bump in any JS/TS repo safe against the repo's own code: lockfile inventory, upstream notes for every intermediate version, usage mapping and branch-vs-base checks. (#275) - Add a Terminal fix-bug checklist to
recipe-cookand theva-mmcx-terminaloverlay toreview-pr. (#281, #282)
- BREAKING: Install
ui/content-guidelinesby default as abaseskill, and route UI component changes in Mobile and Extension reviews toui-development. A routed preference skill that is skipped is now reported as a coverage gap instead of being skipped silently. (#270) review-prnow requires fetching and quoting the hostedcomponents.jsonmanifest entry for every MMDS component a PR adds or changes. Reading the installed package types does not replace this, and an entry that was not read is reported as a coverage gap. (#302)- Update
ui/content-guidelines: periods depend on context, add a currency amounts section, name MetaMask Money and its access wording, and write "lockup" as one word. (#257) - Update the
assets/react-compiler-migrationskill (stillmaturity: experimental) and make it team-agnostic: drop assets file paths and ticket ids, label metamask-mobile specifics in a repo-notes section, and move compiler-forced helper context from code comments to the commit and PR. Add guidance for a failingyarn lint:react-compilerburndown baseline and validated recipes foruseEffectEvent, render-body helpers, mount-only effects behindexhaustive-depssuppressions, sync-effect ordering, render-time refs and TypeScript narrowing afterfailRequest. (#278) - Stop testing skills from prompting unit tests for static styling: component-library defaults and logic-free prop overrides (
twClassName,className,style, color props) are GAP / ACCEPT, and presentation is tested only when JS logic chooses between styles (asserting what the user sees). (#182) - Extend
testing/mobile-testingcomponent-view writing guidance: mock every request the screen makes, wait for the settled screen, do not sleep or time offDate.now(), do not add per-test{ timeout }bumps, and run the test checking forNetConnectNotAllowedErrorbefore opening the PR. (#269) - Consolidate the
testing/mobile-testingcomponent-view run commands and done-gates, and add a pre-PR flakiness repeat withyarn test:view:repeat(randomized order, two repetitions by default, five for tests that share Engine or messenger mocks). Cloud agents can skip it because CI runs the repeat. (#290, #300) - Defer heavy sections on the push transition with
useScreenTransitionCompletein theperformanceguidance. (#268) - Flag polling for stream-owned data, client-local stream managers, React Query polling of controller data in Terminal, and Core APIs shaped for a single client in
perps-review-pr. (#289) - Recommend mm-harness 0.96.44 in the recipe skills. (#266, #267, #273, #279, #280, #288)
- Narrow the
ui-developmentTailwind arbitrary-value ban to padding, margin, gap, color, border radius and typography, and allow fixedh-[..],w-[..]andsize-[..]values when the design calls for a specific dimension. (#302) - In Mobile fix-bug,
recipe-cooknow freezes a clean candidate before final CI and after proof. (#272) - Gate the
recipe-cookTerminal step 3 on the doctor rather thansandbox.json. (#283) - Require Jira keys in
recipe-cookPR bodies to be links. (#285)
- Add recipe planning and cooking skills (
recipe-plan-and-dispatch,recipe-library-audit,recipe-performance,recipe-cook, and setup), pinned to a single mm-harness version with an install-time version check, titled checklist steps, proof artifacts on proof steps, and a recommended mm-harness 0.96.33. (#262, #258, #256, #251, #244, #233, #228, #227, #225, #215, #214, #206) - Add a shared, MCP-free
ui-developmentbaseline for looking up MetaMask Design System components, with thin Mobile and Extension overlays that do not pin a component inventory or require Storybook MCP. (#242, #213, #212) - Add mobile planning skills (
planning,planning-spec, andjira-brief). (#200) - Add
notifications-category-syncfor syncing a client with the backend notifications category manifest, with a MetaMask Mobile overlay. (#188) - Add a PR review base skill. (#184)
- Add generated Perps review checklists, composed from the Perps library and repository overlays rather than copied knowledge. (#183, #163, #159)
- Generate
perps-review-pr/references/pack.json, a machine-readable rule pack listing each criterion family with its areas, class, status and rules. Client-only families name their client, so a hosted review of one client never expects another client's rows. A direct invocation does not read the pack. (#264) - Add a profiling regression proposal skill that suggests follow-up actions after MetaMask Mobile CI has classified a Hermes CPU-profile regression. (#179)
- Add activity mapper guidance, including cross-client advice. (#187, #177)
- Add check-nesting and component-view rules migrated from Consensys/skills. (#175)
- Support explicit-only skill invocation, preserve repository overlays, and prune managed retired skill names during sync. (#174)
- Extend the
performancedomain with measurement, anti-pattern scanning, and React Compiler error-triage and coverage antipattern skills. (#170, #169, #165) - Add a
typescriptdomain with authoring and migration skills. (#167) - Add a
platformdomain covering Extension runtime architecture and failure modes. (#166) - Add a Mobile
selector-patternsskill. (#153) - Add a
navigationskill with a repo-agnostic base and a MetaMask Mobile overlay forRoutesandNavigationService, markedbase: trueso it installs even when its domain is filtered out. (#148) - Add a
feature-flagsskill with a repo-agnostic base and a MetaMask Mobile overlay for version-gated remote flags, markedbase: trueso it installs even when its domain is filtered out. (#147) - Add an
analyticsskill (platform/analytics) with a repo-agnostic base and a MetaMask Mobile overlay for the canonical tracking API, markedbase: trueso it installs even when its domain is filtered out. (#140) - Add an
observabilitydomain with Sentry, Tempo, and telemetry cost-control skills. (#76) - Add skill rules that previously existed only in Farmslot fixtures. (#238)
- BREAKING: Install
planning,planning-spec, andjira-briefby default as stablebaseskills for MetaMask Mobile and Extension (Core stays out of scope). They run when scope is ambiguous, the change is large, or the work is security-sensitive, performance-sensitive, or a contract or API change;planningcallsjira-briefonly when a Jira ticket is already identified; revert yes/no prompts and brief gates are tighter. Opt out withyarn skills --exclude planning/planning,planning/planning-spec,planning/jira-brief --save. An installed copy keeps its previous trigger until the next sync. (#254, #219, #204) - BREAKING: Update
testing/mobile-visual-testingfor@metamask/client-mcp-core0.13.x and 0.14.0 and@metamask/device-mcp0.7.0 and 0.8.0. The knowledge store commands, the knowledge-reuse step, and the--goaland--flow-tagslaunch flags are removed. Failures are now one-line JSON on stdout witherror.code,hint,retryable, and per-class exit codes, and the Android guidance is corrected from a live emulator run. (#249, #211, #164) - BREAKING: Update
testing/visual-testingfor@metamask/client-mcp-core0.13.1 and 0.14.0. The knowledge store commands, the mandatory knowledge-reuse step, and the--presetlaunch example are removed, andyarn build:testreplaces the removedyarn build:test:webpackscript. Failures are now one-line JSON on stdout with structured error codes, and the 0.14.0 commands (mm inspect,mm hover,mm set-viewport,mm reload,mm stop, and browsermm scroll-to-element) are documented. (#248, #210) - Update
perps-review-prso shared checks are delegated, reports are shorter, checklist rows render as titles with detail lines, blocking checks are enforced, Core owns shared logic (advanced orders, Core root causes, Mobile parity), and formatters reuse Intl caching and client-utils; review requests can target a branch or a commit range, and the review rules were regenerated from the current Perps library. (#261, #260, #253, #239, #235, #229, #224, #222, #201, #192) - Update
assets/react-compiler-migrationfor runningreact-compiler-markeron offline checkouts, stopping on stale scans, and documenting shared-value writes. (#246) - Update the content guidelines skill with shared rules and Mobile and Extension overlays. (#221)
- Update
testing/mobile-testingwith component-view flake rules (independent-load,mockReset, and Predict investigation findings) and reusable Appium interaction-stability patterns. (#217, #199, #181) - Add a
Rules (enforced by lint)checklist totesting/mobile-testingcomponent-view guidance: the flake anti-patterns ESLint rejects on*.view.test.tsx(arbitraryjest.mock, fake timers,find*nested inwaitFor, awaiting a skeleton or sibling, pressing a node held across a remount,clearAllMockswithoutmockReset, fixed sleeps, and bare timeout bumps). Requireyarn eslinton new CV tests before finishing. (#231) - Update the MetaMask Mobile performance overlay and animation references for React Native 0.86.x, Expo SDK 57, and Reanimated 4.x with
react-native-worklets(usescheduleOnRNfrom a worklet). (#203) - Require the marketing section to stay last on mobile in
notifications-category-sync. (#196)
- Fix
recipe-cookto record unreachable acceptance criteria at the plan step, keep the installed acceptance-cli path, and preserve the all-guard baseline exception. (#252, #234) - Trigger the content guidelines skill on edits to existing strings as well as new ones. (#250)
- Fix the
testing/visual-testingCLI reference for screenshots, tabs, and duplicate matches, and fix the Redux state-manipulation guidance for React 18 and LavaMoat builds. (#237, #230) - Finish
recipe-cooktasks when criteria are still awaiting review. (#208) - Serialize updates of each shared skill source so concurrent syncs cannot race on Git's fetch state. (#207)
- Shorten skill descriptions that exceeded the 1024-character catalog limit, including
typescript/tsc-blindspots. (#158, #207)
- Report a failed automatic sync instead of exiting 0 in silence.
postinstallstill never failsyarn install, but a non-zero sync (unknown saved domain, unreachable source, no Bash) now warns, so the caller's guard can react and a stale skill set is no longer mistaken for a fresh one. (#154) - Install base skills again when a private overlay is configured.
tools/syncpicked its installer with an-xtest, which npm and Yarn make false by dropping the executable bit when unpacking, so it fell through to the overlay's copy oftools/install— and an overlay predatingbase:installed no base skills while still exiting 0. (#154)
- Add a
mobile-visual-testingskill for MetaMask Mobile. (#79) - Add skill for Flashlight, a lighthouse tool for Android vitals (#146)
- Add content-guidelines skill (MetaMask mobile) (#137)
- Add assets domain skills (#131)
- Add unified extension-testing skill (MMQA-2274) (#130)
- Improve swaps cpu audit skill to include info for wider context (#128)
- Update ui-development extension skill to include newly added DS components (#124)
- Implement skill to add evm networks on extension repo (#114)
- Unify Mobile testing skills (MMQA-2142) (#86)
- Add Mobile test-layer-placement skill (#80)
- Add mobile integration test skill (#78)
- Install a base skill set by default. Skills marked
base: truein frontmatter install on every automaticpostinstallregardless of domain selection, so a fresh clone lands a useful set with no configuration.yarn skillsis unchanged and still installs every domain. Opt out withSKILLS_AUTO_UPDATE=0. (#135) - Lint rules for base skills: a
base: trueskill cannot also beexperimental, and itsdescriptionmust be long enough to self-trigger (BASE_DESCRIPTION_MIN). Both are errors, so CI fails rather than warning invisibly. (#135) - Validate
--domain/SKILLS_DOMAINSagainst the domains that actually exist. A typo previously installed the base set and exited 0, which reads as success. (#135) - Add
swaps-cpu-profile-auditskill for MetaMask Mobile: parse a recorded Hermes / React Native Release Profiler.cpuprofileand audit slow frames in swaps/bridge. (#123) - Add opt-in stale project skill pruning via
--prune-staleandSKILLS_PRUNE_STALE=1.
- Mobile testing guidance now defaults to the component-view layer, and the Appium local-run playbook moved into
mobile-testing. (#70, #54) - Component-view testing guidance gained flakiness and assertion patterns, now requires awaiting async-gated content, and bans nested
findByinsidewaitFor. (#109, #115, #132) - Extension testing guidance clarifies where integration tests belong. (#134)
- The Extension UI skill is now an MMDS gateway. (#138)
- Breaking: frontmatter key
mandatoryrenamed tobase. Update any skill still usingmandatory:. (#135) - Breaking:
postinstallnow syncs by default. It previously requiredSKILLS_AUTO_UPDATE=1; the opt-out is nowSKILLS_AUTO_UPDATE=0. An explicitly emptySKILLS_AUTO_UPDATE=keeps its old meaning (off) rather than being read as unset. (#135) base:truthiness is consistent across all four implementations. The linter alone acceptedon/off, sobase: onlinted clean while the installer skipped the skill. (#135)- Rewrite
CONTRIBUTING.mdand skill template for MetaMask/skills layout. swaps-cpu-profile-auditnow audits the whole capture instead of swaps-owned files only: non-swaps frames that ran while the user was on a swaps screen are classified by their relation to the swaps call stacks (called by swaps, hosts the swaps screen, or concurrent with it), bucketed into named context areas, and reported alongside swaps rows. Every reported row carries anOwned by swapscolumn, and fix depth is gated on it. New--context-min-pctand--swaps-onlyanalyzer flags.swaps-cpu-profile-auditreports swaps-owned areas, non-swaps areas on the swaps path, and non-swaps areas running concurrently as separate tables, so the per-area swaps detail is no longer diluted by context rows. The swaps table gained an inclusive-time column, and the report explains that self time on a leaf means a screen can trigger heavy work while showing ~0 ms of its own. Non-swaps rows in the fix table are now capped to the few that matter.
- Preserve configured skill sources (#121)
- Harden validate script and review-pr skill security (#64)
tools/syncnow execs thetools/installthat shipped beside it in the pinned package, instead of preferring$METAMASK_SKILLS_DIR/tools/install. That path defaults to the.skills-cacheclone trackingorigin/mainwith no tag or commit pin, so an automaticpostinstallcould execute unreviewed shell from whatever was onmainat that moment — bypassing lockfile pinning and release gating. The cache still suppliesdomains/content; it no longer supplies executable code. (#135)- Cap the delegated sync subprocess so a stalled child cannot hang
yarn installindefinitely, and report anETIMEDOUTexplicitly rather than returning a bare exit 1. (#135) - Append
-oBatchMode=yesto any existingGIT_SSH_COMMANDinstead of replacing it.GIT_TERMINAL_PROMPT/GIT_ASKPASScover HTTPS only —sshreads/dev/ttydirectly — but overwriting the variable would break a custom key, an agent, or aProxyCommandon the private overlay clone these guards exist to protect. (#135) - A saved
SKILLS_DOMAINS=(written by the old picker for the "all" choice) is no longer read as "no saved selection". Those engineers were silently dropped to base-only, and because pruning is off by default their other skills stayed on disk and went stale rather than visibly disappearing. (#135) .skills.localreaders strip inline comments consistently. The Bash side kept the# commenttail while the JS side stripped it, so a documentedSKILLS_DOMAINS=perps # my choiceresolved to the domainperps#mychoice. (#135)--selectwith no valid entries now installs the base set instead of every domain. An empty result resolved toall, so mistyping the numbers did the opposite of narrowing the selection. (#135)- Preserve
METAMASK_SKILLS_DIRandCONSENSYS_SKILLS_DIRentries whensync --saverewrites.skills.local.
- Add controller-integration skill for mobile and extension (#62)
- Add multiproject validation skill (#48)
- Add write-perps-ticket product-authoring skill (#58)
- Add breakdown-perps-tickets skill (#57)
- Add component-scaffold skill for MetaMask Mobile (#52)
- Update docs for React Dev Tools Performance and Network tabs (#71)
- Prefix all perps skill names with perps- (#60)
- Add social-ai team to MetaMask Mobile codeowners overlay (#53)
- Update design system UI skills (#45)
- Recommend the Release Profiler → AI-agent .cpuprofile workflow (#40)
- add: anti-pattern helper functions in spec files (#67)
- Add EVM network integration skills (#66)
- Add flaky-test-detection skill (#61)
- Broken links in the PR template (#68)
- Add CLI discovery commands:
list,search, anddescribe - Add
metamask-skillsCLI withsync,postinstall, andinstallcommands - Add repo inference, repo-local skills cache support, bundled package fallback, and
SKILLS_AUTO_UPDATE=1handling for consumer repos