p3nchan

Prompt Shielder — AI skill for Claude Code

AI community

Integrity monitor for AI agent config files.

How to install Prompt Shielder

This entry records only its repository, not the path inside it, so there is no exact command to give. Open p3nchan/prompt-shielder and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Prompt Shielder does

Integrity monitor for AI agent config files. Detects unauthorized modifications to CLAUDE.md, system prompts, .env, and other behavior-defining files.

Alternatives in AI

  • Prompt Master — A Claude skill that writes the accurate prompts for any AI tool 4.9k ★
  • Opengap — A framework-agnostic, git-native standard for defining AI agents 2.9k ★
  • Seedance Prompt — Hermes skill for realistic AI video prompts for Seedance and text-to-video models 335 ★

README

prompt-shielder

prompt-shielder cover

Integrity monitor for AI agent config files.
Detects unauthorized modifications to behavior-defining files before your agent acts on them.

MIT License Platform Zero Dependencies


The Problem

AI agents don't just run code — their **behavior is defined by local files**. Claude Code reads `CLAUDE.md`. Codex reads `AGENTS.md`. Others use system prompts, `.env`, workflow manifests, or skill instructions.

If any of these files are silently modified, the agent is effectively hijacked. It will follow the tampered instructions without any visible signal to the user.

This is **prompt injection via config tampering** — and it's harder to detect than input-layer attacks because the poisoned instruction persists across sessions.

The Solution

`prompt-shielder` uses SHA256 baseline tracking:

  1. Initialize — record the known-good hash of each config file
  2. Verify — compare current hashes against the baseline
  3. Alert — any mismatch is immediately surfaced
================================================================
Integrity Check Summary
  Total:     5
  OK:        4
  Mismatch:  1
================================================================

INTEGRITY VIOLATION — 1 file(s) modified:
  - /home/user/project/CLAUDE.md

Recommended actions:
  1. Review the diff to understand what changed
  2. If intentional: run --update 
  3. If unintentional: treat as a security incident

Quick Start

# Download
curl -O https://raw.githubusercontent.com/p3nchan/prompt-shielder/main/prompt-shielder.