← ClaudeAtlas

trust-validationlisted

Comprehensive code quality validator enforcing TRUST 5 principles - Test-First (≥85% coverage with pytest/vitest), Readable (≤700 SLOC production files / tests no limit, ≤10 complexity), Unified (strict type checking with mypy/tsc), Secured (OWASP Top 10 implementation patterns + trivy/bandit scanning, cryptographic best practices, input validation, authorization checks, adversarial abuse-case review for IDOR/multi-tenant isolation), Trackable (complete TAG anchor chain integrity SPEC→TEST→CODE) with detailed compliance reports and remediation guidance. Use when validating quality before merging PRs, running quality gate checks, checking release readiness, validating TRUST compliance, or performing comprehensive code reviews
beomeodev/specter · ★ 0 · AI & Automation · score 70
Install: claude install-skill beomeodev/specter
# Foundation: TRUST 5 Validation ## What it does Validates code compliance with Constitution Section V (TRUST 5 Principles): - **T**est First: Coverage ≥85% - **R**eadable: File/function size limits, complexity ≤10 - **U**nified: Type safety, linter compliance - **S**ecured: No vulnerabilities, input validation - **T**rackable: Complete TAG chains (@SPEC → @TEST → @CODE) ## When to use - Before merging PR (`/ms.review`) - Quality gate checks (`/ms.analyze`) - Release validation - CI/CD pipeline execution - Manual quality audits ## How it works ### T - Test First (Coverage ≥85%) **Supported Tools**: - Python: `pytest --cov` (pytest-cov) - TypeScript/JS: Vitest or Jest with coverage - Go: `go test -cover` - Rust: `cargo tarpaulin` **Validation Command** (Python): ```bash pytest --cov=src --cov=tests --cov-report=term-missing --cov-fail-under=85 ``` **Coverage Metrics**: - Line coverage ≥85% per Constitution Section III (or the active project threshold) - Branch coverage ≥80% (RECOMMENDED) - Function coverage ≥90% (RECOMMENDED) **Quality Gates** (findings in this skill's report; blocking is decided by `/ms.review` or CI per Constitution Section IV's gate-ownership table, not by this skill): - ✅ Coverage ≥85%: PASS - ⚠️ 80% ≤ Coverage <85%: WARNING finding - ❌ Coverage <80%: FAIL finding ### R - Readable (Code Quality) **Size Constraints** (from Constitution): - Production file ≤700 SLOC (test files: no limit) - Function ≤100 LOC - Parameters ≤5 per function - Nesting