What problem does it solve?
This Skill prevents AI-generated code from including non-existent imports, packages, functions, or API calls, thereby reducing bugs and security risks.
Core Features & Use Cases
- Import Verification: Checks if imported modules and files actually exist in the project.
- Package Validation: Ensures external packages are listed in the project's manifest and exist on registries.
- API Signature Check: Verifies that API calls and function signatures match documentation.
- Slopsquatting Defense: Detects and flags potentially malicious package names that mimic popular ones.
- Use Case: After an AI generates new code for a feature, this skill runs automatically to ensure all its dependencies and references are valid before committing, preventing runtime errors and security vulnerabilities.
Quick Start
Run the hallucination-guard skill to verify all imports in the recently changed files.