Rule
0 installs · 0 said it worked
Cursor rules for building HTMX web apps in Go
A .cursorrules file that guides Cursor to build Go server apps with HTMX, covering html/template rendering, handler patterns, project folder layout, CSRF protection, and graceful shutdown.
People use this for
- htmx go web app rules
- cursor rules go htmx
- go html template server rendering
- htmx golang project setup prompt
- generate go htmx app structure
- Name
cursor-rules-for-building-htmx-web-apps-in-go- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-building-htmx-web-apps-in-go-rf7t/export/mdc" -o .cursor/rules/cursor-rules-for-building-htmx-web-apps-in-go.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-building-htmx-web-apps-in-go.mdc as .cursor/rules/cursor-rules-for-building-htmx-web-apps-in-go.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-htmx-web-apps-in-go.mdc for every project, then start a new session.
Rule
description: "Cursor rules for Go development with basic setup." globs: */ alwaysApply: false
// HTMX with Go (Basic Setup) .cursorrules
// HTMX and Go best practices
const htmxGoBestPractices = [ "Use html/template for server-side rendering", "Implement http.HandlerFunc for handling HTMX requests", "Utilize gorilla/mux for routing if needed", "Use encoding/json for JSON responses", "Implement proper error handling and logging", "Utilize context for request cancellation and timeouts", ];
// Folder structure
const folderStructure = cmd/ main.go internal/ handlers/ models/ templates/ static/ css/ js/ go.mod go.sum;
// Additional instructions
const additionalInstructions = `
- Use semantic HTML5 elements with HTMX attributes
- Implement proper CSRF protection
- Utilize HTMX extensions when needed
- Use hx-boost for full page navigation
- Follow Go's idiomatic error handling
- Implement graceful shutdown for the server
- Use Go modules for dependency management `;
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Go backend coding spec for vertical domain modules using shanjunmei/dig
A system-prompt skill that makes the model act as a Go architect and generate or repair code with vertical domain modules, viper config loading, minimal naming, and a unified RegisterRoute handler method for shanjunmei/dig compile-time DI.
Coding · @shanjunmei
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Cursor rules for building Next.js, Supabase, and shadcn PWAs with build notes
A .mdc rules file that sets coding style, stack conventions, and build-notes and context-file rules for an AI agent building a Next.js, Supabase, Shadcn UI Progressive Web App.
Coding · @patrickjs
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.