Agent skill

Data Layer Advanced

by LedgerHQ in LedgerHQ/ledger-live

Structure a Ledger Wallet data layer where one API response serves several entities.

MITAuto-check passedFrontend & Design

Install Data Layer Advanced

skills CLI
$ npx skills add LedgerHQ/ledger-live --skill data-layer-advanced -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LedgerHQ/ledger-live data-layer-advanced --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/data-layer-advanced .claude/skills/data-layer-advanced && rm -rf skills-src

Use ~/.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/

Facts

Skill name
data-layer-advanced
GitHub stars
621
Token cost
~509 tokens
SKILL.md length
219 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Structure a Ledger Wallet data layer where one API response serves several entities.

  • Works in 3 steps: Fetch with RTK Query, createAsyncThunk,… → In the API layer, validate and transform… → Keep the result in RTK Query or dispatch…
  • Reviewing cross-entity domain/api orchestration with RTK Query
  • SKILL.md covers Split Ownership, Process The Response and Test The Orchestration
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Data Layer Advanced is an agent skill from LedgerHQ/ledger-live. Structure a Ledger Wallet data layer where one API response serves several entities. Use when creating or reviewing cross-entity domain/api orchestration with RTK Query, createAsyncThunk, or both, including response validation and tests spanning multiple domain/entity packages.

Its SKILL.md is about 510 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.

When your agent uses it

  • Reviewing cross-entity domain/api orchestration with RTK Query
  • CreateAsyncThunk
  • Including response validation and tests spanning multiple domain/entity packages

Example prompts

  • “/data-layer-advanced”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Fetch with RTK Query, createAsyncThunk, or both.
  2. In the API layer, validate and transform each response collection with its owning entity schema.
  3. Keep the result in RTK Query or dispatch the validated entities when slices must be hydrated.

What it can do on your machine

Read from SKILL.md and the folder at commit a3861a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • ledgerhq.atlassian.net

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Data Layer Advanced loads about 509 tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 219 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~509

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from LedgerHQ/ledger-live at commit a3861a2, republished under its MIT licence (© LedgerHQ). 219 words, ~509 tokens.

Download SKILL.mdSave it as .claude/skills/data-layer-advanced/SKILL.md (or your agent's skills folder).
name
data-layer-advanced
description
Structure a Ledger Wallet data layer where one API response serves several entities. Use when creating or reviewing cross-entity domain/api orchestration with RTK Query, createAsyncThunk, or both, including response validation and tests spanning multiple domain/entity packages.

Data Layer: Multiple Entities

Apply only when one API response maps to several autonomous entities. Use types-state-mocks for the rules inside each entity package.

Source: Data Layer Advanced Use Case

Split Ownership

text
domain/entity/<first>/src/schema.ts
domain/entity/<second>/src/schema.ts
domain/api/<orchestrator>/src/api.ts
  • Let each entity own its schema and inferred type. Add state, selectors, mocks, and tests only when that entity needs them.
  • Let one domain/api package own the cross-entity response contract, request, transformation, and validation.
  • Keep UI and feature state in features/flow.
  • Keep app composition out of the domain package.

Process The Response

  1. Fetch with RTK Query, createAsyncThunk, or both.
  2. In the API layer, validate and transform each response collection with its owning entity schema.
  3. Keep the result in RTK Query or dispatch the validated entities when slices must be hydrated.

Validate the collection before iterating over it: prefer entitySchema.array().parse(value) to .map() on untrusted data.

Test The Orchestration

  • Use entity mock builders when available; otherwise build schema-valid fixtures.
  • Test RTK Query endpoints, thunks, or their integration according to the chosen orchestration.
  • When reducers are involved, create a minimal local store or use an existing domain test harness.
  • Never import an app store or app alias into a domain test.
  • Assert the validated result, cache entry, and any hydrated slice that the orchestration owns.
  • Cover transport failure, invalid collection shape, and invalid entity data when relevant.

© LedgerHQ, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/data-layer-advanced of LedgerHQ/ledger-live.

Open the folder on GitHubat commit a3861a2

Compare with similar skills

Data Layer Advanced 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.

Data Layer Advanced compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Data Layer Advanced this skillLedgerHQ/ledger-live621—~509Automated safety check: PassMIT
React State Managementinvolvex/youtube-music-cli45612 repos~3kAutomated safety check: PassMIT
Frontendredis/RedisInsight8.9k—~3.2kAutomated safety check: PassCustom licence
Reactvalkey-io/valkey-admin148—~766Automated safety check: PassApache-2.0
Nekocap Redux Featurenopol10/nekocap105—~939Automated safety check: PassGPL-3.0
React ExpertJeffallan/claude-skills12k—~1.4kAutomated safety check: PassMIT

Similar skills

  • React State Management

    involvex/youtube-music-cli

    Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.

    456 GitHub starsUsed in 12 repos~3k tokens
    Frontend & DesignAuto-check passed
  • Frontend

    redis/RedisInsight

    Official

    React/Redux frontend development patterns for RedisInsight UI: component folder structure, styled-components, hooks, named exports, barrel files, layout components, and theme usage.

    8.9k GitHub stars~3.2k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • React

    valkey-io/valkey-admin

    Guidance for React frontend work. An agent skill from valkey-io/valkey-admin.

    148 GitHub stars~766 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Nekocap Redux Feature

    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…

    105 GitHub stars~939 tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • React Expert

    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.

    12k GitHub stars~1.4k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Sentry React SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for React. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~4.8k tokensUpdated today
    Frontend & DesignAuto-check passed

More from LedgerHQ/ledger-live

All 50 skills in this repo
  • Impacting PRs

    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…

    621 GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Cloud Sync Module

    LedgerHQ/ledger-live

    Write, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync).

    621 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Codeownership

    LedgerHQ/ledger-live

    Maintain CODEOWNERS file and team directories. An agent skill from LedgerHQ/ledger-live.

    621 GitHub stars~687 tokensUpdated today
    Auto-check passed
  • Coin Families Contract

    LedgerHQ/ledger-live

    Coin-specific families logic must live in families/. An agent skill from LedgerHQ/ledger-live.

    621 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Debug Rn Native Crash

    LedgerHQ/ledger-live

    Investigate native React Native crashes (Fabric/Hermes/iOS) in ledger-live-mobile when JS error logs are missing or unhelpful.

    621 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Detect Data Leaks

    LedgerHQ/ledger-live

    Detect new PII leaks introduced by the current branch. An agent skill from LedgerHQ/ledger-live.

    621 GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Works with

