agentsclimarketplace

Python best practices

Skill The-AIOS/aios/skills/aios/python-best-practices

Python best practices across design patterns, error handling, project structure, and testing. Use when writing Python code, structuring new Python projects, designing APIs for libraries, implementing error handling, or setting up pytest test suites.From its SKILL.md

Install
npx -y skills add The-AIOS/aios --skill python-best-practices

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 24 stars24 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, as published. Nobody here has run it

Python Best Practices

Curated reference for writing production-quality Python — opinionated where it matters, undogmatic where it doesn't.

When to load which reference

Working onRead
Module layout, public APIs, package structurereferences/project-structure.md
Design patterns (KISS, SRP, composition, DI)references/design-patterns.md
Validation, exception hierarchies, partial-failure handlingreferences/error-handling.md
pytest, fixtures, mocking, parameterization, TDDreferences/testing-patterns.md

Each reference is an in-depth guide — load only the one relevant to the current task.

Core principles (all references share)

  • Explicit over implicit — type hints, named arguments, no magic.
  • Small over abstract — one function per concept, no premature inheritance.
  • Fail loud at boundaries, validate at the edge — Pydantic/dataclasses at API surfaces, raw types internally.
  • Test the behavior, not the implementation — pytest fixtures over class-based setUp, parameterize for variants.

For test-first discipline beyond Python specifics, see superpowers/test-driven-development.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.