/test-coverage
分析测试覆盖率并生成缺失的测试:
$ npx -y skills add zhukunpenglinyutong/ai-max --agent claude-code
Command definition
test-coverage.md测试覆盖率
分析测试覆盖率并生成缺失的测试:
1. 运行带覆盖率的测试:npm test --coverage 或 pnpm test --coverage
2. 分析覆盖率报告(coverage/coverage-summary.json)
3. 识别低于 80% 覆盖率阈值的文件
4. 对于每个覆盖不足的文件:
- 分析未测试的代码路径
- 为函数生成单元测试
- 为 API 生成集成测试
- 为关键流程生成 E2E 测试
5. 验证新测试通过
6. 显示覆盖率变化前后的指标
7. 确保项目达到 80% 以上的总体覆盖率
重点关注:
- 正常路径场景
- 错误处理
- 边界情况(null、undefined、空值)
- 边界条件
这是基于 everything-claude-code 进行二次开发,提供npm一键安装方式,协议沿用MIT Claude Code 增强配置,开箱即用。 本仓库包含生产级 agents(代理)、skills(技能)、hooks(钩子)、commands(命令)、rules(规则)和 MCP 配置,帮助你快速提升 Claude Code 的使用体验。
Other commands on ai-max.
e2e
Command使用 Playwright 生成并运行端到端测试。创建测试流程,运行测试,捕获截图/视频/追踪记录,并上传测试产物。
More commands from other plugins.
devbox-entrypoint
CommandContext: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because…
a11y-audit
CommandScan a frontend project for WCAG 2.2 accessibility violations and fix them. Usage: /a11y-audit [path]
c
CommandShortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

