Index of every page on this site: llms.txt
All skills
Run it yourself

Hunt hallucinated packages, APIs, files, and fake tests in AI-written code before claiming done. Use when an agent says tests pass, created a file, installed a package, or "it's fixed"; after generating or reviewing AI code; before merge; or when the user says ghost check, prove it, verify claims, no ghosts, receipts, or audit this diff.

Use this Skill: https://skilld.dev/gh/jaysi88/ghost-check/ghost-check

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈88 tokens for metadata: the name and description. ≈913 when used: this file. ≈762 more on demand in 2 files.

Description uses 4.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈353 characters, or 4.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Ghost check

Agents lie by accident. They invent APIs, cite files they never wrote, and report green tests they never ran. This skill makes every claim earn a receipt.

Works on any Agent Skills client (Claude Code, Cursor, Codex, Copilot, Gemini CLI, Windsurf, OpenCode, Grok, and anything else that loads SKILL.md). Language-agnostic. Stack-agnostic.

When to use

  • Before claiming done, fixed, tests pass, or ready to merge
  • After any non-trivial generation, refactor, or "quick fix"
  • User says: ghost check, prove it, verify claims, no ghosts, receipts, audit this, did you actually
  • Reviewing a diff that an agent (including you) just wrote
  • A command "should work" but the user says it doesn't

Rules

  1. Never invent a green status. If you did not run it in this turn, you do not know.
  2. Never claim a file exists without Read / ls / equivalent against the real path.
  3. Never claim a package exists without a registry lookup (npm view, pip index versions, cargo search, …) or a lockfile and install proof.
  4. A compile is not a test. A mock is not a unit under test.
  5. The conversation transcript is not evidence. Commands and file reads are.
  6. If you cannot verify (offline, no registry, sandbox), mark UNVERIFIED — not PASS.
  7. Status is PASS only when every extracted claim is proven and the original user ask is covered.

Procedure

Do these in order. Stop and report if a step is blocked; do not skip ahead to a fake PASS.

1. Extract claims

From the last assistant turn(s), list every claim of the form:

  • file created / edited / deleted (path)
  • package added / upgraded (name + version if given)
  • API / method / symbol used
  • command run (test, lint, build, migrate)
  • bug fixed or feature shipped
  • "all N tests pass" / "build succeeded" / "deployed"

If the user pointed at a diff, extract from the diff plus the claims.

2. Scan the repo

If Node is available, run the bundled scanner from the skill folder (or a copy in the workspace):

node skills/ghost-check/scripts/ghost-scan.mjs .

JSON:

node skills/ghost-check/scripts/ghost-scan.mjs . --json

Treat every GHOST as blocking. Read references/failure-modes.md when a kind is unclear.

3. Prove files

For every path claimed: list or read it. Missing path → GHOST (file).

4. Prove packages

For every new dependency: registry lookup or lockfile + node_modules / virtualenv / target. 404 / not found → GHOST (package).

Do not trust the name because it "sounds like" a popular library (lodash.isequaldeep, fs.promises.rmrf, react-use-hooks).

5. Prove APIs

For every third-party symbol you introduced, grep the installed package (or official docs for that exact version). No match → GHOST (api).

6. Prove commands

If this turn has no command output, re-run the exact command. Paste the relevant tail in the report. No output → UNVERIFIED (command).

Empty tests, expect(true), assert True, and tests that only mock the unit under test → GHOST (test).

7. Prove the original ask

Diff the result against what the user asked. Adjacent rewrite, extra scope, or a different product → GHOST (scope).

8. Report

Use references/report-template.md. Do not omit ghosts to look clean.

After ghosts

Fix them. Re-run this skill. Do not move on.

If the user asked only for a report, stop after the report.

Do not

  • Mark PASS because the code "looks right"
  • Cite a previous session's test run
  • Print secret values while checking .env / keys
  • Skip the scanner because you are "sure"

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is an audit tool designed to verify that AI-generated code is accurate and free of hallucinations. It uses a local script to scan for missing files, fake tests, and phantom packages, while using standard registry tools to validate external dependencies safely.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 5e0384b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago
Other metadata
metadata
{
  "author": "Jaysi88",
  "version": "1.0.0",
  "repo": "https://github.com/Jaysi88/ghost-check"
}

README badge

README badge for jaysi88/ghost-check