agentleFS
jasveerai88jasveerai88/preflight-agent/SKILL.md

SKILL.md

Skill2 starsChanged 23 days agoMITView on GitHub

Scan an AI-agent setup before it runs. Use it whenever a task involves opening, installing, or trusting a folder that carries agent configuration — a cloned repo with .claude/, an MCP config someone handed you, a settings file whose hooks you rely on for safety, a folder of agent definitions, a skills tree — when the question is "what is already wrong with this setup, before anything executes?" It is the merged suite of five static auditors (clone-guard, secret-guard, hook-doctor,…

  • Installs packages

200 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use crypto-intelligence, heart 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.
  • Arcanea-LabsSkill

    crypto-intelligence

    Vertical-tier skill for Crypto Intelligence Domain Sub-Stack. Auto-activates inside verticals/crypto-intelligence/ or on /crypto-* commands. Enforces R5 non-advisory clause, voice (architect), refusal patterns, composition with Wealth IS umbrella per Board 2026-05-17. Loads verticals/crypto-intelligence/SKILL.md wrapper for full doctrine.

    Also in 3 projects that use this

  • Arcanea-LabsSkill

    heart

    Ops health monitor for the machine substrate. Checks Memory Bus, brain_watchdog, Voice Operator, dashboard, audit-log freshness, and scheduled tasks. Cross-cutting skill that any repo can invoke when daemons feel off or before starting a heavy work session.

    Also in 3 projects that use this

  • +10 more from Arcanea-Labs
  • Other versions200 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 200

    1. xtekky/gpt4free★ 67ksame name
    2. stas00/ml-engineering★ 20ksame name
    3. wanghongenpin/proxypin★ 15ksame name
    4. Ataraxy-Labs/sem★ 3.5ksame name
    5. op7418/NanoBanana-PPT-Skills★ 3.3ksame name
    6. charmbracelet/pop★ 2.9ksame name
    7. duty1g/x64dbg-mcp-server★ 2.9ksame name
    8. RevylAI/greenlight★ 2.4ksame name
    9. kevinho/clawfeed★ 2.4ksame name
    10. Autumn-27/ScopeSentry★ 1.9ksame name

    190 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Files
SKILL.md

preflight-agent — agent skill

Scan an AI-agent setup before it runs. Use it whenever a task involves opening, installing, or trusting a folder that carries agent configuration — a cloned repo with .claude/, an MCP config someone handed you, a settings file whose hooks you rely on for safety, a folder of agent definitions, a skills tree — when the question is "what is already wrong with this setup, before anything executes?"

It is the merged suite of five static auditors (clone-guard, secret-guard, hook-doctor, fleet-audit, skill-sprawl), each also runnable on its own. All read-only, local, stdlib-only; no scan executes, imports, or installs anything in the target.

The commands

preflight-agent scan DIR [--home DIR] [--json]
preflight-agent clone-guard DIR [--json]
preflight-agent secret-guard scan FILE... [--json]
preflight-agent secret-guard fix FILE... [--apply] [--json]
preflight-agent hook-doctor audit SETTINGS [--home DIR] [--json]
preflight-agent fleet-audit audit FOLDER [--json]
preflight-agent skill-sprawl audit FOLDER [--json]

(Install with pipx install preflight-agent; from a source checkout, prefix with python3 src/preflight_agent.py. Suite version 1.0.2 — each module still reports its own source-tool version, v0.1.0, inside its sections and JSON.)

  • scan is the one-shot preflight: all five modules over one setup folder, one combined receipt. Target discovery per module is documented in README.md — most importantly, a module with nothing to audit reports skipped with a reason, never clean.
  • Exit codes everywhere: 0 clean, 1 findings, 2 usage/input error. In --json mode every error — including argument errors — is one JSON object with an error key. Never a traceback.
  • Read-only scanning. The single exception is secret-guard fix --apply: it writes only the files it is handed, after a dry run by default, keeping a timestamped backup of each changed file. scan never invokes it.

What each module decides

ModuleVerdict vocabularyClean means
clone-guardAUTO-RUN / INSTALL-TIME / PRESENT / UNPARSEABLE per surfacenone of the checked auto-execution surfaces (Claude/VS Code/devcontainer configs, npm install scripts, direnv, git/husky hooks) were found
secret-guardINLINE-SECRET / ENV-LITERAL / UNPARSEABLE per fileno secret-named key holds a literal and no env block holds a secret-shaped literal, in the files checked
hook-doctorERROR / WARNING / INFO per hookno hook is dead as configured: matchers can fire, guards can block, command paths exist
fleet-auditERROR / WARNING / INFO per agentno name duplicates, no description collisions at the stated thresholds, grants match the promised job shape
skill-sprawlERROR / WARNING / INFO per skillno cross-scope duplicates or collisions, no oversized bodies, the discovery listing fits the stated budget

JSON contract

One object per command. Module commands emit exactly the object their standalone tool emits (tool, version, command, the module's own sections, clean). scan emits one object: tool: "preflight-agent", command: "scan", dir, home, modules (a per-module section — the module's own object plus its exit_code; skipped modules carry status: "skipped", a reason, and clean: null), summary (modules run / skipped / clean / with findings), and the combined clean.

Limits (the honest list)

  • Static evidence only. clone-guard reports surfaces that would execute, not what the code does once running; a CLEAN scan is never a safety guarantee.
  • secret-guard checks JSON configs it can parse; values under ordinary key names outside env blocks, and TOML/YAML configs, are out of its scope — and a secret that was ever committed stays leaked after moving it: rotate it.
  • hook-doctor judges hooks against a static rule table; it never runs a hook, so runtime behaviour (a script that exists but misbehaves) is invisible to it.
  • fleet-audit / skill-sprawl similarity is a token-set Jaccard heuristic at stated thresholds (collision 0.50, near-identical 0.90, short-description floor 40 chars, discovery budget 16,000 listing chars) — a reported figure, not a platform guarantee.
  • scan's discovery is a convention, stated in the README: it audits the settings/config/agents/skills locations it looks for. A setup that keeps those elsewhere needs the module commands pointed at the real paths directly.
  • Pinning a module means accepting its limits: each module's own report prints the full list for its checks, and those texts govern over this summary.

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.