Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

app-form

FreeNo executable scriptsNot checked

A product form screen (create or edit a record, sign-up details, checkout details) with validation, error and saving states, inside the app shell.

feimacodeby feimacode★ 1,227 GitHub stars

About this skill

App Form

Produce one form screen inside the app shell: creating or editing one thing, with every state a real form has.

Workflow

  1. List the fields the task needs and nothing more. Group them under two to four short headings. Mark the minority (usually "Optional").
  2. One column, labels above fields, helper text under the field where the format isn't obvious ("DD/MM/YYYY"). Field widths match the expected value (a postcode field is short).
  3. Actions at the end: the primary button named for the result ("Create invoice"), then "Cancel". A destructive action (delete this record) sits apart at the bottom, coloured as danger.
  4. Long forms (more than about eight fields) become steps with a progress indicator, or sections the user can collapse.

States

  • default: empty or prefilled fields, as the task starts.
  • error: after a failed submit: a summary at the top linking to each field, and each field's own message saying the fix. What the user typed is kept.
  • loading: submitting: the button keeps its width and says "Saving…", fields read-only, a live status line.
  • success: what happened and the next step ("Invoice INV-0042 created. Send it now?").

Self-check

  • Every field has a visible label; no placeholder is used as a label.
  • Errors say the fix in the user's words, next to the field.
  • Tab order follows the visual order; the primary button is reachable without scrolling past unrelated content.

Markup contract (shared by every app screen)

  • States. Each state of the screen is a sibling <section data-od-state="…">: default (populated), and the ones this pattern lists below from empty, loading, error, success, no-access, long-content. Only default is visible; the others carry hidden. The kit's check renders every state, and the preview shows them side by side.
  • Slots. Keep the seed's data-od-slot names (nav, toolbar, content, empty, loading) so states, links and comments line up.
  • Links between screens. When this screen is part of a planned flow, link to another screen with its entry path in href and its screen id in data-od-goto, and use the shared navigation the brief gives instead of drawing your own.
  • The app's own components. When the brief lists the app's components, build each part from one of them and mark it data-od-component="<Name>"; mark a part with no match data-od-component="new:<Name>".
  • Sample data. Records come from the data file the brief describes, never typed into the markup row by row: one template row or card with data-od-repeat="<list>" and data-od-bind=".<field>" inside it, single values with data-od-bind="<list>[n].<field>", and data-od-format for money, dates and numbers. Every screen that shows the same record binds to the same one.
  • Tokens only. Every colour, size, radius and shadow comes from the design system's :root variables. No raw hex outside :root.
  • Platform. Web app: the shell as given. iPhone, Android, tablet or desktop app: put data-od-device on <body> (iphone, android, tablet with data-od-orientation, or desktop-app with data-od-window="mac" or "windows"); the kit draws the device frame, status bar and home indicator around the screen, so never draw them yourself. iPhone or Android: a single column 390 px (iPhone) or 412 px (Android) wide, with a bottom tab bar instead of the side nav, a top bar with the title and a back button on inner screens, and 44 px (iPhone) or 48 px (Android) touch targets. Android screens use Material patterns (top app bar, floating action button where there is one main create action). Tablet: the sidebar collapses to an icon rail with labels in a tooltip, content in two columns where the pattern has a detail pane.
  • Density. Use the density the brief gives (compact, medium or airy) with the numbers from the product UI craft rules.

Seed

Start from this shell (one HTML file, inline CSS). Replace the comments; keep the structure.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Screen title · Product</title>
<style>
/* Paste the active design system's :root block here, then use only var(--…). */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:var(--text-base)/var(--leading-body) var(--font-body)}
.app{display:grid;grid-template-columns:1fr;min-height:100dvh}
.app-nav{display:flex;gap:var(--space-1);padding:var(--space-2) var(--space-4);border-bottom:1px solid var(--border);overflow-x:auto}
.app-nav a{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:0 var(--space-3);border-radius:var(--radius-md);color:var(--muted);text-decoration:none;white-space:nowrap}
.app-nav a[aria-current="page"]{background:var(--surface);color:var(--fg);box-shadow:var(--elev
Full SKILL.md on GitHub

Install app-form in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

.od-local-overlay

FAQ

What does the app-form skill do?

A product form screen (create or edit a record, sign-up details, checkout details) with validation, error and saving states, inside the app shell.

How do I install the app-form skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the app-form skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare app-form with