# Run Codegen

> Run Codegen is an Agent Skill for development published in the LalitMaganti/syntaqlite repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Regenerate all generated code from .synq definitions and SQLite grammar. Use when .synq files, grammar actions, or dialect definitions have been modified and generated C/Rust code needs updating.

- Skill name: `run-codegen`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/LalitMaganti/syntaqlite/blob/HEAD/.agents/skills/run-codegen/SKILL.md
- Repository: LalitMaganti/syntaqlite (793 GitHub stars when collected)

## SKILL.md

# run-codegen

Regenerate all generated code from `.synq` definitions and SQLite grammar.

## Instructions

1. **Run codegen**:
   ```sh
   tools/run-codegen
   ```

   This regenerates:
   - C headers in `syntaqlite-sys/csrc/`
   - Rust node types, token types, and fmt bytecode in `syntaqlite/src/generated/`

2. **Verify the result**:
   ```sh
   cargo check && cargo clippy
   ```

   Both must pass with zero warnings.

3. **Report results** to the user, including any errors or warnings.

---

Source: https://www.openparable.com/skill/development/run-codegen (OpenParable). Cite the canonical URL above.
