muxt-sqlc
OfficialBuild type-safe web apps with Muxt and sqlc.
Authortypelate
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the development of web applications by integrating Muxt for HTML templating and sqlc for type-safe database query generation, ensuring consistency between your frontend, backend logic, and database schema.
Core Features & Use Cases
- Type-Safe Code Generation: Generates Go code from HTML templates and SQL queries, catching errors at compile time.
- Project Structure Guidance: Provides recommended layouts for small and large applications.
- Database Integration: Demonstrates embedding sqlc-generated query types and handling transactions.
- Form-to-Query Alignment: Maps HTML form fields directly to SQL query parameters using struct generation.
- Error Handling: Implements safe, user-facing error messages by wrapping database errors.
- End-to-End Testing: Guides on testing the full stack using
httptest,domtest, andchromedp.
Quick Start
Follow the recommended project layout to integrate Muxt with sqlc for your web application.
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: muxt-sqlc Download link: https://github.com/typelate/muxt/archive/main.zip#muxt-sqlc 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 223,000+ vetted skills library on demand.