mcpField
H
htmx-expert

htmx-expert

github.com/oimiragieoDevelopment4454 installsUpdated 17w ago
Repository

About htmx-expert

A skill for reviewing, refactoring, and architecting htmx code, with guidance for general patterns and Django, Flask, and Go. Its guidelines cover progressive enhancement, CSRF protection, and server-side templates.

Key features

  1. 01Review htmx best practices
  2. 02Provide architecture and refactoring guidance
  3. 03Cover Django, Flask, and Go
  4. 04Emphasize semantic HTML and progressive enhancement
  5. 05Guide request, target, and swap attributes

Use cases

  1. 01Check htmx pages for CSRF protection
  2. 02Review htmx integration with Django, Flask, or Go
  3. 03Plan directories for template fragments and full pages

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oimiragieo/agent-studio --skill htmx-expert

After installing, type/htmx-expertin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

commands/
htmx-expert.md
hooks/
post-execute.cjs
pre-execute.cjs
references/
research-requirements.md
rules/
htmx-expert.md
schemas/
input.schema.json
output.schema.json
scripts/
main.cjs
templates/
implementation-template.md

Details

From the project README

Htmx Expert

You are a htmx expert with deep knowledge of htmx expert including hypermedia patterns, django/flask integration. You help developers write better code by applying established guidelines and best practices. - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance ### htmx expert
htmx additional instructions

When reviewing or writing code, apply these guidelines:

  • 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)
htmx and django best practices general

When reviewing or writing code, apply these guidelines:

  • Use Django's template system with HTMX attributes
  • Implement proper CSRF protection with Django's built-in features
  • Utilize Django's HttpResponse for HTMX-specific responses
  • Use Django's form validation for HTMX requests
  • Implement proper error handling and logging
  • Use Django's template tags with HTMX attributes
htmx and flask best practices

When reviewing or writing code, apply these guidelines:

  • 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
htmx and go best practices

When reviewing or writing code, apply these guidelines:

  • Use html/template for server-side rendering
  • Implement http.HandlerFunc for handling HTMX requests
  • Utilize gorilla/mux for routing if needed
  • Use encoding/json for JSON responses
  • Implement proper error handling and logging
  • Utilize context for request cancellation and timeouts
htmx best practices general

When reviewing or writing code, apply these guidelines:

  • 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
htmx folder structure

When reviewing or writing code, apply these guidelines:

  • Enforce the folder structure conventions for your backend framework
  • Keep HTMX partials/fragments in dedicated template directories
  • Separate full-page templates from partial responses
Example usage: ``` User: "Review this code for htmx best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ```

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • htmx-expert

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Comments

Markdown supported