// HTMX Basic Setup .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-htmx-basicProvides basic HTMX conventions but lacks actionable triggers and step-by-step instructions
1// HTMX Basic Setup .cursorrules23// HTMX best practices45const htmxBestPractices = [6 "Use hx-get for GET requests",7 "Implement hx-post for POST requests",8 "Utilize hx-trigger for custom events",9 "Use hx-swap to control how content is swapped",10 "Implement hx-target to specify where to swap content",11 "Utilize hx-indicator for loading indicators",12];1314// Folder structure1516const folderStructure = `17src/18 templates/19 static/20 css/21 js/22 app.py23`;2425// Additional instructions2627const additionalInstructions = `281. Use semantic HTML5 elements292. Implement proper CSRF protection303. Utilize HTMX extensions when needed314. Use hx-boost for full page navigation325. Implement proper error handling336. Follow progressive enhancement principles347. Use server-side templating (e.g., Jinja2, Handlebars)35`;3637
Full transparency — inspect the skill content before installing.