Rule
0 installs · 0 said it worked
Cursor rules for building HTMX and Flask web apps
Cursor rules guiding HTMX-driven Flask development: server-side rendering, Flask-WTF forms with CSRF protection, Blueprints, application factory layout, migrations, and error handling.
People use this for
- htmx flask cursor rules
- flask htmx server rendering prompt
- cursorrules for flask web apps
- write cursor rules for htmx flask project
- guide cursor to build flask htmx apps with blueprints and csrf
- Name
cursor-rules-for-building-htmx-and-flask-web-apps- 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-and-flask-web-apps-6hzb/export/mdc" -o .cursor/rules/cursor-rules-for-building-htmx-and-flask-web-apps.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-building-htmx-and-flask-web-apps.mdc as .cursor/rules/cursor-rules-for-building-htmx-and-flask-web-apps.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-htmx-and-flask-web-apps.mdc for every project, then start a new session.
Rule
description: "Cursor rules for HTMX development with Flask integration." globs: */ alwaysApply: false
// HTMX with Flask .cursorrules
// HTMX and Flask best practices
const htmxFlaskBestPractices = [ "Use Flask's render_template for server-side rendering", "Implement Flask-WTF for form handling", "Utilize Flask's url_for for generating URLs", "Use Flask's jsonify for JSON responses", "Implement Flask-SQLAlchemy for database operations", "Utilize Flask's Blueprint for modular applications", ];
// Folder structure
const folderStructure = app/ templates/ static/ css/ js/ models/ routes/ __init__.py config.py run.py;
// Additional instructions
const additionalInstructions = `
- Use Jinja2 templating with HTMX attributes
- Implement proper CSRF protection with Flask-WTF
- Utilize Flask's request object for handling HTMX requests
- Use Flask-Migrate for database migrations
- Implement proper error handling and logging
- Follow Flask's application factory pattern
- Use environment variables for configuration `;
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
- Master prompt for building a district campaign field operations platform
A long master development prompt asking an AI to build a full-stack government district campaign management, field data collection, verification, and payment platform.
Coding · @maarifkhatri91
- 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
- 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
- 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
- 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.
Coding · @patrickjs
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.