pm-epic

A command that turns a product requirements document (PRD) into one parent work item, called an epic, and smaller child tasks in Beads, a task-tracking system.

In plain words
What is it for?
Use it when you have a PRD or feature specification in the configured vault and want P0 and P1 requirements converted into linked implementation tasks.
Why use it?
It removes the manual work of turning a feature description into actionable tickets and linking those tickets together.

Command

Part of the corpus-pm plugin — 5 skills, 17 commands, 5 agents shipped together

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 commands/evb87-tech/corpus/pm-epic
Clone the repo
git clone --depth 1 https://github.com/evb87-tech/corpus

Or install corpus-pm, the plugin that ships this one along with the rest of its 5 skills, 17 commands, 5 agents.

Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00050 $0.00637
Opus 5 $0.00025 $0.00318
Sonnet 5 $0.00010 $0.00127
Haiku 4.5 $0.00005 $0.00064

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

Security

Grade A, and why

pm-epic 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 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.

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.

corpus-pm/commands/pm-epic.md · 49 lines

What it actually says

Pré-vol :

CORPUS_VAULT="${CORPUS_VAULT:-$CLAUDE_PLUGIN_OPTION_VAULT_PATH}"
if [ -z "$CORPUS_VAULT" ]; then
  echo "Vault non configuré. Définir CORPUS_VAULT (dev local) ou configurer l'option userConfig vaultPath dans le plugin installé (exposée comme CLAUDE_PLUGIN_OPTION_VAULT_PATH). Ni l'un ni l'autre n'est défini. Lancer /init-vault <path> pour créer un vault, puis exporter le chemin." >&2
  exit 1
fi

Vérifier que $CORPUS_VAULT/.corpus-vault existe. Sinon, refuser et demander à l'utilisateur de lancer /init-vault <path>.

Validation de l'argument :

$ARGUMENTS doit être fourni. Si absent, afficher :

Usage : /pm-epic <chemin-vers-prd>
Le chemin peut être absolu ou relatif à $CORPUS_VAULT/output/.
Exemple : /pm-epic output/2024-01-15-feature-search.md

et s'arrêter.

Résoudre le chemin du PRD :

  • Si $ARGUMENTS est un chemin absolu, l'utiliser tel quel.
  • Sinon, le résoudre sous $CORPUS_VAULT/output/ : $CORPUS_VAULT/output/$ARGUMENTS (supprimer le préfixe output/ s'il est déjà présent).

Vérifier que le fichier résolu existe et se trouve bien sous $CORPUS_VAULT/output/. Si le fichier n'existe pas ou est en dehors de output/, refuser avec un message explicite.

Délégation :

Déléguer au sous-agent pm-decomposer (voir corpus-pm/agents/pm-decomposer.md) en lui passant le chemin absolu résolu du PRD.

Le sous-agent s'occupe de :

  1. Lire et parser le PRD.
  2. Créer l'epic dans beads via bd create.
  3. Créer une issue enfant par exigence P0/P1 via bd create.
  4. Lier chaque enfant à l'epic via bd dep add.
  5. Afficher le récapitulatif final (epic ID, IDs enfants, chemin PRD).

Contrainte anti-lissage : le sous-agent doit refuser de créer une issue si les critères d'acceptation sont absents pour une exigence P0. Ne jamais inventer des critères.

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 · 49 lines · 50 tokens per session scan A 0ad109f97caf

Subscribe to this mod's changes

pm-epic is a command published in the GitHub repository evb87-tech/corpus (1 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 637 once invoked, about $0.0003 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-31.