Ghostimport β AI skill for Claude Code
π» Detects ghost imports β npm packages that don't exist, hallucinated by AI coding tools like Cursor, Copilot, and Claude.
How to install Ghostimport
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open FGuerreir0/ghostimport and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ghostimport does
π» Detects ghost imports β npm packages that don't exist, hallucinated by AI coding tools like Cursor, Copilot, and Claude.
Alternatives in AI
- Ante β Ghost in your shell 1.9k β
- CLI Continues β resume any AI coding session in another tool β Claude Code, Copilot, Gemini, Codex, Cursor 1.5k β
- Claude Skill Web Clone β Methodology for faithfully cloning any website (static / React / WebGL) β without copying AI-hallucinated code 969 β
README
ghostimport
Stops your AI coding agent from installing npm packages that don't exist.
Your agent invents a package name. It doesn't exist on npm *yet*. Someone is watching for exactly that, and the moment they register it, `npm install` runs their `postinstall` script on your machine.
This is **slopsquatting**. `npm audit`, Snyk and Socket don't catch it β they only inspect packages you've already installed. ghostimport checks names against the live registry at the moment your agent writes or installs them.
$ ghostimport
Scanned 142 files Β· 38 packages
β react-server-fetch does not exist on npm
β³ src/data/loader.ts
β³ unregistered β anyone could claim this name with a malicious postinstall
β axois high risk
β³ src/api/client.ts
β³ 1-2 chars from 'axios' β likely a typo
β³ has postinstall script β runs code on npm install
created 2019-08-29 Β· 1245/week Β· 1 version
2 problems found.
Install
npm install -g ghostimport # or: npx ghostimport
Node.js 22+. Zero runtime dependencies β the published package uses only Node built-ins.
Use it w
Related Skills
Scavi
Context linter for AI coding agents. Detects stale, conflicting, and incorrect instructions across AGENTS.md,
Tokenade npm
CLI that cuts the tokens AI coding agents send to the model β Claude Code, Cursor, Codex, Copilot, Kilo, Winds
Coding Live
Watch your AI coding agents like a live sports broadcast. Don't read the code. Just watch.
Graphsmith
Build AI agent workflows that survive crashes, never duplicate work, and don't make things up β one skill for
Intelligence
Build, version and distribute AI agent intelligence across your organization - one CLI, versioned Intelligence
AI Dev Effectiveness
Measure AI co-programming effectiveness on any git repo. Detects Claude/Copilot/Cursor/Codex signatures and tr
Related Agents
CLI Engineer
IngΓ©nieur du CLI Hookstack (packages/cli/, package npm hookstack-cli). Utiliser pour toute Γ©volution du CLI in
Dom Auditor
Inspects live application via Chrome MCP to verify which UI elements actually exist. Catches ghost elements th
Audit Microsoft
Microsoft Advertising evidence and controls specialist. Returns schema-valid findings for UET and conversions,