/everything-claude-code:test-coveragefrom everything-claude-code
Analyzes test coverage, identifies gaps, and generates missing tests to reach 80%+ coverage. Detects the test framework, parses coverage reports, and creates tests for uncovered files.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /everything-claude-code:test-coverage still runs it.
分析测试覆盖率(Test Coverage),识别覆盖缺口,并补全缺失的测试以达到 80% 以上的覆盖率。
| 指标 (Indicator) | 覆盖率命令 (Coverage Command) |
|---|---|
jest.config.* 或 package.json 中的 jest | npx jest --coverage --coverageReporters=json-summary |
vitest.config.* | npx vitest run --coverage |
pytest.ini / pyproject.toml 中的 pytest | pytest --cov=src --cov-report=json |
Cargo.toml | cargo llvm-cov --json |
包含 JaCoCo 的 pom.xml | mvn test jacoco:report |
go.mod | go test -coverprofile=coverage.out ./... |
针对每个覆盖不足的文件,按以下优先级生成测试:
foo.ts → foo.test.ts(或遵循项目惯例)test_create_user_with_duplicate_email_returns_409显示前后对比:
Coverage Report
──────────────────────────────
File Before After
src/services/auth.ts 45% 88%
src/utils/validation.ts 32% 82%
──────────────────────────────
Overall: 67% 84% ✅
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
35 commands in this plugin
/build-fix构建与修复 (Build and Fix)通过最小化、安全的改动,逐步修复构建(Build)和类型(Type)错误。/checkpoint检查点(Checkpoint)指令在工作流(Workflow)中创建或验证检查点。/clawClaw 命令启动 NanoClaw 智能体 (Agent) REPL — 一个由 claude CLI 驱动的持久化、会话感知 (session-aware) 的 AI 助手。/code-review代码审查 (Code Review)对未提交的更改进行全面的安全和质量审查:/e2eE2E 命令使用 Playwright 生成并运行端到端测试。创建测试旅程、运行测试、捕获截图/视频/追踪,并上传产物。/eval评测命令(Eval Command)管理评测驱动开发(eval-driven development)工作流。npx claudepluginhub xu-xiang/everything-claude-code-zh --plugin everything-claude-codeOther plugins' commands for the same job