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
Audit Fix Verifier
Verifies a fix applied by audit-fix-agent actually resolves the original finding and introduces no regression.
Dependency Vetter
Supply-chain security audit of a third-party package (npm today) at ONE exact resolved version, run BEFORE it
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
Arch Purist
The iron-fisted enforcer of DDD layer boundaries and architectural integrity. Use this agent to audit import g
Related Skills
Dev Manager
Thin wrapper that forwards $ARGUMENTS into the dev-manager skill (the human's seat — question hub and refineme
Claude Code Marketplace Validator
Validates Claude Code marketplace's configuration
Resume Validator
A Python-based tool that checks a .docx resume against configurable resume rules, compares it to a job posting