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 (1,257 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).

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 1,257 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.01257
Opus 5 $0.00030 $0.00629
Sonnet 5 $0.00012 $0.00251
Haiku 4.5 $0.00006 $0.00126

Measured 10d ago against content hash 842f24de3573, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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 · 120 lines

How it starts

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

Swap E2E Skill

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
    • e2e/desktop/tests/page/drawer/swap.confirmation.drawer.ts
  • 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

Platform model

  • Desktop:
    • Electron can expose multiple windows (main app + one or more webviews).
    • Resolve swap webview via WebViewAppPage.getWebView() using webviewIdentifier title matching, not fixed electronApp.windows()[N] indexes.
    • SwapPage methods usually receive electronApp.
    • SwapConfirmationDrawer methods act on the main window.
  • Mobile:
    • Webview operations use Detox web helpers.
    • Native operations use regular Detox matchers.

Implementation rules

  • Keep selectors centralized in page objects, not inline in specs.
  • Keep test IDs as class properties in page objects (avoid repeated string literals in methods).
  • Do not define reusable workflow methods in spec files. Put them in page objects (for atomic UI actions) or shared utils (for multi-step flows).
  • Remove dead methods/fields quickly; do not keep unused helpers.
  • Keep single-use constants local to the narrowest scope that uses them.
  • Reuse existing provider helper selectSpecificProvider(...) before adding new variants.
  • Prefer runtime UI assertions over cross-repo filesystem assertions.
  • Prefer if/else in @Step methods over early return branches for readability and reporting consistency.
  • When replacing all occurrences in strings, prefer replaceAll() over regex-based replace() where equivalent.
  • Avoid unnecessary non-null assertions (!); prefer type-safe narrowing/guards.
  • For fragile swap amounts, fetch minimum dynamically with:
    • app.swap.getMinimumAmount(...) (desktop)
    • app.swapLiveApp.getMinimumAmount(...) (mobile)

Read the full file on GitHub · 120 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. 10d 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 (617 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,257 once invoked, about $0.0003 per session on Opus 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

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 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

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 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-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens