Agent skill

Python Best Practices

by Taoidle in Taoidle/plan-cascade

Python coding best practices. An agent skill from Taoidle/plan-cascade.

MITAuto-check passedDevelopment

Install Python Best Practices

skills CLI
$ npx skills add Taoidle/plan-cascade --skill python-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Taoidle/plan-cascade python-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Taoidle/plan-cascade.git skills-src && mkdir -p .claude/skills && cp -r skills-src/builtin-skills/python .claude/skills/python-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-best-practices
GitHub stars
133
Token cost
~463 tokens
SKILL.md length
100 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Python coding best practices. An agent skill from Taoidle/plan-cascade.

  • Reviewing Python code
  • SKILL.md covers Code Style, Type Hints, Error Handling and Project Structure, plus 3 more sections
  • Calls ruff
  • Tasks that involve Type safety

What it does

Python Best Practices is an agent skill from Taoidle/plan-cascade. Python coding best practices. Use when writing or reviewing Python code. Covers type hints, error handling, and common patterns.

Its SKILL.md is about 460 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Type safety and Linting and formatting. It works with Python and Ruff. The repository describes itself as: AI-powered cascading development framework. Decompose complex projects into parallel executable tasks with auto-generated PRDs, design docs, and multi-agent collaboration (Claude… The licence is MIT.

When your agent uses it

  • Reviewing Python code
  • Tasks that involve Type safety
  • Tasks that involve Linting and formatting

Example prompts

  • “/python-best-practices”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 5223f82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ruff

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python Best Practices loads about 463 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 100 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~463

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Taoidle/plan-cascade at commit 5223f82, republished under its MIT licence (© Taoidle). 100 words, ~463 tokens.

Download SKILL.mdSave it as .claude/skills/python-best-practices/SKILL.md (or your agent's skills folder).
name
python-best-practices
description
Python coding best practices. Use when writing or reviewing Python code. Covers type hints, error handling, and common patterns.
license
MIT
metadata.author
plan-cascade
metadata.version
1.0.0

Python Best Practices

Code Style

RuleGuideline
Formatterruff format or black
Linterruff check with strict rules
Type hintsAlways for public APIs
DocstringsGoogle or NumPy style

Type Hints

python
def process(items: list[str], max_count: int = 10) -> dict[str, int]: ...
def find_user(user_id: int) -> User | None: ...

Error Handling

RuleGuideline
Specific exceptionsNever bare except:
Context managersUse with for resources
Early returnValidate inputs, fail fast
python
# Good
try:
    result = process(data)
except ValidationError as e:
    logger.warning(f"Validation failed: {e}")
    return default

Project Structure

src/package_name/
├── __init__.py
├── core/
└── py.typed
tests/
├── conftest.py
└── test_*.py
pyproject.toml

Common Patterns

PatternUsage
@dataclassData containers
@propertyComputed attributes
GeneratorsMemory-efficient iteration
functools.cacheMemoization

Anti-Patterns

AvoidUse Instead
Mutable default argsNone default, create inside
import *Explicit imports
Global stateDependency injection
python
# Bad: def add(item, items=[]): ...
# Good:
def add(item, items=None):
    items = items or []
    items.append(item)
    return items

Tools

ToolPurpose
pytestTesting
ruffLinting + formatting
mypyType checking
uvDependencies

© Taoidle, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in builtin-skills/python of Taoidle/plan-cascade.

Open the folder on GitHubat commit 5223f82

Compare with similar skills

Python Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Best Practices this skillTaoidle/plan-cascade133—~463Automated safety check: PassMIT
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence
Update Dependenciesalorence/django-modern-rpc111—~1.3kAutomated safety check: PassMIT
Ha Code QualityFutureTense/keymaster349—~462Automated safety check: PassMIT
Adk Stylegoogle/adk-python22k—~769Automated safety check: PassApache-2.0

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated today
    DevelopmentAuto-check passed
  • Update Dependencies

    alorence/django-modern-rpc

    Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.

    111 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Ha Code Quality

    FutureTense/keymaster

    Standards and commands for linting, code formatting, typing validation (Ruff, MyPy, Codespell, ESLint, Pre-commit/Prek, Tox), and adherence to Home Assistant Python 3.14 standards in Keymaster.

    349 GitHub stars~462 tokensUpdated today
    DevelopmentAuto-check passed
  • Adk Style

    google/adk-python

    Official

    Python style and codebase conventions for ADK (Agent Development Kit): private-by-default file visibility, imports, type hints, Pydantic v2 models, formatting, docstrings, logging, async I/O, file…

    22k GitHub stars~769 tokensUpdated today
    DevelopmentAuto-check passed
  • Cb Code Quality

    BlkLeg/CircuitBreaker

    Circuit Breaker code conventions and the quality gates that actually block a push — ruff, mypy, eslint, the pytest coverage ratchet, and the make verify tiers.

    201 GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from Taoidle/plan-cascade

  • Go Best Practices

    Taoidle/plan-cascade

    Go coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~541 tokensUpdated 6 mo ago
    Auto-check passed
  • Hybrid Ralph

    Taoidle/plan-cascade

    Hybrid architecture combining Ralph's PRD format with Planning-with-Files' structured approach.

    133 GitHub stars~4.1k tokensUpdated 6 mo ago
    Auto-check: notes
  • Java Best Practices

    Taoidle/plan-cascade

    Java coding best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~519 tokensUpdated 6 mo ago
    Auto-check passed
  • Mega Plan

    Taoidle/plan-cascade

    Project-level multi-task orchestration system. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~3.4k tokensUpdated 6 mo ago
    Auto-check: notes
  • Typescript Best Practices

    Taoidle/plan-cascade

    TypeScript/Node.js best practices. An agent skill from Taoidle/plan-cascade.

    133 GitHub stars~534 tokensUpdated 6 mo ago
    Auto-check passed

Works with

Categories

Questions about Python Best Practices

What does Python Best Practices do?

Python coding best practices. An agent skill from Taoidle/plan-cascade. Python Best Practices is an agent skill from Taoidle/plan-cascade. Python coding best practices.

When should I use Python Best Practices?

Python Best Practices fits situations like: reviewing Python code; tasks that involve Type safety; tasks that involve Linting and formatting.

How do I install Python Best Practices in Claude Code?

Run `npx skills add Taoidle/plan-cascade --skill python-best-practices -a claude-code`. Or copy the skill folder (builtin-skills/python in Taoidle/plan-cascade) into .claude/skills/python-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Python Best Practices in Codex?

Run `npx skills add Taoidle/plan-cascade --skill python-best-practices -a codex`. Or copy the skill folder (builtin-skills/python in Taoidle/plan-cascade) into .agents/skills/python-best-practices in your project. Codex loads it when a task matches its description.

Can I use Python Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Taoidle/plan-cascade --skill python-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-best-practices, .gemini/skills/python-best-practices, .github/skills/python-best-practices and .opencode/skills/python-best-practices in your project.

What does Python Best Practices need to run?

Going by SKILL.md and its folder, Python Best Practices needs the command-line tools its instructions call (ruff). Our summary lists: Python 3.

Does Python Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Python Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Python Best Practices use?

Python Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python Best Practices use?

About 463 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Python Best Practices?

Skills that share tags, products or a category with Python Best Practices: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Kedro Babysit (kedro-org/kedro, 11k stars), Update Dependencies (alorence/django-modern-rpc, 111 stars) and Ha Code Quality (FutureTense/keymaster, 349 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Best Practices?

Taoidle (a GitHub user) maintains it in Taoidle/plan-cascade, which has 133 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on March 14, 2026.

Source: Taoidle/plan-cascade on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.