A filesystem integrity monitor for your agent's core configuration files. It watches SOUL.md, AGENTS.md, and other workspace files for unauthorized changes, auto-restores critical ones to their approved baseline, and generates security alerts you can wire into your heartbeat workflow. The audit log is hash-chained for tamper evidence, and it refuses to touch symlinks. Useful if you're running long-lived agents and want to catch prompt injection attempts or accidental overwrites before they cause problems. The alerting output is designed to be relayed directly to users, so you can integrate it without writing parsing logic. Requires Python 3 and assumes you're okay with automatic file restoration on drift.

skills.sh installs
257
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add prompt-security/clawsec --skill soul-guardian --agent claude-code

Installs into .claude/skills of the current project.

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: openclaw for cron integration, launchctl for macOS scheduling, bash for 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

Sponsors

Details

Repository
github.com/prompt-security/clawsec
Categories
Security, DevOps & CI/CD, AI & Agent Building
First seen
Jun 3, 2026

More from prompt-security/clawsec

All 10

Recommended

More Security
1sushegaad avatareu-crasushegaad/claude-skills-governance-risk-and-complianceExpert EU Cyber Resilience Act (CRA) advisor for Regulation (EU) 2024/2847 — mandatory cybersecurity and vulnerability handling requirements for all products wi255skills.sh installs
2connorads avatarpayload-cmsconnorads/dotfilesUse when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Triggers on tasks involving: collection240skills.sh installs
3jorgealves avatarhipaa-compliance-guardjorgealves/agent_skillsAudits HealthTech applications for HIPAA technical safeguards like encryption and audit logging. Use when reviewing healthcare infrastructure or ensuring PHI is238skills.sh installs
4huggingface avatarhugging-face-jobshuggingface/skillsThis skill should be used when users want to run any workload on Hugging Face Jobs infrastructure. Covers UV scripts, Docker-based jobs, hardware selection, cos233skills.sh installs
5sendaifun avatarzz-code-reconsendaifun/skillsDeep architectural context building for security audits. Use when conducting security reviews, building codebase understanding, mapping trust boundaries, or pre233skills.sh installs
6davila7 avatarhubspot-integrationdavila7/claude-code-templatesExpert patterns for HubSpot CRM integration including OAuth authentication, CRM objects, associations, batch operations, webhooks, and custom objects. Covers No212skills.sh installs