## Lesson — Bias prompts toward structural patterns

**Tags:** prompt-engineering, ast-grep, regex
**Scope:** packages/cli/src/commands/compile-templates.ts

Prioritizing ast-grep in system prompts and providing a syntax cheat sheet prevents LLMs from defaulting to brittle regex for structural code analysis.
