chain

chain is a command for Claude Code from product-on-purpose/pm-skills. It costs 28 tokens per session (495 once invoked), scanned A, original, Apache-2.0.

A command for running several product-management tasks in a chosen order while giving each step the same context.

In plain words
What is it for?
Use it to chain named product-management skills, such as defining a problem and then forming a hypothesis. It supports optional automatic execution, previewing, and running the chain in a separate thread.
Why use it?
It avoids passing information manually between related tasks and helps keep a multi-step workflow together. It also separates the task list from the context you want the steps to use.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the pm-skills plugin — 69 skills, 11 commands, 6 agents, 2 hooks shipped together

Good fit Use it to chain named product-management skills, such as defining a problem and then forming a hypothesis. It supports optional automatic execution, previewing, and running the chain in a separate thread.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/product-on-purpose/pm-skills/chain
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.

Clone the repo
git clone --depth 1 https://github.com/product-on-purpose/pm-skills

Made for: Claude Code.

Or install pm-skills, the plugin that ships this one along with the rest of its 69 skills, 11 commands, 6 agents, 2 hooks.

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 chain

README.md
[![agentmods](https://agentmods.dev/badge/commands/product-on-purpose/pm-skills/chain/github.svg)](https://agentmods.dev/commands/product-on-purpose/pm-skills/chain)
Your own site
<a href="https://agentmods.dev/commands/product-on-purpose/pm-skills/chain"><img src="https://agentmods.dev/badge/commands/product-on-purpose/pm-skills/chain/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 chain

Your own site · 80×15
<a href="https://agentmods.dev/commands/product-on-purpose/pm-skills/chain"><img src="https://agentmods.dev/badge/commands/product-on-purpose/pm-skills/chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 495 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.00028 $0.00495
Opus 5 $0.00014 $0.00247
Sonnet 5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 9d ago against content hash 92545bbc4c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

chain 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 9d 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.

commands/chain.md · 26 lines

How it starts

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

Run an ad-hoc chain of pm-skills in the order given, passing the shared context to every step.

Parse the input

$ARGUMENTS carries a chain expression followed by free-form context.

  1. Extract flags first, wherever they appear: --auto, --force-auto, --dry-run, --thread.
  2. The chain expression is exactly the leading separator-joined list of skill names (, and -> equivalent; mixing allowed). It ends after the first name that is NOT followed by a separator; everything after that is the context, even when the context words look like skill names. A trailing separator with nothing after it is an error to surface, not to guess around.
  3. Everything after the chain expression is the context. This command parses the BOUNDARY only; all skill-name validation belongs to the engine.

Examples: /chain define-problem-statement -> define-hypothesis --thread Mobile checkout drop-off runs two steps with --thread, context "Mobile checkout drop-off". Lowercase context is fine: /chain deliver-prd, deliver-user-stories mobile checkout redesign is two steps with context "mobile checkout redesign" (the boundary is the missing separator after deliver-user-stories, not the letter case).

Confirm and dispatch

  1. Restate in one line: the parsed steps in order, the flags, and the context.
  2. Invoke the utility-pm-workflow-orchestrator skill from skills/utility-pm-workflow-orchestrator/SKILL.md with that chain, context, and flags (a Mode B run). The engine validates every name pre-flight and owns all run rules; this command adds none. The grammar lives in skills/utility-pm-workflow-orchestrator/references/PARSE-CONTRACT.md (Mode B Chain Expression Contract).
  3. Relay the engine's per-step blocks and terminal output, including the promotion suggestion for reusable chains.

Nothing is persisted beyond the engine's own gitignored run artifacts. To make a chain durable, follow the completion suggestion to utility-pm-workflow-builder. While the native engine path is EXPERIMENTAL, recommend --dry-run first.

Read the full file on GitHub · 26 lines

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. 9d ago First seen · 26 lines · 28 tokens per session scan A 92545bbc4c2b

Subscribe to this mod's changes

chain is a command published in the GitHub repository product-on-purpose/pm-skills (652 stars, last pushed yesterday), licensed Apache-2.0. It adds 28 tokens to every session and 495 once invoked, about $0.0001 per session on Opus 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-08-30.