workflow-evolution

A lightweight process for changing the rules, scripts, prompts, or shared source documents that define a product workflow. It is intended for maintaining the workflow itself, rather than producing a product requirements document.

In plain words
What is it for?
Use it to revise workflow rules, update scripts or prompts, maintain the single source of truth, and add related checks or tokens.
Why use it?
It helps maintainers handle workflow changes with the right level of process and avoid treating framework maintenance like ordinary product work.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/derricktang/pm-workflow-plugin/workflow-evolution
Any agent
npx skills add derricktang/pm-workflow-plugin --skill workflow-evolution
Clone the repo
git clone --depth 1 https://github.com/derricktang/pm-workflow-plugin

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,870 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00049 $0.08870
Opus 5 $0.00024 $0.04435
Sonnet 5 $0.00010 $0.01774
Haiku 4.5 $0.00005 $0.00887

Measured 2d ago against content hash c610710d4924, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

workflow-evolution scanned grade B with 1 finding 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -rn "SSOT #NN\b" pm-workflow/ CLAUDE.md .claude/
plugins/pm/pm-workflow/skills/workflow-evolution/SKILL.md · 343 lines

How it starts

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

Purpose

Provide a lightweight, disciplined skill for the orchestrator (Claude Code) to handle L2 workflow maintenance tasks directly — without dispatching PM Agent + Supervisor Agent through the standard 2-round closure.

This is not a replacement for L1 product-document production (PRD/spec generation) — those still require PM/Supervisor agents. This skill applies only to L2 meta-work where the orchestrator has full context and dispatching agents adds cost without value.

Key Concepts

L1 vs L2 双层架构

工作性质 消费者 典型任务 处理方式
L1 产品业务层 产品文档生产 真实业务方(产品总监 / 设计 / 开发) PRD / spec / 阶段产物 派 PM Agent + Supervisor Agent
L2 工作流维护层 工作流框架自身演化 工作流维护者(项目维护者 + AI) 元规范 / 校验脚本 / SSOT 双锚 / 测试 本 skill:编排器直做(默认)/ 派 agent(复杂大型)

路径判定(L1 vs L2 二元)

核心判定标准:任务修改的文件归属哪一层——L1 派 Agent / L2 走本 skill。不再以文件数 / token / 是否新建脚本作为路径判定依据(这些维度仅用于"分批执行"提示,见下方)。

文件归属 路径
L2 文件(修改任意以下路径) 走本 skill 路径(编排器直做)
- pm-workflow/agents/*
- pm-workflow/rules/*(含 bujue-design-system/
- pm-workflow/scripts/*(含 tests/
- pm-workflow/skills/*
- CLAUDE.md / agent_methodology.md / agent_parameters.md
- .claude/commands/*
L1 文件 派 PM Agent(保留 L1 业务流程严格性)
- outputs/(PRD / spec / 阶段产物)
- process_record/state.md / process_record/tasks/(产品过程记录)
混合任务 L2 部分走 skill / L1 部分派 Agent(拆分执行)

为什么 L1/L2 二元判定优于多维阈值

  • 客观:文件路径判定无主观空间,避免"50K vs 80K 算不算超阈值"的争论
  • 编排器主对话天然持有 L2 上下文,PM Agent 重 Read 同样规范是浪费
  • 责任清晰:L2 工作流维护是编排器的固有职责(PM/Supervisor 仅参与 L1 业务),不应通过派 Agent 转移;L2 质量保障由本 skill §L2 三道质量门负责

大型 L2 任务的分批执行模式

L2 任务规模(参考阈值:> 200K token / 涉及 > 5 文件 / 改既有脚本结构 ≥ 30%)时,仍走本 skill 路径,但编排器分批执行

  1. 拆分 atomic step 为多组(如 5 文件改动 → 拆为 file-1/2 / file-3/4 / file-5 + 测试 三批)
  2. 每批结束写进度文件 checkpoint(含已完成步 + 待续步)
  3. 批与批之间编排器自我评估上下文压力(≥ 800K token / 1M 主对话 → 提示用户考虑 /clear 重启 + state.md 恢复)
  4. 不一次性把所有文件 Read 进主对话——按批次精读

Read the full file on GitHub · 343 lines

Files

What ships with it

2 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. 2d ago First seen · 343 lines · 49 tokens per session scan B c610710d4924

Subscribe to this mod's changes

workflow-evolution is a skill published in the GitHub repository derricktang/pm-workflow-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 49 tokens to every session and 8,870 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.