/factory-kit:factory-learn [track] [what to practise] (optional, e.g. typescript-testing, or "the prior-period invariant")from factory-kit
Switches Claude into learn mode for one practice rep anchored in real work. Reads the operator's progress log, picks the next exercise from a skill track, coaches the operator through writing it, reviews the result, and logs the rep.
Ships in factory-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You're switching learn mode on (factory-mentor.md § Learn mode) for one rep. The operator writes the artifact; you coach. Read that section before starting; its rules override your default of doing the work.
Invocation input: optional. A track name (typescript-testing), a thing to practise ("the prior-period invariant"), or both. If empty, continue the active track from the progress log.
Surface. If the project's .factory-kit/linear.json sets learnSurface: "linear" and the rep is anchored in a ticket, run the rep in Linear through factory-log learn. Set the rep in the working doc's ## Learn rep section, with one line under Needs you. The operator comments with their picks, reasoning and code blocks, and you coach in replies under their comment. Step 7 still writes the local log, with the comment link. Otherwise run the rep in the terminal.
Read the learner state. Read ~/.factory/learner/profile.md and the track file for the requested or active track.
profile.md is missing, ask the operator three short questions: what they want to get better at, which track to start with, and roughly how much time per rep. Create profile.md and the track file from their answers, starting at Rung 0 unless they say otherwise.Read the track. Load tracks/<track>.md from the factory-mentor skill directory. Note the current rung's skill, exercise and "done when" signal.
Pick the rep. Anchor it in what the operator is working on now: the current ticket, branch diff or recently changed modules. If the operator named something to practise, use it when it fits the rung; if it is a rung or two ahead, say so and offer the nearest rung-appropriate version. State the rep in four lines:
Set it up without doing it. Give the shape: file location, the case names worth covering, a skeleton with the decisions left blank. Then ask one guiding question aimed at the decision. Do not write the assertion, the expected value, the row or the dimension list. That is the rep.
Coach while they work.
Review. Blunt, with the concrete input that breaks it. One improvement, not a list. Say whether the rep met the rung's "done when" signal.
Record the rep. Append to the track file, newest first: date, repo and ticket, file, what they wrote, what they got right, what they missed, and the next step (same rung, or the next rung once the signal has held twice in a row). Update the Rung: line when they move up. Show the operator the line you wrote.
Return to ship mode. Say so in one line. The rest of the ticket proceeds normally, and the ambient layer of factory-mentor.md stays on.
learnSurface: "linear"). The same data rules apply: synthetic fixtures only.Follow factory-voice.md for register and factory-mentor.md for teaching. Short turns: the operator is working, not reading.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
learn-mode, skill-tracks, coaching, practice-reps, operator-training
npx claudepluginhub nonlinear-xyz/factory-kit --plugin factory-kit47 skills in this plugin
/factory-animationMotion discipline distilled across builds. Attention as a fixed per-viewport budget, figure/ground separation (calm the ground, load motion into the figure), one focal point of motion per screen, diegetic-over-decorative test, trigger-on-intent-then-settle over perpetual loops, and the prefers-reduced-motion fallback. Recipe pairs Astro with a Remotion video kit (rendered assets in public/). Read whenever you add motion to a marketing surface or any page where movement competes with reading. Paired with factory-design, which owns the static visual vocabulary motion sits on top of./factory-apiAPI conventions for both server actions and tRPC builds. Covers the decision between them, per-mutation Zod input schemas, central router composition, pagination shape, multi-field search via Drizzle `ilike` + `or()`, mutation lifecycle hooks, conditional query enabling, stale-time defaults, error response shape and custom error class taxonomy, mutation-boundary audit logging, fetch adapter for tRPC routes. Read when designing or implementing any data-mutation endpoint./factory-api-route-engineerUse when designing or implementing API endpoints — server actions, tRPC procedures, REST routes for external consumers. Carries the factory's API conventions — the server actions vs tRPC decision, procedure tier stacking, per-mutation Zod schemas, central router composition with manual registration, pagination (limit/offset/orderBy default; cursor only when needed), multi-field search via `ilike` + `or()`, aggregated stats in list queries, mutation lifecycle hooks, stale-time defaults, custom error class taxonomy, fetch adapter for tRPC in App Router. Outputs endpoints that fit the house style — not bespoke per-route handlers./factory-authAuth and authorization conventions distilled across builds with three different auth stacks (Better Auth + orgs, Supabase Auth + RLS, Clerk). Covers the provider decision matrix, the unified wrapper interface (`requireAuth` / `requireRole` / `withOrgContext`), procedure tier stacking, session handling, OAuth callback safety, plugin composition with Better Auth, and the anti-patterns (hardcoded allowlists, admin client at module scope, triple-fallback auth surfaces)./factory-auth-wiring-specialistUse when wiring auth into a new project, switching auth providers, or adding role/org features. Carries the factory's auth conventions — the provider decision matrix (Better Auth + orgs primary, Supabase + RLS for RLS-heavy cases, Clerk for consumer/SSO), the unified `requireAuth` / `requireRole` / `withOrgContext` wrapper interface, procedure tier stacking, OAuth callback safety (`safeNext`), JWT signature verification with fallback user-linking, admin-client bypass guardrails, role-conditional post-login redirects. Produces auth code that fits the house seam — provider is a swap point, not a leak./factory-autopilotThe contract for an unattended build run started by `factory-kit autopilot run`. The agent edits and verifies in its assigned worktree; the runner owns the gate, commits, push, draft PR and Linear handoff. Read when a prompt says you are running under autopilot.Other plugins' skills for the same job