/factory-kit:factory-log <now|plan|state|finding|decision|resolve|learn> [issue-id] (issue auto-detected from branch)from factory-kit
Maintains a Linear working doc attached to an issue with a compact 'Now' status block, plan, state model, decisions, findings, and learnings. Keeps the issue description clean and avoids agent comment threads.
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.
Linear is the ticket's working surface, but moving agent prose from the terminal into Linear only relocates the overload. The operator should be able to glance at the issue and know two things: where it stands and what they owe. Everything else is available one click away and never in the read path.
All the action lives in one place, the working doc: a Linear document attached to the issue, so it shows on the issue without adding text to it.
| Part | Job | Who writes |
|---|---|---|
| Now block, the top of the working doc | Status, what the operator owes, what's blocked | Agent; rewritten in place, never appended |
| Sections below it | Prep, codebase, plan, state model, decisions, findings, learn rep | Agent; each section edited in place |
| Comments, on the doc (preferred) or the issue | The operator's answers, pushback, and learn-rep code | Operator. The agent only replies to a comment the operator started. |
| Issue description | The ticket itself: problem, scope, decisions the operator records | Operator. The agent doesn't write here. |
Invocation input: a kind, optionally followed by an issue identifier. If the identifier is omitted, auto-detect it from the branch (as factory-submit.md does). If none can be derived, ask.
.factory-kit/linear.json (legacy .claude/linear.json as fallback):
{
"agentLabels": { "group": "Agent", "working": "Working", "needsDecision": "Needs decision", "blocked": "Blocked" },
"learnSurface": "local"
}
agentLabels names a Linear label group, so the issue carries exactly one agent state. If the group is missing, say so once and point to factory-setup-linear.md.learnSurface: "linear" lets learn reps run on the issue. A client's workspace is client-facing, so the default is "local".The first thing in the working doc, separated from the sections by a rule. At most 8 lines.
**Now:** <what is happening, one line>
**Needs you** (comment on this doc):
1. <question>? Reply `1 <a>` or `1 <b>`
2. <ask>: reply `2 go`
**Blocked:** <one line, or "nothing">
---
_x_ becomes *x*, collapsibles are stored as >>>), so match against the stored form, never against what you sent.1 neutral, on the doc or the issue; read both. More than four items means you're asking too much: decide the implementation-level ones yourself (factory-voice.md § When to ask vs when to decide).One Linear document attached to the issue, titled <KEY-N> · Working doc. Create it on the first write of any kind and reuse it from then on. Below the Now block, sections come in this order, each replaced in place:
## Prep and ## Codebase: written by factory-prep.md when the ticket enters Todo or In Progress: the verdict, the assumption check, and a code map pinned to the commit it read.## Plan: a short step walkthrough. Mark done steps ✓. Then Verify: and Not doing:.## State model: ts code blocks for the props type and the state union, plus a state → screen table (the recipe in factory-state-modeling.md).## Decisions: one line each, - <date> · <question> → <answer>. <why>, newest first.## Findings: one line each, - <date> · <file:line> <what> → <what it changes>. Only findings that change the plan. Progress belongs in commits.## Learn rep: only when learnSurface is "linear".now: rewrite the Now block.plan / state: replace the doc section, then rewrite the Now block if the status changed.finding: add one line to ## Findings. If it changes what the operator owes, update the Now block too. Never post it as a comment.decision: add a numbered line to Needs you. Set the label to Needs decision, then keep working on what the decision doesn't block. Ask in the terminal instead only when the operator is in the session right now and the answer blocks everything.resolve: when a reply answers an item, remove it from the Now block, add a line to ## Decisions, and set the label back to Working once nothing is owed. If the answer is ambiguous, reply under it with one question, the only time the agent comments.learn: put the rep in ## Learn rep: rung, file · function, the operator's job, done-when, and the skeleton with blanks. Add Learn: <one line>, reply with a comment to Needs you. When the operator comments with their code, coach in replies under their comment: one guiding question, then one hint, then a parallel case, per factory-learn.md. Copy their final code into the repo verbatim, without "fixing" it on the way in; a correction goes back as a hint. Record the review verdict in the doc section, and the rep in ~/.factory/learner/ with the comment link.Set one label from the group: Working while work is underway, Needs decision while Needs you is non-empty, and Blocked when a failure needs the operator (credentials, a broken environment, a gate the agent may not cross). Remove the label on close. A saved Linear view filtered on Needs decision is the operator's queue across tickets.
One line per write, nothing more:
KAI-329 · needs you: 2 items → <issue link>
factory-voice.md: register and when to ask versus decide.factory-entry.md: reads the Now block, the doc and new replies at session start, and runs resolve.factory-prep.md: writes ## Prep, ## Codebase and the first ## State model.factory-state-modeling.md: what goes in ## State model.factory-learn.md and factory-mentor.md: learn-rep rules.factory-close.md: builds the closing comment from ## Decisions and clears the Now block and the label.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job