Plugin Testing
polyipseity/obsidian-terminal
Skill for testing Obsidian plugin features in this repository.
Write, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync).
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LedgerHQ/ledger-live cloud-sync-module --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cloud-sync-module .claude/skills/cloud-sync-module && rm -rf skills-srcUse ~/.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/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .claude/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-moduleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LedgerHQ/ledger-live cloud-sync-module --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/cloud-sync-module .agents/skills/cloud-sync-module && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .agents/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LedgerHQ/ledger-live cloud-sync-module --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/cloud-sync-module .cursor/skills/cloud-sync-module && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .cursor/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LedgerHQ/ledger-live.git --path .agents/skills/cloud-sync-module--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LedgerHQ/ledger-live cloud-sync-module --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/cloud-sync-module .gemini/skills/cloud-sync-module && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .gemini/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LedgerHQ/ledger-live cloud-sync-moduleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/cloud-sync-module .github/skills/cloud-sync-module && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .github/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LedgerHQ/ledger-live cloud-sync-module --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LedgerHQ/ledger-live.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/cloud-sync-module .opencode/skills/cloud-sync-module && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cloud-sync-module" agent skill from https://github.com/LedgerHQ/ledger-live/tree/develop/.agents/skills/cloud-sync-module into .opencode/skills/cloud-sync-module/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-sync-module", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cloud-sync-moduleWrite, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync).
Cloud Sync Module is an agent skill from LedgerHQ/ledger-live. Write, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync). Covers the contract, its invariants, the mandatory contract test, the wiring checklist and the data-loss traps. Use for any work on /cloudSyncModule.ts, createAggregator, or @shared/cloud-sync-module.
Its SKILL.md is about 2.4k 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 Testing & QA, covering Integration testing. The repository describes itself as: Mono-repository for Ledger Wallet apps and related packages. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a3861a2. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cloud Sync Module loads about 2.4k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 929 words of instructions outside code blocks.
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.
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.
The full file from LedgerHQ/ledger-live at commit a3861a2, republished under its MIT licence (© LedgerHQ). 929 words, ~2,373 tokens.
.claude/skills/cloud-sync-module/SKILL.md (or your agent's skills folder).cloudSyncModule.tsA module reconciles LocalState (what the app holds, from Redux) with DistantState (what is
stored encrypted in Cloud Sync). createAggregator composes every module into one blob shared by all
of the user's instances (LWD, LWM, web-tools).
Concepts: 05-wallet-sync-data-manager,
then 06-watch-loop for when each hook fires. Steps and a
video: cookbook. Testing
layers: test-strategy. Contract:
@shared/cloud-sync-module. Copy
account-name (simplest);
accounts for async + injected ctx;
recent-addresses for the
tolerant-list schema only — its .transform() use is a known bug (see below).
| Hook | Sync? | Runs | Must return |
|---|---|---|---|
diffLocalToDistant(local, latest) | sync | every loop tick (~10s) before push | { hasChanges, nextState } — what to push |
resolveIncrementalUpdate(local, latest, incoming) | async | on pull and every tick with incoming === latest | { hasChanges: false } or { hasChanges: true, update } |
applyUpdate(local, update) | sync | only when the above reported changes | the new LocalState (pure, no mutation) |
Live under domain/entity/<name>/src/cloudSyncModule.ts beside schema.ts + slice.ts (see
domain/entity/README.md). Type it
CloudSyncDataManager<LocalState, Update, typeof schema>, with hasChanges: false as const so the
union narrows. A 4th generic DistantState defaults to z.infer<Schema> — pass the raw wire type
explicitly if your schema transforms, since that is what the hooks actually receive.
resolveIncrementalUpdate short-circuits on incoming == null, on incoming === latest, and on
incoming being content-equal to local. The reference check alone only covers
makeLocalIncrementalUpdate, which passes one object as both args every tick; every pull hands you
a freshly decrypted one
(incrementalUpdates.ts,
makeSaveNewUpdate). Without the content check, an unchanged pull dispatches → re-renders → pushes,
forever.diffLocalToDistant(emptyLocal, null) → hasChanges: false, or every user who never touched
the feature creates Cloud Sync data on first launch.nextState yields hasChanges: false. No Date.now(),
no random ids, no unstable key order.applyUpdate cannot reproduce exactly
(recent-addresses stores lastUsed but never compares it — comparing it would loop forever).applyUpdate from an incoming state, diffing against that state reports no
changes.walletSyncState.version (exportWalletState / importWalletState, both apps). Otherwise a restart
finds the version "up-to-date", never pulls, and diffLocalToDistant(empty, latest) pushes an empty
state that deletes the data everywhere.CloudSyncSDK parses the whole aggregate on
every pull and push, so one module rejecting another version's payload stops sync for accounts,
names, everything. On the persisted path parseDistantState
(walletSyncComposition.ts) safeParses
and returns null instead — which the loop reads as "no distant state" and pushes over. Stay
permissive: optional fields, z.unknown() + safeParse-and-filter for lists, never .strict()..transform()'s output is discarded in production. Both call sites above do parse — the
transform executes — then pass the raw JSON on, to preserve unknown fields. Hooks therefore get
un-normalised data typed as the transform's output, a lie TypeScript will not catch; normalise in the
hooks instead. The contract suite won't catch it either: it only ever replays states your own
diffLocalToDistant produced (the idempotence case runs one back through schema.parse()), never
the legacy payload an older version actually wrote.nextState from scratch
(account-name, recent-addresses) is safe only while your subtree is a total function of LocalState —
once it can carry a field you don't own, apply your diff on top of latest as accounts does, or you
silently delete the other version's data. recent-addresses already violates this: it drops the
ensName its own schema declares.client-ids).resolveIncrementalUpdate runs inside the pull's atomic lock. Network
work must be batched and recoverable — see accounts' nonImportedAccountInfos + backoff queue.bindCtx(ctx) factory, as accounts does.describeCloudSyncModuleContract is mandatory, but a floor rather than a proof. It covers
invariants 1-3 and 5, JSON serialisability, a 1MB ceiling, and a 5ms average over 100 calls — for
diffLocalToDistant and applyUpdate only. It skips invariant 4 and resolveIncrementalUpdate's
cost, and wraps its convergence and applyUpdate cases in if (result.hasChanges), so a module that
always answers hasChanges: false passes them silently.
// src/__tests__/cloudSyncModule.test.ts
import { describeCloudSyncModuleContract } from "@shared/cloud-sync-module/moduleRequirements";
describeCloudSyncModuleContract("<name>SyncModule contract", <name>SyncModule, {
emptyLocalState,
nonEmptyLocalState,
matchingDistantState, // optional — always provide it, it unlocks 2 extra checks
});Then add module-specific cases:
| Target | Cover |
|---|---|
schema | valid payload · garbage/unknown entries tolerated, not thrown · fields written by a future version survive |
diffLocalToDistant | null latest · exact match · added · modified · removed · fields it must ignore (invariant 4) |
resolveIncrementalUpdate | null incoming · same reference · same content, different reference · real change · the raw payload rather than schema.parse()'s output (the only way to catch the transform trap) |
applyUpdate | expected state · does not mutate localData · is reached at all — assert hasChanges: true explicitly instead of trusting the contract suite |
Run pnpm --filter @domain/entity-<name> test; copy a sibling entity package's jest config
(testEnvironment: "node", roots: ["<rootDir>/src"]).
Registration is where the module becomes real — and where the persistence risk above lives.
walletSyncComposition.ts — add the key to
createAggregator({...}) and to the hand-maintained walletSyncSchema (they are duplicated;
miss the second and your key silently vanishes from WalletSyncDistantState).wallet.core.ts,
LWM wallet.ts: reducer,
ExportedWalletState, exportWalletState, walletStateExportShouldDiffer, importWalletState.useWatchWalletSync.ts — LWD,
LWM:
add the key to localStateSelector and dispatch it in save.AppAccountsSync.tsx — a
third full registration site (its own createAggregator, AggLocalState, localStateSelector).
It is also the only place to verify by hand, with several
web-tools tabs as separate
instances.create-changeset) and a line in
scenarios.md.© LedgerHQ, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/cloud-sync-module of LedgerHQ/ledger-live.
Open the folder on GitHubat commit a3861a2
Cloud Sync Module 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cloud Sync Module this skillLedgerHQ/ledger-live | 621 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Plugin Testingpolyipseity/obsidian-terminal | 948 | — | ~828 | Automated safety check: Pass | AGPL-3.0 | |
| Create Modulecartography-cncf/cartography | 4.1k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Td Integration Testmarcus/td | 250 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Integration E2E Testingshinpr/claude-code-workflows | 690 | — | ~3.5k | Automated safety check: Pass | MIT | |
| JS-in-HTML Testingliaohch3/claude-tap | 3.3k | — | ~924 | Automated safety check: Pass | MIT |
polyipseity/obsidian-terminal
Skill for testing Obsidian plugin features in this repository.
cartography-cncf/cartography
Author a new Cartography intel module end-to-end (entry point, sync GET/TRANSFORM/LOAD/CLEANUP, declarative data model, integration test, schema docs).
marcus/td
Write integration tests for the td-sync admin API using the TestHarness in internal/api/testharnesstest.go.
shinpr/claude-code-workflows
Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria.
liaohch3/claude-tap
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
google/crosvm
Skill to assist with running tests and managing test VMs in the crosvm repository.
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…
LedgerHQ/ledger-live
Maintain CODEOWNERS file and team directories. An agent skill from LedgerHQ/ledger-live.
LedgerHQ/ledger-live
Coin-specific families logic must live in families/. An agent skill from LedgerHQ/ledger-live.
LedgerHQ/ledger-live
Structure a Ledger Wallet data layer where one API response serves several entities.
LedgerHQ/ledger-live
Investigate native React Native crashes (Fabric/Hermes/iOS) in ledger-live-mobile when JS error logs are missing or unhelpful.
LedgerHQ/ledger-live
Detect new PII leaks introduced by the current branch. An agent skill from LedgerHQ/ledger-live.
Categories
Write, review or debug a cloudSyncModule.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync). Cloud Sync Module is an agent skill from LedgerHQ/ledger-live.ts — a CloudSyncDataManager that syncs one slice of user data through Ledger Sync (Cloud Sync).
Cloud Sync Module fits situations like: any work on /cloudSyncModule.ts; createAggregator; @shared/cloud-sync-module.
Run `npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a claude-code`. Or copy the skill folder (.agents/skills/cloud-sync-module in LedgerHQ/ledger-live) into .claude/skills/cloud-sync-module in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a codex`. Or copy the skill folder (.agents/skills/cloud-sync-module in LedgerHQ/ledger-live) into .agents/skills/cloud-sync-module in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LedgerHQ/ledger-live --skill cloud-sync-module -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloud-sync-module, .gemini/skills/cloud-sync-module, .github/skills/cloud-sync-module and .opencode/skills/cloud-sync-module in your project.
Going by SKILL.md and its folder, Cloud Sync Module needs the command-line tools its instructions call (pnpm).
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.
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.
Cloud Sync Module is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cloud Sync Module: Plugin Testing (polyipseity/obsidian-terminal, 948 stars), Create Module (cartography-cncf/cartography, 4.1k stars), Td Integration Test (marcus/td, 250 stars) and Integration E2E Testing (shinpr/claude-code-workflows, 690 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LedgerHQ (a GitHub organization) maintains it in LedgerHQ/ledger-live, which has 621 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 7, 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.