What problem does it solve?
This Skill guides developers to create and update Miroir Queries using a Test-Driven Development workflow, ensuring queries, templates, and transformers are implemented with concrete tests.
Core Features & Use Cases
- TDD-driven query development: write tests first for extractors, combiners, and transformers.
- Template-driven queries: define query templates and resolve them into boxed queries for runtime execution.
- Pre-flight validation: run baseline tests and template resolution checks before implementing changes.
- Use Case: a developer adds a new query pattern, writes tests, resolves a template, and validates results within the in-repo domain-state tests.
Quick Start
Inspect the repository for existing query tests.
Run pre-flight tests: npm run vitest -w miroir-core -- queries.unit
Add or update tests in packages/miroir-core/tests/2_domain/...
Resolve templates and run the query to verify runtime results.