siege-analytics

Python Rules — Development skill for Claude Code

Development community

Always-on Effective Python standards from Brett Slatkin.

How to install Python Rules

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.

What Python Rules does


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:]

Alternatives in Development

  • Career-Ops For Codex — Read CLAUDE.md for all project instructions, routing, and behavioral rules 32.5k ★
  • Prompt Creater — I want you to become my Expert Prompt Creator 9.1k ★
  • Codex Claude Academic Skills — 本仓库包含三个面向学术科研人员的Skills,覆盖从文献阅读、论文写作到科学计算的完整研究工作流 3.2k ★

Full documentation available on GitHub

View Source Repository