code-generation
Run and troubleshoot project code generation (sqlc + templ).
allowed_tools: Bash(git:*) Bash(make:*) Bash(go:*) Bash(sqlc:*) Bash(templ:*) Bash(curl:*) Read
$ 설치
git clone https://github.com/matt-riley/mjrwtf /tmp/mjrwtf && cp -r /tmp/mjrwtf/.github/skills/code-generation ~/.claude/skills/mjrwtf// tip: Run this command in your terminal to install the skill
SKILL.md
name: code-generation description: Run and troubleshoot project code generation (sqlc + templ). license: MIT compatibility: Requires bash, git, Go, make, sqlc v1.30.0+, and templ. metadata: repo: mjrwtf runner: github-copilot-cli version: 1.2 allowed-tools: Bash(git:) Bash(make:) Bash(go:) Bash(sqlc:) Bash(templ:) Bash(curl:) Read
What this skill covers
This repo relies on generated code for:
- sqlc: generates DB access code into
internal/adapters/repository/sqlc/sqlite/ - templ: generates Go code from
.templtemplates
Standard commands
make generate
Manual equivalents:
sqlc generate
templ generate
When to run generation
Run make generate when you change:
internal/adapters/repository/sqlc/sqlite/queries.sqlsqlc.yaml- migration files referenced by
sqlc.yamlunderschema: - any
.templfiles
Troubleshooting
If you see compile errors referencing missing generated code, re-run:
make generate
Repository

matt-riley
Author
matt-riley/mjrwtf/.github/skills/code-generation
0
Stars
0
Forks
Updated1h ago
Added1w ago