factory-portfolio

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

A planning skill that ranks ideas, research, and project work into larger groups of related tasks, called epics. It assigns order, value, cost, scope, release targets, and acceptance conditions while identifying work to postpone or drop.

In plain words
What is it for?
Clustering related work, ranking epics, deciding what belongs in a release, defining task acceptance, and producing plans for downstream execution.
Why use it?
It turns a large, mixed queue into a prioritized plan and keeps broad portfolio decisions separate from the detailed steps for one task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentloop plugin — 24 skills shipped together

Good fit Clustering related work, ranking epics, deciding what belongs in a release, defining task acceptance, and producing plans for downstream execution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcblock/agent-skills/factory-portfolio
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-portfolio
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-portfolio

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcblock/agent-skills/factory-portfolio"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/factory-portfolio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,315 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.00092 $0.04315
Opus 5.5 $0.00037 $0.01726
Sonnet 5.5 $0.00018 $0.00863
Haiku 4.5 $0.00009 $0.00432

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

Security

Grade A, and why

factory-portfolio 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-portfolio/SKILL.md · 192 lines

How it starts

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

factory-portfolio — 把模糊的 idea 排成可实现的 epic 计划

Repo profile — 先读 .claude/repo-profile.md。 factory_portfolio_* 与 factory_planner_* 诸键、label 集合都从 profile 取,别硬编码。来源:#9154(设计),#9157(任务类型通用化)。

它在哪一层

GitHub issues / planning/ / intent/   同步进来的输入
/work(work object)                   状态的主体
factory-portfolio   全局:聚簇、排序、砍、定版本、定验收,产出 epic 计划      ← 本 skill(每日一轮)
factory-planner     单条 track:判定 + design → build → accept,提交 manifest(每小时一轮)
plan-submit / drain / land / merge-check   代码执行的边界与派工

planner 回答「这条 track 下一步做什么」;portfolio 回答「整个工厂接下来该做哪几件事、按什么顺序、 归哪个版本、哪些不做」。两者分开,是因为每小时的 scrum 判断和全局战略混在一起,上下文和成本都会膨胀。 portfolio 不碰 track 的阶段推进,planner 不做跨主题排序。

上线前提

本 skill 只做判断。下面几项要由代码保证,落地前只跑 dry-run(只写本地文件,见 Step 7)。 逐条验收见 reference/prerequisites.md。

# 机制 防的是什么
P1 epic 计划成为 work object(#9161,入口 <cli_binary> work portfolio-submit):可信入口用 key 派生 DID 原子写入,字段带任务类型、爆破范围、代价、版本归属、验收 计划写在本地文件里,planner 读不到;同一主题重复建计划
P2 plan-submit 的 manifest 成员可带 portfolio(计划 DID),R1 校验计划存在、未被 drop/hold,成员在计划里(#9161) planner 派出计划之外的活,或派出已被砍掉的计划的成员
P3 arc work judge 支持 human-replied、path-changed:<prefix> 两个唤醒谓词(#9162) 「等人回复」「等某处重构完」只能用 after 兜底,判定盲目重读
P4 factory-planner 消费计划:ready(stage) 先按计划名次排,计划里 human 的成员不进 build(planner 的 skill 改动,P1/P2 之后另开流程立法 PR) 计划写出来了,planner 照旧按自己的 (priority, age) 排,等于没写

任务类型只是 work object 上的字段:工厂不按类型给 agent 分工,任何 agent 都能接任何类型的 work, 派工只按资源分配(名额、CPU、内存、磁盘、GPU、装了哪些工具和环境)。非代码类型的 sink、rubric 审查和 publish gate 属于 #9157,不是本 skill 的前提:portfolio 照样给它们排序,写明这类 work 要声明哪些资源、 用什么 rubric 和验收,以及现在有没有哪台机器能提供这些资源;没有的,判 defer,wakeOn 指向 #9157 对应的 work。

输入与输出

输入(每轮只读,不写回):

  • /work 上 creativeWorkStatus=idea 且非 bug 类的源 work,连同它们的 judgments.planner; 每条对应的 GitHub issue 全文(正文 + 评论)。
  • open 的 planning、research、idea、feature、design 类 issue(还没同步进来的也算)。
  • factory_portfolio_direction_sources 列出的产品意图与所有者工程观、<factory_planner_design_root>/、 近期合并记录(判断现在的重心)。
  • 工厂吞吐量:<cli_binary> work status --json 的 works[](Step 1,算每轮上限)。
  • 工厂容量:<cli_binary> work capacity --json 的 wip.build(Step 1,每轮上限的第二道,#9240)。
  • 联网调研:竞品、生态,结论附引用。

Read the full file on GitHub · 192 lines

Files

What ships with it

4 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 · 192 lines · 92 tokens per session scan A 8ea3447b3b26

Subscribe to this mod's changes

factory-portfolio is a skill published in the GitHub repository ArcBlock/agent-skills (5 stars, last pushed 22d ago), licensed MIT. It adds 92 tokens to every session and 4,315 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-portfolio compared with skills from other repositories

factory-portfolio next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-portfolioArcBlock/agent-skillsSkill522d agoMITA92Claude 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