Python Rules — Development skill for Claude Code
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
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()overrange(len(...))for indexed iteration - Use f-strings for interpolation; avoid
%formatting and.format() - Prefer unpacking over indexing:
first, *rest = itemsinstead ofitems[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 RepositoryRelated Skills
Robustness Rules
Always-on robustness standards from Robust Python (Viafore). Apply when writing or reviewing Python code that
Rust Rules
Always-on Rust standards from Programming with Rust and Rust in Action. Apply when writing or reviewing Rust c
Agent Prompt Guide: Writing Effective Sub-Agent Descriptions
This guide explains how to write agent descriptions that enable Claude Code to automatically delegate tasks to
Claude Code Prompt Training
7-day bilingual (EN/CN) training course for writing effective prompts with Claude Code
Widgets Agent Skill
Agent skill for writing and reviewing Swift WidgetKit code: timeline providers, configurations, families, acce
Background Execution Agent Skill
Agent skill for writing and reviewing Swift background-execution code on Apple platforms: BGTaskScheduler, bac
Related Agents
Terraform Expert
Use this agent for all Terraform-related tasks: writing or reviewing Terraform code, debugging plan/apply erro
Hatch3r Context Rules
Context-aware rules engine that applies coding standards based on file type, location, and project conventions
Codedna Protocol Enforcer
Use this agent when writing new Python files, editing existing Python files, or reviewing recently written cod