scythe
CommunityGenerate type-safe code from annotated SQL.
AuthorGoldziher
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Scythe removes the manual and error-prone boilerplate of turning SQL queries into strongly-typed, database-access code by compiling annotated SQL into ready-to-use functions, structs, and type mappings.
Core Features & Use Cases
- Type-safe SQL-to-code generation: Write annotated SQL (with
@name,@returns, etc.) and generate boilerplate across many languages and database engines. - Backend-driven support matrix: Select the correct
scythe.tomlbackend (e.g., Rust sqlx, TypeScript pg, Python asyncpg) for your target language and database. - Built-in linting and formatting: Catch SQL issues early using scythe’s 93-rule linting (including sqruff rules) and format SQL consistently, including via pre-commit hooks.
- Common migration and workflow integration: Migrate from sqlc, validate queries without generation, and wire formatting/linting into CI and developer workflows.
Quick Start
Use the scythe skill to generate code by running scythe generate after writing annotated queries and configuring scythe.toml.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: scythe Download link: https://github.com/Goldziher/scythe/archive/main.zip#scythe Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.