Py Test Quality
CheckedAnalyzes Python code using pytest to identify bugs, test coverage gaps, and style violations for improved quality.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add l-mb/python-refactoring-skills --skill py-test-quality -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
l-mb
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned l-mb/python-refactoring-skills at b08357109f.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- b08357109f
- Manifest
- skills/py-test-quality/SKILL.md
- Scanned
- 1 file, 302 lines
About this skill
What it does
The py-test-quality skill allows AI agents to execute pytest test suites and report on code quality. It can identify failing tests, analyze coverage reports, and provide insights into potential bugs or areas for improvement in Python codebases. This skill helps ensure that refactored code maintains its functionality and meets established quality standards.
When to use it
- Automated Testing: After a code refactoring task is completed, run the test suite to verify changes haven't introduced regressions.
- Coverage Analysis: Determine how much of your codebase is covered by existing tests.
- Bug Identification: Quickly pinpoint and report failing tests after modifications or during debugging.
- Quality Gatekeeping: Integrate into a CI/CD pipeline to prevent low-quality code from being merged.
Key capabilities
- Executes pytest test suites.
- Generates coverage reports.
- Identifies and reports on failing tests.
- Provides insights based on test results.
Example prompts
- "Run the pytest suite for this Python file."
- "Generate a code coverage report after running the tests."
- "Show me any failing tests in the current codebase."
Tips & gotchas
- Requires a working
pytestinstallation within the environment. - The agent needs access to the project's test suite configuration files (e.g.,
pytest.ini,setup.cfg).