Mithilesh
/install clawguard1
ClawGuard Governance Skill
ClawGuard enforces a universal audit and approval layer for any potentially destructive or high-impact change. It persists all intents to clawguard.db and automatically blocks actions when risk_level >= 4.
Tools
-
evaluate_action(action_type, justification, risk_level)- Logs the requested action to the
audit_ledgertable and returns{ allowed: boolean, message: string }. - Risk levels:
- 1 = negligible (read-only, cosmetic)
- 2 = low (single-record updates, reversible)
- 3 = medium (bulk updates, config tweaks)
- 4 = high (privileged file writes, schema changes, secrets)
- 5 = critical (system-wide deletions, irreversible ops)
- Any level
>= 4is blocked automatically—handle accordingly.
- Logs the requested action to the
-
get_audit_report(limit)- Fetches the most recent
limitrows (default 5) fromaudit_ledger, ordered by newest first.
- Fetches the most recent
Workflow
- Classify the action — Determine
action_type, craft a concisejustification, and scorerisk_level. - Call
evaluate_actionBEFORE executing any SQL statement, file mutation, or write-capable API request. (SeeGUIDANCE.md.) - Honor the result — If
allowedisfalse, stop immediately and surface the block reason. - Execute the operation only after an approved response.
- Audit as needed with
get_audit_report(limit)when preparing reports or debugging governance outcomes.
Additional Notes
audit_ledgerschema:(id INTEGER PK, action_type TEXT, justification TEXT, risk_level INTEGER, status TEXT, ts DATETIME DEFAULT CURRENT_TIMESTAMP).- The ledger is persistent; repeated approvals accumulate chronological history.
- Keep justifications specific (who/what/why) to maintain a high-quality audit trail.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clawguard1 - After installation, invoke the skill by name or use
/clawguard1 - Provide required inputs per the skill's parameter spec and get structured output
What is Mithilesh?
ClawGuard governance layer that must run before any SQL, file-system, or API write. Use evaluate_action(action_type, justification, risk_level) to log/author... It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.
How do I install Mithilesh?
Run "/install clawguard1" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Mithilesh free?
Yes, Mithilesh is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Mithilesh support?
Mithilesh is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mithilesh?
It is built and maintained by mithileshgau (@mithileshgau); the current version is v1.0.0.