/test-quality:test-genfrom test-quality
Generate tests for a specified module using project conventions. Use this skill when the user asks to "write tests for", "generate tests", "add test coverage", "test this module", or any request to create new test files following the project's existing patterns, fixtures, and assertion style. Optionally generates an eval suite if the eval-framework plugin is installed.
Ships in test-quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate tests for the module or file specified by the user. Steps:
tests/.test-knowledge.json exists, apply its patterns and conventionspytest.mark.parametrize for variant testing where appropriateFollow the project's test conventions strictly. Place the test file in the correct directory following existing patterns.
Present the generated tests for review before writing them.
If the eval-framework plugin is installed, you may also generate an eval suite for agent skills or pipeline components (not just unit tests).
To generate an eval suite, ask: "Also generate an eval suite" or "include evals".
An eval suite differs from unit tests:
assert result == expected)score >= threshold)When generating an eval suite (evals/<module>_eval.py):
score_output() helper to evaluate model responsesEval suite template (requires eval-framework plugin):
# evals/<module>_eval.py
from eval_framework import EvalCase, score_output
EVAL_CASES = [
EvalCase(
name="<scenario name>",
input="<scenario input>",
criteria=["<criterion 1>", "<criterion 2>"],
threshold=0.8,
),
# ... more cases
]
Only generate eval suites for skills, agents, or pipeline components -- not for pure utility functions (use unit tests for those).
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/test-auditFull audit of test suite quality including coverage gaps, brittle patterns, and assertion quality. Use this skill when the user asks to "audit tests", "review test quality", "find test gaps", "are my tests good enough", or any request to assess the overall health and completeness of the project's test suite./test-learnExtract testing lessons from bug fixes and update the knowledge base. Use this skill when the user asks to "learn from this bug", "extract a testing lesson", "update test knowledge", "what should we test for this", or after completing a bug fix to capture reusable test patterns that prevent similar regressions.Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job