Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

frontend-patterns

Skill by rommapp

Guides developers on how RomM v2 frontend features should behave. It names one canonical mechanism per pattern for errors, loading, real-time updates, state persistence, forms, permissions and confirmations. Intended for work under frontend/src/ in the RomM repository.

  • Score 83
  • 15k stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install frontend-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rommapp/romm /tmp/romm && mkdir -p ~/.claude/skills && cp -r /tmp/romm/.claude/skills/frontend-patterns ~/.claude/skills/frontend-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install frontend-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets out the behavior patterns for features in the RomM v2 frontend. It covers error and snackbar handling, loading and skeleton states, Socket.IO real-time updates, and where UI state should live: URL query params, localStorage, or ephemeral state. It also covers pagination and infinite scroll, forms and validation, permission checks with useCan, and destructive confirmations.

Each pattern names one canonical mechanism, such as useSnackbar, useFetchState, useSocketEvent and RForm, and tells the developer not to build a parallel one. The skill is written for developers implementing data flows, dialogs, forms, toggles, or permission gating under frontend/src/ in RomM.

Written from the project's SKILL.md and checked against it.

What it can do

  • Error and snackbar handlingUses the useSnackbar channel, persistent notifications, and in-place field validation errors.
  • Loading statesCovers skeletons, inline control loading, and useFetchState for components that fetch their own data.
  • Real-time updatesRequires useSocketEvent on one shared Socket.IO instance, with store ownership rules for subscriptions.
  • UI state persistenceSets rules for useUISettings, URL query params, and useUserLocalStorage for per-entity preferences.
  • Async lifecycleAdvises snapshotting reactive values before await, narrow watch sources, and useIsAlive for late responses.
  • Pagination and scrollDescribes the LoadMore fallback, RVirtualScroller, and scroll restoration on back navigation.
  • Forms and validationRequires the RForm primitive and plain function validation rules from src/utils/validation.ts.
  • PermissionsExplains useCan(action, scope), the domain.action vocabulary, and v-if or disabled gating.
  • Destructive confirmationsRoutes destructive actions through ConfirmDialog via useConfirm, with type-to-confirm for filesystem actions.

What you need

  • Access to the RomM v2 frontend codebase (frontend/src/)
  • Pinia and Socket.IO as used by the v2 frontend

Try asking

  • Wire up a data fetch for my new gallery component using useFetchState.
  • Add a delete button for collections that respects useCan and uses a confirm dialog.
  • Set up a form with validation and submit handling for a RomM settings page.

Good to know

  • Describes frontend patterns only, for the RomM v2 frontend under frontend/src/.
  • Frontend permission checks are a UX hint; the backend is the source of truth.
  • Pagination page size lives in the store and is not user-configurable for now.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/frontend-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB

Alternatives to frontend-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

frontend-patterns: common questions

Where should UI filters and search live in RomM v2?

Active filters, search and sort belong in URL query params so a copied link reproduces the same view. Persistent preferences go through useUISettings.

Does the skill cover real-time updates in RomM?

Yes. It requires subscriptions through useSocketEvent and one shared socket in src/services/socket.ts, and says not to wire socket.on or socket.off by hand.

Are frontend permission checks enough to secure RomM?

No. The skill states that the backend is the source of truth and that frontend checks are a UX hint only.

How do I install frontend-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is frontend-patterns free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is frontend-patterns safe to use?

It scores 83 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to frontend-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

frontend-patterns Install

Add to stack

Loading.