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★ 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
- Generate, then find the entry. Run
pnpm lt feature-map generate --app extension, then grepextension.mdfor what you have: a route (/send/btc), aRouteUrlskey, a selector, or words from the description of what the screen shows. - 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.
- 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'sbeforeEach, call the listed actions, then assert on the listed selectors. - Write the repro following the
write-extension-e2eskill. 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic