원클릭으로
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 직업 분류 기준
| 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__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.