Rule
0 installs · 0 said it worked
Cursor rules for building HTMX apps with a basic setup
A Cursor rules file that guides the assistant through HTMX development, covering core hx- attributes, a suggested src folder layout, and general practices like semantic HTML, CSRF protection, and progressive enhancement.
People use this for
- htmx cursor rules
- htmx web app rules
- cursor rules for htmx apps
- building htmx apps with cursor assistant
- set up htmx project structure
- Name
cursor-rules-for-building-htmx-apps-with-a-basic-setup- 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-apps-with-a-basic-setup-2uuu/export/mdc" -o .cursor/rules/cursor-rules-for-building-htmx-apps-with-a-basic-setup.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-building-htmx-apps-with-a-basic-setup.mdc as .cursor/rules/cursor-rules-for-building-htmx-apps-with-a-basic-setup.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-htmx-apps-with-a-basic-setup.mdc for every project, then start a new session.
Rule
description: "Cursor rules for HTMX development with basic setup." globs: */ alwaysApply: false
// HTMX Basic Setup .cursorrules
// HTMX best practices
const htmxBestPractices = [ "Use hx-get for GET requests", "Implement hx-post for POST requests", "Utilize hx-trigger for custom events", "Use hx-swap to control how content is swapped", "Implement hx-target to specify where to swap content", "Utilize hx-indicator for loading indicators", ];
// Folder structure
const folderStructure = src/ templates/ static/ css/ js/ app.py;
// Additional instructions
const additionalInstructions = `
- Use semantic HTML5 elements
- Implement proper CSRF protection
- Utilize HTMX extensions when needed
- Use hx-boost for full page navigation
- Implement proper error handling
- Follow progressive enhancement principles
- Use server-side templating (e.g., Jinja2, Handlebars) `;
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
- 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
- Git repository bloat finder: diagnose large files and suggest safe cleanup
Agent skill that measures a Git repository, scans reachable blobs for large, deleted, versioned, generated and credential-like files, and proposes least-disruptive fixes without rewriting history itself.
Coding · @f
- Apple App Store review compliance plan generator for iOS apps
A system-style prompt that makes the model act as an App Store review compliance specialist, checking an iOS app against 18 Apple guideline requirements and producing a prioritized plan to prevent rejection before submission.
Coding · @evg1n
- 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
- Scaffold a full production-ready project repository from a brief
A system-style prompt that makes the model act as an elite software engineer and product architect, filling a project brief to generate a complete, runnable repository with file tree, source files, setup commands, and an upgrade roadmap.
Coding · @handkllcservices
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.