factory-planner

factory-planner is a skill for Claude Code from ArcBlock/agent-skills. It costs 106 tokens per session (4,143 once invoked), scanned A, original, MIT.

A planner for an automated software work process. It decides which recorded work should wake up, judges its state, and moves eligible work through design, building, and acceptance stages.

In plain words
What is it for?
Use it to schedule work tracks, advance staged tasks, handle approval-related decisions, and support dry-run planning for a repository.
Why use it?
It keeps planning decisions in one place and avoids repeating checks when the required wake condition has not changed. It also separates planning from the system that submits and approves work.

Skill for Claude Code

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

Part of the agentloop plugin — 24 skills shipped together

Good fit Use it to schedule work tracks, advance staged tasks, handle approval-related decisions, and support dry-run planning for a repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcblock/agent-skills/factory-planner
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 ArcBlock/agent-skills --skill factory-planner
Clone the repo
git clone --depth 1 https://github.com/ArcBlock/agent-skills

Made for: Claude Code.

Or install agentloop, the plugin that ships this one along with the rest of its 24 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcblock/agent-skills/factory-planner"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/factory-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,143 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.00106 $0.04143
Opus 5.5 $0.00042 $0.01657
Sonnet 5.5 $0.00021 $0.00829
Haiku 4.5 $0.00011 $0.00414

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

Security

Grade A, and why

factory-planner 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 29d 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/agentloop/skills/factory-planner/SKILL.md · 154 lines

How it starts

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

factory-planner — 工厂给自己派活

Repo profile — 先读 .claude/repo-profile.md。 repo_slug、factory_planner_* 诸键、label 集合都从 profile 取,别硬编码。

它在哪一层

GitHub issues  →  /work(状态主体)  →  factory-planner(只做判断)  →  plan-submit(可信入口)  →  approval drain  →  land  →  monitor

factory-labor-discipline 规定工厂「只做派活和安排成果检查」:派工的决定只在这里发生。

上线前提(已全部落地)

本 skill 只负责判断,边界由代码保证(R1–R8 详见 reference/prerequisites.md):

  • R2 边界上的文件(.claude/factory-r2-boundary.txt 加工厂代码下限,#9637)planner 不能为它们开 track,其余命中禁区的照常按「判定顺序」走 panel + 评判团。
  • FACTORY_PLANNER_DRY_RUN=1 时只做 --dry-run,写到 $ARC_HOME/planner/dry-run/<轮次时间>.json。
  • 工具层白名单(#9589 W-01):会话只拿到 reference/tool-allowlist.json(读命令、work plan-check、live 四个写入口 judge/attention/decide/plan-submit,文件只写 $ARC_HOME/planner/)。本文凡说「跑 plan-submit --check」,一律用 plan-check 跑;被拒就是边界:记进轮次记录,不换写法绕过。

四条设计原则

  1. 不重复扫:判定带唤醒条件(wakeOn)。 详见 reference/wake.md。
  2. 按阶段推进,拉动式(accept → build → design)。 详见 reference/stages.md。
  3. 不等人:能回滚的先推进。 详见 reference/approve.md 与 reference/attention.md。
  4. 边界由代码执行,判断只是第一道筛子(C-2):
    • 命中普通禁区 → 照常派工,plan-submit 放行并列出 denyHits,合并前由 Gate 6 要 correctness + security panel 加跨引擎评判团 approve。
    • 触到 R2 边界(.claude/factory-r2-boundary.txt)→ plan-submit / merge-check 以 deny-path 拒绝。只有这一类不派、不合。
    • 操作本身是 R2(approve.md 可逆性表)→ 交人(human),与路径无关。

判定集合(闭合,每条必带 wakeOn)

verdict 含义 典型 wakeOn
plan 工厂可以自理,进入某一阶段 该阶段 stage task 进入终态
decide 需要拍板(方向不定、缺授权),但做错能回滚 → 交给 approve agent decision 写入
human 只限 R5 算出的 R2 级决定(不可逆或对外)→ 挂 attention,交给人 decision 由人写入、attention 被人清除
owned 别人已认领(agent:processing、assignee、在飞 PR、别人的 epic) 认领释放、PR 关闭、认领超过 factory_planner_clock 的 stale_claim
blocked 依赖未完成 blocker 进入终态
excluded 只有一种:目标实现面触到 R2 边界——该候选的 plan-submit --check 以 deny-path 拒绝;写入时必须带本轮的单成员 manifest(work judge --manifest),代码重跑检查,不认就拒(#9589 W-02) deny-changed(禁区清单或准入规则变化,#9504)
not-actionable P3、记录类、没有具体失败,或者目标实现面定位不出来 指纹变化、path-changed:<前缀>
duplicate 与某条重复(写明是哪条) 那条进入终态

Read the full file on GitHub · 154 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 29d ago First seen · 154 lines · 106 tokens per session scan A 2e1615aa82d4

Subscribe to this mod's changes

factory-planner is a skill published in the GitHub repository ArcBlock/agent-skills (5 stars, last pushed 22d ago), licensed MIT. It adds 106 tokens to every session and 4,143 once invoked, about $0.0004 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-03.

Related

factory-planner compared with skills from other repositories

factory-planner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-plannerArcBlock/agent-skillsSkill522d agoMITA106Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code