writing-python

Guide Python 3.14+ code with stdlib-first design and type hints.

6|1|Updated Feb 13, 2019
One-click install
npx skills add https://github.com/jenarvaezg/cunhaobot --skill writing-python-jenarvaezg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-python
Source: https://github.com/jenarvaezg/cunhaobot/tree/main/.gemini/skills
Command: npx skills add https://github.com/jenarvaezg/cunhaobot --skill writing-python-jenarvaezg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to write clean, idiomatic Python 3.14+ code, emphasizing stdlib-first solutions, strong typing, and modern tooling to reduce bugs and maintenance burden.

Core Features & Use Cases

  • Stdlib-first philosophy: Prefer Python's standard library and minimal dependencies to keep projects lightweight.
  • Type hints everywhere: Use concrete types and avoid Any to improve readability and safety.
  • Protocol-based DI: Prefer Protocols over ABCs for flexible, testable designs.
  • Flat control flow: Emphasize guard clauses and pattern matching to minimize nesting.
  • Tooling discipline: Leverage uv, ruff, and pytest for fast, reliable development and testing.

Quick Start

Create a new Python project and apply these guidelines: use stdlib-first design, add type hints, replace ABCs with Protocols, and keep code flat.