factory-frontend-engineer

factory-frontend-engineer is a skill for Claude Code from nonlinear-xyz/factory-kit. It costs 98 tokens per session (1,526 once invoked), scanned A, original, MIT.

A frontend implementation workflow for screens that list, display, create, or edit records. It defines consistent patterns for tables, side panels, row actions, validation, data-fetching keys, and headings.

In plain words
What is it for?
Use it to scaffold admin screens, data tables, entity details, forms, dashboards, and hybrid pages. It helps choose between Mantine and shadcn and structure create/edit drawers around the selected record.
Why use it?
It removes the need to design every CRUD screen from scratch and reduces inconsistent behavior between lists, forms, and edit panels. CRUD means creating, reading, updating, and deleting records.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

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-frontend-engineer
Any agent
npx skills add nonlinear-xyz/factory-kit --skill factory-frontend-engineer
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 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-frontend-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-frontend-engineer.svg)](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-frontend-engineer)
Your own site
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-frontend-engineer"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-frontend-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,526 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.1 $0.00098 $0.01526
Opus 5 $0.00049 $0.00763
Sonnet 5 $0.00020 $0.00305
Haiku 4.5 $0.00010 $0.00153

Measured 6d ago against content hash 5c0ba0671a51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

factory-frontend-engineer 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 6d 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-frontend-engineer/SKILL.md · 110 lines

How it starts

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

Apply the frontend-engineer specialist workflow. Scaffold UI surfaces grounded in the factory's CRUD conventions, not generic React. Load factory-frontend, factory-design, and factory-stack through the host's skill capability when needed. factory-design owns visual coherence; factory-frontend owns CRUD shape.

How to think (in order)

  1. What surface is this? Restate the request in one sentence. Pick one:

    • List (queue of entities; filter/sort/paginate)
    • Detail (one entity's full view)
    • Form (create/edit, including multi-step)
    • Dashboard (rollup/chart heavy)
    • Hybrid — name it and split into two surfaces if you can.
  2. Is this CRUD? If yes, the default shape is DataTable + drawer with mode union. Don't deviate without naming why. The drawer mode is the tagged union {kind:'closed'}|{kind:'create'}|{kind:'edit'; entity}. The drawer edits only the clicked target; relations open their own drawers.

  3. Which component library? Check the project's CLAUDE.md or DECISIONS.md. If unset:

    • Mantine when CRUD-heavy / internal tool / form-table dense. Pair with @mantine/form + schemaResolver.
    • shadcn when there's a marketing site, design flexibility matters, or Tailwind muscle memory dominates. Pair with react-hook-form + zodResolver.
    • Flag the choice in your output if you had to make it.
  4. What primitives already exist? Before writing anything new, check:

    • src/components/datatable/ — DataTable, RowActions, ColumnDef, ValidationRules
    • src/lib/format.ts — formatCurrency, formatInteger, formatPercent
    • src/components/PageHeader.tsx / CardHeader.tsx / FormSection.tsx — heading tiers
    • src/features/<sibling>/ — peer feature folders for the colocated shape
    • If a primitive is missing where it should exist, create it first — don't inline. Single source.
  5. What's the schema shape? Three Zod variants for a CRUD entity:

    • Input schema — server-side strict (UUIDs are UUIDs, no empty strings)
    • Form schema — client-side lenient (empty-string defaults, nullable().or(literal('')))
    • Patch schema — partial input for updates (input.partial() or .pick({}) per field)
    • All three live in features/<entity>/schema.ts.
  6. What's the data path? Default: server action wrapped by TanStack Query mutation. tRPC only if the project already commits to it.

    • Action in features/<entity>/actions.ts with "use server" directive
    • Hook in features/<entity>/hooks.ts wrapping the action with useMutation
    • Query keys: ['entity', 'list', filters] / ['entity', 'detail', id]
    • Invalidate at ['entity'] after mutations.
  7. What conventions must hold?

    • Semantic tokens only — consume named tokens (bg, surface, fg, fg-muted, accent, border, etc. — see factory-design.md). No hex literals in components, ever. No dark: variants on individual elements — let CSS-var swap handle modes.
    • Format helpers from src/lib/format.ts — never inline currency math.
    • Tier components — PageHeader / CardHeader / FormSection. Never freeform <h1>/<h2>.
    • Empty + error + loading states — required, not optional.
    • Feature folders are peers — code in features/cases/ doesn't import from features/products/. Shared logic goes to lib/.
  8. What's the smallest correct change? If asked for a table, build the table — don't redesign the whole space. If a change implies redesigning something else, name it and stop.

Read the full file on GitHub · 110 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. 6d ago First seen · 110 lines · 98 tokens per session scan A 5c0ba0671a51

Subscribe to this mod's changes

factory-frontend-engineer is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 1,526 once invoked, about $0.0005 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

hook-template

Generate hook script from template. Use when adding a new hook, wiring a PreToolUse/PostToolUse/Stop/Notification hook, or scaffolding hook config for settings.json.

claude-world/director-mode-lite · 39 tokens

agent-template

Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.

claude-world/director-mode-lite · 30 tokens

workflow

Run the complete 5-step development workflow: focus problem → prevent over-development → test-first (TDD) → document → smart commit. Use when starting a new feature, or when the user runs /workflow or asks for the full development flow.

claude-world/director-mode-lite · 52 tokens

check-environment

Verify Claude, Codex, and Grok availability plus Director guidance, relay, agents, and skills. Audit optional hooks only when selected. Use after installation or when a native surface misbehaves.

claude-world/director-mode-lite · 44 tokens

doc-writer

Documentation templates and standards: README structure, API reference format, changelog (Keep a Changelog), and comment guidelines. Use when creating or updating documentation. Loaded automatically by the doc-writer agent.

claude-world/director-mode-lite · 44 tokens

smart-commit

Create clean Conventional Commits: inspect the diff, group related changes, run quality checks, and write type(scope) messages. Use when committing work, or when the user runs /smart-commit or asks to commit changes.

claude-world/director-mode-lite · 49 tokens