Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
The English summary is being prepared. Showing the original description.
Write focused, deterministic, well-documented pytest tests for AI-authored code.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
I help with three pytest workflows:
Supporting files in this skill:
assets/pytest.ini.template — ready-to-copy pytest configurationscripts/analyze_coverage.sh [path] — coverage analysis helper (whole src or specific folder/module)
./.claude/skills/python-testing/scripts/analyze_coverage.sh [path]"$(git rev-parse --show-toplevel)/.claude/skills/python-testing/scripts/analyze_coverage.sh" [path]Use when you want to:
"Write tests for the slugify function in src/utils/text.py"
"Check coverage for src/services/payment.py"
"Set up pytest for this project with coverage and async support"
test_<module_or_feature>.pytest_<unit>__<behavior>__<condition>@pytest.mark.aiThree-part format:
Purpose: What this test verifies.
Why this matters: Business or technical consequence if it breaks.
Setup summary: What's arranged and what's asserted.
<domain>_fixtures.pypytest_plugins = ["tests.fixtures"] in conftest.pymocker fixture (pytest-mock)spec=True for type safety./.claude/skills/python-testing/scripts/analyze_coverage.sh — full src coverage./.claude/skills/python-testing/scripts/analyze_coverage.sh src/services — coverage for a specific folder./.claude/skills/python-testing/scripts/analyze_coverage.sh src/utils/text.py — coverage for a single filepytest-mock's mocker or hand-rolled fixturespytest.mark.asyncio or trio)scripts/analyze_coverage.sh when changes affect multiple modulesuv add --dev pytest pytest-cov pytest-asyncio pytest-mockpip install pytest pytest-cov pytest-asyncio pytest-mockassets/pytest.ini.template → pytest.ini at the project roottests/ directory with an empty __init__.py and conftest.pyNo reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
The English summary is being prepared. Showing the original description.
Tabular and numerical data analysis with descriptive statistics and insights. Use when the user provides data, tables, CSVs, or numbers and wants analysis.
The English summary is being prepared. Showing the original description.
Financial factsheet analysis with key metrics extraction and investment rationale
The English summary is being prepared. Showing the original description.
Diagnose and fix CI failures without leaving your editor.
The English summary is being prepared. Showing the original description.
Reproduce ai-repo PR checks locally with Poe and CI scripts, including per-package typecheck and coverage behavior. Use when validating changes before push or when user asks which local commands match CI.
The English summary is being prepared. Showing the original description.
Ask clarifying questions before implementing to ensure Python requirements are understood. Use when a task lacks detail, dependencies are unclear, or multiple interpretations are possible.
The English summary is being prepared. Showing the original description.