factory-how

factory-how is a skill for Claude Code from watt-mind/factory. It costs 49 tokens per session (679 once invoked), scanned A, original, Apache-2.0.

A read-only method for tracing how a codebase or feature works from its entry point through its data flow and side effects.

In plain words
What is it for?
It is for answering how-system questions, documenting execution paths, and investigating modules without editing product code.
Why use it?
It replaces assumptions about architecture with evidence from the actual files, symbols, and callers.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents.

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

Good fit It is for answering how-system questions, documenting execution paths, and investigating modules without editing product code.

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

Any agent
npx skills add watt-mind/factory --skill factory-how
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-how

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/watt-mind/factory/factory-how"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/factory-how.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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.00049 $0.00679
Opus 5.5 $0.00020 $0.00272
Sonnet 5.5 $0.00010 $0.00136
Haiku 4.5 $0.00005 $0.00068

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

Security

Grade A, and why

factory-how 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 11d 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/skills/factory-how/SKILL.md · 45 lines

How it starts

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

How (architecture & flow trace)

Explain how a codebase mechanism actually works end to end using direct code evidence. Pairs naturally with ../principle-minimize-reader-load/SKILL.md (trace from trigger to side effect, skip wrapper noise) and ../factory-why/SKILL.md when rationale is also needed.

This skill is read-only. Never edit product files during a trace.

Workflow

1. Check checkout freshness

Run git fetch --quiet and check HEAD against origin/<base>. If the checkout is clean and current, link workspace files directly (file:///...#L1-L40). If behind, ahead, or dirty, read from origin/<base> (git show origin/<base>:<path>) and cite origin/<base>@<sha>. If fetch/rev-list fails, mark freshness unknown and prefer origin/<base>.

2. Locate before reading

  1. If .codegraph/ exists at the repo root, call codegraph_explore first to resolve symbols, dynamic dispatch, and callers in one shot.
  2. Otherwise use rg -n (excluding .git, node_modules, .nuxt, .trigger, build outputs) to find entry points, handlers, state stores, and tests.
  3. Read only bounded line ranges around the entry point, boundary checks, state transitions, and sinks.

3. Fan out multi-module traces cleanly

If a flow spans 3+ subsystems (for example, UI trigger -> API boundary -> background queue -> state store), delegate read-only slices to parallel read-only exploration subagents partitioned by layer or directory, then verify their file:line claims before synthesizing.

4. Trace concrete behavior

Cover what an engineer needs to change the code safely:

  • Entry point and trigger: User action, CLI command, webhook, cron, or event listener.
  • Control and data flow: Step-by-step path across boundaries (input -> validation -> state mutation -> side effect/response), naming exact types and functions.
  • State and concurrency: Locks, leases, retries, idempotency keys, cancellation/cleanup, and failure modes.
  • Invariants and verification: Existing tests or formal specs (.claude/skills/verify-*/SKILL.md) that constrain changes.

Read the full file on GitHub · 45 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. 11d ago Changed · -3 tokens per session 4c73cb68c6fb
  2. 13d ago First seen · 45 lines · 52 tokens per session scan A 97cd43b1110f

Subscribe to this mod's changes

factory-how is a skill published in the GitHub repository watt-mind/factory (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 679 once invoked, about $0.0002 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-11-17.

Related

factory-how compared with skills from other repositories

factory-how next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-howwatt-mind/factorySkill24yesterdayApache-2.0A49Claude Code
agent-performance-optimizerruvnet/rufloSkill83ktodayMITA19Claude Code
agent-refinementruvnet/rufloSkill83ktodayMITA15Claude Code
ap-depth-proberSpielewoy/autoprompt-skillSkill1.3k1mo agoMITA22Claude Code
ap-preflight-probeSpielewoy/autoprompt-skillSkill1.3k1mo agoMITA23Claude Code
reengineering-vibe-coderichfrem/agent-plugins-skillsSkill82d agoMITA124Claude Code
mutation-testingvmobifystudio/app-dev-teamSkill56d agoMITA65Claude Code