React State Management
involvex/youtube-music-cli
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
Read this before adding or editing an endpoint in domain/api/card-management/src/api.ts, a credential-bearing one included.
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shape --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .claude/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .claude/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .claude/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shapeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shape --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .agents/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .agents/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .agents/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shape --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .cursor/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .cursor/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LedgerHQ/ledger-live.git --path domain/api/card-management/.agents/skills/card-endpoint-shape--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shape --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .gemini/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .gemini/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shapeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .github/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .github/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .github/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LedgerHQ/ledger-live card-endpoint-shape --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/domain/api/card-management/.agents/skills/card-endpoint-shape .opencode/skills/card-endpoint-shape && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "card-endpoint-shape" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/domain/api/card-management/.agents/skills/card-endpoint-shape into .opencode/skills/card-endpoint-shape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "card-endpoint-shape", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
card-endpoint-shapeRead this before adding or editing an endpoint in domain/api/card-management/src/api.ts, a credential-bearing one included.
Card Endpoint Shape is an agent skill from LedgerHQ/ledger-live. Read this before adding or editing an endpoint in domain/api/card-management/src/api.ts, a credential-bearing one included.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design. It works with Redux. The repository describes itself as: Mono-repository for Ledger Wallet apps and related packages. The licence is MIT.
Read from SKILL.md and the folder at commit 9c51f17. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Card Endpoint Shape loads about 1.3k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 669 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LedgerHQ/ledger-live at commit 9c51f17, republished under its MIT licence (© LedgerHQ). 669 words, ~1,268 tokens.
.claude/skills/card-endpoint-shape/SKILL.md (or your agent's skills folder).Every endpoint is a declaration. Four keys, always in this order:
someEndpoint: build.query<Canonical, Request>({
query: (request) => ({
url: "/v1/some/path",
method: "GET",
}),
rawResponseSchema: SomeWireSchema, // the wire shape
transformResponse: transformSome, // wire -> canonical
responseSchema: SomeSchema, // what callers receive
});| Key | Answers | Lives in |
|---|---|---|
query | What we send | api.ts |
rawResponseSchema | What the backend promised | schema.ts |
transformResponse | How it becomes ours | transforms.ts |
responseSchema | What the caller gets | schema.ts |
Drop the keys you do not need. An endpoint whose wire shape is already canonical declares
responseSchema alone — logout and getUser both do.
Return the wire contract, nothing more. A field the backend never sent does not belong on the answer. If a caller needs one of its own request values afterwards, it already has it.
queryFnqueryFn is the escape hatch for endpoints that are not one HTTP call. None here is, and it costs
more than it looks:
transformResponse for a queryFn endpoint. getTransformCallbackForEndpoint
in buildThunks is guarded by endpointDefinition.query &&. The mapper is silently ignored, so the
mapping moves inside the function, by hand.baseQuery result is unknown, so the body needs a cast or a manual safeParse.if (response.error) return { error: response.error }.Three lines of declaration become twenty of plumbing, and the endpoint stops reading like its neighbours.
The two OAuth2 grants are endpoints like any other, plus three rules. RTK Query puts the argument of a call on its pending action and the answer on its settled one, so a grant's credential travels through redux, and three controls keep it out of every reader:
extraOptions: { authenticated: false }, so the base query sends no Bearer and never renews. A
grant presents its own credential, and a grant that renewed would loop on its own 401.track: false at every call site, so the answer never becomes a cache entry in redux state.The apps add the last control: redactCardApiAction strips every Card action before the desktop
logger, the desktop DevTools or the mobile DevTools relay reads one, and redactCardApiState strips
a grant out of the state. A new grant must be added to CARD_GRANT_ENDPOINTS in
@shared/api-services, which a test in api.test.ts checks.
query receives the request argument and nothing else. It cannot reach the store, so:
x-client-key, Authorization, the 401 refresh — comes
from cardApiExtra in @shared/api-services. Never
restate it in an endpoint.oauthConfig prop and travel down as arguments. Reaching for queryFn
to read them out of cardApiExtra is the trap this rule exists to close.transformResponse does receive the request as its third argument, after the base query's meta.
Use it to map, never to staple a request value back onto the answer.
When a credential must be captured before local state is cleared, keep it outside the Redux action and hide the opaque request behind a domain-owned initiation helper. The logout endpoint uses this pattern so callers and Redux readers never receive the access token.
as on response.data, no hand-built PARSING_ERROR. A
schema failure rejects the thunk and keeps the body out of the rejected action.PayCardUserResponseSchema declares two fields on purpose. Do not widen it.transforms.ts, transformXxx, one test each. Never inline.z.infer in types.ts. Request-argument types are hand-written there too.build.mutation for anything not idempotent, even a GET. A call that changes something on the
backend, or that cannot be repeated safely, is a mutation.query, not queryFnauthenticated: false, no hook, track: false, and its name in
CARD_GRANT_ENDPOINTSas and no try/catch in api.tsschema.tstransforms.ts, with a test© LedgerHQ, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in domain/api/card-management/.agents/skills/card-endpoint-shape of LedgerHQ/ledger-live.
Open the folder on GitHubat commit 9c51f17
Card Endpoint Shape next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Card Endpoint Shape this skillLedgerHQ/ledger-live | 622 | — | ~1.3k | Automated safety check: Pass | MIT | |
| React State Managementinvolvex/youtube-music-cli | 456 | 13 repos | ~3k | Automated safety check: Pass | MIT | |
| Frontendredis/RedisInsight | 8.9k | — | ~3.2k | Automated safety check: Pass | Custom licence | |
| Reactvalkey-io/valkey-admin | 148 | — | ~766 | Automated safety check: Pass | Apache-2.0 | |
| Nekocap Redux Featurenopol10/nekocap | 105 | — | ~939 | Automated safety check: Pass | GPL-3.0 | |
| React ExpertJeffallan/claude-skills | 12k | — | ~1.4k | Automated safety check: Pass | MIT |
involvex/youtube-music-cli
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
redis/RedisInsight
React/Redux frontend development patterns for RedisInsight UI: component folder structure, styled-components, hooks, named exports, barrel files, layout components, and theme usage.
valkey-io/valkey-admin
Guidance for React frontend work. An agent skill from valkey-io/valkey-admin.
nopol10/nekocap
A skill your agent uses when adding or modifying a Redux feature folder in the nekocap frontend — creating slices, writing sagas, defining selectors, changing persisted state shape, or touching…
Jeffallan/claude-skills
Builds React 19 components in TypeScript with Server Components, useActionState forms, custom hooks and state libraries, checked with tsc and React Testing Library.
getsentry/sentry-for-ai
Full Sentry SDK setup for React. An agent skill from getsentry/sentry-for-ai.
LedgerHQ/ledger-live
Find which open PRs are impacted by a migration/sunset/refactor and notify their authors — blocking review when the old path is already gone from develop, heads-up comment when it is only deprecated…
LedgerHQ/ledger-live
Write, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync).
LedgerHQ/ledger-live
Maintain CODEOWNERS file and team directories. An agent skill from LedgerHQ/ledger-live.
LedgerHQ/ledger-live
Coin-specific families logic must live in families/. An agent skill from LedgerHQ/ledger-live.
LedgerHQ/ledger-live
Structure a Ledger Wallet data layer where one API response serves several entities.
LedgerHQ/ledger-live
Investigate native React Native crashes (Fabric/Hermes/iOS) in ledger-live-mobile when JS error logs are missing or unhelpful.
Works with
Categories
Read this before adding or editing an endpoint in domain/api/card-management/src/api.ts, a credential-bearing one included. Card Endpoint Shape is an agent skill from LedgerHQ/ledger-live.ts, a credential-bearing one included.
Card Endpoint Shape fits situations like: frontend & Design work in your project.
Run `npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a claude-code`. Or copy the skill folder (domain/api/card-management/.agents/skills/card-endpoint-shape in LedgerHQ/ledger-live) into .claude/skills/card-endpoint-shape in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a codex`. Or copy the skill folder (domain/api/card-management/.agents/skills/card-endpoint-shape in LedgerHQ/ledger-live) into .agents/skills/card-endpoint-shape in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LedgerHQ/ledger-live --skill card-endpoint-shape -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/card-endpoint-shape, .gemini/skills/card-endpoint-shape, .github/skills/card-endpoint-shape and .opencode/skills/card-endpoint-shape in your project.
SKILL.md names no scripts, command-line tools or credentials: Card Endpoint Shape is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Card Endpoint Shape is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Card Endpoint Shape: React State Management (involvex/youtube-music-cli, 456 stars), Frontend (redis/RedisInsight, 8.9k stars), React (valkey-io/valkey-admin, 148 stars) and Nekocap Redux Feature (nopol10/nekocap, 105 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LedgerHQ (a GitHub organization) maintains it in LedgerHQ/ledger-live, which has 622 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.
Source: LedgerHQ/ledger-live on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.