agentleFS
bex-cobex-co/bex/.claude/skills/pmx/SKILL.md

pmx

Skill578 starsChanged 6 days agoApache-2.0View on GitHub

Materialize a /pm-brainstorm proposal onto a .pm workstream, ship the filing, then drain that workstream with /loopx. Use when the user invokes /pmx with a target workstream (e.g. `/pmx them all to w3`, `/pmx 1,3 to w5`) or says "/pm them all to wN and then /loopx wN".

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the most recent /pm-brainstorm proposal in this conversation: its detail sections (task tables, definition of done, source, goal …

    line 21
  2. Very specific:

    If the conversation has none, run /pm-brainstorm for <wN> first and use what it proposes.

    line 22
  3. Very specific:

    Run npx prettier@3.4.2 --write "/*.md", then verify task ids match paths, README lines and (N tasks) counts, links and depends_on.

    line 33
  4. Very specific:

    If /ship stops on something it cannot resolve, stop here and report: a filing that cannot land is a hard stop, as in /loopx.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task: File a proposal, ship it, drain the workstream

/pmx [<selection>] to <wN> [--no-listen] runs three steps back to back, without pausing between them: /pm <selection> to <wN> → /ship the filing → /loopx <wN>.

Arguments

Parse from $ARGUMENTS:

  • <wN> (required) — the last wN token. If there is none, STOP and ask which workstream; never guess.
  • --no-listen (optional, after <wN>) — passed through to /loopx in step 4, so the run ends when the queue is drained instead of listening for more.
  • <selection> — them all, all or empty selects every numbered item in the proposal's Summary (priority order) plus the existing-item actions in its /pm hand-off (e.g. /pm unblock … of items whose gate cleared). Item numbers (1,3, 2-4) select only those items; a hand-off action is included only when named.

1. Find the proposal

  • Use the most recent /pm-brainstorm proposal in this conversation: its detail sections (task tables, definition of done, source, goal linkage, expected outcome, why now, Render-parity flag), its Summary and its /pm hand-off commands.
  • If the conversation has none, run /pm-brainstorm for <wN> first and use what it proposes.
  • <wN> from the arguments wins over the workstream the proposal named.

2. Materialize with /pm

.claude/skills/pm/SKILL.md is canonical — read it and .pm/DO_NOT_DO.md, and apply their rules exactly; do not restate or diverge from them here.

  1. Sync first. On main, git fetch origin main and git pull --ff-only origin main. If the fast-forward is refused, keep the local tree and let step 3's /ship rebase. Then rescan numbering (next free mN across .pm, next free NNN in <wN>): the proposal's numbers are provisional.
  2. Re-check each selected item at write time. Another session may have filed or shipped it since the proposal, or it may now conflict with DO_NOT_DO.md. Skip such an item and report why; never file it twice.
  3. Run the matching /pm subcommand per item, in priority order: new milestone (the proposal's implementation tasks with their titles, estimates and depends_on; task files filled from the proposal's evidence — concrete paths, steps, acceptance criteria; then the standing closing tasks, with Render parity included or omitted as the proposal flagged), add for inbox notes, promote for an existing note, unblock for a recorded gate-cleared finding.
  4. Record decision state honestly. Selecting an item is approval to schedule it, not sign-off on a divergence. Write the proposal's recommendation for an open decision as the proposal's recommendation and the rule it rests on (e.g. ADR008 Render parity first), never as a user decision. Where the repository rules make that recommendation the default (parity work is never parked on an optional decision), the tasks implement it and name the still-open sign-off in the milestone's ## Source + Goal linkage.
  5. Run npx prettier@3.4.2 --write "**/*.md", then verify task ids match paths, README lines and (N tasks) counts, links and depends_on.

3. Ship the filing

Invoke /ship for this board-only change, staging only the files step 2 wrote: one docs(pm): file <ids> (from /pm-brainstorm for <wN>) commit. Invoking /pmx is the user's explicit request to ship this filing and the items /loopx lands. Shipping before the drain puts the items on origin/main where other sessions see them, and keeps /loopx's per-item commits free of filing noise.

If /ship stops on something it cannot resolve, stop here and report: a filing that cannot land is a hard stop, as in /loopx.

4. Drain

Post a short checkpoint (what was filed, what was skipped and why), then invoke /loopx <wN> (with --no-listen if it was given) in the same turn and follow it to its own Exit: arm the guard, dispatch each item to a fresh-context worker, verify its outcome. Its queue is every open item in <wN>, not only the ones just filed — that is intended.

Draining is not the end. Unless --no-listen was given, /loopx writes a drained report, then runs the workstream's due routines (if it lists any) and listens for new items on origin/main for up to 24 idle hours, so its final Exit can arrive a day later. The drained report already carries the filed items' outcomes.

Report

Head /loopx's first drained report with the filing (or its Exit report, if the run exits before it ever drains, e.g. with --no-listen or a hard stop): the new ids with their titles, the skipped items with their reasons, and every recommendation recorded in place of an open user decision. Later drained and exit reports in the same run need no header.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.