// HTMX with Flask .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-htmx-flaskBasic Flask-HTMX guidance with folder structure but lacks actionable agent instructions
1// HTMX with Flask .cursorrules23// HTMX and Flask best practices45const htmxFlaskBestPractices = [6 "Use Flask's render_template for server-side rendering",7 "Implement Flask-WTF for form handling",8 "Utilize Flask's url_for for generating URLs",9 "Use Flask's jsonify for JSON responses",10 "Implement Flask-SQLAlchemy for database operations",11 "Utilize Flask's Blueprint for modular applications",12];1314// Folder structure1516const folderStructure = `17app/18 templates/19 static/20 css/21 js/22 models/23 routes/24 __init__.py25config.py26run.py27`;2829// Additional instructions3031const additionalInstructions = `321. Use Jinja2 templating with HTMX attributes332. Implement proper CSRF protection with Flask-WTF343. Utilize Flask's request object for handling HTMX requests354. Use Flask-Migrate for database migrations365. Implement proper error handling and logging376. Follow Flask's application factory pattern387. Use environment variables for configuration39`;4041
Full transparency — inspect the skill content before installing.