@usevyre/validate-ai-context
v1.0.1
Published
Validate useVyre component usage — catches AI hallucinations before they ship
Maintainers
Readme
@usevyre/validate-ai-context
Scan your codebase for hallucinated useVyre props — invalid variants, non-existent prop names, missing providers — before they reach CI.
Usage
npx @usevyre/validate-ai-context src/❌ dashboard.tsx:8
<Button> has no "color" prop
→ Use variant prop instead
❌ dashboard.tsx:12
<Button size="xl"> — "xl" is not a valid value
→ Valid: "sm" | "md" | "lg" | "icon"
Scanned 4 files · 2 errorsOptions
| Flag | Description |
|------|-------------|
| --json | Output results as JSON (for CI / programmatic use) |
| --quiet | Only show errors, suppress summary |
| --ext | Comma-separated file extensions to scan (default: tsx,ts,vue,jsx,js) |
GitHub Actions
- name: Validate useVyre props
run: npx @usevyre/validate-ai-context src/ --jsonSee the full workflow example.
What it catches
Validates against 31 known anti-patterns across all 30 useVyre components:
- Non-existent prop names (
color,typeon components that don't have them) - Invalid enum values (
size="xl",variant="error",variant="blue") - Missing required composition (
AccordionwithoutAccordionItem) - Missing providers (
ToastwithoutToastProvider/ToastViewport)
