用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Marshall-Hallenbeck/dot_files --skill run-quality-gate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | run-quality-gate |
| description | Run full quality gate: linting, type checks, unit tests, and integration tests — all in parallel. |
| disable-model-invocation | false |
Runs the full verification pipeline for high-confidence changes. All gates run in parallel via background agents for maximum speed.
The gate commands below assume a Python-backend (uv, src/, tests/) plus frontend/ (Jest + Playwright) layout. Before running, detect the actual project and skip or adapt any gate that does not apply:
uv.lock → drop the uv run prefix (use plain pytest/ruff/pyright, or the project's package manager).frontend/ dir → skip Gates 3, 5, 6 (TypeScript, Jest, Playwright).src/ → substitute the real path; detect the test runner via the same table /run-unit-tests uses.test:e2e:safe script → skip Gate 6.Run only the gates that match the project. A gate skipped because its tooling is absent is a PASS, not a failure.
/run-quality-gate
IMPORTANT: Run all 6 gates in parallel as background agents in a single message. Do not run them sequentially. Each gate is independent — spawn all 6 agents at once and wait for results.
# Auto-detect: if project has uv.lock, use uv run
uv run ruff check --fix src/ tests/ && uv run ruff format src/ tests/
# If ruff --fix made changes, stage them
Agent prompt: "Run ruff check --fix and ruff format on src/ and tests/. Stage any auto-fixed files. Report errors that couldn't be auto-fixed."
uv run pyright src/
Agent prompt: "Run pyright on src/. Report all type errors with file:line locations."
cd frontend && npx tsc --noEmit
Agent prompt: "Run tsc --noEmit in the frontend/ directory. Report all type errors."
uv run pytest tests/ -q
Agent prompt: "Run the full pytest suite. Report pass/fail counts and any failures with tracebacks."
cd frontend && npx jest --no-coverage
Agent prompt: "Run the full Jest test suite in frontend/. Report pass/fail counts and any failures."
cd frontend && npm run test:e2e:safe
This runs playwright test --grep-invert @mutation (read-only, skips mutation tests).
Agent prompt: "Run Playwright E2E tests via npm run test:e2e:safe in frontend/. Report pass/fail counts and any failures."
eslint-disable / @ts-ignore / @ts-expect-error, no .skip / .only, no skipping failing suites. Fix the underlying cause. If a lint rule is genuinely wrong for this codebase, change the lint config deliberately and say so — don't suppress inline.## Quality Gate Results
| Gate | Result | Details |
|------|--------|---------|
| Ruff lint/format | PASS/FAIL | N errors |
| Pyright | PASS/FAIL | N errors |
| TypeScript | PASS/FAIL | N errors |
| Pytest | PASS/FAIL | N passed, N failed |
| Jest | PASS/FAIL | N passed, N failed |
| Playwright E2E | PASS/FAIL | N passed, N failed |
| **Final verdict** | **PASS/FAIL** | |