用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/LedgerHQ/ledger-live --skill test-coverage命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Place and organize Ledger Wallet code in the DDD monorepo. Use when creating, moving, or reviewing code under apps, features, domain, shared, or support; deciding which layer owns a concern; structuring packages and flow steps; or checking package names, dependency boundaries, platform variants, and legacy imports.
A new-architecture package (shared/, domain/, features/) exposes its API through barrels that contain nothing but `export *`, and keeps its private code in an internals location. Read this when creating a package under shared/, domain/ or features/, when editing any `index.*` file, or when a `lint:structure` check fails.
A new-architecture package (shared/, domain/, features/) exposes its API through barrels that contain nothing but `export *`, and keeps its private code in an internals location. Read this when creating a package under shared/, domain/ or features/, when editing any `index.*` file, or when a `lint:structure` check fails.
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-coverage |
| description | Increase test coverage to 90% on a target zone with iterative writing and refactoring |
| disable-model-invocation | true |
Increase test coverage to 90% on a target zone with iterative writing and refactoring.
$TARGET_ZONE
Directory path or Jira ticket URL for the zone to cover (e.g.,
src/mvvm/features/Accounts/orhttps://ledgerhq.atlassian.net/browse/LIVE-1234)
Follow all conventions from the testing skill (.agents/skills/testing/SKILL.md).
Delegate test execution to the test-runner subagent throughout.
$TARGET_ZONE is a Jira URL, fetch the ticket via Atlassian MCP and extract affected files.code-explorer subagent to analyze the zone: trace execution paths, map dependencies, and identify branching logic worth testing.pnpm <mobile|desktop> test:jest --coverage \
--collectCoverageFrom='<zone-glob>' \
--coverageReporters=text-summary
code-explorer analysis, build the list of files to test. Skip type definitions, barrel re-exports, and thin wrappers with no branching.Order: pure utils -> hooks -> viewModels -> components with side effects.
For each file:
test-runner. Fix failures before moving to the next file.Loop until coverage >= 90%.
Three sequential passes. After each pass, run tests via test-runner -- they must still pass before the next pass.
Pass 1 -- Audit mocks
jest.mock, jest.fn, mockReturnValue, jest.spyOn): is it asserted directly or does it enable a code path whose output is asserted?Pass 2 -- Deduplicate
__tests__/shared.ts.Pass 3 -- Prune redundant tests
it blocks testing the same branch with trivially different inputs -> merge or remove.Output a report covering: