Install
openclaw skills install @debtvc2022/skill-policy-enforcerUse when checking an agent Skill against a local or enterprise policy before installation, publication, CI approval, marketplace review, or repository merge.
openclaw skills install @debtvc2022/skill-policy-enforcerEnforce a caller-supplied policy over an agent Skill folder. Use it when a team needs repeatable pass/fail checks instead of a one-off security review.
Run with a policy file:
python <this-skill>/scripts/enforce_skill_policy.py <skill-folder> --policy policy.yaml --markdown
Run without --policy to apply the default conservative policy. Use --json for CI.
references/policy-schema.md if the policy shape is unclear.scripts/enforce_skill_policy.py.deny findings as blocking and warn findings as review items.The default policy checks:
SKILL.md word count.env, .ssh, and private keys--json output is available, base final status on the machine result.| Mistake | Fix |
|---|---|
| Treating policy as advice | Deny findings block install or release. |
Auditing only SKILL.md | Policy applies to every file under the skill folder. |
| Hardcoding one company's rules | Put local rules in policy.yaml. |
| Missing hidden files | Scan dotfiles and nested resource folders too. |
End with one of:
PASS: no deny findings.PASS_WITH_WARNINGS: warnings remain.FAIL: at least one deny finding.