gregoryg/aipihkal/python-dev
Claude Code and agent skill by gregoryg/aipihkal
- community
Checking that the SKILL.md file is still in the repository.
Write, review, and test Python code following PEP 8, type hints, and modern best practices (Python 3.12+). Use when writing, editing, debugging, or reviewing Python files. Enforces a mandatory verify-before-deliver rule - all written code must be tested for syntax and functionality using available shell tools before presenting to the user. Covers naming conventions, project layout, docstrings, formatting, and test authoring.
Install
npx vskill@latest install gregoryg/aipihkal/python-devSKILL.md
Python Development
Prime Directive: Verify Before You Deliver
Every piece of Python code you write or edit MUST be tested before presenting it to the user.
After writing or modifying a .py file:
- Syntax check:
python3 -c "import ast; ast.parse(open('FILE').read())"orpython3 -m py_compile FILE - Additional Code check: use
ruff checkif available - Smoke run: Execute the file or its entry point:
python3 FILE - Run tests: If tests exist, run them:
python3 -m pytest TEST_FILE -v
If any step fails, fix the code and re-test before responding. Do not present broken code and ask the user to debug it. You have shell access—use it.
Style & Conventions
- Python version: 3.12+ unless the project specifies otherwise.
- Indentation: 4 spaces (PEP 8).
- Type hints: Always. Use
str | Noneunion syntax (3.10+), notOptional[str]. - Naming:
- Modules/files:
lowercase_with_underscores - Classes:
PascalCase - Functions/variables:
snake_case - Constants:
UPPER_SNAKE_CASE - Tests:
test_*.pyfiles,test_*functions - Docstrings: Google-style, short. One-liner for trivial functions.
- Formatting: Use
blackif available (black --check FILE). Do not obsess if unavailable—PEP 8 compliance is sufficient. - Imports: stdlib → third-party → local, separated by blank lines. Prefer explicit imports over star imports.
Testing Patterns
- Prefer
pytestoverunittestunless the project already usesunittest. - Keep test functions focused: one behavior per test.
- Use fixtures for shared setup; avoid deep inheritance in test classes.
- Name tests descriptively:
test_fetch_user_returns_none_for_missing_id.
Error Handling
- Catch specific exceptions, not bare
except:. - Use
raise ... from eto preserve tracebacks. - Validate inputs early; fail fast with clear messages.
When Editing Existing Code
- Read the surrounding code first to match existing style.
- Run the project's existing test suite after changes.
- If no tests exist for the changed code, write at least one.
Security
- Security scanPassed, 100 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 repositoryCheckingskills/python-dev/SKILL.md
Popularity
- Repository stars
- 69
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months ago.
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/gregoryg/aipihkal/python-dev)