Agent skill

Types State Mocks

by LedgerHQ in LedgerHQ/ledger-live

Structure a simple Ledger Wallet data layer where one API response maps to one entity slice.

MITAuto-check passed

Install Types State Mocks

skills CLI
$ npx skills add LedgerHQ/ledger-live --skill types-state-mocks -a claude-code

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

GitHub CLI
$ gh skill install LedgerHQ/ledger-live types-state-mocks --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/types-state-mocks .claude/skills/types-state-mocks && 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
types-state-mocks
GitHub stars
622
Token cost
~673 tokens
SKILL.md length
246 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Structure a simple Ledger Wallet data layer where one API response maps to one entity slice.

  • Reviewing domain/entity schemas
  • SKILL.md covers Place Files, Keep Ownership Clear, Validate The Contract and Test
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Domain/api clients

What it does

Types State Mocks is an agent skill from LedgerHQ/ledger-live. Structure a simple Ledger Wallet data layer where one API response maps to one entity slice. Use when creating or reviewing domain/entity schemas, inferred types, initial state, mocks, selectors, slices, domain/api clients, and their tests.

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Mono-repository for Ledger Wallet apps and related packages. The licence is MIT.

When your agent uses it

  • Reviewing domain/entity schemas
  • Domain/api clients

Example prompts

  • “/types-state-mocks”

What it can do on your machine

Read from SKILL.md and the folder at commit 9c51f17. 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

Types State Mocks loads about 673 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 246 words of instructions outside code blocks.

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

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 9c51f17, republished under its MIT licence (© LedgerHQ). 246 words, ~673 tokens.

Download SKILL.mdSave it as .claude/skills/types-state-mocks/SKILL.md (or your agent's skills folder).
name
types-state-mocks
description
Structure a simple Ledger Wallet data layer where one API response maps to one entity slice. Use when creating or reviewing domain/entity schemas, inferred types, initial state, mocks, selectors, slices, domain/api clients, and their tests.

Types, State, And Mocks

Apply this pattern when one API resource maps to one entity slice. Use data-layer-advanced when one response hydrates several entities.

Source: Types, Initial State & Mocks

Place Files

text
domain/entity/<entity>/src/
├── schema.ts
├── schema.mock.ts
├── schema.test.ts
├── selectors.ts
├── selectors.test.ts
├── slice.ts
└── slice.test.ts

domain/api/<entity>/src/
├── api.ts
└── api.test.ts

Export only the contracts consumers need from each package index.ts.

Keep Ownership Clear

FileResponsibility
schema.tsDefine the runtime schema, infer the TypeScript type, and declare a complete initial state
schema.mock.tsBuild valid entity data with sensible defaults and optional overrides
slice.tsOwn focused entity reducers and actions
selectors.tsRead or derive entity state without importing an app store type
api.tsOwn transport contracts, network calls, and transformations

Follow the package's runtime-schema precedent (Zod or Typia). Do not maintain a separate handwritten type that can drift from the schema.

Validate The Contract

  • Give every entity property an explicit initial value.
  • Make every mock pass the runtime schema.
  • Keep mock-only helpers out of production behavior.
  • Give reducers one clear state transition each.
  • Parse untrusted API data before storing it when the API layer does not already guarantee the contract.
  • Register reducers and API middleware in each app composition root; never import an app store from a domain package.

Test

  • Schema: accept a mock, reject an invalid payload, and cover initial defaults.
  • Mock: return valid data and honor supported overrides.
  • Slice: cover initial state, replacement/reset, and focused updates.
  • Selectors: cover direct and derived values with a minimal local state shape.
  • API: cover success, relevant failures, and transformations with a local test store or existing domain test harness.

© 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/types-state-mocks of LedgerHQ/ledger-live.

Open the folder on GitHubat commit 9c51f17

Compare with similar skills

Types State Mocks 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.

Types State Mocks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Types State Mocks this skillLedgerHQ/ledger-live622—~673Automated safety check: PassMIT
Rust Path Typesopeninterpreter/openinterpreter69k2 repos~605Automated safety check: PassApache-2.0
Python Type Safetywshobson/agents40k—~1.4kAutomated safety check: PassMIT
Pyrefly Type Coveragepytorch/pytorch104k—~3kAutomated safety check: PassCustom licence
Party Ledger Reconciliationsickn33/agentic-awesome-skills47k1 repos~5.2kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0

Similar skills

  • Rust Path Types

    openinterpreter/openinterpreter

    Rules for choosing Rust types for filesystem paths in new Codex code, covering protocol types, internal use and model tool arguments.

    69k GitHub starsUsed in 2 repos~605 tokens
    DevelopmentAuto-check passed
  • Python Type Safety

    wshobson/agents

    Python type safety with type hints, generics, protocols, and strict type checking.

    40k GitHub stars~1.4k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Pyrefly Type Coverage

    pytorch/pytorch

    Migrate a file to use stricter Pyrefly type checking with annotations required for all functions, classes, and attributes.

    104k GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Party Ledger Reconciliation

    sickn33/agentic-awesome-skills

    Party ledger reconciliation: party type, name and PAN/VAT, ledger against statement balance, difference and reason, duplicates, confirmation status and adjustment.

    47k GitHub starsUsed in 1 repo~5.2k tokens
    Business, Finance & HRAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • API Types

    supabase/supabase

    Official

    Maintain Supabase API types. An agent skill from supabase/supabase.

    111k GitHub stars~557 tokensUpdated today
    Backend & APIsAuto-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…

    622 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).

    622 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.

    622 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.

    622 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Data Layer Advanced

    LedgerHQ/ledger-live

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

    622 GitHub stars~509 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.

    622 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Questions about Types State Mocks

What does Types State Mocks do?

Structure a simple Ledger Wallet data layer where one API response maps to one entity slice. Types State Mocks is an agent skill from LedgerHQ/ledger-live. Structure a simple Ledger Wallet data layer where one API response maps to one entity slice.

When should I use Types State Mocks?

Types State Mocks fits situations like: reviewing domain/entity schemas; domain/api clients.

How do I install Types State Mocks in Claude Code?

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

How do I install Types State Mocks in Codex?

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

Can I use Types State Mocks 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 types-state-mocks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/types-state-mocks, .gemini/skills/types-state-mocks, .github/skills/types-state-mocks and .opencode/skills/types-state-mocks in your project.

What does Types State Mocks need to run?

SKILL.md names no scripts, command-line tools or credentials: Types State Mocks is instructions for the agent only.

Does Types State Mocks 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 Types State Mocks 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 Types State Mocks use?

Types State Mocks 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 Types State Mocks use?

About 673 tokens (SKILL.md is roughly 2.7k 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 Types State Mocks?

Skills that share tags, products or a category with Types State Mocks: Rust Path Types (openinterpreter/openinterpreter, 69k stars), Python Type Safety (wshobson/agents, 40k stars), Pyrefly Type Coverage (pytorch/pytorch, 104k stars) and Party Ledger Reconciliation (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Types State Mocks?

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.