Python best practices

From HoangNguyen0403/agent-skills-standard · View interactive version

Python best practices is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Write maintainable Python with small functions, explicit boundaries, guard clauses, and readable state flow. Use when refactoring Python services, helpers, modules, or async logic for clarity—not generic test writing, tooling setup, or database transaction implementation.

How to use this skill

Skill file

Python Best Practices

**Priority: P1 (HIGH)**

Rules

Recipe

  1. Split orchestration from transformation.
  2. Extract repeated shape cleanup into one helper.
  3. Keep side effects at edges and pure decisions in the middle.
  4. Use fakes in tests instead of patching deep internal chains when possible.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.