Python Rules banner
siege-analytics siege-analytics

Python Rules

Development community

Description

--- description: Always-on Effective Python standards from Brett Slatkin. Apply when writing or reviewing Python code. --- # Effective Python Standards Apply these principles from *Effective Python* (Brett Slatkin, 3rd edition) to all Python code. ## Pythonic style - Use `enumerate()` over `range(len(...))` for indexed iteration - Use f-strings for interpolation; avoid `%` formatting and `.format()` - Prefer unpacking over indexing: `first, *rest = items` instead of `items[0]` and `items[1:]

Installation

Installs to ~/.claude/skills/siege-analytics-claude-configs-public-_python-rules/SKILL.md

Terminal
mkdir -p ~/.claude/skills/siege-analytics-claude-configs-public-_python-rules && curl -fsSL https://raw.githubusercontent.com/siege-analytics/claude-configs-public/HEAD/skills/_python-rules.md -o ~/.claude/skills/siege-analytics-claude-configs-public-_python-rules/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository