trust-validationlisted
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