| name | quality-gate |
| description | Run all pre-commit quality checks in sequence: TypeScript, ruff, mypy, i18n coverage, static analysis, and security tests. |
Quality Gate Skill
Runs the full openZero pre-commit check suite. Each step must pass before proceeding.
Steps
Run these commands in order. Stop and report on first failure:
-
TypeScript type check:
cd src/dashboard && npx tsc --noEmit
-
Python lint (ruff):
ruff check src/backend/
-
Python type check (mypy):
mypy src/backend/app/ --ignore-missing-imports
-
i18n key parity:
pytest tests/test_i18n_coverage.py -v
-
Static analysis:
pytest tests/test_static_analysis.py -v
-
Security tests:
pytest tests/test_security_prompt_injection.py -v
Reporting
After all steps complete, provide a summary:
- PASS: all 6 checks passed.
- FAIL: list which checks failed with error excerpts.
You can also run the bundled script directly:
bash .github/skills/quality-gate/scripts/run-quality-gate.sh