跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/laurigates/claude-plugins/code-test-quality

Claude Code code-test-quality skill: Find weak test assertions

Review tests for missing assertions, overly broad checks, flaky timing, and uncovered behavior. The skill reports concrete findings tied to the test files.

中文

Install in Claude Code

Use local Claude Code in a shell with find available. Source inspection works on test files alone. Running the suite requires the project's test tooling.

  1. Download the repository snapshot at the linked commit. Copy the entire code-quality-plugin/skills/code-test-quality/ directory into .claude/skills/code-test-quality/ in your practice project.
  2. Confirm that SKILL.md is directly inside .claude/skills/code-test-quality/. Open Claude Code from the project root and enter /code-test-quality tests --focus smells.

Example task

In tests/cart.test.ts, write a test that checks total([3, 5]) only with toBeTruthy(). Run /code-test-quality tests --focus smells and ask which assertion should change.

What to check

The report points to the truthiness assertion and recommends checking that the returned total is exactly 8.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

Why use this skill if the test suite already passes?

A passing suite only confirms that its current assertions passed. This review checks whether those assertions would detect wrong results and missed edge cases.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