factory
Gateway skill and playbook router for working in the Factory style: enforces floor invariants, loads only the matching principle-* skills, and routes…
от watt-mind★ 25 звёзд на GitHub
Установить factory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Factory Gateway
Single entry point that pairs AGENTS.md (the Factory floor) with concrete execution playbooks and on-demand principle-* skills.
Non-Negotiables
- Floor precedence:
AGENTS.md/shared/floor.mdalways wins (Owned Paths,Never auto-merge,escalate_paths,Blocked+factory notify, nogit stashin worktrees,## Handoff). - Ticket tripwire: Before the first file edit on meaningful trackable work, find or file the ticket and work in a dedicated worktree (
bin/worktree-up.sh). Skip only for read-only investigations and inconsequential edits (or when the user says"no ticket"). - Proceed vs. stop: Load
../principle-proceed-with-gates/SKILL.mdwhen unsure. Proceed autonomously on reversible local work; stop pre-push only onBlockedconditions (out-of-scope security entanglement, missing credentials, inseparableOwned Pathsgaps, or genuine unrecorded product-intent forks). For in-scope changes touchingNever auto-mergeorescalate_paths, implement, verify, and open an escalated PR without auto-merging. - Empirical forks: Before asking the user
"which approach?"or"how does X behave?", check if running a quick experiment (playbooks/prototype.md) or reading the code answers it objectively. - On-demand principles: Read only the
../principle-<name>/SKILL.mdfiles named by the active playbook (see../principles/SKILL.mdfor the full index). Never load every principle into context at once. - Non-blocking coordinator default: Keep the main session unblocked for steering, cross-slice seams, and final gates. Delegate multi-file edits, independent reviews, and heavy checks to isolated subagents routed by difficulty tier (
tier:light,tier:standard,tier:strong) withreviewer != implementeras a hard invariant. Checkfactory pulse(CAPACITY & FLOW) before widening parallel dispatch. - Evidence-only reporting: Cite exact file paths, symbol names, commit refs (
origin/<base>@<sha>), and observed test/command output.
Route the Task
Match the user's request to one mode below, read its playbook (or invoke the matching factory-* command), and follow its steps in order:
Interactive Coding & Verification Playbooks (playbooks/)
- Investigation (
playbooks/investigation.md) — Read-only question, architecture trace, code/principles audit, or empirical comparison (how does X work,why,review; pairs with/factory-how,/factory-why,/factory-teach). - Bug fix (
playbooks/bug-fix.md) — Reproduce a defect, observe a failing test first, trace and fix the root cause. - Feature (
playbooks/feature.md) — New or changed behavior, domain-first types, UI visual polish loop, and verification. - Refactoring (
playbooks/refactoring.md) — Behavior-preserving structural cleanup, decomposition, or deduplication. - Prototype (
playbooks/prototype.md) — Throwaway spike in$TMPDIR(nevergit stash) to settle an empirical or UI design fork. - Formal verification (
playbooks/formal-verify.md) — Model-checking races/state machines or property-testing pure invariants via/factory-formal-verify-create,/factory-formal-verify-maintain, and/factory-statechart.
Understanding, Orchestration & Reflection Skills (../factory-*/SKILL.md)
- How (
../factory-how/SKILL.md): Trace how a subsystem works today (origin/<base>freshness,codegraph_explore/rg, boundedfile:lineflow). - Why (
../factory-why/SKILL.md): Decision archaeology (git log -S/-L, PRs, Linear/GitHub issues,docs/product-decisions.md) before changing load-bearing code. - Teach (
../factory-teach/SKILL.md): Layerfactory-how+factory-why+factory-unslopinto progressive explanations with incremental Mermaid diagrams for 3+ interacting parts. - Unslop (
../factory-unslop/SKILL.md): Edit or write prose, PRs, docs, and skills with zero AI tells while preserving technical precision. - No Comments (
../factory-no-comments/SKILL.md,/factory-no-comments): Spawn the read-onlyfactory-comment-sickoreviewer on a diff or scoped module, strip non-keep-list comments, fix acceptedMUST KILLworkarounds/suppressions, and offer structural encodings for claimed constraints. - Orchestrate (
../factory-orchestrate/SKILL.md): Interactive Swarm partitions, Arena bakeoffs in isolated sandboxes, or Producer -> Critic pipelines (distinct from/factory-workstanding queue dispatch). - Reflect (
../factory-reflect/SKILL.md): Mine the active session transcript via 3 read-only lenses + synthesizer into project-local.claude/skills/,AGENTS.md, or structuralTriagetickets (distinct from harness/factory-frictionand log metrics/factory-retro). - Verify (
../factory-verify-create/SKILL.md,../factory-verify-maintain/SKILL.md,/factory-verify): Generate and maintain repo-local.claude/skills/verify-<app>/control skills and run pre-merge human-like E2E PR/branch
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- playbooks/bug-fix.md
- playbooks/feature.md
- playbooks/formal-verify.md
- playbooks/investigation.md
- playbooks/prototype.md
- playbooks/refactoring.md
FAQ
Что делает скилл factory?
Gateway skill and playbook router for working in the Factory style: enforces floor invariants, loads only the matching principle-* skills, and routes interactive work to a concrete playbook or factory-* command. Use for /factory, or when starting a non-trivial investigation, bug fix, feature, refactor, prototype, or formal verification.
Как установить скилл factory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл factory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…