一键导入
python-quality-gates
Run and triage Python quality gates with minimal, root-cause fixes; use when validating feature work before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run and triage Python quality gates with minimal, root-cause fixes; use when validating feature work before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply project testing standards for app/tests layout, naming, dependency overrides, and route/service coverage.
Apply typed FastAPI route patterns with clean dependency boundaries, stable error mapping, and test coverage for success/failure paths.
Author review-ready implementation plans grounded in real code, with a hard single-PR size gate and decomposition into safe incremental tasks when exceeded.
Apply partitioned settings and singleton provider patterns; use when adding or refactoring settings and provider wiring.
Operate Backlog.md tasks through the backlog CLI only; use when reading, planning, executing, or finalizing any task under backlog/tasks.
Apply pluggy registration and lifespan startup patterns for package discovery, initialization ordering, and testable startup behavior.
| name | python-quality-gates |
| description | Run and triage Python quality gates with minimal, root-cause fixes; use when validating feature work before completion. |
Use this skill after each 3-5 meaningful edits and before task completion.
Run checks in this order for fastest signal:
cd app && uv run mypy . --exclude '(?:^|/)\\.venv(?:/|$)'cd app && uv run ruff check .cd app && uv run pytest tests --ignore=tests/smokeBy default, do not run app/tests/smoke/*. Run smoke tests only when explicitly requested and env vars are confirmed.
Always run from app/ and keep checks scoped to project code only (exclude virtualenv and non-project paths).
mypy first, then full sequence.ruff check, then full sequence.pytest target, then full sequence.When reporting results, use this structure: