bp-python
Python ベストプラクティス。Python コードの品質を保つための規約とレビュー観点(Python 3.14+)。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Python ベストプラクティス。Python コードの品質を保つための規約とレビュー観点(Python 3.14+)。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Writes a blameless incident postmortem for the s4rCiv project in Japanese, grounded in the real timeline, commits, and logs (never speculation). Use when the user says "ポストモーテム書いて" / "障害報告書いて" / "事後検証" / "incident report" / "RCA" / "根本原因", or after an incident, outage, data-integrity scare, or a committed bug fix worth a durable record. Authoring only — no deploy.
Go ベストプラクティス。Go コードの品質を保つための規約とパターン集。
Rust ベストプラクティス。Rust コードの品質を保つための規約とパターン集(Edition 2024)。
Svelte 5 & SvelteKit ベストプラクティス。Svelte 5 Runes ベースのコンポーネント設計規約。
TypeScript ベストプラクティス。型安全性とコード品質を保つための規約。
Clean Architecture layer patterns (Handler → Usecase → Port → Gateway → Driver), mapped to s4rCiv's adapter model and observation/interpretation plane separation. Use when implementing or reviewing layered backend code (source adapters, normalizer, read models, CQRS).
| name | bp-python |
| description | Python ベストプラクティス。Python コードの品質を保つための規約とレビュー観点(Python 3.14+)。 |
このスキルが発動したら、docs/best_practices/python.md を Read ツールで読み込み、
記載されたベストプラクティス(DECREE)に従ってコードを書き、レビューすること。
Any は境界最小限。uv run pyrefly check . 通過必須(型チェッカは Pyrefly を採用、mypy は使わない)except: / except Exception: 禁止。raise DomainError("action") from err で原因チェーン保持E,W,F,B,UP,SIM,N,I,ANN,S,PTH,C4,BLE,ASYNC,TRY,RUF,PL。手動スタイル議論禁止@dataclass(frozen=True, slots=True)。生 dict を引き回さないwith / async with で確実に close。async 並行は asyncio.TaskGroup / async with。裸 open() 禁止APIRouter() はテスト分離を壊す → importlib.reload() で毎テスト再構築完全なベストプラクティスは docs/best_practices/python.md を参照。
セクション: Project Structure, Type Hints & Static Analysis, Error Handling, Clean Architecture, Pydantic & Dataclass, Async Patterns, Resource Management, Logging, Testing, Tooling, Security