skills/reflex-usage/SKILL.md
Proven patterns for building or refining Reflex admin dashboards, user portals, operations consoles, and classic sidebar-plus-content management UIs. Use when editing `.py` files that import `reflex as rx`, creating metric cards, left navigation sidebars, status panels, action forms, code or result blocks, or responsive dashboard pages. When bootstrapping a new Reflex app, prefer `reflex init --template dashboard` by default, and switch to `customer_data_app` or `api_admin_panel` only when the product shape matches those templates more closely.
npx skillsauth add hu-wentao/wyatt_skills reflex-usageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build admin pages the way this repo already does: stable information hierarchy first, visual polish second.
reflex init --template dashboard for sidebar-plus-content dashboards; use reflex init --template customer_data_app for CRUD or admin backoffice flows; use reflex init --template api_admin_panel for internal tools, API consoles, or task-management surfaces.web/relay_user_portal/relay_user_portal.py if exact local examples are needed.repeat(auto-fit, minmax(...)), flex_wrap="wrap", and a sidebar capped at max_width="320px".rx.box for the page, one inner rx.box for the two-column layout, and one component each for sidebar and content.repeat(auto-fit, minmax(180px, 1fr)) for compact metrics and minmax(320px, 1fr) for larger content cards.web/relay_user_portal/relay_user_portal.py: AUTH_INPUT_STYLE, PANEL_INPUT_STYLE, TEXTAREA_STYLE, SCRIPT_BOX_STYLE.web/relay_user_portal/relay_user_portal.py: page_background, metric_tile, summary_tile, nav_card, sidebar_nav, usage_panel, api_test_panel, dashboard_page, api_test_page.src/lm_web/portal.py: TonePalette and tone_palette().--template unless the user asks to start from a blank Reflex app. The default recommendation in this skill is reflex init --template dashboard.rx.box, rx.text, rx.heading, rx.button, rx.link, rx.el.pre, and simple CSS props for predictable admin layouts.@rx.var values instead of recomputing them inline in every component tree.rx.cond for empty, loading, and error states so the structure remains stable while the content changes.web/relay_user_portal/relay_user_portal.py.Load references/classic_dashboard_ui.md when you need the template selection guide, exact component anchors, sizing cues, or a copyable page skeleton.
development
Build, debug, and refactor Streamlit apps and widgets. Use when Codex works on Streamlit UI files, session_state behavior, rerun/callback bugs, st.data_editor or dataframe widgets, layout parameters, widget keys, Streamlit version compatibility, or deprecated/new parameters such as width="stretch" replacing older container-width patterns.
development
Create a Dart-based macOS background activity process managed by launchd. Use when Codex needs to scaffold or fix a LaunchAgent for a Dart program, generate the executable entrypoint, write the plist, or ensure App Background Activity shows the intended process name instead of a shell wrapper.
development
Merge a specified branch into the current branch with a merge commit. Use this when the user wants to merge one branch into the current branch, or when Codex should auto-detect the source branch that has commits after the current branch. The skill checks whether the source branch and target branch have uncommitted work in any active git worktree, and resolves merge conflicts autonomously by default.
development
Prepare, build, and publish a Flutter Web app to S3-compatible object storage. Use when Codex needs to bump or update pubspec.yaml version, create a Flutter Web release tag, configure S3 deployment, build build/web, upload or promote web assets, or inspect a Flutter Web S3 release workflow.