Agent skill

Mvvm Architecture

by LedgerHQ in LedgerHQ/ledger-live

Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern.

MITAuto-check passedFrontend & Design

Install Mvvm Architecture

skills CLI
$ npx skills add LedgerHQ/ledger-live --skill mvvm-architecture -a claude-code

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

GitHub CLI
$ gh skill install LedgerHQ/ledger-live mvvm-architecture --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/mvvm-architecture .claude/skills/mvvm-architecture && 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
mvvm-architecture
GitHub stars
622
Token cost
~902 tokens
SKILL.md length
307 words
Files
1
Skills in repo
51
Repo updated
First seen
Licence
MIT

At a glance

Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern.

  • Tasks that involve React components
  • SKILL.md covers The new standard for desktop…, Folder Structure, Component & File Patterns and ViewModel Pattern, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mvvm Architecture is an agent skill from LedgerHQ/ledger-live. Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern. Applies to all new .ts and .tsx files within /apps/ledger-live-desktop or /apps/ledger-live-mobile

Its SKILL.md is about 900 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, covering React components. 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

  • Tasks that involve React components

Example prompts

  • “/mvvm-architecture”

What it can do on your machine

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

    No URLs in SKILL.md.

    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

Mvvm Architecture loads about 902 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 307 words of instructions outside code blocks.

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

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 46bd13a, republished under its MIT licence (© LedgerHQ). 307 words, ~902 tokens.

Download SKILL.mdSave it as .claude/skills/mvvm-architecture/SKILL.md (or your agent's skills folder).
name
mvvm-architecture
description
Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern. Applies to all new .ts and .tsx files within /apps/ledger-live-desktop or /apps/ledger-live-mobile

MVVM Architecture

The new standard for desktop and mobile apps

  • New code for ledger-live-desktop and ledger-live-mobile must go into src/mvvm/
  • Eventually no feature code within these apps will live outside of src/mvvm
  • New features, screens, components, hooks, and utilities belong in src/mvvm/
  • Code changes with src/mvvm must conform to these mvvm patterns
  • Code reviews enforce strict adherence

Folder Structure

src/mvvm/
├── features/
│   └── FeatureName/
│       ├── __integrations__/    ← mandatory integration tests
│       ├── components/          ← reusable UI across screens
│       ├── screens/             ← individual screen folders
│       ├── hooks/               ← feature-specific hooks
│       └── utils/               ← feature-scoped utilities
├── components/                  ← global shared UI
├── hooks/
└── utils/
Feature Folder Responsibilities
  • components/ gathers reusable UI elements across multiple screens.
  • screens/ contains individual screen folders and their private building blocks.
  • hooks/ contains feature-specific reusable hooks.
  • utils/ contains feature-scoped utilities.
Nesting Guidelines
  • Place elements inside the closest folder matching their reuse scope.
  • Screen-specific building blocks stay inside the screen folder.
  • Feature-level components belong to FeatureName/components/.
  • Global shared UI belongs to src/mvvm/components/.

Component & File Patterns

  • Each component in its own folder with index.tsx as entry.
  • ViewModel hooks always named use<ComponentName>ViewModel.ts.
  • Support files alongside: types.ts, styles.ts.
  • Use List / Detail naming for multi-view workflows.
  • Utilities stay in utils/, separate from component folders.

ViewModel Pattern

Components needing external logic use Container → ViewModel → View:

  • The ViewModel produces data and handlers.
  • The View receives everything via props — no direct hook calls to external systems.
Violation checklist — flag if any index.tsx View under screens/ or components/ within src/mvvm/:
  • Imports useSelector or useDispatch from react-redux
  • Imports useNavigation or useRoute from @react-navigation/*
  • Calls any RTK Query hook (useGet*Query, use*Mutation)
  • Has no corresponding use<Name>ViewModel.ts in the same directory
❌ screens/UserProfileScreen/
     index.tsx   ← imports useSelector, useNavigation directly

✅ screens/UserProfileScreen/
     index.tsx                         ← props only
     useUserProfileScreenViewModel.ts  ← useSelector, useNavigation, RTK Query

Import Rules

  • Keep relative imports shallow (within one directory level).
  • Use TypeScript path aliases for broader access.
  • Never import index.tsx explicitly — use folder alias exports.

Data Fetching

Use RTK Query (dada-client and cal-client are reference implementations). See rtk-query-api skill.

Design System

New UI in src/mvvm/ must use Lumen:

Testing

Every new feature under src/mvvm/ must have an integration test in __integrations__/ — create a minimal test when the folder is first added. See testing skill.

© 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/mvvm-architecture of LedgerHQ/ledger-live.

Open the folder on GitHubat commit 46bd13a

Compare with similar skills

Mvvm Architecture 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.

Mvvm Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mvvm Architecture this skillLedgerHQ/ledger-live622—~902Automated safety check: PassMIT
Frontendredis/RedisInsight8.9k—~3.2kAutomated safety check: PassCustom licence
Reactvalkey-io/valkey-admin148—~766Automated safety check: PassApache-2.0
React ExpertJeffallan/claude-skills12k—~1.4kAutomated safety check: PassMIT
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT

Similar skills

  • 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 5 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 today
    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 7 days ago
    Frontend & DesignAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • Core Component Library Patterns

    ChrisWiles/claude-code-showcase

    Reference for building UI with a token-based core component library: spacing, color and typography tokens, Box, stacks, Text, Button, Input and Card, plus layout patterns.

    6.1k GitHub starsUsed in 8 repos~1.2k tokens
    Frontend & DesignAuto-check passed

More from LedgerHQ/ledger-live

All 51 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

Works with

Questions about Mvvm Architecture

What does Mvvm Architecture do?

Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern. Mvvm Architecture is an agent skill from LedgerHQ/ledger-live. Plan, review, and develop desktop and mobile app features following our MVVM architectural pattern.

When should I use Mvvm Architecture?

Mvvm Architecture fits situations like: tasks that involve React components.

How do I install Mvvm Architecture in Claude Code?

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

How do I install Mvvm Architecture in Codex?

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

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

What does Mvvm Architecture need to run?

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

Does Mvvm Architecture access the network?

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.

Is Mvvm Architecture 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 Mvvm Architecture use?

Mvvm Architecture 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 Mvvm Architecture use?

About 902 tokens (SKILL.md is roughly 3.6k 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 Mvvm Architecture?

Skills that share tags, products or a category with Mvvm Architecture: Frontend (redis/RedisInsight, 8.9k stars), React (valkey-io/valkey-admin, 148 stars), React Expert (Jeffallan/claude-skills, 12k stars) and Web Artifacts Builder (anthropics/skills, 180k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mvvm Architecture?

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