run-codegen

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.

517 stars

Best use case

run-codegen is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using run-codegen should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/run-codegen/SKILL.md --create-dirs "https://raw.githubusercontent.com/LalitMaganti/syntaqlite/main/.agents/skills/run-codegen/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/run-codegen/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How run-codegen Compares

Feature / Agentrun-codegenStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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.

Related Skills

validate

517
from LalitMaganti/syntaqlite

Validate SQL and report diagnostics using syntaqlite. Use when the user wants to check SQL for errors, lint SQL files, or verify correctness against a schema.

parse

517
from LalitMaganti/syntaqlite

Parse SQL and inspect the AST using syntaqlite. Use when the user wants to see the parse tree, debug SQL syntax, or understand how a query is structured.

format

517
from LalitMaganti/syntaqlite

Format SQL files using the syntaqlite formatter. Use when the user wants to format, reformat, or pretty-print SQL code.

run-tests

517
from LalitMaganti/syntaqlite

Run tests to verify correctness after code changes. Use when the user asks to run tests, verify changes, or check that things still work. Runs Rust unit tests and integration tests.

release

517
from LalitMaganti/syntaqlite

Bump version, commit, tag, and create a draft GitHub Release. Use when the user

debug-formatter

517
from LalitMaganti/syntaqlite

Debug a SQL formatter bug. Use when the user reports incorrect formatting output — wrong whitespace, misplaced comments, blank lines, etc.

cpfast

517
from LalitMaganti/syntaqlite

Quickly commit and push current changes to a feature branch and create a PR, skipping pre-push checks. WARNING: if CI starts failing, use /cp instead.

cp

517
from LalitMaganti/syntaqlite

Commit all current changes, push to a feature branch, and create a PR. Use when the user asks to commit, push, save progress, or ship changes.

openapi-codegen-orchestrator

509
from a5c-ai/babysitter

Orchestrate multi-language SDK generation from OpenAPI specifications. Configure OpenAPI Generator per language, apply custom templates and post-processing, handle edge cases and custom extensions, and validate generated code compilation.

gum-tool-codegen

447
from vchelaru/Gum

Reference guide for the Gum tool's C# code generation system. Load this when working on CodeGenerator, CodeOutputPlugin, generated code structure, .codsj settings, OutputLibrary selection, Forms codegen, state generation, or the tool-side code generation pipeline. For CLI/headless codegen, see the gum-cli skill instead.

abi-codegen

181
from majiayu000/claude-skill-registry

Convert JSON ABI files to TypeScript const exports with proper typing. Use when working with smart contract ABIs, converting JSON to TypeScript, generating typed contract interfaces, or adding new contract ABIs to the SDK.

graphql-codegen

39
from InugamiDev/ultrathink-oss

GraphQL code generation — typed operations, fragment colocation, and schema-first development.