@clawforge/validator
v0.0.1
Published
CI auto-gates for the clawforge registry.
Downloads
149
Readme
@clawforge/validator
CI auto-gates for the clawforge registry.
Usage (CLI)
clawforge-validate --registry ./registryExits 0 if no BLOCK issues, 1 if any BLOCK issue is detected, 2 on unexpected failure.
Severity legend
| Severity | Effect |
|---|---|
| BLOCK | CI must fail. Merge is prevented. |
| WARN | Logged for maintainer review. Does not block merge. |
| INFO | Advisory only. |
Checks
- Schema validation — every
entry.jsonparses against@clawforge/schema. - Duplicate detection — no two entries share
(kind, name). - File existence — every
files[].source/snippetFile/settingsPatchexists on disk. - Security scan — hook and MCP snippets are scanned for dangerous patterns (
rm -rf /,curl ... | sh, ...). Warn patterns (sudo, credential paths, shell history) flag but do not block.
CI integration example
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm --filter @clawforge/validator build
- run: node packages/validator/dist/bin.js --registry registryLicense: MIT.
