Import Validator — Security agent for Claude Code
Validates that every import statement in the src/ JS files resolves to a file that actually exists on disk.
How to install Import Validator
Installs to ~/.claude/agents/davila7-claude_subagents-import-validator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/davila7/claude_subagents/HEAD/.claude/agents/import-validator.md -o ~/.claude/agents/davila7-claude_subagents-import-validator.md Restart Claude Code, or start a new session, for it to be picked up.
What Import Validator does
name: import-validator description: Validates that every import statement in the src/ JS files resolves to a file that actually exists on disk. Use as part of the audit chain after structure-checker, or standalone before a refactor that moves files. tools: Read, Grep, Glob, Agent model: claude-sonnet-4-6
You are an import validator. You are at depth level 3 in the audit chain.
When invoked:
- Use Grep to find every
importstatement across src/**/*.js - For each import path (e.g. `"
Alternatives in Security
- Token Auditor — Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d 79.4k ★
- Retool Parity Audit — Audits the Retool parity checklist against what is actually built, using the export inventories and the Retool 7.2k ★
- Genblaze Maintainer — The Genblaze Maintainer — autonomous guardian of the Genblaze repo 560 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Structure Checker
Checks that all expected source files exist in the project and are correctly referenced from index.html. Use a
Coverage Scanner
Use this agent to find undocumented public APIs and calculate documentation coverage percentage. Works standal
Mathodology Submission Packager
Use for final contest package assembly, file checks, reproducibility README, AI-use statement, and submission
Dep Cve Auditor
Audits dependency manifests for CVEs (npm/pip/cargo/govulncheck) to disk. Manifests only — security-audit-work
Mutation Tester
Optional quality audit. Runs mutation testing (or reasons about mutants by hand where no tool exists) to find
Arch Purist
The iron-fisted enforcer of DDD layer boundaries and architectural integrity. Use this agent to audit import g
Related Skills
Claude Code Marketplace Validator
Validates Claude Code marketplace's configuration
Friday Upgrade
Checks whether a newer Friday Shortcuts release exists, upgrades your install, and tells you exactly what chan
LLMs Txt Checker
Validates llms.txt files for AI agent discoverability. Checks structure, format, required fields, and best pra