Skip to content
Back to skills

Security Guard

ASecurity

Screens text for prompt injection and Python sources for dangerous calls (eval, exec, subprocess).

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythonrustbashsecurity

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill security-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Guard?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-security-guard/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-security-guard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-guard
version: 1.4.0
description: >
  Screens text for prompt injection and Python sources for dangerous calls
  (eval, exec, subprocess).
metadata:
  version: 1.4.0
  author: Jiaming Shi
  license: MIT
  entry_point: python run.py
  python_requires: '>=3.10'
---

# security-guard

Flags known injection markers and dangerous call sites so a later stage can
refuse the input. It reports risk; it cannot prove a file is safe.

- **Stage:** `infrastructure` · **Sandbox:** no · **Dependencies:** stdlib only

## Quick Execution

Run this exact form — do not read the source tree:

```bash
python run.py --root <WS> --action gate --input draft.md --mode auto
```

- `--mode {text,source,auto}` picks the scanner; `auto` decides from the file.
- `--json` emits the raw report.
- **A screen, not a sandbox**: never describe a pass as "safe", and never
  rewrite the screened file — report the marker and its line.
- The gate lands in `<WS>/process/gates/security-guard_<ts>.json`.

## When to use

- Untrusted text is about to enter the pipeline.
- A Python file must be checked for dangerous calls before it runs.

## When NOT to use

- You need containment — that is the sandbox, not this skill.
- The input is already trusted, first-party data.

## More

- [actions, outputs, failure handling and limits](references/security-guard-reference.md)

Files in this skill

  • LICENSE1 KB
  • README.md1.3 KB
  • SKILL.md1.9 KB
  • manifest.json474 B
  • run.py2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.