
📚 Reference Grounding Checker
Before an agent acts on a plan, verify that the things it named actually exist. Checks each referenced file path, function or method, import or package, environment variable, and CLI command against your repo, and flags the ones that do not resolve. Catches the hallucinated function and the phantom package before the edit, not after the build breaks. Resolves Python and JavaScript/TypeScript.
- Verify file paths and function names in a refactoring plan before execution
- Catch hallucinated environment variables in deployment scripts
- Ensure AI-suggested imports are resolving to existing local modules
$15
· or 75 creditsSecure checkout via Stripe
Included in download
- Verify file paths and function names in a refactoring plan before execution
- Catch hallucinated environment variables in deployment scripts
- file_read, terminal, env_vars automation included
- Ready for Cursor
Sample input
I've drafted a plan to refactor the auth logic. Check this plan against the repo to make sure I haven't referenced any nonexistent functions or files.
Sample output
Grounding Report
- Files Checked: 4
- References Verified: 12
- Findings:
- [High]
utils/token-helper.tsnot found. (Line 12) - [Med] Function
verifySession()is exported fromauth/core.ts, notauth/session.tsas suggested.
- [High]
- Suggestion: Update plan lines 12 and 15.
Before an agent acts on a plan, verify that the things it named actually exist. Checks each referenced file path, function or method, import or package, environment variable, and CLI command against your repo, and flags the ones that do not resolve. Catches the hallucinated function and the phantom package before the edit, not after the build breaks. Resolves Python and JavaScript/TypeScript.
$15
· or 75 creditsSecure checkout via Stripe
Included in download
- Verify file paths and function names in a refactoring plan before execution
- Catch hallucinated environment variables in deployment scripts
- file_read, terminal, env_vars automation included
- Ready for Cursor
- Instant install
Sample input
I've drafted a plan to refactor the auth logic. Check this plan against the repo to make sure I haven't referenced any nonexistent functions or files.
Sample output
Grounding Report
- Files Checked: 4
- References Verified: 12
- Findings:
- [High]
utils/token-helper.tsnot found. (Line 12) - [Med] Function
verifySession()is exported fromauth/core.ts, notauth/session.tsas suggested.
- [High]
- Suggestion: Update plan lines 12 and 15.
About This Skill
What it does
The Reference Grounding Checker acts as a pre-execution safety layer for AI agents. It scans proposed implementation plans to verify that every file path, function name, import statement, and environment variable mentioned actually exists within your local codebase. It eliminates "hallucinated" refactoring plans before they break your build.
Why use this skill
Even advanced LLMs frequently reference non-existent utility functions or assume the presence of configuration variables that aren't there. This skill provides a deterministic check against the ground truth of your file system and source code. It is significantly more reliable than standard prompting because it uses a specialized static analysis scanner to perform hard lookups, rather than relying on the model's memory of the repo.
Supported tools
- Languages: Python, JavaScript, TypeScript.
- Environments: Local repositories, CI/CD pipelines, and agentic workflows like Claude Code or Cursor.
- Inputs: Markdown plans, text files, or direct chat history.
Expected Output
You receive a structured report detailing every reference checked, categorized findings by severity (e.g., Missing File, Unresolved Import), and specific remediation snippets to fix the plan's logic.
Use Cases
- Verify file paths and function names in a refactoring plan before execution
- Catch hallucinated environment variables in deployment scripts
- Ensure AI-suggested imports are resolving to existing local modules
- Audit automated documentation for accuracy against the live codebase
Known Limitations
Extraction is heuristic and works best on backtick-wrapped references, so dynamic or generated names can be missed or over-flagged. It resolves Python and JS/TS; other languages are out of scope for symbol and import resolution.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/reference-grounding-checker -o /tmp/reference-grounding-checker.zip && unzip -o /tmp/reference-grounding-checker.zip -d ~/.claude/skills && rm /tmp/reference-grounding-checker.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
Notes: Read-only. Extracts referenced tokens from the plan and resolves them against the repo using the standard-library ast module. Reads no environment variables and writes nothing.
Works with any agent that can read a repo and run a local Python script (Claude Code, Cursor, Codex CLI, and other SKILL.md-compatible agents). Standard library only (uses the built-in ast module), no install step. Read-only, no network.
Creator
JustHandled Labs builds focused agent skills for the work nobody wants to do by hand. Each one is a single repeatable job done well: catching the security and data mistakes that quietly ship, keeping docs and tests honest, gating the commands an agent is about to run, sharpening writing, and handling the founder chores around launches, outreach, and brand setup. Not generic AI productivity. Specific workflows that are easy to run, review, and repeat. Maintained by H.J. Westerfield, with a background in communications, editing, project coordination, customer support, and practical AI systems. Tools for people who want useful automation without theatrical complexity.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
diagnosing-rag-failure-modes
RAG fails quietly. It retrieves documents, returns confident-looking answers, and misses the question entirely — because the question required connecting facts across documents, reasoning about sequence, or tracing causation. This skill gives you a five-question diagnostic checklist that classifies any failing query as either RAG-safe or structurally RAG-incompatible, then maps it to the specific failure pattern and the architectural fix that resolves it.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.
Bounty Security Pattern Master Library — 399 Vulnerability Patterns
A premium library of 399 vulnerability patterns and DeFi attack vectors for AI-driven bug hunting and security audits.