ワンクリックで
python-patterns
Python patterns for this repo — pure-stdlib trading core, typed dataclasses, no hidden dependencies, deterministic I/O.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Python patterns for this repo — pure-stdlib trading core, typed dataclasses, no hidden dependencies, deterministic I/O.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use the pinned external CocoIndex Code MCP workflow for broad repository routing, then prove exact candidates with rg and direct file reads.
Bound repository context reads and semantic-search output without weakening source, test, or evidence verification.
Choose staged contract tests that catch partial AI-generated fixes across models, data, risk, execution ownership, and CLI/Windows parity.
Keep concise user docs and machine-readable model evidence synchronized with real behavior without losing provenance or caveats.
Apply four anti-error coding principles plus this repository's stricter financial-evidence, safety, and single-session rules.
Research the existing implementation, tests, primary technical sources, and financial rationale before adding trading code or dependencies.
| name | python-patterns |
| description | Python patterns for this repo — pure-stdlib trading core, typed dataclasses, no hidden dependencies, deterministic I/O. |
| origin | adapted from ZMB-UZH/omero-docker-extended python-patterns (ECC v1.10.0) |
Use this skill whenever you add or refactor Python in src/simple_ai_trading/, tests/, or tools/.
Candle, ModelRow, BacktestResult, ClassificationReport, …) and regular dataclasses for config. Keep that split.api, features, model, backtest, shell, chart, style, …).RuntimeConfig.public_dict, _redact_request_url, _redact_sensitive_text). New printable surfaces that skip this are blocking bugs.data/ must use sort_keys=True and keep a stable top-level schema (command, timestamp, runtime, …). Never embed raw API keys.testnet=True, dry_run=True, conservative risk, and the BTC/ETH/SOL major-asset scope. A change that weakens any of these requires an explicit user opt-in path with a test.pyproject.toml). Run ruff format and ruff check --fix on touched files before committing.X | Y unions, list[T], dict[K, V], and from __future__ import annotations consistently.coverage --fail-under=100; an uncovered branch will break CI, not just coverage drift.config_paths() / load_runtime() each time.