post-tool-use-validator
Installation
SKILL.md
Post Tool Use Validator
Validates tool outputs after execution and blocks unsupported success claims. The skill checks command status, evidence, quality gates, secret exposure, and scope compliance before an assistant says work is done.
Deterministic Contract
assets/post-tool-validation-contract.jsondefines the JSON report shape.assets/evidence-policy.jsondefines evidence requirements.assets/secret-output-policy.jsondefines unmasked secret blockers.assets/scope-validation-policy.jsondefines write-scope blockers.scripts/validate_post_tool_use_report.pyvalidates reports offline.scripts/check.shruns positive and negative fixtures.
Procedure
- Read the tool result: tool name, command, exit code, stdout/stderr excerpts, and touched paths.
- Verify that declared status matches the actual result.
- Require evidence for every pass claim.
- Block unmasked secrets, private data exposure, and writes outside scope.
- Return
pass,warn,fail, orblockedwith next action.