Skills, plugins, and hooks make coding agents more useful — and they're instructions your AI follows and code it runs, installed from the internet. Malicious ones are already in the wild. Preflight is the pre-flight checklist: see what your agent carries, scan it for what actually hurts, and choose what to install — before you trust it.
Skills, plugins and hooks make coding agents more useful. A skill can teach Claude Code how
your team reviews a pull request. A plugin can bundle that skill with other tools. A hook
can run a formatter after every edit. And when a teammate shares a working
.claude/settings.json, copying it is often the fastest way to get started.
Over time, those pieces come from different places. You grab a skill from one repo, install a plugin from another, and copy a settings file from a teammate. A month later, you can’t remember what that skill was called, or whether Claude Code is the project copy or the one in your home directory. And the settings file that saved you an afternoon may carry a startup hook or a permission you never meant to turn on.
I built Preflight so you can answer those questions from the terminal, before you trust what your agent loads. Pilots don’t start the engines and hope; they run a fixed checklist first. Preflight is that checklist for the instructions your agent is about to follow.
The part nobody checks #
Your agent obeys every one of those files, and you install most of them from the internet. A skill is a Markdown file the agent reads and follows. A plugin can register a hook that runs a shell command. A settings file can pre-approve commands or route your model traffic through someone else’s server.
Claude Code’s built-in commands list and manage what you’ve installed. None of them read it for malice. That gap is already being used:
- Malicious skills are in the wild. A USENIX Security 2026 study,“Do Not Mention This to the User” , behaviorally verified 98,380 skills from two community registries and confirmed 157 malicious ones with 632 vulnerabilities. They split into credential thieves and agent hijackers. The file looks helpful; the prose is the payload.
- Hooks run code on their own.Check Point showed a repo’s hooks could run before you even read the trust dialog. Anthropic patched
that (CVE-2025-59536 and CVE-2026-21852), but a hook still runs the moment you click “trust
this folder”, and almost everyone does.Datadog found three malicious npm packages that installed Claude Code
SessionStarthooks. - Rules files can hide instructions.Pillar Security’s “Rules File Backdoor” research showed invisible Unicode can smuggle instructions into agent config that a human reviewer never sees.
- The volume is growing fast.Uber reports more than 3,600 agent skills built internally, with over 30,000 skill executions a day.
You’d think twice before adding an unvetted dependency. Skills are worse than a dependency: they’re instructions your AI follows and code your AI runs.
What Preflight does: see, scan, choose #
Preflight is a small local CLI that does three things.
See everything your agent carries, in your project and in your personal ~/.claude setup,
with the token cost each item adds to every prompt:
$ npx @deepwissen/preflight manifest
preflight · ✓ 2 skills · all clean · ~349t/prompt
AGENT LOADOUT — what your agent is carrying
SKILL SCOPE ALWAYS ON-DEMAND CHECK
pdf unrestricted (no allowed-tools) 110t 2.0kt ✓ clean
xlsx unrestricted (no allowed-tools) 239t 2.4kt ✓ clean
Scan each item for what actually hurts you: embedded secrets, prompt injection, hidden Unicode, over-broad tool access, dangerous commands in bundled scripts (bash and PowerShell), auto-running hooks, risky MCP servers and settings that redirect traffic or skip permissions:
CONFIG & HOOKS — settings your agent loads automatically (1 risky)
✗ .claude/settings.json
• [info] runs hooks automatically on: Stop
• [error] hook Stop command: fetches a remote script and pipes it
to a shell (remote code execution)
Choose what to install. When you pull skills from a repo, Preflight clones and scans them before anything touches your setup, then installs only the ones you pick. If one is risky, it tells you why:
$ npx @deepwissen/preflight add ./downloaded-pack --only revshell
preflight: blocked — revshell has findings at/above "warning":
revshell (1 finding)
✗ [error] scripts/calc.py: opens a reverse shell — socket connection
plus a shell handoff (remote code execution)
→ inspect: preflight check ./downloaded-pack/revshell
Someone shares a pack of 20 skills and you need three. Preflight shows what each one costs and whether it’s risky, then installs just those three.
Three moments to reach for it #
Preflight is a checklist you run at specific moments, not a tool you watch all day.
- “I found a skill online. Do I trust it?” Run
preflight check ./that-folderto inspect it before installing, orpreflight add owner/repo --dry-runto scan a whole pack. Neither one installs anything. - “Don’t let a risky skill or hook merge.” Run
preflight manifest --fail-on warningin CI. It exits non-zero on findings and can write SARIF for GitHub code scanning, so a risky change shows up as an annotation on the pull request. - “What have I accumulated, and is any of it dangerous?” Run
preflight manifest --allandpreflight pluginsonce. You’ll find the over-broad skill, the shadowed copy in your home directory, or the plugin whose hook you forgot about.
Where it sits #
Claude Code’s own commands answer “what do I have, and how do I manage it?” Use them for that. Preflight answers a different question: “is it safe to trust?” It’s a security layer on top of native management, not a replacement for it.
Its sibling, vet, scans your code and configuration for secrets and risky settings. Both run on the same detection engine, as does the AI Preflight VS Code extension, so a new detection reaches all three at once. (Full command reference and the honest limits live on the Preflight project page.)
Two honest promises #
Everything runs on your machine. Preflight reads files on your disk. It sends no telemetry
and uploads no scanned content. The only network call is the git clone when you add skills
from a repo.
A clean scan is not a guarantee. This is the most important sentence in the tool, so Preflight prints it on every clean result. It finds known-bad patterns; it raises the floor. It does not certify a skill as safe. A payload split across several files, or an obfuscation technique it hasn’t seen, can still get through. A clean result means nothing was found, not that nothing is there. A security tool that overpromises is worse than none.
How we test it #
A security scanner fails in two directions: it misses an attack, or it cries wolf on something safe. Both are tested on every release.
- Attack fixtures. More than 200 scenarios: reverse shells, credential exfiltration, hidden Unicode, malicious hooks in every event, poisoned MCP servers, symlinks to secrets, and plugins installed for real through Claude Code. Each runs in a fresh project and home folder, and the unit tests run on macOS, Linux and Windows on every commit.
- False-positive controls. Benign skills that look suspicious on the surface, like docs that
warn against
curl | sh, a script that cleans./build, or code that loadscert.pem, must stay clean. - Anthropic’s own skills. Before every publish, Preflight scans Anthropic’s public skills
repo, pinned to a fixed commit. If any of them would need
--forceto install, the release is blocked.
That last rule came from experience. Preflight itself blocked Anthropic’s official skills in
three separate releases: it read XSD schema file names as secrets, placeholder tokens like
ghp_your_github_token as real credentials, and a sentence warning against curl | sh as an
attack. Testing also found that one malicious skill could hang the scanner with a single
symlink, and that it missed bash -c "$(curl …)", the way Homebrew installs. All of it is
fixed and covered by tests that run on every commit.
Every false alarm teaches people to ignore the scanner. Then they ignore it when the alarm is real. A block is only useful if it’s rare and right.
Try it #
Works on macOS, Linux and Windows. You need Node 18 or later, and git for adding skills from a repo. Nothing to configure.
npx @deepwissen/preflight manifest --all
npx @deepwissen/preflight add anthropics/skills --dry-run
npx @deepwissen/preflight add anthropics/skills --only pdf,xlsx
npx @deepwissen/preflight check ./downloaded-skill
npx @deepwissen/preflight plugins
Using it often? Install it once and drop the npx prefix:
npm i -g @deepwissen/preflight
preflight manifest --all
In CI, gate every pull request:
- run: npx -y @deepwissen/preflight manifest --fail-on warning
Run the check before you fly.