Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

feature-map

БесплатноБез исполняемых скриптовНе проверен

Turn a bug report or route into the extension screen it belongs to, its preconditions, the covering Playwright spec and a reproduction. Use when triaging a…

leather-ioот leather-io★ 29 звёзд на GitHub

Об этом скилле

Feature map

pnpm lt feature-map generate --app extension writes extension.md next to this file: a generated inventory of the extension, one entry per screen, dialog, dApp method or behavior a user would name. The file is gitignored, so generate it at the start of a session (a few seconds; the first run also builds the tools package). Each entry resolves its anchor, routes or opener, gate, feature flags, params, entry steps, preconditions, selectors, page-object actions and covering specs. The sources are typed TypeScript in apps/extension/tests/feature-map/*.features.ts; they import the real RouteUrls and *Selectors objects, so a rename breaks pnpm --filter @leather.io/extension typecheck.

From a report to a reproduction

  1. Generate, then find the entry. Run pnpm lt feature-map generate --app extension, then grep extension.md for what you have: a route (/send/btc), a RouteUrls key, a selector, or words from the description of what the screen shows.
  2. Read the entry. Routes shows where the router mounts it, which gate wraps it and which LaunchDarkly flags must be on; a dialog or sheet shows Opened by instead: the start route and the page-object action that reveals it. Preconditions gives the session state, network, account type and the mock functions the specs register. Entry lists the click path and deep link.
  3. Open the covering spec and action. Specs are repo-relative paths; Actions link to the page-object method that owns the readiness wait for that screen (see write-extension-e2e). Copy the spec's beforeEach, call the listed actions, then assert on the listed selectors.
  4. Write the repro following the write-extension-e2e skill. Never bypass a page-object action with a raw selector from the entry; the action waits for the data the screen validates against.

Anchors

Every entry declares what it is anchored on. The check enumerates routed RouteUrls keys and rpc handler files and fails when one has no entry; selectors and behavior entries are optional.

anchor Use for Enumerated from Claimed by
{ kind: 'route' } a screen with a URL RouteUrls keys the routers reference the entry's routes
{ kind: 'selectors', objects: [...] } a dialog, sheet, banner or badge with no URL exported *Selectors objects in apps/extension/tests/selectors objects (whole object 'SwitchAccountSelectors' or members 'HomePageSelectors.NetworkSwitcher')
{ kind: 'rpc', handlers: [...] } a dApp method whose handler opens no approver (open, openSwap, supportedMethods) file basenames in apps/extension/src/background/messaging/rpc-methods handlers, or a routed entry whose entry[].method the handler registers
{ kind: 'behavior' } something the wallet does with no screen (wallet lock, store migrations, the Ledger flow steps) nothing; hand-authored —

Selector objects are not enforced: a dialog rendered inside a routed screen can live in that screen's entry, and a selectors entry is added when a dialog needs one of its own. Popup-opening rpc methods keep their route anchor; their entry[].method claims the handler. Behaviors are listed under Behaviors in extension.md and skip the gate cross-check; everything else they reference (specs, actions, selectors, mocks) is still validated.

Entries without a route carry startRoute (a RouteUrls value, default /) and open: the page-object action or sequence of actions ('HomePage.goToReceiveDialog', ['SwitchAccountPage.open']) that reveals the screen from the start route. Any public page-object method can be used. Leave open empty when no action reveals the screen (a form must be filled, a storage key set); the specs are then the reproduction. A routed entry may also set open when the screen only renders after an action from its route.

Commands

pnpm lt feature-m
Полный SKILL.md на GitHub

Установить feature-map в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл feature-map?

Turn a bug report or route into the extension screen it belongs to, its preconditions, the covering Playwright spec and a reproduction. Use when triaging a bug, writing an E2E repro for a report, or adding a route or an rpc handler to the extension (the feature-map check fails until it has an entry).

Как установить скилл feature-map?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл feature-map запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить feature-map с