agentleFS
skr-electronics-labskr-electronics-lab/skill-audit/SKILL.md

skill-audit

Skill0 starsChanged 59 days agoMITView on GitHub

Static safety scan for untrusted agent skills BEFORE install/load. Use when user wants to try a skill from Instagram, random GitHub, or any URL. Reads files only, never executes target scripts. Reports PASS/WARN/BLOCK for prompt injection, curl-pipe-sh malware, credential theft, obfuscation, and risky writes.

  • Reads credentials
  • Deletes or force-pushes
  • Installs packages

69 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use genie-hacks, workfly and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • automagik-devSkill

    genie-hacks

    Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.

    Also in 3 projects that use this

  • automagik-devSkill

    workfly

    Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.

    Also in 3 projects that use this

  • Ingramradical235Skill

    root-cause

    Structured root cause analysis using WHERE (MECE decomposition) then WHY (causal structure diagrams) pipeline. Includes coin-flip detection, logical-leap detection, and vicious cycle intervention. Use when buffer enters YELLOW/RED, when metrics stall, or when Actions execute but don't produce results.

    Also in 3 projects that use this

  • AlexPEClubSkill

    refine

    Always use when the user wants to discuss an exsiting feature or specification. Open an existing feature spec to improve, extend, or fundamentally challenge it. Pass the feature ID as argument (e.g. /refine PROJ-2).

    Also in 3 projects that use this

  • vbrevikSkill

    work

    Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.

    Also in 3 projects that use this

  • MicrosoftSkill

    merge

    Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.

    Also in 3 projects that use this

  • +4 more from automagik-dev

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Network: every https://|curl|fetch\(|npx degit|pip install|npm install -g listed.

    line 30

“Common” is measured: kept by at least 6 in 10 of the 61 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Audit

Scan an untrusted skill without installing it. Read-only. Never executes target code, never loads it into context.

When to use

User pastes a skill URL / zip / folder from social media, marketplace, or unknown author and asks to install or try it.

Workflow (never skip order)

  1. Fetch first (fast fail): fetch SKILL.md raw from URL, scan for injection. If BLOCK → stop, don't clone.
  2. Clone to temp (full scan): git clone --depth 1 <url>@<sha> C:\Temp\untrusted-skill — still no exec, no copy to skills dir.
  3. Scan: python scripts/audit.py C:\Temp\untrusted-skill (or audit.py <github-url> for fetch-only preview).
  4. Only then install: cp -r C:\Temp\untrusted-skill <skills-dir>/ if verdict is SAFE or WARN-reviewed.

Installing = copying into ~/.config/opencode/skills/ or running skill load. Scanning ≠ installing.

What it checks

  • Injection: ignore previous|disregard.*instructions|bypass.*approval|disable.*safe|do not ask.*confirm|exfiltrate <!-- audit:allow -->
  • Malware exec: curl.*\|.*sh|wget.*\|.*sh|Invoke-Expression|IEX|eval\(|shell=True|rm -rf /|del .*C:\\Windows <!-- audit:allow -->
  • Cred theft: CLOUDFLARE_API_TOKEN|B2_APPLICATION_KEY|AWS_SECRET|OPENAI_API_KEY|~/.ssh|~/.aws|*b2_account_info* sent to unknown host <!-- audit:allow -->
  • Obfuscation: base64 -d, single line >2000 chars, \x.. blobs, minified >100KB <!-- audit:allow -->
  • Network: every https://|curl|fetch\(|npx degit|pip install|npm install -g listed; allowlist is api.cloudflare.com, raw.githubusercontent.com/<pinned-sha>, registry.npmjs.org <!-- audit:allow -->
  • Writes: writeFileSync|mkdir|chmod +x — WARN if outside project dir, FAIL if ~/.ssh, startup folders <!-- audit:allow -->

Output

SKILL.md: PASS
scripts/x.sh: WARN (fetch github.com/org/repo + cleanup /tmp/... - confirm source pinned @sha)
Verdict: SAFE / REVIEW / BLOCK

Rules for this skill itself

  • This skill never runs target scripts, never pip/npm installs target deps, never sets target env vars.
  • audit.py is stdlib-only (no requests, no shell). Verify in 30 sec before use.
  • Pin audits: audit.py <url>@<sha>. Re-audit on update — repos move.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.