python-patterns
Pythonic イディオム、PEP 8標準、型ヒント、堅牢で効率的かつ保守可能なPythonアプリケーションを構築するためのベストプラクティス。
Content Preview
---
name: python-patterns
description: Pythonic イディオム、PEP 8標準、型ヒント、堅牢で効率的かつ保守可能なPythonアプリケーションを構築するためのベストプラクティス。
---
# Python開発パターン
堅牢で効率的かつ保守可能なアプリケーションを構築するための慣用的なPythonパターンとベストプラクティス。
## いつ有効化するか
- 新しいPythonコードを書くとき
- Pythonコードをレビューするとき
- 既存のPythonコードをリファクタリングするとき
- Pythonパッケージ/モジュールを設計するとき
## 核となる原則
### 1. 可読性が重要
Pythonは可読性を優先します。コードは明白で理解しやすいものであるべきです。
```python
# Good: Clear and readable
def get_active_users(users: list[User]) -> list[User]:
"""Return only active users from theHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/python-patterns.md \
https://raw.githubusercontent.com/affaan-m/everything-claude-code/main/docs/ja-JP/skills/python-patterns/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/affaan-m/everything-claude-codeThen reference at docs/ja-JP/skills/python-patterns/SKILL.md
Related Skills
python-patterns
Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.
developmentpython
by sickn33 (Antigravity) · antigravity-awesome-skills
async-python-patterns
Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.
developmentasyncpython
by sickn33 (Antigravity) · antigravity-awesome-skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
mcp-buildermcpbuilderpython
by Anthropic · anthropic-official-skills
using-tmux-for-interactive-commands
Use when you need to run interactive CLI tools (vim, git rebase -i, Python REPL, etc.) that require real-time input/output - provides tmux-based approach for controlling interactive sessions through detached sessions and send-keys
using-tmux-for-interactive-commandsusingtmuxfor
by Jesse Vincent · obra-superpowers-lab