factory-ticket

factory-ticket is a command for Claude Code from watt-mind/factory. It costs 13 tokens per session (3,645 once invoked), scanned A, original, Apache-2.0.

A command for implementing exactly one already-claimed Linear ticket in its prepared worktree. Linear is a tool for tracking development tasks.

In plain words
What is it for?
Use it to implement the specified ticket and run its required verification commands in the assigned worktree.
Why use it?
It prevents the agent from taking another ticket, creating another worktree, or expanding beyond the ticket’s owned files.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; mentions subagents; mentions AGENTS.md.

Part of the core plugin — 38 skills, 22 commands, 5 agents, 1 hook shipped together

Good fit Use it to implement the specified ticket and run its required verification commands in the assigned worktree.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/watt-mind/factory/factory-ticket
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.

Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 22 commands, 5 agents, 1 hook.

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-ticket

README.md
[![agentmods](https://agentmods.dev/badge/commands/watt-mind/factory/factory-ticket/github.svg)](https://agentmods.dev/commands/watt-mind/factory/factory-ticket)
Your own site
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-ticket"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-ticket/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.

agentmods 80×15 button for factory-ticket

Your own site · 80×15
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-ticket"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-ticket.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00013 $0.03645
Opus 5.5 $0.00005 $0.01458
Sonnet 5.5 $0.00003 $0.00729
Haiku 4.5 $0.00001 $0.00364

Measured 7d ago against content hash a8e6e4e5c50b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-ticket 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 7d 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.

plugins/core/commands/factory-ticket.md · 77 lines

How it starts

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

Implement one ticket: $ARGUMENTS. You are already in its worktree, and the ticket is already claimed for you.

The dispatcher (orchestrator/tick.mjs) has done the setup: the ticket is In Progress, assigned, labelled ai:in-progress + agent:claude-code, and this worktree was created by the repo's own worktree-up.sh with its own branch, ports and database. Do not create another worktree, do not claim another ticket, and do not work anything except this one. This is the dispatched path, so it is always exactly one ticket — the protocol's human-requested ticket bundles (docs/protocol.md §6) never arrive here.

Do

  1. Read the ticket and restate your approach (plus boundary types or state invariants on tier:strong or cross-module work) as a comment on it. Assume the operator is AFK — never pause for confirmation; resolve open implementation details (module structure, naming, internal data/error shape, edge-case defaults consistent with acceptance criteria) from origin/<base> conventions, sibling modules, tests, git history, and docs/product-decisions.md, stating any non-obvious reversible assumption in your approach comment.
  2. Implement, touching only files matching its Owned Paths. Work discovered outside that set becomes a new Triage issue — never a widening of this one.
    • Fix root causes, not symptoms: Before editing, trace why the defect or invalid state enters the system. When the ticket's Verification Command runs a fast local check for a bug, run or add the regression test before the fix and observe it fail for the expected reason. A guard is a fix only when the state it handles is legitimate domain state — never paper over ordering, lifecycle, or state bugs with setTimeout / requestAnimationFrame delays, blind retries, clamped values, or catch-and-swallow blocks.
    • Do not copy adjacent weeds: If nearby code uses a deprecated helper, any, or an ad-hoc workaround, follow AGENTS.md and clean module boundaries rather than replicating local tech debt, while still matching the repo's established architecture and naming conventions.
    • No silent suppressions or workaround-alibi comments: Do not add eslint-disable, biome-ignore, @ts-expect-error, @ts-ignore, as any / as unknown as type escapes, or multi-line comments excusing why a quick patch was used instead of fixing the root cause. Boundary escape valve: when a third-party type definition, generated file, or documented platform/runtime quirk genuinely leaves no clean in-scope alternative, an escape hatch is allowed only if narrowed to the single line or expression and paired with a concrete citation (upstream bug/spec URL, external file:line, or a newly filed Triage issue ID) — never as a convenience shortcut.
    • Explore 2–3 options on net-new UI or layout redesigns (principle-exhaust-the-design-space): On net-new UI surfaces, material layout/flow redesigns, or explicit exploration requests (never routine bugfixes), articulate 2–3 distinct layout/interaction directions inside Owned Paths, prototype/render boundedly if helpful ($TMPDIR/<ISSUE-ID>-*.patch, never git stash), autonomously select and commit only the winner without stalling on an AFK operator, and record the explored options + winner rationale in your ticket comment and ## Handoff (Risks).
    • Render, visually self-polish (≥1 pass), and retain screenshots on any UI-affecting change (principle-experience-first): Even when Step 4's multi-journey factory-ux-critic is skipped (isolated styling, copy-in-layout, admin views), render the live UI, capture a bounded screenshot (not just accessibility snapshots; never Read the image back), critique hierarchy, spacing rhythm, alignment, contrast, truncation, and states coldly, and iterate at least once to polish rough first-draft UI before Step 3. Retain 1–4 final post-polish screenshots outside the repo (≤ 1 MB each) for Step 6 / interactive output.
    • Cold self-diff check before verification: Read git diff against origin/<base> cold before running Step 3. Confirm every touched file matches Owned Paths, every new test would fail without your behavioral fix (not mock-tautological), and every added comment, timer, or suppression satisfies the rules above.
  3. Verify on the final tree with targeted tests + fast static gates only: run the ticket's exact Verification Command (plus targeted test files covering the change — never bun test, full repo test suites, or whole-project coverage thresholds unless cross-cutting blast radius genuinely requires it, as CI covers full suites and concurrent dispatched worktrees make full runs a load-induced flake source) and the repo's fast pre-push static gates (configured verify command, or fast lint/format/typecheck on touched scope when verify is unset) so trivial static failures never burn a CI cycle. Attribute full-suite runs and project-wide coverage thresholds to CI, and name any deferred full suite or coverage check explicitly as residual risk under Risks in ## Handoff. Never proceed past failing output; never weaken a test to get green. Never background, Monitor-wait, or sleep-wait a ticket's own verify step — but that is not a license to trust a framing exit code: for a verify command expected to exceed ~10 minutes, use the floor's status-file idiom (shared/floor.md §Waiting — command writes its own exit code to a status file with output to a log file, then poll for the status file with repeated short calls), because the Bash tool auto-backgrounds any foreground command that outlives its timeout and the framing exit code is not the command's.
  4. UX critique after verification and before opening the PR when this introduces or materially changes a user-completable flow, interaction, state transition, error/recovery path, responsive layout, authentication, payment, onboarding, or destructive action. Spawn factory-ux-critic, fix in-scope FIX-FIRST findings, maximum 2 rounds, and file the rest to Triage. Skip it for isolated styling, copy-only edits, static content, icons/assets, and internal/admin-only surfaces unless the ticket identifies UX risk — skipping factory-ux-critic never skips Step 2's own rendered visual self-polish pass and screenshot capture when UI rendering is affected. State UX critique: required or UX critique: skipped — <reason> in the PR.

Read the full file on GitHub · 77 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. 7d ago Changed · +3 lines a8e6e4e5c50b
  2. 15d ago Changed e15b2b582bbf
  3. 16d ago Changed · +16 lines 312ddd4268a5
  4. 2mo ago Changed c8e07f4bb90f
  5. 3mo ago First seen · 58 lines · 13 tokens per session scan A 1547443c3833

Subscribe to this mod's changes

factory-ticket is a command published in the GitHub repository watt-mind/factory (24 stars, last pushed 3d ago), licensed Apache-2.0. It adds 13 tokens to every session and 3,645 once invoked, about $0.0001 per session on Opus 5.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

factory-ticket compared with commands from other repositories

factory-ticket next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-ticketwatt-mind/factoryCommand243d agoApache-2.0A13Claude Code
code-review-swarmruvnet/rufloCommand83kyesterdayMITA0Claude Code
pr-managerruvnet/rufloCommand83kyesterdayMITA0Claude Code
code-reviewruvnet/rufloCommand83kyesterdayMITA0Claude Code
pr-enhanceruvnet/rufloCommand83kyesterdayMITA0Claude Code
conveneHabitat-Thinking/ai-literacy-superpowersCommand124yesterdaynoneA59Claude Code
model-cardHabitat-Thinking/ai-literacy-superpowersCommand124yesterdaynoneA44Claude Code