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.
npx skills add nonlinear-xyz/factory-kit --skill factory-formsgit clone --depth 1 https://github.com/nonlinear-xyz/factory-kitWrote 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.
[](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-forms)<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-forms"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-forms/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.
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-forms"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-forms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.03103 |
| Opus 5.5 | $0.00047 | $0.01241 |
| Sonnet 5.5 | $0.00024 | $0.00621 |
| Haiku 4.5 | $0.00012 | $0.00310 |
Grade A, and why
factory-forms scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
await fetch(uploadUrl, { method: 'PUT', body: file, headers: { 'Content-Type': contentType } }); How it starts
The opening of the file, as written. The whole thing — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Factory forms
Each section leads with Principle (one sentence, stack-agnostic), then Why (constraint → option → tradeoff), then Recipe (the react-hook-form / Zod / Mantine or shadcn shape), and Failure mode when there's one to name. Sections that are pure style with no deeper truth are marked Recipe only.
Stack
Recipe only.
- react-hook-form — form state, validation, submission
- Zod — schemas
- Resolver —
mantine-form-zod-resolver(Mantine) or@hookform/resolvers/zod(shadcn) - Server submission — server action or tRPC mutation (see
factory-api.md)
Three Zod schema variants — server strict, client lenient, patch partial
Principle. Maintain three schema variants per entity: server strict, client lenient, patch partial. Don't try to unify them.
Why. HTML inputs in controlled React forms initialize to ''; the server expects null or a valid value. A unified schema accommodates both by sprinkling .or(z.literal('')) everywhere, which leaves the server schema enforcing nothing. Three schemas keeps each contract sharp: the server enforces real shape, the client tolerates the input flux, the patch shape is structurally partial (only-what-changed). Cost: more schema. Benefit: each layer's invariants stay enforceable.
Recipe.
// features/customers/schema.ts
// Server input — strict types, server enforces these
export const customerInputSchema = z.object({
orgId: z.string().uuid(),
name: z.string().min(1),
email: z.string().email(),
phone: z.string().regex(/^\+?[0-9-]+$/),
industry: z.enum(['retail', 'wholesale', 'manufacturing']),
});
// Client form — lenient, accepts empty strings (controlled-input compat)
export const customerFormSchema = z.object({
orgId: z.string().uuid(),
name: z.string().min(1, 'Required'),
email: z.string().email().or(z.literal('')).optional(),
phone: z.string().or(z.literal('')).optional(),
industry: z.enum(['retail', 'wholesale', 'manufacturing']).or(z.literal('')).optional(),
});
// Patch — partial updates
export const customerPatchSchema = customerInputSchema.partial();
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.
- 1mo ago First seen · 300 lines · 118 tokens per session scan A d602774081d5
factory-forms is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 5d ago), licensed MIT. It adds 118 tokens to every session and 3,103 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
react-dev
Explicit /react-dev reference for advanced React/TypeScript typing and integration patterns. Do not auto-use for routine React implementation.
mui
Material-UI v7 component library patterns including sx prop styling, theme integration, responsive design, and MUI-specific hooks. Use when working with MUI components, styling with sx prop, theme customization, or MUI utilities.
stitch
Operate Google Stitch through an already configured Stitch MCP server. Use when the user explicitly mentions Stitch or asks to generate, edit, vary, import, export, synchronize, or convert Stitch screens; manage a Stitch design system; run a resumable multi-page Stitch loop; or turn Stitch screens into React. Do not…
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).
vercel-react-best-practices
Explicit /vercel-react-best-practices reference for React/Next.js performance audits or optimization. Do not auto-use for routine implementation.
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.