Soul Guardian
Drift detection and baseline restore that guards agent workspace files like SOUL.md and AGENTS.md against unapproved changes.
- CCM score
- 61 of 100
- skills.sh installs
- 258
- GitHub stars
- 1.1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers hash-based drift detection against approved baselines, with unified diffs saved for review and a per-file policy of restore, alert, or ignore
- Includes
check,watch,approve,status, andverify-auditcommands, plus an alert output format meant for relay to the user in chat - Enforces auto-restore of SOUL.md and AGENTS.md through atomic writes, refuses to operate on symlinks, and keeps a hash-chained audit log
- Designed for agent setups that run heartbeat checks in HEARTBEAT.md and need tamper alerts without network access by default
Install
$ npx -y skills add prompt-security/clawsec --skill soul-guardian -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
soul-guardian 👻
Protects your agent's core files (SOUL.md, AGENTS.md, etc.) from unauthorized changes with automatic detection, restoration, and user alerting.
Vercel Skills Installation
Install with the Vercel Skills CLI for this harness:
npx skills add prompt-security/clawsec --skill soul-guardian -a openclaw -y
Operational Notes
- Required runtime:
python3 - Optional runtime:
openclawfor cron integration,launchctlfor macOS scheduling,bashfor the demo helper - Side effects: can auto-restore protected files to their approved baseline and writes audit/quarantine state locally
- Network behavior: none by default
- Trust model: any scheduling is opt-in, but restore mode intentionally overwrites drifted files
Release Artifact Verification
For standalone installs, verify the signed release manifest before trusting SKILL.md, skill.json, or the archive. The skill.json file is the package metadata/SBOM source, and the release pipeline signs checksums.json with the ClawSec release key.
set -euo pipefail
Details
- Repository
- github.com/prompt-security/clawsec
- Categories
- Security, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the soul-guardian skill do?
soul-guardian detects drift in an agent's workspace files by comparing them to an approved sha256 baseline. For files like SOUL.md and AGENTS.md it can auto-restore the approved version and alert the user, while other files only trigger an alert.
How do I install soul-guardian?
Run npx -y skills add prompt-security/clawsec --skill soul-guardian -y in your project. After installing, it needs python3 and you initialize baselines with its init command before monitoring starts.
What does soul-guardian need to run?
It requires python3 as its runtime, with openclaw for cron integration, launchctl for macOS scheduling and bash for the demo helper listed as optional. Network access is not used by default.
Is soul-guardian safe to use on protected files?
Restore mode intentionally overwrites drifted files back to the approved baseline, so it can change your files without asking. The skill keeps a tamper-evident audit log and refuses to operate on symlinks, but it cannot prove who made a change.
Where does soul-guardian stand in the Security category?
soul-guardian is listed in the Security category on Claude Marketplaces, alongside azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one. It focuses on detecting and restoring unauthorized changes to core agent files.
More from prompt-security/clawsec
All 9Similar to Soul Guardian
More Securityagent-hooksstarchild-ai-agent/official-skills2.2K installsManage shell hooks that block, rewrite, or warn on agent actions at fixed lifecycle points.
healthtw93/waza19.4K installsAgent-assisted health audit for agent config drift, hooks/MCP, verifier coverage, and AI maintainability.
self-improving-agentzhaono1/agent-playbook36.3K installsTurns completed-work evidence into candidate, validated, or applied behavior changes with executable evals and rollback.
task-observerrebelytics/one-skill-to-rule-them-all21.7K installsTurns corrections and repeated workflows into evidenced skill updates, staged for approval before any change.