# SKILL.md Security Quick Check (Free Lite)

> Free 2-second offline static tripwire for third-party SKILL.md files before install. Pure Python 3 stdlib scanner catching hidden zero-width or bidi Unicode spoofing, curl/irm pipe-to-shell commands, and prompt-injection overrides with zero code execution.

SKILL.md Security Quick Check (Free Lite) is a free AI agent skill on Agensi by Duy Lam, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Duy Lam](https://www.agensi.io/creators/duylam)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 3
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/skill-md-security-quick-check-free-lite
- Tags: security, skill-md-security, python-stdlib, zero-dependencies, claude-code, cursor, prompt-injection-check, ai-agent-security

## About this skill

**Run a 2-second offline security tripwire on any third-party `SKILL.md` before copying it into `.claude/skills/`, `.cursor/`, or Codex.**

SKILL.md Security Quick Check (Free Lite) gives you a deterministic, zero-dependency **3-layer pre-install quick check** (`SKILL.md` 3-step SOP + JSON Schema Draft 2020-12 report contract + pure Python 3 stdlib static scanner) that inspects a single `SKILL.md` file offline without ever executing code. It catches the 3 highest-signal Markdown attack vectors — **hidden zero-width/bidi Unicode spoofing (`MD_UNICODE_HIDDEN`)**, **remote pipe-to-shell commands (`MD_REMOTE_PIPE_EXEC`)**, and **instruction-override / credential-exfiltration prompt injections (`MD_PROMPT_INJECTION`)** — exiting `1` (`[BLOCKED]`) on any hit and `0` (`[PASS]`) only when clean.

WHAT'S INSIDE
- **Layer 1 — 3-Step Pre-Install SOP (`SKILL.md`):** Drop-in workflow (*Quarantine -> Run Offline Static Quick Check -> Enforce `[PASS]` / `[BLOCKED]` Hard Gate*) with rules table, CLI flags, 60-second quick-start, and an honest Free Lite vs. Pro feature comparison.
- **Layer 2 — JSON Schema Draft 2020-12 Contract (`schemas/quick_check_report.schema.json`):** Strict Draft 2020-12 schema validating `status`, `exit_code`, `file`, `sha256`, `total_findings`, `counts_by_rule`, and line-level `findings`.
- **Layer 3 — Zero-Dependency Static Scanner (`scripts/skill_md_quick_check.py`):** 100% pure Python 3 standard library. Never imports or executes target files. Supports `--file <SKILL.md>`, `--json`, and `--out-report <path>` with pure-ASCII cp1252-safe stdout.
  - `MD_UNICODE_HIDDEN`: Detects zero-width and Trojan Source bidi override code points (`U+200B`, `U+200C`, `U+200D`, `U+FEFF`, `U+202A`–`U+202E`, `U+2066`–`U+2069`).
  - `MD_REMOTE_PIPE_EXEC`: Detects `curl ... | sh/bash`, `wget ... | sh/bash`, and PowerShell `irm`/`iwr` (`Invoke-RestMethod`/`Invoke-WebRequest`) piped to `iex` (`Invoke-Expression`).
  - `MD_PROMPT_INJECTION`: Detects instruction-override and credential-exfiltration directives targeting agent prompts and workspace secrets.
- **Inert Verification Fixtures (`examples/`):**
  - `examples/sample_fail_SKILL.md`: 100% inert test file planting exactly `MD_UNICODE_HIDDEN=1`, `MD_REMOTE_PIPE_EXEC=1`, and `MD_PROMPT_INJECTION=1` (3 findings, exit `1`).
  - `examples/sample_pass_SKILL.md`: Clean offline `SKILL.md` fixture (0 findings, exit `0`).

FREE LITE VS. PRO EDITION
Free Lite is a fast single-file `SKILL.md` tripwire. When you install multi-file skill bundles that include Python or shell scripts, upgrade to **SKILL.md Supply-Chain & Prompt-Injection Auditor** ($15) — full multi-file directory scanning, the invisible Unicode Tag range, encoded PowerShell and bundled-script checks, expanded covert-action rules, and secret-path harvesting (.env, ~/.ssh, ~/.aws, ~/.kube). Explore the Pro Edition ($15) at www.agensi.io/creators/duylam.

WHO THIS IS FOR
- Developers using Claude Code, Cursor, or Codex CLI who want an instant, zero-setup static check before trusting a community `SKILL.md`.
- Teams testing offline pre-install guardrails locally or in CI before adopting full multi-file supply-chain auditing.
Prerequisites: Python 3.9+ (100% Python 3 standard library — zero `pip install`, zero external packages, 100% offline). Cross-platform: pure-ASCII terminal output tested on Windows (cp1252-safe), macOS, and Linux.

QUICK-START
python scripts/skill_md_quick_check.py --file examples/sample_fail_SKILL.md   (FAIL fixture -> exit 1)
python scripts/skill_md_quick_check.py --file examples/sample_pass_SKILL.md   (PASS fixture -> exit 0)
Add --json for a machine-readable report.

REAL TERMINAL PROOF (FAIL fixture, exit code 1)
RULE COUNTS: MD_UNICODE_HIDDEN=1 | MD_REMOTE_PIPE_EXEC=1 | MD_PROMPT_INJECTION=1. Findings: 3 total, 3 blocking. [BLOCKED] Pre-install quick check failed: 3 finding(s). Do NOT install this SKILL.md.

## Requires

- Python

## Known limitations

Scans single Markdown files only. No analysis of bundled .py or .sh scripts. Does not detect obfuscated Base64 or persistence tampering.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the SKILL.md Security Quick Check (Free Lite) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this more effective than simply asking an AI to check a file for safety?

It uses deterministic static analysis to identify hidden Unicode characters, malicious redirects, and command injection patterns that LLMs often miss or are instructed to ignore by the malicious content itself.

### Which AI agent platforms and development tools are compatible with this scanner?

The tool is a zero-dependency Python script designed to vet Markdown-based skills used in Claude Code, Cursor (.cursorrules), and Codex CLI.

### Does this tool require an internet connection or send any data to the cloud?

The scanner runs 100% offline using only the Python 3 standard library, ensuring that the file being scanned can never communicate with an external server or exfiltrate your data during the check.

### What exactly is included in the purchase of the Lite version?

You will receive the core Python security script, the Draft 2020-12 JSON schema for reporting, and documentation on how to integrate the scanner into your pre-install or CI/CD workflows.

### Are there any specific file types or security threats this Lite version does not cover?

The Lite version is optimized for single SKILL.md files; it does not perform deep AST analysis on external bundled scripts or detect complex secret-path tampering found in the Pro edition.

### Can I integrate this scanner into my team's automated CI/CD pipeline?

Yes, the tool is designed for automation; it returns standard exit codes (0 for pass, 1 for fail), making it easy to include in Git hooks or pre-install shell scripts.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
