| name | meta-pre-commit-quality-gate |
| description | Run three quality gates (ruff + mypy + pytest) in parallel over the staged diff, then arbitrate a single BLOCK/APPROVE verdict. Use before committing changes locally when you want a comprehensive pre-commit gate beyond per-file linting — exactly the same gate set CI enforces. |
| kind | meta |
| meta_priority | 70 |
| always | false |
| triggers | ["pre-commit quality gate","pre-commit 质量门","提交前质量检查"] |
| provenance | {"origin":"opensquilla-original","license":"Apache-2.0"} |
| metadata | {"opensquilla":{"risk":"high","capabilities":["subprocess","filesystem-read","filesystem-write"]}} |
| composition | {"steps":[{"id":"collect_staged","kind":"skill_exec","skill":"git-diff","with":"[Truncated]"},{"id":"run_ruff","kind":"agent","skill":"sub-agent","depends_on":"[Truncated]","with":"[Truncated]"},{"id":"run_mypy","kind":"agent","skill":"sub-agent","depends_on":"[Truncated]","with":"[Truncated]"},{"id":"run_pytest","kind":"agent","skill":"sub-agent","depends_on":"[Truncated]","with":"[Truncated]"},{"id":"arbitrate","kind":"agent","skill":"sub-agent","depends_on":"[Truncated]","with":"[Truncated]"},{"id":"persist","kind":"tool_call","tool":"memory_save","tool_allowlist":"[Truncated]","depends_on":"[Truncated]","tool_args":"[Truncated]"}]} |
Pre-Commit Quality Gate (Meta-Skill)
A combinator-style meta-skill that runs three independent quality
gates in parallel over the currently-staged diff, then arbitrates a
single ship-readiness verdict.
Trigger surface
Fire by saying pre-commit quality gate or one of the localized triggers
listed in the frontmatter. The skill is also designed to be invoked from a git
pre-commit hook via the soft path (meta_invoke), but hook installation is a
separate manual step.
Fallback
If the orchestrator fails (sub-Agent error, timeout, etc.), the
caller should manually run, in order: uv run ruff check src tests,
uv run mypy src/openstarry_code --show-error-codes, then
uv run pytest -q. The same three commands are the CI quality gate
in .github/workflows/ci.yml.