// HTMX with Go (Basic Setup) .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-htmx-go-basicProvides basic setup guidance for HTMX+Go projects but lacks actionable agent instructions
1// HTMX with Go (Basic Setup) .cursorrules23// HTMX and Go best practices45const htmxGoBestPractices = [6 "Use html/template for server-side rendering",7 "Implement http.HandlerFunc for handling HTMX requests",8 "Utilize gorilla/mux for routing if needed",9 "Use encoding/json for JSON responses",10 "Implement proper error handling and logging",11 "Utilize context for request cancellation and timeouts",12];1314// Folder structure1516const folderStructure = `17cmd/18 main.go19internal/20 handlers/21 models/22 templates/23static/24 css/25 js/26go.mod27go.sum28`;2930// Additional instructions3132const additionalInstructions = `331. Use semantic HTML5 elements with HTMX attributes342. Implement proper CSRF protection353. Utilize HTMX extensions when needed364. Use hx-boost for full page navigation375. Follow Go's idiomatic error handling386. Implement graceful shutdown for the server397. Use Go modules for dependency management40`;4142
Full transparency — inspect the skill content before installing.