renseiai/donmai-kits/python-debugging
Claude Code and agent skill by renseiai/donmai-kits
- community
Checking that the SKILL.md file is still in the repository.
Diagnose Python import, environment, type-check, lint, collection, and test failures. Use when pytest, mypy, ruff, or module loading fails or hangs.
Install
npx vskill@latest install renseiai/donmai-kits/python-debuggingSKILL.md
The same SKILL.md was published earlier as renseiai/donmai/python-debugging.
Python Debugging
Overview
Debugging Python import errors, type-checker failures, lint failures, and test failures. Systematic diagnosis for the most common Python project failure modes.
Triggers
Use this skill when:
pytestfails, errors on collection, or hangsmypy .reports type errors that block the validate gateruff check .reports lint violationsModuleNotFoundError/ImportErrorat runtime or import time
Debugging Workflow
1. Import / Environment Errors
Common root causes:
- Wrong interpreter — confirm you're inside the project's
.venv - Dependency not installed —
uv sync/pip install -r requirements.txt ModuleNotFoundErrorfor a local package — checkpyproject.tomlpackaging
config / src/ layout vs flat layout
- Editable install missing —
pip install -e .
2. Type Errors (validate gate)
Common root causes:
- Missing type hints on public signatures
Optional[...]not narrowed before use (guard withif x is not None:)- Missing third-party stubs — install
types-*packages
3. Lint (validate gate)
Most ruff findings are auto-fixable: ruff check --fix ..
4. Test Failures
Common root causes:
- Collection errors — an import at module top-level fails (fix imports first)
- Fixture not found — check
conftest.pyscope/location - Flaky tests depending on ordering or shared mutable global state
Notes
uvlives in~/.local/bin. Ifuv: not found, prepend~/.local/binto
PATH (the installer wrote it there).
- Always operate inside a virtualenv — never install into the system Python.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkits/python/skills/python-debugging/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/renseiai/donmai-kits/python-debugging)