一键导入
python-conventions
Apply Python conventions — uv, Ruff strict, mypy strict, pytest, pip-audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply Python conventions — uv, Ruff strict, mypy strict, pytest, pip-audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate one "Implement Block X" GitHub issue per Spec Kit tasks.md PR-stack block, with a minimal body pointing at tasks.md as the source of truth.
Implement one Spec Kit `tasks.md` PR-stack block end-to-end — TDD + review + PR + CI fix loop.
Apply KISS, YAGNI, DRY, SOLID, fail-fast, be-brief on every code decision.
Five-pass review of a diff: code, security, architecture, acceptance, AI-native.
Apply Solidity conventions — Foundry only, forge fmt, solhint:all, fuzz tests.
Commit via feature branch + PR + git hooks; never push main, never merge.
| name | python-conventions |
| description | Apply Python conventions — uv, Ruff strict, mypy strict, pytest, pip-audit. |
| allowed-tools | Read, Edit, Write, Grep, Glob, Bash(uv *), Bash(uv run ruff *), Bash(uv run mypy *), Bash(uv run pytest *), Bash(uv run pip-audit *), Bash(uv run vulture *), Bash(uv run python *) |
| globs | **/*.py |
| paths | **/*.py |
If the repo doesn't define its own tooling, use:
E (pycodestyle errors), F (pyflakes), I (isort), UP (pyupgrade)B (flake8-bugbear), SIM (flake8-simplify), PTH (pathlib)PIE (flake8-pie), RUF (ruff-specific), T201 (no print)PLC0415 (import-outside-toplevel)strict = true, warn_return_any = true, warn_unused_configs = true)pytest-cov, pytest-asyncio)ALWAYS use test.py in project root for:
uv run python3 << 'EOF')Write code to test.py, then run with uv run python test.py. Comment out previous code — keeps history. Gitignored — never commit.