pm-autoplan

pm-autoplan is a command for coding agents from evb87-tech/corpus. It costs 33 tokens per session (1,180 once invoked), scanned A, original, MIT.

Commande qui coordonne trois revues d'un brouillon produit : stratégie, utilisateurs et faisabilité technique. Elle rassemble ensuite leurs résultats dans output/.

In plain words
What is it for?
Elle sert à examiner un PRD ou une feuille de route avant sa mise en œuvre, puis à produire une synthèse des risques et points à traiter.
Why use it?
Elle évite de vérifier un projet sous un seul angle et réunit les problèmes relevés par plusieurs analyses.

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-autoplan
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.

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 pm-autoplan

README.md
[![agentmods](https://agentmods.dev/badge/commands/evb87-tech/corpus/pm-autoplan.svg)](https://agentmods.dev/commands/evb87-tech/corpus/pm-autoplan)
Your own site
<a href="https://agentmods.dev/commands/evb87-tech/corpus/pm-autoplan"><img src="https://agentmods.dev/badge/commands/evb87-tech/corpus/pm-autoplan.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,180 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.00033 $0.01180
Opus 5 $0.00016 $0.00590
Sonnet 5 $0.00007 $0.00236
Haiku 4.5 $0.00003 $0.00118

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

Security

Grade A, and why

pm-autoplan 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 3d 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-autoplan.md · 95 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 utilisateur vaultPath dans le plugin installé (exposée sous CLAUDE_PLUGIN_OPTION_VAULT_PATH). Ni l'un ni l'autre n'est défini. Lancer /init-vault <chemin> pour initialiser un vault, puis exporter le chemin." >&2
  exit 1
fi

Vérifier que $CORPUS_VAULT/.corpus-vault existe. Sinon, refuser et demander au propriétaire de lancer /init-vault <chemin>. Voir corpus-core/rules/08-vault-structure.md.

Validation de l'argument :

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

Usage : /pm-autoplan <chemin-vers-brouillon>
Le chemin peut être absolu ou relatif à $CORPUS_VAULT/output/.
Exemple : /pm-autoplan output/2026-04-28-feature-notifications-prd.md

et s'arrêter.

Résoudre le chemin du brouillon :

  • 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ériver le slug du brouillon :

DRAFT_BASENAME=$(basename "$DRAFT_PATH" .md)
DRAFT_SLUG=$(echo "$DRAFT_BASENAME" | sed 's/^[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-//')
TODAY=$(date +%Y-%m-%d)

Orchestration des trois angles :

Lancer les trois revues en parallèle (ou dans le même tour de contexte si le parallélisme n'est pas disponible) en déléguant à chaque commande existante :

  1. /pm-review-strategy <chemin-absolu-du-brouillon> — délègue à l'agent pm-strategist
  2. /pm-review-user <chemin-absolu-du-brouillon> — délègue à l'agent pm-user-advocate
  3. /pm-review-feasibility <chemin-absolu-du-brouillon> — délègue à la skill corpus-pm:review-feasibility

Chaque revue dépose sa page de stress-test dans $CORPUS_VAULT/wiki/ selon les conventions :

  • Stratégie : wiki/stress-test-<draft-slug>-strategy-<YYYY-MM-DD>.md
  • Utilisateur : wiki/stress-test-<draft-slug>-user-<YYYY-MM-DD>.md
  • Faisabilité : wiki/stress-test-<draft-slug>-feasibility-<YYYY-MM-DD>.md

Vérification des pages produites :

Avant de passer à la synthèse, vérifier que les trois pages de stress-test existent :

STRATEGY_PAGE="$CORPUS_VAULT/wiki/stress-test-${DRAFT_SLUG}-strategy-${TODAY}.md"
USER_PAGE="$CORPUS_VAULT/wiki/stress-test-${DRAFT_SLUG}-user-${TODAY}.md"
FEASIBILITY_PAGE="$CORPUS_VAULT/wiki/stress-test-${DRAFT_SLUG}-feasibility-${TODAY}.md"

Si l'une ou plusieurs pages sont absentes, refuser de procéder à la synthèse et afficher :

ARRÊT : Les pages de stress-test suivantes sont manquantes :
  - [liste des pages absentes]
La synthèse /pm-autoplan ne peut pas être produite avec des revues partielles.
Corrigez les erreurs signalées par les revues manquantes, puis relancez /pm-autoplan.

Délégation de la synthèse :

Une fois les trois pages confirmées, invoquer la skill corpus-pm:pm-autoplan-synthesis en lui passant :

  • Le chemin absolu du brouillon
  • Les chemins absolus des trois pages de stress-test
  • Le slug du brouillon
  • La date du jour

La skill produit output/YYYY-MM-DD-autoplan-<draft-slug>.md selon les règles anti-lissage (règle 5 en particulier) et les contraintes de synthèse détaillées dans la skill.

Quand terminé, rapporter :

  • Chemin du brouillon analysé
  • Pages de stress-test produites (liste avec angle)
  • Chemin de la synthèse produite
  • Nombre de conflits inter-angles détectés
  • Lacunes signalées dans la synthèse
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. 3d ago First seen · 95 lines · 33 tokens per session scan A 5870f5d95ea2

Subscribe to this mod's changes

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