Questions about Data Layer Advanced

What does Data Layer Advanced do?

Structure a Ledger Wallet data layer where one API response serves several entities. Data Layer Advanced is an agent skill from LedgerHQ/ledger-live. Structure a Ledger Wallet data layer where one API response serves several entities.

When should I use Data Layer Advanced?

Data Layer Advanced fits situations like: reviewing cross-entity domain/api orchestration with RTK Query; createAsyncThunk; including response validation and tests spanning multiple domain/entity packages.

How do I install Data Layer Advanced in Claude Code?

Run `npx skills add LedgerHQ/ledger-live --skill data-layer-advanced -a claude-code`. Or copy the skill folder (.agents/skills/data-layer-advanced in LedgerHQ/ledger-live) into .claude/skills/data-layer-advanced in your project. Claude Code loads it when a task matches its description.

How do I install Data Layer Advanced in Codex?

Run `npx skills add LedgerHQ/ledger-live --skill data-layer-advanced -a codex`. Or copy the skill folder (.agents/skills/data-layer-advanced in LedgerHQ/ledger-live) into .agents/skills/data-layer-advanced in your project. Codex loads it when a task matches its description.

Can I use Data Layer Advanced in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LedgerHQ/ledger-live --skill data-layer-advanced -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/data-layer-advanced, .gemini/skills/data-layer-advanced, .github/skills/data-layer-advanced and .opencode/skills/data-layer-advanced in your project.

What does Data Layer Advanced need to run?

SKILL.md names no scripts, command-line tools or credentials: Data Layer Advanced is instructions for the agent only.

Does Data Layer Advanced access the network?

SKILL.md names 1 domain. As links in the text: ledgerhq.atlassian.net. This is read from the text; nothing was executed.

Is Data Layer Advanced safe to install?

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.

What licence does Data Layer Advanced use?

Data Layer Advanced is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Data Layer Advanced use?

About 509 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Data Layer Advanced?

Skills that share tags, products or a category with Data Layer Advanced: 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.

Who maintains Data Layer Advanced?

LedgerHQ (a GitHub organization) maintains it in LedgerHQ/ledger-live, which has 621 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 7, 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.