# Skill Safety Pre-Scanner — Read It Before It Reads You

> Installing a skill means running a stranger's code and obeying a stranger's instructions. This scanner reads the package — dangerous commands, credential grabs, exfiltration, persistence hooks, prompt-injection wording — and gives a verdict with file-and-line evidence: SAFE, CAUTION, or DANGEROUS.

Skill Safety Pre-Scanner — Read It Before It Reads You is a paid AI agent skill pack (several skills in one listing) on Agensi by 程向阳, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [程向阳](https://www.agensi.io/creators/creator-1452)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/skill-safety-pre-scanner-read-it-before-it-reads-you
- Tags: security, node-js, static-analysis, devops, prompt-engineering

## About this skill

Your agent installs skills the way you install apps — except skills are raw code plus raw instructions, with your shell, your files, and your API keys in reach. The malicious ones are not subtle once somebody reads them: a `curl | bash` in the setup script, a quiet read of your `.env`, an SSH key posted to a "telemetry" endpoint, a line in the SKILL.md telling the agent *not to tell you*. Nobody reads them. That's the gap this tool closes.

**Skill Safety Pre-Scanner** statically scans a skill package — a directory, or a `.zip` parsed in memory and never extracted or executed — against **45 published rules in 6 categories**:

- **Dangerous commands** — pipe-to-shell downloads, broad `rm -rf`, disk destruction, PowerShell download-and-execute, fork bombs, history wiping, npm install hooks that run before you've seen a single file.
- **Credential access** — `.env` reads, `~/.ssh` and private keys, AWS/git/npm credential stores, browser login databases, secrets pasted into URL query strings — and the combo that matters most: one file that touches credentials *and* talks to the network.
- **Network egress** — raw-IP endpoints, webhook and bot exfil channels, plain-http calls, hosts nobody's heard of.
- **Obfuscation** — `eval`, `Function` constructors, base64 blobs, escape-sequence soup: the places static review can't see into, flagged instead of forgiven.
- **Persistence & privilege** — cron, systemd, scheduled tasks, registry Run keys, LaunchAgents, shell-rc appends, `sudo`, `chmod 777`, setuid.
- **Prompt injection** — the package's own prose, in English and Chinese: "ignore previous instructions", "do not tell the user", system-prompt extraction, bypass-the-review wording.

**The output is evidence, not a vibe.** `report.md` opens with the verdict — SAFE, CAUTION, or DANGEROUS — then lists every finding with its rule, file, line number, and the offending text. `summary.json` carries the same for machines. The exit code mirrors the verdict (0/1/2), so an install script can refuse a DANGEROUS package automatically.

**Prove it on the fixtures before you trust it.** The package ships three samples: a clean CSV tool (verdict: SAFE, zero findings), a grey price checker with one raw-IP call (CAUTION, exactly one finding), and a deliberately malicious "productivity booster" that pipes `curl` into `bash`, reads `.env` and an SSH key, and posts them out (DANGEROUS — every plant caught by name). Run all three in demo mode, free, no key.

**Fully offline, zero dependencies.** One Node.js program (Node 22+, standard library only). The target is never executed, never extracted, never phoned home about. Demo mode scans the bundled samples; a license key unlocks any directory or zip.

**Honest limits:** static rules can be phrased around, and SAFE means "no rule fired", not "proven safe". This is a triage instrument that turns an hour of cold reading into five minutes of checking flagged lines — which is the difference between reading the skill and not reading it.

## Requires

- Node.js
- security
- scanner
- skill-safety
- supply-chain
- prompt-injection
- static-analysis
- agent-safety
- offline
- audit

## Known limitations

Scans text files up to 1 MiB only. Static analysis cannot detect runtime-loaded code or follow highly complex obfuscation. Verdicts signify rule-matches, not mathematical proof of safety.

## 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 Safety Pre-Scanner — Read It Before It Reads You skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the skill-safety-prescanner protect my local environment compared to just reading the code?

This scanner acts as a security gate that performs static analysis on third-party code before you run or install it, protecting your filesystem, environment variables, and private credentials from malicious intent.

### Which AI agent frameworks or marketplaces is this scanner compatible with?

The scanner is framework-agnostic and works with any AI agent skill written in text-based formats (like JavaScript, Python, or YAML) as long as you have Node.js 22+ installed to run the utility.

### What exactly is included in the purchase of this skill package?

You will receive the full source code for the scanner utility, a suite of 45 deterministic security rules, and documentation for integrating the tool into your terminal or CI/CD pipelines.

### Does the scanner need to execute the code or extract files to perform its analysis?

No, the scanner uses in-memory parsing and static analysis, meaning it examines the code structure without ever executing the script or extracting the zip file onto your active filesystem.

### How long does a typical scan take, and what kind of output should I expect?

The scanner is designed to be lightweight and fast; it typically generates a full 'report.md' and provides an exit code (0 for safe, 2 for dangerous) in under a few seconds for standard skill packages.

### Are there any specific types of threats or code that the scanner might miss?

While it detects common obfuscation patterns and malicious command strings, it cannot follow dynamically loaded remote code; we recommend using it as a primary defense layer alongside standard security best practices.

---

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.
