Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-skill

A minimal Agent Skill for Claude Code (and compatible runtimes) — just the essential best practices, no bloat. It sets an opinionated default stack for Python work: uv, ruff, pyright, pydantic v2, httpx2, structlog, pytest — plus naming rules, fail-loud error handling, and testing discipline.

Might be a good skill that makes your life better. Might not. Hard to tell.

The skill triggers automatically whenever the agent writes or reviews Python code, starts a Python project, edits pyproject.toml, or configures linting/typing/testing. The stack applies only to greenfield projects — existing projects keep their current stack while still using the stack-agnostic naming, error-handling, async, and testing guidance.

What's inside

  • Stack table — one tool per concern, and a "don't use → use instead" mapping (pip → uv, black/flake8 → ruff ...)
  • Layout & commandssrc/ layout, local vs CI command sets, ruff + pyright baseline config
  • Naming — verb+noun functions, predicate booleans, banned vague words (data, utils, manager, …)
  • Rules — type hints everywhere, pydantic at boundaries, no mutable defaults, exception chaining
  • Fail loud — no swallowed exceptions, no fake fallback data, typed errors at entry points

Keeping it minimal is deliberate: skills work best when they stay small — best practices only, not an exhaustive manual.

Install

Easiest — the skills CLI (works for Claude Code, Codex, Cursor and other agents):

globally, for all projects:

npx skills add akmalovaa/python-skill -g

into the current project:

npx skills add akmalovaa/python-skill

Or manually for Claude Code (personal skill, all projects):

git clone https://github.com/akmalovaa/python-skill ~/.claude/skills/python-skill

Or copy just the file:

mkdir -p ~/.claude/skills/python-skill
curl -fsSL -o ~/.claude/skills/python-skill/SKILL.md \
  https://raw.githubusercontent.com/akmalovaa/python-skill/main/SKILL.md

For a single project, put it in <project>/.claude/skills/python-skill/ instead. Other runtimes that follow the Agent Skills spec (Codex, Copilot CLI, Gemini CLI) also read ~/.agents/skills/.

References

Used while creating this skill - Anthropic — Skill Creator

Useful Python skills & projects

A collection of community skills and projects found while researching this one:

  • wondelai/skillsclean-code / code-craftsmanship bundle: intention-revealing naming (classes are nouns, methods are verbs), function discipline, refactoring patterns, 0–10 code scoring. Language-agnostic; Python specifics live in the reference files.
  • wdm0006/python-skills — 14 focused Python skills (ruff/mypy config, CLI development, packaging, security audit, testing strategy) with clean progressive disclosure. Great fit for scripts, libraries, and SRE tooling.
  • manikosto/claude-code-python-stack — the densest backend coverage: fastapi-patterns, sqlalchemy-patterns, pydantic-patterns, celery-patterns, docker-patterns and 15 more. Cherry-pick the ones your stack uses; note it has no naming rules.
  • Jeffallan/claude-skills — 66 expert personas (python-pro, fastapi-expert, sre-engineer, kubernetes-specialist). Useful as a second opinion rather than a rule set.
  • obra/superpowers — process skills (brainstorming, TDD, systematic debugging, skill testing with subagents). Covers how to work, not what code to write — complements stack skills like this one without overlap.
  • affaan-m/ECC — 300+ skills in a full harness. Don't install wholesale (it rewrites your whole setup); extract individual skills. Its coding-standards is TypeScript-only.

Catalogs for finding more:

License

MIT

About

An opinionated Claude Code Agent Skill for modern greenfield Python projects: uv, Ruff, Pydantic, httpx2, structlog

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors