factory-forms-builder

factory-forms-builder is a skill for Claude Code, Codex from nonlinear-xyz/factory-kit. It costs 146 tokens per session (1,870 once invoked), scanned A, original, MIT.

A specialist workflow for building forms with multiple steps, complex data entry, or create/edit panels. It uses React form handling and Zod schemas, with separate rules for server data, user input, and partial updates.

In plain words
What is it for?
Use it for onboarding wizards, complex intake forms, drawer-based create/edit screens, and inline table editing. It helps organize form sections, field definitions, conditional fields, and automatic cleanup of hidden values.
Why use it?
It prevents large forms from becoming one tangled component and keeps validation appropriate for both browsers and servers. It also provides patterns for fields that appear or disappear based on other answers.

Skill for Claude CodeCodex

Part of the factory-kit plugin — 37 skills, 8 commands, 12 agents, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-forms-builder
Any agent
npx skills add nonlinear-xyz/factory-kit --skill factory-forms-builder
Clone the repo
git clone --depth 1 https://github.com/nonlinear-xyz/factory-kit

Made for: Claude Code, Codex.

Or install factory-kit, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 12 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factory-forms-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-forms-builder.svg)](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-forms-builder)
Your own site
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-forms-builder"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-forms-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00146 $0.01870
Opus 5 $0.00073 $0.00935
Sonnet 5 $0.00029 $0.00374
Haiku 4.5 $0.00015 $0.00187

Measured 3d ago against content hash bf37beda2131, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

factory-forms-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/factory-forms-builder/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Apply the forms-builder specialist workflow. Build forms grounded in the factory's conventions, not generic react-hook-form code. Load factory-forms through the host's skill capability when needed.

How to think (in order)

  1. What kind of form? Pick one:

    • Single-step drawer-CRUD form — create/edit one entity → use the drawer mode union from factory-frontend.md
    • Single-step page form — login, settings, simple intake → vanilla react-hook-form
    • Multi-step wizard — onboarding, complex intake → section files + field registry
    • Inline edit — DataTable cell editing → different pattern, see factory-frontend.md
  2. How many fields?

    • < 10 — inline schemas, hand-written JSX
    • 10–30 — section files but no registry needed
    • 30+ or AI-context-aware — field registry
  3. Schemas — three variants (see factory-forms.md):

    • Server input — strict (real types, no empty-string fallbacks)
    • Client form — lenient (accepts empty strings because controlled inputs default to '')
    • Patch — partial input for updates
  4. Conditional visibility? If any field's display depends on another's value:

    • Declarative rules in src/lib/utils/conditional-visibility.ts
    • Auto-cleanup when parent toggles off — set hidden child's value to undefined
    • Otherwise stale conditional data sneaks into submissions
  5. Sensitive fields? SSN, EIN, government IDs, financial accounts:

    • Masked input (mask="99-9999999" etc.)
    • KMS encryption at rest — see factory-security.md
    • Mask in display, decrypt only at the handler that returns plaintext
  6. Auto-save? If the form takes more than a couple minutes to fill out:

    • 2s debounce on field blur
    • 3min safety-net interval flush
    • Server accepts the lenient schema during auto-save; strict schema on submission
  7. Dynamic field arrays? (contacts, beneficial owners, line items)

    • useFieldArray from react-hook-form
    • Max-count rule via rules: { maxLength: { value: N, message: '...' } }
    • Add/remove buttons; consider drag-reorder for ordered arrays
  8. File uploads? Direct-to-S3 with presigned URLs (don't proxy through your server):

    • Server action generates upload URL
    • Client PUTs file to S3
    • Server action confirms upload (records fileKey)
  9. Submission UX?

    • useTransition wrapping the async submit
    • isPending gates the submit button
    • Toast on success / error
    • Invalidate the right TanStack Query keys on success

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 185 lines · 146 tokens per session scan A bf37beda2131

Subscribe to this mod's changes

factory-forms-builder is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 1,870 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

educational-presentation

Crea presentazioni interattive per lezioni scolastiche ITIS usando React via CDN, dark theme, simulatori interattivi, e quiz. Due approcci consolidati: CDN-based (zero build, HTML puri) e Build-based (Vite+TS+Tailwind). Deploy su GitHub Pages. Progetto di riferimento: presentazione-vpn (Mar 2026).

thomascasali/claude-kb-workflow · 86 tokens

design-to-code

Lanhu to Code workflow for Claude Code. Convert Lanhu design URLs into Vue/React frontend code with component reuse, design token mapping, TODO-safe business logic, and optional code review.

ursazoo/lanhu-to-code · 42 tokens

component-doc-gen

Scan frontend src directories and generate docs/components.md so Claude Code can reuse existing Vue/React components during design-to-code generation.

ursazoo/lanhu-to-code · 29 tokens

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API ( component, addTransitionType, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components…

zhukunpenglinyutong/desktop-cc-gui · 127 tokens

ss-studio

Turn a product brief and optional references into three distinct creative directions, a human-selected StyleSeed interaction plan, generated image/video asset jobs, a working UI prototype, and a verified prototype-first showcase reel. Use for client concepts, app interaction exploration, trendy but coherent UI…

bitjaru/styleseed · 75 tokens

ss-copy

Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone.

bitjaru/styleseed · 29 tokens