Borrowing it
Nothing to install: this file belongs to LedgerHQ/ledger-live. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LedgerHQ/ledger-live/develop/.agents/skills/data-layer-advanced/SKILL.mdgit clone --depth 1 https://github.com/LedgerHQ/ledger-liveWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ledgerhq/ledger-live/data-layer-advanced)<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/data-layer-advanced"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/data-layer-advanced/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/data-layer-advanced"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/data-layer-advanced.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.00437 |
| Opus 5.5 | $0.00022 | $0.00175 |
| Sonnet 5.5 | $0.00011 | $0.00087 |
| Haiku 4.5 | $0.00005 | $0.00044 |
Grade A, and why
data-layer-advanced scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Data Layer: Multiple Entities
Apply only when one API response maps to several autonomous entities. Use domain-data for the rules inside each entity and api package.
Source: Data Layer Advanced Use Case
Split Ownership
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/apipackage 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
- Fetch with RTK Query,
createAsyncThunk, or both. - In the API layer, validate and transform each response collection with its owning entity schema.
- 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.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed f21c61fe7038
- 1mo ago First seen · 41 lines · 54 tokens per session scan A 265dac6fa2d7
data-layer-advanced is a skill published in the GitHub repository LedgerHQ/ledger-live (624 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 437 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.
Other skills, from other repositories
sync-new-data-type
Adds scaffolding for a new Sync data type in Chromium across protocol buffers, DataType definitions, feature flags, controller builders, unit tests, and metrics.
generate-testability-wrappers
DO NOT USE when the target already consumes an injected interface or built-in abstraction such as IFileSystem or TimeProvider, even if the request says "generate a wrapper"; no new wrapper is needed. Use only when C# source calls an ambient/static dependency and no injectable seam exists: first-time TimeProvider…
convex-test
Generate convex-test tests for the app's Convex functions.
testing
Testing and code quality context for Jest, React Testing Library, ESLint, and test patterns. Use when writing tests or fixing linting issues.
platform-apex-test-generate
Use to generate and validate Apex test classes with TestDataFactory patterns, bulk testing (251+ records), mocking, assertions, and disciplined test-fix loops. Use when creating Apex test classes (for triggers, services, controllers, batch jobs, queueables, and callouts), improving coverage, debugging or fixing…
platform-apex-test-run
Apex test execution, coverage analysis, and test-fix loops with 120-point scoring. Use when the user runs Apex tests, checks code coverage, fixes failing tests, or touches Test.cls / Test.cls files. DO NOT TRIGGER when writing Apex production code (use platform-apex-generate), Agentforce agent testing (use…