coding-guidelines-python
Installation
SKILL.md
Python Coding Guidelines
Typing
Every function has parameter types and a return type. Use from __future__ import annotations
at the top of every file. Prefer X | None over Optional[X]. Use generics
where appropriate (list[str], dict[str, int]).
from __future__ import annotations
def transform(items: list[str], limit: int) -> list[str]:
return items[:limit]
Type checking — ty
Run ty before every commit. Zero errors is the bar — never suppress
a check to make a deadline. Fix the root cause.
Related skills
More from bmsuisse/skills
autoresearch
>
15codeunit-analyzer
>
14deslop
>
14init-app-stack
Use this skill whenever the user wants to bootstrap, scaffold, or initialize a new full-stack app with a Vite + React + TanStack + shadcn/ui frontend and a FastAPI + Postgres backend. Triggers on requests like "create a new app", "set up a project", "scaffold a full-stack app", "init a new project", or anything involving starting a fresh React/FastAPI application from scratch.
12databricks-sql-autotuner
>
12databricks-cli
>
12