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 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.
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.
- 3mo 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 (10 stars, last pushed 11d 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.
factory-forms compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| factory-formsnonlinear-xyz/factory-kit | Skill | 10 | 11d ago | MIT | A | 118 | Claude Code |
| muiDannykkh/skill-olympus | Skill | 9 | 3d ago | MIT | A | 48 | Claude Code, Codex |
| react-devDannykkh/skill-olympus | Skill | 9 | 3d ago | MIT | A | 29 | Claude Code, Codex |
| stitchDannykkh/skill-olympus | Skill | 9 | 3d ago | MIT | A | 77 | Codex |
| educational-presentationthomascasali/claude-kb-workflow | Skill | 4 | 1mo ago | none | A | 0 | Claude Code, Codex |
| vercel-react-best-practicesDannykkh/skill-olympus | Skill | 9 | 3d ago | MIT | A | 37 | Claude Code, Codex |
| design-to-codeursazoo/lanhu-to-code | Skill | 25 | 6mo ago | none | A | 42 | Claude Code, Codex |