factory-forms-builder

factory-forms-builder is a skill for Claude Code 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-forms-builder
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.

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.

Or install factory-kit, the plugin that ships this one along with the rest of its 47 skills, 11 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factory-forms-builder

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00146 $0.01870
Opus 5.5 $0.00058 $0.00748
Sonnet 5.5 $0.00029 $0.00374
Haiku 4.5 $0.00015 $0.00187

Measured 3mo ago against content hash bf37beda2131, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (10 stars, last pushed 11d ago), licensed MIT. It adds 146 tokens to every session and 1,870 once invoked, about $0.0006 per session on Opus 5.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

factory-forms-builder compared with skills from other repositories

factory-forms-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-forms-buildernonlinear-xyz/factory-kitSkill1011d agoMITA146Claude Code
muiDannykkh/skill-olympusSkill93d agoMITA48Claude Code, Codex
react-devDannykkh/skill-olympusSkill93d agoMITA29Claude Code, Codex
stitchDannykkh/skill-olympusSkill93d agoMITA77Codex
educational-presentationthomascasali/claude-kb-workflowSkill41mo agononeA0Claude Code, Codex
vercel-react-best-practicesDannykkh/skill-olympusSkill93d agoMITA37Claude Code, Codex
design-to-codeursazoo/lanhu-to-codeSkill256mo agononeA42Claude Code, Codex