Back to list
kpeez

python-code

by kpeez

Framework for doing spec-based work with agents

0🍴 0📅 Jan 22, 2026

SKILL.md


name: python-code description: Python coding conventions, tooling, and style guide. Auto-loads when writing or reviewing Python code.

Python Conventions

Follow these conventions when working on Python code.

Tooling

TaskCommand
Install depsuv sync
Run scriptuv run <script>.py
Add depuv add <package>
Remove depuv remove <package>
Lintuv run ruff check (add --fix only when asked)
Type checkuv run ty check
Testuv run pytest

Use uv for everything. Do not use pip/venv/poetry directly.

Style

  • Write Pythonic code; choose the simplest construct that expresses intent
  • Functional for stateless transforms; dataclasses for cohesive state/config
  • Use Pydantic (or TypedDict + validators) for validating external data
  • Prefer composition over inheritance; keep class hierarchies shallow
  • Apply DRY and YAGNI before adding a class
  • Use lower_snake_case for files/dirs (e.g., routers/user_routes.py)

Testing

  • Mirror source layout under tests/
  • Keep fixtures minimal; prefer factory helpers over deep fixture chains
  • Run before handoff: uv run ruff check && uv run ty check && uv run pytest

Dependencies

  • Minimize new deps; justify every addition
  • Prefer stdlib first, then existing project deps
  • Use uv add/uv remove to manage deps—don't edit pyproject.toml by hand
  • Remove dead deps when noticed

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon