Preflight inspects Claude Code skills and hooks before installation
Kiran Chanda's local CLI scans skills for secrets and risky hooks before a coding agent loads them.
A skill pulled from someone else's repository reaches Claude Code as instructions the agent follows, and a hook arrives as a shell command that runs on its own. On November 27, Kiran Chanda introduced Preflight, a local CLI that inspects that material before it lands in a project or in ~/.claude. Kiran Chanda's write-up points to a USENIX Security 2026 study that confirmed 157 malicious skills in community registries.
Preflight lists what the agent loads and how many tokens each item adds to the prompt. Its scan looks for embedded secrets, prompt injection, hidden Unicode and hooks that fire automatically. On install, it clones the pack, scans the contents and copies only the skills you pick. To check a pack without installing anything:
npx @deepwissen/preflight add anthropics/skills --dry-run
It needs Node 18 or later, plus git to fetch skills from a repository. Analysis stays on the machine, with no telemetry. According to Chanda, a clean result only means no known pattern turned up; a payload split across several files can still slip through.
In CI, preflight manifest --fail-on warning exits non-zero on findings and can write a SARIF report for GitHub code scanning. Each team still has to pick the severity that blocks a pull request; Chanda's example uses warning.