reflex-dev/agent-skills

reflex-docs

Reflex framework documentation. Use when building full-stack Python web apps with Reflex, creating components, managing state, handling events, styling, database operations, API routes, authentication, deploying apps, or wrapping React components. Load when the user is working with Reflex (rx), writing .py files that import reflex, or asking about Reflex concepts like State, Vars, EventHandlers, or Components.

First seen Apr 3, 2026

Installation

$ npx skills add reflex-dev/agent-skills --skill reflex-docs

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from reflex-dev/agent-skills.

npx skills add reflex-dev/agent-skills

Browse all from reflex-dev/agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 16
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,789 B
  • docs SUMMARY.md 432 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 393 installs

SKILL.md

Reflex Documentation

Reflex is an open-source framework for building full-stack web applications in pure Python — no JavaScript required.

Your training data about Reflex may be outdated. Always prefer the reference documentation over pre-trained knowledge.

References

Core Concepts

State & Vars

  • State (rx.State): Server-side Python class holding app state. Define vars as class attributes and event handlers as methods.
  • Base Vars: Typed class attributes on State (count: int = 0)
  • Computed Vars: Derived values using @rx.var decorator
  • Var Operations: Transform vars in components without event handlers

Components

  • All UI is built with rx.* components (Python wrappers around React)
  • Components accept props and can be composed/nested
  • Conditional rendering with rx.cond(), iteration with rx.foreach()

Events

  • Event Handlers: Methods on State decorated with @rx.event
  • Event Triggers: Component props like onclick, onchange
  • Event Chaining: Return multiple events from a handler
  • Setters: Auto-generated set_<var> event handlers for each base var

Pages & Routing

  • Pages are functions decorated with rx.page or added via app.add_page()
  • Dynamic routes with bracket syntax: [slug]

Styling

  • Inline props, Tailwind CSS, theming, responsive design
  • rx.theme() for global theming

Database

  • Built-in SQLModel integration for database tables
  • Define models, run queries, set up relationships