What problem does it solve?
Audits and validates the alignment between prompt templates, operation mappings, and database schemas to prevent mismatches, dead templates, and runtime errors in AI-assisted workflows.
Core Features & Use Cases
- Verifies that every code-defined operation type has a corresponding prompt template, and flags orphan templates and unmapped system prompts.
- Validates template context variables against database schemas using prefix and alias mappings, ensuring variables map to real columns and correct types.
- Scans and reports on code references to ensure all template references exist and are properly integrated, enabling safer maintenance of large, multi-domain prompt libraries.
- Use cases include onboarding new domain models, enforcing consistency during schema migrations, and CI checks for prompt integrity across projects.
Quick Start
Run the /prompt-db-audit command to generate a comprehensive report that highlights errors, warnings, and recommended fixes across templates, schemas, and references.