← スキル一覧に戻る

python
by anntnzrb
Configurations for LLM Harnesses
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: python description: "Develop Python applications using modern patterns, uv, functional-first design, and production-first practices. Activate when working with .py files, pyproject.toml, uv commands, or user mentions Python, itertools, functools, pytest, mypy, ruff, async, or functional programming patterns."
Python Development
Functional-first, production-first Python 3.14+ with uv, type safety, immutability.
Activation Triggers
- .py files, pyproject.toml, uv commands
- Python, typing, asyncio, pytest, mypy, ruff, dataclasses, itertools, functools
Workflow
1. MODEL -> types, invariants, boundaries
2. COMPOSE -> pure functions, pipelines, small modules
3. VALIDATE -> parse at edges, return errors early
4. TEST -> pytest, fixtures, async tests
5. HARDEN -> ruff + format + mypy + regression tests
Core Principles
- Functional core, imperative shell
- Immutability by default; copy-on-write
- Explicit types and error paths
- Small composable units
- Production defaults: logging, config, timeouts, retries
When to Use
- New or refactored Python modules
- Async I/O, data pipelines, CLI tooling
- Type-heavy APIs, validation, parsing
- Test strategy or flaky tests
When Not to Use
- Non-Python runtimes
- Browser E2E tests (use Playwright)
Quick Start
uv init my-project && cd my-project
uv add requests pydantic httpx
uv add --dev pytest pytest-asyncio mypy ruff
uv run python script.py
uv run pytest
Quality Gates
uv run ruff check src/
uv run ruff format --check src/
uv run mypy src/
uv run pytest
Must / Must Not
- MUST: type hints on public APIs; validate inputs at boundaries; prefer pathlib
- MUST NOT: mutable default args; bare except; mix sync/async in one call chain
Notes
Core patterns, async examples, and anti-patterns live in reference.md and the cookbooks.
Research Tools
# gh search code for real-world examples
gh search code "asyncio.TaskGroup(" --language=python
gh search code "class.*Protocol):" --language=python
gh search code "async with httpx.AsyncClient(" --language=python
References
- reference.md - Data structures, best practices, idioms, error handling
- patterns.md - Functional patterns
- async.md - Async/await deep dive
- testing.md - pytest patterns & fixtures
- design-patterns.md - Builder, DI, Factory, Strategy, Repository
- modern.md - Python 3.8-3.14 key features
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です