| name | quality-gate |
| description | Use this skill when running quality checks on any deliverable before reporting it as complete. Trigger when: finishing a website build, completing a tenant setup, deploying any frontend, committing any code, or generating any operator-facing output. Reject anything that fails the gate. |
Quality Gate
Role
The quality gate enforces UDEC-style scoring and production standards across all Pauli Pipeline outputs. Nothing ships without passing the gate.
Checks
Build Check
bash scripts/vercel-build.sh must exit 0
- Output directory
website/_build must exist and contain at least index.html
Secret Scan
grep -RInE "(sk-|api_key|secret|token|password|BEGIN PRIVATE KEY)" . \
--exclude-dir=.git \
--exclude-dir=node_modules \
--exclude-dir=_build || true
Any match = FAIL. (Exception: .env.example placeholder values only.)
Code Quality
- No
TODO, FIXME, STUB, or lorem ipsum in any committed file
- No fake integrations (mock API responses pretending to be real)
- No half-finished implementations
Mobile Check
- At minimum, CSS must include
viewport meta tag in all HTML templates
- Responsive layout: no fixed pixel widths above 480px without a breakpoint
Accessibility Check
- All images must have
alt attributes
- All forms must have label elements
- Color contrast must meet WCAG AA (use axe-cli or pa11y if available)
Performance Check
- No blocking render scripts in
<head> without defer or async
- No unoptimized images >500KB
UDEC Scoring Heuristic
| Category | Check | Weight |
|---|
| Uniqueness | Non-generic copy, brand voice present | 20 |
| Desirability | Clear value proposition above fold | 20 |
| Effectiveness | CTA present and visible | 20 |
| Credibility | No broken links, no placeholder text | 20 |
| Total | — | 80 minimum to pass |
Output
Gate results are written to factory/audits/audit-YYYY-MM-DD.md.
Format:
## Quality Gate Audit — YYYY-MM-DD
### Build: PASS/FAIL
### Secrets: PASS/FAIL (N matches)
### Code Quality: PASS/FAIL
### Mobile: PASS/FAIL
### Accessibility: PASS/FAIL
### Performance: PASS/FAIL
### UDEC Score: N/100
### Verdict: PASS / FAIL
### Issues
- [list]
Exit code 1 if any check fails. Exit code 0 if all pass.