factory-how
Map and explain how a system, module, or end-to-end flow works today with concrete file paths, line numbers, and observed control/data flow. Use for…
от watt-mind★ 25 звёзд на GitHub
Установить factory-how в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- If
.codegraph/exists at the repo root, callcodegraph_explorefirst to resolve symbols, dynamic dispatch, and callers in one shot. - Otherwise use
rg -n(excluding.git,node_modules,.nuxt,.trigger, build outputs) to find entry points, handlers, state stores, and tests. - 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.
5. Present clearly
Apply ../factory-unslop/SKILL.md rules:
- Open with a 2-sentence plain summary of the mechanism before diving into steps.
- Link every file, symbol, and line range explicitly (
[name.ts](file:///path/name.ts#L10-L35)ororigin/<base>@<sha>). - Add a focused Mermaid
flowchartorsequenceDiagramonly when 3+ components interact across boundaries (quote any node label containing parentheses or brackets). - Never state behavior from memory or filenames alone: report only code actually inspected, and mark any inference as inferred.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл factory-how?
Map and explain how a system, module, or end-to-end flow works today with concrete file paths, line numbers, and observed control/data flow. Use for /factory-how, 'how does X work', or architecture traces.
Как установить скилл factory-how?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл factory-how запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…