eric-sabe/engsys/python-conventions
Claude Code and agent skill by eric-sabe/engsys
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Python 3.12+ coding conventions (uv, ruff, pyright/ty strict typing, Pydantic v2, async I/O, and pytest). Use when writing, reviewing, or editing any *.py file or pyproject.toml.
Install
npx vskill@latest install eric-sabe/engsys/python-conventionsSKILL.md
The same SKILL.md was published earlier as eric-sabe/engsys/python-conventions.
Python Coding Conventions (Python 3.12+ / 2026 Tooling)
Applies to: any *.py file and pyproject.toml in this repository. Target runtime: Python 3.12+.
Naturalize: confirm the virtualenv location (.venv/), package manager (uv), type checker (pyright/ty/mypy), and test runner (pytest) inCLAUDE.md.
Tooling & Environment (uv + ruff + Typecheck)
- Environment & dependency management: Use
uv(uv sync,uv run pytest,uv lock) with the project's.venv/. Never install packages into the system Python. - Formatting & linting: Run
ruff checkandruff format --check(4-space indentation, PEP 8 top-level imports — never placeimportstatements inside function bodies unless breaking a documented circular import). - Static type checking: Run
pyrightorty(ormypy --strict) before committing.
Type Annotations & Data Validation
- Modern builtin generics (PEP 585 / PEP 604 / PEP 695): Use
list[str],dict[str, Any],int | None, andtype Alias = ...— never legacytyping.List,typing.Dict, ortyping.Optional. - Boundary validation with Pydantic v2: Validate external payloads, config, and LLM/API schemas with
pydantic.BaseModel(model_validate,model_dump,ConfigDict(extra="forbid", frozen=True)).
Async I/O & Concurrency
- Use
async def/awaitend-to-end on async request paths; never block the event loop with synchronous file, network (requests), or database calls. - Use async-native clients:
httpx.AsyncClientfor HTTP,pymongo.AsyncMongoClientfor MongoDB (never EOLmotor), andasyncpg/sqlalchemy.ext.asynciofor Postgres. - Use
asyncio.TaskGroupfor structured fan-out andasyncio.Lockto guard shared in-memory caches against stampedes.
Testing (pytest)
- Write deterministic unit and integration tests using
pytestandpytest-asyncio(uv run pytest). - Cover nominal paths, boundary values (
0, negative, empty collections,None), and validation rejection (pytest.raises(ValidationError)).
Review Checklist
- [ ] All imports at module top level (PEP 8) and sorted by
ruff - [ ] Parameter and return types annotated using Python 3.12+ builtin syntax (
list[T],X | None) - [ ] External inputs validated via Pydantic v2 models (
model_validate,ConfigDict) - [ ] Async paths use non-blocking drivers (
httpx.AsyncClient,pymongo.AsyncMongoClient) - [ ]
uv run ruff check, typecheck, anduv run pytestpass cleanly
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingstacks/lang/python/skills/python-conventions/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/eric-sabe/engsys/python-conventions)