Py Code Health
Analyzes Python code for potential issues like style violations and bugs, improving readability & reducing errors.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add py-code-health npx -- -y @trustedskills/py-code-health
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"py-code-health": {
"command": "npx",
"args": [
"-y",
"@trustedskills/py-code-health"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes Python code and provides feedback on its health, identifying potential issues such as style violations, complexity hotspots, and opportunities for improvement. It helps developers maintain clean, readable, and efficient codebases by offering actionable suggestions. The tool focuses on refactoring to improve code quality without altering functionality.
When to use it
- Code Reviews: Integrate into your code review process to automatically flag potential issues before they become larger problems.
- Refactoring Projects: Use as a guide during large-scale refactoring efforts, ensuring adherence to coding standards and identifying areas for simplification.
- Onboarding New Developers: Help new team members quickly understand and adhere to existing codebase conventions.
- Legacy Codebases: Improve the maintainability of older code by systematically addressing identified issues.
Key capabilities
- Style violation detection (PEP 8)
- Complexity analysis (Cyclomatic Complexity)
- Refactoring suggestions
- Code quality assessment
Example prompts
- "Analyze this Python file for style violations and complexity: [file content]"
- "Can you suggest refactorings for this code snippet to improve readability? [code snippet]"
- "Assess the overall health of this Python module. [module content]"
Tips & gotchas
This skill requires a valid Python environment to operate correctly. The suggestions provided are recommendations and may require careful consideration before implementation, as they could potentially impact existing functionality.
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.