Validator Agent
by @up2itnow
Validates project pre-deployment by running comprehensive security, testing, quality, documentation, CI/CD, privacy, maintainability, usability, marketabilit...
clawhub install validator-agentπ About This Skill
Validator Agent
Multi-round automated validation pipeline for TypeScript/Solidity projects. Runs 8 rounds of checks before any publish or deploy: compile gate, lint, test suite, security audit, type coverage, docs, changelog, and final review.
The gold standard β catches what manual review misses. Originally built to validate the agent-wallet-sdk before every npm publish. Now available as a reusable skill for any project.
When to Use
npm publish β run the full 8-round validationQuick Start
Run the Validator Agent on skills/agent-nexus-2/agent-wallet-sdk
Or trigger specific rounds:
Run Validator Agent round 0 (compile gate) on projects/mastra-plugin
The 8 Rounds
Round 0 β Compile Gate (BLOCKING)
cd && npx tsc --noEmit 2>&1
If this fails, ALL subsequent rounds are BLOCKED. Nothing proceeds until compile is clean. This was added after a Feb 20 incident where broken types were published to npm.Round 1 β Lint
cd && npm run lint 2>&1 | tail -20
Check for lint errors. Warnings are noted but don't block. Errors block.Round 2 β Test Suite
cd && npm test 2>&1
Capture: total tests, passing, failing, skipped. Compare against baseline in ops/test-baselines.md if it exists. Any test count drop = regression = BLOCK.Round 3 β Security Audit
cd && npm audit 2>&1 | tail -15
Round 4 β Type Coverage
cd && npx type-coverage 2>&1 || echo "type-coverage not installed β skip"
If available, report percentage. Target: >95%. Below 90% = WARN.Round 5 β Documentation Check
README.md exist and reference current version?CHANGELOG.md have an entry for the version being published?Round 6 β Changelog Verification
package.json version fieldCHANGELOG.md β does it have an entry matching that version?Round 7 β Final Review Summary
Aggregate all rounds into a single verdict:# Validator Agent Report β [project] β [timestamp]Verdict: [β
PASS / β οΈ WARN / π¨ BLOCK]
| Round | Check | Result |
|-------|-------|--------|
| 0 | Compile | β
/β |
| 1 | Lint | β
/β οΈ/β |
| 2 | Tests | β
X/X passing / β regression |
| 3 | Security | β
/β οΈ/π¨ |
| 4 | Type Coverage | β
X% / β οΈ / skipped |
| 5 | Docs | β
/β οΈ |
| 6 | Changelog | β
/β |
| 7 | Summary | [verdict] |
Blocking Issues
[list or "None"]Warnings
[list or "None"]Recommendation
[PUBLISH / FIX FIRST / DO NOT PUBLISH]
Save report to: ops/reports/validator-YYYY-MM-DD-HH-[project].md
Configuration
The skill auto-detects project type from:
package.json β TypeScript/Node projectfoundry.toml β Solidity/Forge projectFor Solidity projects, Round 0 uses forge build instead of tsc, Round 2 uses forge test, and Round 3 uses forge audit (if slither is available).
Authority
β‘ When to Use
π‘ Examples
Run the Validator Agent on skills/agent-nexus-2/agent-wallet-sdk
Or trigger specific rounds:
Run Validator Agent round 0 (compile gate) on projects/mastra-plugin
βοΈ Configuration
The skill auto-detects project type from:
package.json β TypeScript/Node projectfoundry.toml β Solidity/Forge projectFor Solidity projects, Round 0 uses forge build instead of tsc, Round 2 uses forge test, and Round 3 uses forge audit (if slither is available).