Test Quality Analysis
Helps with testing, analysis as part of testing, debugging, and quality assurance workflows.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add test-quality-analysis npx -- -y @trustedskills/test-quality-analysis
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"test-quality-analysis": {
"command": "npx",
"args": [
"-y",
"@trustedskills/test-quality-analysis"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides expert knowledge for analyzing and improving test quality within a software development workflow. It helps identify common testing problems like overmocking, fragile tests, flaky tests, and poor assertions β often referred to as βtest smells.β The skill focuses on detecting these issues and suggesting fixes to improve the correctness, reliability, maintainability, performance, coverage, and isolation of your tests.
When to use it
- When reviewing existing test suites for potential improvements.
- During code reviews to identify and address testing anti-patterns.
- To diagnose why tests are failing intermittently (flaky tests).
- When refactoring tests that break frequently with minor code changes (fragile tests).
Key capabilities
- Test Smell Detection: Identifies overmocking, fragile tests, flaky tests, and poor assertions.
- Problem Explanation: Provides descriptions of the issues caused by each test smell.
- Code Examples: Illustrates bad coding practices and suggests improved alternatives.
- Focus Areas: Guides users to focus on correctness, reliability, maintainability, performance, coverage, and isolation in their testing efforts.
Example prompts
- "Analyze this test code for potential overmocking issues: [paste test code here]"
- "Why is this test fragile? [paste test code here]"
- "How can I fix this flaky test? [paste test code here]"
Tips & gotchas
- The skill identifies "test smells," which are indicators of potential problems, not guaranteed errors. Further investigation may be needed.
- The detection threshold for overmocking is generally more than 3-4 mocks.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.