ワンクリックで
python-expert
Python gotchas and decision criteria. Covers async pitfalls, FastAPI/Django patterns, and type hint traps.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Python gotchas and decision criteria. Covers async pitfalls, FastAPI/Django patterns, and type hint traps.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
CRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens.
5 techniques for different problem types. Use when stuck or facing complex challenges.
Structured thinking process for complex analysis. Supports revision, branching, and dynamic adjustment.
Angular 17+ gotchas and decision criteria. Covers signals vs observables, standalone patterns, and common pitfalls Claude gets wrong.
Designs RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs.
Fast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return.
| name | python-expert |
| description | Python gotchas and decision criteria. Covers async pitfalls, FastAPI/Django patterns, and type hint traps. |
| autoInvoke | false |
| priority | high |
| triggers | ["python","django","fastapi","flask"] |
| paths | ["**/*.py","pyproject.toml","requirements.txt","setup.py"] |
| allowed-tools | Read, Grep, Glob, Edit, Write |
| user-invocable | false |
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
Use Context7 for FastAPI/Django/Flask docs.
decisions[4]{choice,use_when}:
FastAPI vs Django vs Flask,"FastAPI: async APIs + auto-docs. Django: full-featured + ORM + admin. Flask: minimal/micro"
Pydantic vs dataclass,"Pydantic for validation/serialization (API boundaries). dataclass for internal structs"
SQLAlchemy vs Django ORM,"SQLAlchemy: standalone/FastAPI. Django ORM: Django projects only"
sync vs async,"async for I/O-bound (HTTP/DB). sync for CPU-bound. Don't mix blocking calls in async"
def f(items=[]) shares list across calls — use def f(items=None): items = items or []asyncio.run() creates new event loop — can't nest. Use await inside existing async contextDepends(): new instance per request by default. Use @lru_cache for singletonsselect_related (FK/OneToOne) and prefetch_related (M2M/reverse FK)isinstance(x, int) catches bool too — bool is subclass of int. Check type(x) is int if neededbeartype for runtime validationdict.get('key') returns None silently — use dict['key'] when key must existrequirements.txt vs pyproject.toml: prefer pyproject.toml (PEP 621) for modern projectswith statement for resource cleanup (files, DB connections) — never rely on __del__