/claude-for-swe-teams:fasthtmlfrom claude-for-swe-teams
Expert FastHTML (python-fasthtml) assistant. Use when the user is building, reviewing, or asking about a FastHTML web application — including components, routing, HTMX integration, forms, database, styling, auth, or deployment. FastHTML is a Python hypermedia framework, not FastAPI.
Ships in claude-for-swe-teams. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
FastHTML is a Python web framework where the server returns HTML fragments, not JSON. It uses HTMX for interactivity. There is no JavaScript frontend, no Jinja2, no React — just Python functions that return HTML.
FastHTML → Starlette (ASGI) → Uvicorn
→ HTMX (browser interactivity, ~14KB)
→ fastcore (FT component system)
→ fastlite / MiniDataAPI (SQLite)
→ Tailwind CSS + DaisyUI (styling)
cls=, never class_= — cls is the CSS class attributehx_get → hx-get, data_value → data-valueserve(), not uvicorn.run() — if __name__ == "__main__": serve()index maps to / — @rt def index(): ... routes to GET /get, post, delete, etc.)fill_form matches on name attribute — not idpico=False — never use PicoCSS; Tailwind + DaisyUI is the required stackfrom fasthtml.common import *
app, rt = fast_app()
@rt('/')
def get():
return Titled("Hello", P("World"))
serve()
Run with: python main.py (starts at http://localhost:5001)
# Positional args = children | keyword args = attributes
Div(P("hello"), cls="container", id="main")
# → <div class="container" id="main"><p>hello</p></div>
# Reusable components are plain Python functions (PascalCase by convention)
def Card(title, body):
return Article(Header(H2(title)), P(body), cls="card")
# Return multiple elements as a tuple (HTMX OOB swaps)
@rt('/update')
def post():
return Div("updated main"), Div("updated sidebar", hx_swap_oob="true", id="sidebar")
# No database
app, rt = fast_app()
# With database table
app, rt, todos, Todo = fast_app('data/app.db', id=int, title=str, done=bool, pk='id')
# With multiple tables
app, rt, (users, User), (todos, Todo) = fast_app(
'data/app.db',
tbls=dict(
users=dict(id=int, name=str, email=str, pk='id'),
todos=dict(id=int, title=str, done=bool, user_id=int, pk='id')
)
)
# Standard setup with Tailwind + DaisyUI
app, rt = fast_app(
pico=False, # Always — never use PicoCSS
hdrs=(Link(rel='stylesheet', href='/static/output.css'),),
live=True, # Live reload (dev only)
secret_key='...', # For sessions
)
Load these as needed based on the task:
| Task | Reference File |
|---|---|
| Building components, routing, path/query params | references/components-and-routing.md |
| HTMX interactivity, partial updates, OOB swaps | references/htmx-integration.md |
| Forms, validation, database CRUD | references/forms-and-data.md |
| Styling (Tailwind + DaisyUI), static files, JS | references/styling-and-ui.md |
| Auth, sessions, cookies, Beforeware | references/auth-and-sessions.md |
| WebSockets, testing, deployment, middleware | references/advanced.md |
| Debugging, common mistakes, gotchas | references/gotchas.md |
references/advanced.md (opens in a new tab)references/auth-and-sessions.md (opens in a new tab)references/components-and-routing.md (opens in a new tab)references/forms-and-data.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/htmx-integration.md (opens in a new tab)references/styling-and-ui.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shawhint/claude-for-swe-teams --plugin claude-for-swe-teams5 skills in this plugin
/frontend-designCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics./lesson-helperTranscribe, write, and edit ABA course lesson files (.md). Use when working with lesson content — transcribing videos, generating or editing lesson copy, updating frontmatter fields, producing course metadata, or any task involving lesson .md files and their associated assets./muxMux video integration for ABA courses. Use when working with video uploads, playback, asset management, or connecting Mux videos to course lessons. Covers the Mux Python SDK, signed playback tokens, lesson frontmatter fields, and the video player pipeline./playwright-mcp-guidanceMANDATORY: Invoke this skill BEFORE calling ANY Playwright MCP tool (browser_navigate, browser_take_screenshot, browser_snapshot, browser_click, browser_fill_form, etc.). This skill MUST be triggered first whenever the user asks to take a screenshot, browse a website, automate a browser, interact with a web page, or use any tool starting with 'mcp__plugin_playwright_playwright__'. Do NOT call Playwright tools without loading this skill first.