ledger-live: Skill for Claude Code

.agents/skills/e2e-swap/SKILL.md

e2e-swap is a skill for Claude Code, Codex from LedgerHQ/ledger-live. It costs 61 tokens per session (854 once invoked), scanned A, original, MIT.

A testing guide for checking swap flows in Ledger Live Desktop and Mobile apps using automated browser and device tests.

In plain words
What is it for?
Use it to write or update swap tests, check swap history, test provider flows and approval steps, and clean up related test code.
Why use it?
It helps keep swap tests organized and reliable when the flow has multiple steps, approvals, validations, or changing page objects.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is LedgerHQ/ledger-live's own configuration. It tells Claude Code and Codex how to work on ledger-live itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ledger-live configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/LedgerHQ/ledger-live/develop/.agents/skills/e2e-swap/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/LedgerHQ/ledger-live

Made for: Claude Code, Codex.

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

agentmods badge for e2e-swap

README.md
[![agentmods](https://agentmods.dev/badge/skills/ledgerhq/ledger-live/e2e-swap/github.svg)](https://agentmods.dev/skills/ledgerhq/ledger-live/e2e-swap)
Your own site
<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/e2e-swap"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/e2e-swap/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.

agentmods 80×15 button for e2e-swap

Your own site · 80×15
<a href="https://agentmods.dev/skills/ledgerhq/ledger-live/e2e-swap"><img src="https://agentmods.dev/badge/skills/ledgerhq/ledger-live/e2e-swap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00854
Opus 5.5 $0.00024 $0.00342
Sonnet 5.5 $0.00012 $0.00171
Haiku 4.5 $0.00006 $0.00085

Measured 14d ago against content hash 3602a216422b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

e2e-swap 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 14d ago.

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.

.agents/skills/e2e-swap/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swap E2E Skill

Writing rules: when editing desktop, follow Desktop E2E. When editing mobile, follow Mobile E2E.

Use this skill when

  • Updating swap tests in e2e/desktop or e2e/mobile.
  • Refactoring swap page objects or moving reusable flow logic out of specs.
  • Fixing PR review comments about dead code, selector ownership, brittle amounts, or multi-step approval assertions.

Current source of truth

  • Desktop specs: e2e/desktop/tests/specs/*swap*.spec.ts
  • Desktop swap shared utils: e2e/desktop/tests/utils/swapUtils.ts
  • Desktop page objects:
    • e2e/desktop/tests/page/swap.page.ts — swap webview.
    • e2e/desktop/tests/page/drawer/swap.confirmation.drawer.ts — main window.
  • Mobile builders/specs:
    • e2e/mobile/specs/swap/otherTestCases/swap.other.ts
    • e2e/mobile/specs/swap/**/*.spec.ts
  • Mobile page objects:
    • e2e/mobile/page/liveApps/swapLiveApp.ts
    • e2e/mobile/page/trade/swap.page.ts

Swap rules

  • Reuse selectSpecificProvider(...) before adding a new provider helper.
  • Assert what the UI shows. Do not assert swap state by reading another repo on disk.
  • Fragile amounts come from the provider minimum, not a hardcoded value:
    • app.swap.getMinimumAmount(...) (desktop)
    • app.swapLiveApp.getMinimumAmount(...) (mobile)

Desktop API

Quote selection takes a SwapProvider. SwapProvider.CHANGELLY is disabled.

  • performSwapUntilQuoteSelectionStep({ app, swap, minAmount })
  • app.swap.selectSpecificProvider(provider)
  • await app.swap.getAmountToSend() only when a later assertion needs the amount

selectSpecificProvider and getAmountToSend do not take electronApp.

Do not reintroduce removed helpers:

  • checkBannerVisibility(...)
  • verifyContinueButtonVisible() on the desktop swap page
  • selectProviderQuoteWithRetry(...) in swap utils

Mobile API

Quote selection uses the provider UI name:

  • performSwapUntilQuoteSelectionStep(...)
  • app.swapLiveApp.selectSpecificProvider(provider.uiName)
  • await app.swapLiveApp.getAmountToSend() only when a later assertion needs the amount

Read the full file on GitHub · 79 lines

Changes

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.

  1. 14d ago Changed · -41 lines 3602a216422b
  2. 2mo ago First seen · 120 lines · 61 tokens per session scan A 842f24de3573

Subscribe to this mod's changes

e2e-swap is a skill published in the GitHub repository LedgerHQ/ledger-live (624 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 854 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-08-30.

Related

Other skills, from other repositories

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

test-loop

Plan, generate, and heal an executable E2E test suite from approved acceptance criteria (web and mobile).

HoangNguyen0403/agent-skills-standard · 25 tokens

playwright-verifier

Internal helper: re-run targeted scans to confirm a fix works at runtime.

Community-Access/accessibility-agents · 20 tokens