External Content Sanitizer

Use when about to consume content from any external/untrusted source — files from externally-cloned repos, WebSearch results, WebFetch responses, or fetched files. Identifies and neutralizes prompt-injection attempts via hybrid regex + LLM detection. Returns sanitized content plus a structured report. Maintains a persistent flagged-sources document at docs/security/flagged-sources.md that turns repeat-offender sources into automatic caution-bumps. Severity-keyed action: low and medium are removed (replaced with [REMOVED: marker]), high aborts the whole sanitization. Flagged content is never echoed back to the caller. One layer of defense in depth — combine with synthesis guard rails and user review. Hand-authored, security-critical.

bm629 Updated

File contents

bm629/agent-skills/tree/main/skills/external-content-sanitizer commit f4520bfb8b

Frequently asked questions

npx skillmds@latest add bm629/external-content-sanitizer