@unbrained/pm-cli 2026.9.26 → 2026.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +4 -6
- package/CHANGELOG.md +42 -0
- package/dist/cli/commander-usage.js +2 -2
- package/dist/cli/error-guidance.js +1 -1
- package/dist/cli/help-json-payload.js +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli/register-setup.js +1 -1
- package/dist/cli/runtime/selection.d.ts +3 -1
- package/dist/cli/runtime/selection.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +156 -148
- package/dist/cli-bundle/chunks/{chunk-TC74K7SS.js → chunk-35DME35A.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QQD3VRMZ.js → chunk-A2G5OG6W.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-CPOWTIIS.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-TYJXMT3Q.js → chunk-GLH2LNRH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IYN4MJ2C.js → chunk-NBDB3SRC.js} +57 -57
- package/dist/cli-bundle/chunks/{chunk-HTHTX6E6.js → chunk-NEUIVBFO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-U55RYT3I.js → chunk-OYCCWPBM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VMO4P5MX.js → chunk-PLNNUAFZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FOTXRNY6.js → chunk-PR4UAMI5.js} +44 -44
- package/dist/cli-bundle/chunks/{chunk-SZQCHJI4.js → chunk-UT7GRGHY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MJWKR7YA.js → chunk-VMJLM7P2.js} +62 -62
- package/dist/cli-bundle/chunks/{chunk-4ODHIX7N.js → chunk-YERBAGQD.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-ZFHJP7YD.js +29 -0
- package/dist/cli-bundle/chunks/{register-list-query-426QTRET.js → register-list-query-N6RP6PSP.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-FLI3HHMP.js → register-mutation-CY7JGQE6.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-TP7ZG4MK.js → register-operations-53HAD3QP.js} +2 -2
- package/dist/cli-bundle/chunks/register-setup-NVX6374E.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-5KJXX2TZ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-UIFVIE5F.js → chunk-6IVQPNYN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MK5AKKHK.js → chunk-A5O3VYWV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-AZA4AEOR.js +75 -0
- package/dist/cli-bundle/focused-chunks/chunk-BGWF6CMP.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-NVVB2HJC.js → chunk-BRLXKRI2.js} +17 -17
- package/dist/cli-bundle/focused-chunks/{chunk-ABA3KRPY.js → chunk-DTLRXY77.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XKH2FC5D.js → chunk-IJXZQE3D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-Q355NPLH.js → chunk-IWLMQLBO.js} +6 -6
- package/dist/cli-bundle/focused-chunks/chunk-K7GSZ7YZ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-OY3VHCTX.js → chunk-ONDNR3VU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XVBWZTU2.js → chunk-OVVCXTIE.js} +12 -12
- package/dist/cli-bundle/focused-chunks/{chunk-25BBHWMH.js → chunk-V7OPZRL6.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TLF6N56J.js → chunk-Y5Z3XNGY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-O7MIBEMK.js → chunk-YZB7IPR6.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NRHTXBTI.js → chunk-ZMQTIS3L.js} +2 -2
- package/dist/cli-bundle/main.js +22 -22
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +18 -18
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +51 -51
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +8 -8
- package/dist/core/diagnostics/remediation.js +1 -1
- package/dist/core/item/item-format.js +1 -1
- package/dist/core/store/settings.js +3 -3
- package/dist/sdk/agent-capability-contracts.js +1 -1
- package/dist/sdk/cli-contracts/command-aliases.js +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
- package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/completion/fish.js +3 -3
- package/dist/sdk/completion/shared.d.ts +1 -1
- package/dist/sdk/completion/shared.js +1 -1
- package/dist/sdk/completion/zsh.js +3 -3
- package/dist/sdk/extension/copy-scope.d.ts +2 -2
- package/dist/sdk/extension/copy-scope.js +1 -1
- package/dist/sdk/extension/install-plan.js +1 -1
- package/dist/sdk/extension/install-runtime.js +2 -2
- package/dist/sdk/extension/static-inventory.d.ts +54 -0
- package/dist/sdk/extension/static-inventory.js +2 -0
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/governance/health-merge-evidence.d.ts +18 -0
- package/dist/sdk/governance/health-merge-evidence.js +2 -0
- package/dist/sdk/governance/health.js +1 -1
- package/dist/sdk/guide-topics.js +1 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/merge/install.js +2 -2
- package/dist/sdk/output-projection.d.ts +1 -1
- package/dist/sdk/output-projection.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/complete-list.js +1 -1
- package/dist/sdk/read-output/provenance.d.ts +20 -0
- package/dist/sdk/read-output/provenance.js +2 -0
- package/dist/sdk/read-output-budget.d.ts +1 -1
- package/dist/sdk/read-output-budget.js +1 -1
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/test/execution.d.ts +11 -0
- package/dist/sdk/test/execution.js +2 -2
- package/dist/sdk/test/parsers.d.ts +1 -1
- package/dist/sdk/test/parsers.js +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.js +1 -1
- package/docs/AGENT_READ_AND_TEST_RECEIPTS.md +21 -0
- package/docs/CLAUDE_CODE_PLUGIN.md +12 -7
- package/docs/CLI_GRAMMAR.md +31 -0
- package/docs/CODEX_PLUGIN.md +8 -0
- package/docs/CONFIGURATION.md +2 -0
- package/docs/EXTENSION_LIFECYCLE.md +18 -0
- package/docs/PACKAGE_EVIDENCE.md +18 -7
- package/docs/README.md +1 -0
- package/docs/RELEASING.md +46 -1
- package/docs/TESTING.md +14 -3
- package/docs/agent-task-token-baseline.json +4 -4
- package/docs/generated/AGENT_CAPABILITY_ROUTING.md +1 -1
- package/docs/generated/AGENT_COMMAND_SURFACE.md +5 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +4 -0
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +18 -7
- package/marketplace.json +4 -6
- package/package.json +6 -6
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +4 -2
- package/plugins/pm-claude/.mcp.json +1 -2
- package/plugins/pm-claude/README.md +11 -7
- package/plugins/pm-claude/package.json +2 -2
- package/plugins/pm-claude/skills/pm-audit/SKILL.md +14 -103
- package/plugins/pm-claude/skills/pm-audit/agents/openai.yaml +4 -0
- package/plugins/pm-claude/{commands/pm-calendar.md → skills/pm-calendar/SKILL.md} +1 -0
- package/plugins/pm-claude/{commands/pm-close-task.md → skills/pm-close-task/SKILL.md} +1 -0
- package/plugins/pm-claude/skills/pm-developer/SKILL.md +20 -143
- package/plugins/pm-claude/skills/pm-developer/agents/openai.yaml +4 -0
- package/plugins/pm-claude/{commands/pm-init.md → skills/pm-init/SKILL.md} +2 -1
- package/plugins/pm-claude/{commands/pm-list.md → skills/pm-list/SKILL.md} +2 -1
- package/plugins/pm-claude/{commands/pm-new.md → skills/pm-new/SKILL.md} +1 -0
- package/plugins/pm-claude/skills/pm-planner/SKILL.md +16 -167
- package/plugins/pm-claude/skills/pm-planner/agents/openai.yaml +4 -0
- package/plugins/pm-claude/skills/pm-release/SKILL.md +18 -102
- package/plugins/pm-claude/skills/pm-release/agents/openai.yaml +4 -0
- package/plugins/pm-claude/{commands/pm-search.md → skills/pm-search/SKILL.md} +1 -0
- package/plugins/pm-claude/{commands/pm-start-task.md → skills/pm-start-task/SKILL.md} +1 -0
- package/plugins/pm-claude/{commands/pm-status.md → skills/pm-status/SKILL.md} +1 -0
- package/plugins/pm-claude/{commands/pm-triage.md → skills/pm-triage/SKILL.md} +1 -0
- package/plugins/pm-claude/skills/pm-workflow/SKILL.md +25 -156
- package/plugins/pm-claude/skills/pm-workflow/agents/openai.yaml +4 -0
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/README.md +10 -2
- package/plugins/pm-codex/mcp.json +11 -0
- package/plugins/pm-codex/package.json +2 -2
- package/plugins/pm-codex/plugin.json +45 -0
- package/plugins/pm-codex/skills/pm-audit/SKILL.md +21 -0
- package/plugins/pm-codex/skills/pm-audit/agents/openai.yaml +4 -0
- package/plugins/pm-codex/skills/pm-auditor/SKILL.md +5 -40
- package/plugins/pm-codex/skills/pm-auditor/agents/openai.yaml +3 -5
- package/plugins/pm-codex/skills/pm-developer/SKILL.md +26 -0
- package/plugins/pm-codex/skills/pm-developer/agents/openai.yaml +4 -0
- package/plugins/pm-codex/skills/pm-native/SKILL.md +7 -87
- package/plugins/pm-codex/skills/pm-native/agents/openai.yaml +3 -5
- package/plugins/pm-codex/skills/pm-planner/SKILL.md +22 -0
- package/plugins/pm-codex/skills/pm-planner/agents/openai.yaml +4 -0
- package/plugins/pm-codex/skills/pm-release/SKILL.md +17 -38
- package/plugins/pm-codex/skills/pm-release/agents/openai.yaml +2 -4
- package/plugins/pm-codex/skills/pm-workflow/SKILL.md +39 -0
- package/plugins/pm-codex/skills/pm-workflow/agents/openai.yaml +4 -0
- package/dist/cli-bundle/chunks/chunk-GRWPZR7F.js +0 -29
- package/dist/cli-bundle/chunks/register-setup-574SIVQZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-H3BI4EDO.js +0 -75
- package/dist/cli-bundle/focused-chunks/chunk-HNHMK5JI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HQPTDJLF.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-PMPFLA6X.js +0 -2
- package/plugins/pm-claude/commands/pm-audit.md +0 -38
- package/plugins/pm-claude/commands/pm-developer.md +0 -38
- package/plugins/pm-claude/commands/pm-planner.md +0 -54
- package/plugins/pm-claude/commands/pm-release.md +0 -41
- package/plugins/pm-claude/commands/pm-workflow.md +0 -49
|
@@ -1,108 +1,24 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm-release
|
|
3
|
-
description:
|
|
3
|
+
description: Use when preparing a pm release, reviewing its gates, publishing, or verifying the released artifact. Keep source, reviewed head, main, tag, registry, and telemetry evidence distinct.
|
|
4
|
+
license: MIT
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# pm Release
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
2.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## Hybrid TUI Sync
|
|
25
|
-
|
|
26
|
-
### After claiming the release item
|
|
27
|
-
```
|
|
28
|
-
TaskCreate:
|
|
29
|
-
subject: "[pm-xxxx] Release: <version>"
|
|
30
|
-
description: "Release gate tracking for pm-xxxx"
|
|
31
|
-
activeForm: "Running release gates"
|
|
32
|
-
```
|
|
33
|
-
Save the `taskId`. Then `TaskUpdate(in_progress)`.
|
|
34
|
-
|
|
35
|
-
### After pm_close + pm_release
|
|
36
|
-
```
|
|
37
|
-
TaskUpdate: { taskId: <saved>, status: "completed" }
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## MCP Calls
|
|
41
|
-
|
|
42
|
-
### Pre-Release Validation
|
|
43
|
-
```json
|
|
44
|
-
{ "tool": "pm_validate", "args": { "options": { "checkResolution": true, "checkHistoryDrift": true, "checkFiles": true } } }
|
|
45
|
-
{ "tool": "pm_health", "args": {} }
|
|
46
|
-
{ "tool": "pm_context", "args": { "options": { "depth": "standard" } } }
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Link Release Artifacts
|
|
50
|
-
```json
|
|
51
|
-
{ "tool": "pm_docs", "args": { "id": "pm-xxxx", "options": { "add": ["path=CHANGELOG.md,scope=project,note=release-notes"] } } }
|
|
52
|
-
{ "tool": "pm_files", "args": { "id": "pm-xxxx", "options": { "add": ["path=package.json,scope=project,note=version"] } } }
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Record Evidence
|
|
56
|
-
```json
|
|
57
|
-
{
|
|
58
|
-
"tool": "pm_comments",
|
|
59
|
-
"args": {
|
|
60
|
-
"id": "pm-xxxx",
|
|
61
|
-
"options": {
|
|
62
|
-
"add": "Release evidence: build ok. Tests pass. 100% coverage. pm validate ok. GitHub CI green. npm publish ok."
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Gate Script Reference
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
pnpm build # TypeScript build
|
|
72
|
-
node scripts/run-tests.mjs coverage # Full test + coverage
|
|
73
|
-
node scripts/release/run-gates.mjs # All release gates
|
|
74
|
-
gh run list --limit 5 # GitHub CI status
|
|
75
|
-
gh run view <run-id> # Detailed run status
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Safety
|
|
79
|
-
|
|
80
|
-
- Never set `path` for real repository tracking — only for sandbox tests.
|
|
81
|
-
- Run coverage gate before any `npm publish` or version tag.
|
|
82
|
-
- Confirm GitHub CI green before closing the release item.
|
|
83
|
-
|
|
84
|
-
## Progressive Disclosure and Token Discipline
|
|
85
|
-
|
|
86
|
-
Load the smallest thing that answers the question. Costs are measured.
|
|
87
|
-
|
|
88
|
-
| Need | Call | Cost |
|
|
89
|
-
|------|------|------|
|
|
90
|
-
| Pick or resume work | `pm_next`, or `pm_context` with `limit: 10` | ~2.1-2.5k tok |
|
|
91
|
-
| Exact flags for one command | `pm_contracts` with `command: "<name>", flagsOnly: true` | ~1-3.4k tok |
|
|
92
|
-
| The whole command surface with per-command ceilings | `pm_contracts` with `summary: true` | ~2.6k tok |
|
|
93
|
-
| An unfamiliar capability family | `pm_run` with `action: "guide", topic: "<topic>", depth: "brief"` | ~0.6-1k tok |
|
|
94
|
-
|
|
95
|
-
Guide topics are declared at runtime: `pm guide` prints the current index and
|
|
96
|
-
`pm guide <topic> --depth brief` expands one topic. Do not copy the list.
|
|
97
|
-
|
|
98
|
-
Never load `docs/COMMANDS.md` (~29k tok) or `docs/SDK.md` (~45k tok) whole.
|
|
99
|
-
|
|
100
|
-
Bound every read in this order: projection (`outputInclude`), then row limit
|
|
101
|
-
(`outputLimit` or `limit`), then `outputBudget`, then `outputCursor` to resume.
|
|
102
|
-
Read the `omission_receipt` before treating a result as complete — a
|
|
103
|
-
budget-truncated read is a claim about the part it withheld, and a truncated
|
|
104
|
-
list must never be summarized as if it were the whole population.
|
|
105
|
-
|
|
106
|
-
Author identity is detected automatically. Never pass `author` and never set
|
|
107
|
-
`PM_AUTHOR`; the harness, model, effort, role, and topic are probed and recorded
|
|
108
|
-
on every history entry.
|
|
9
|
+
Inspect the release item and current release position before mutation. Search
|
|
10
|
+
for an existing release or incident lineage and reuse it.
|
|
11
|
+
|
|
12
|
+
1. Link the changed files, changelog, compatibility evidence, and release
|
|
13
|
+
tests to the item that owns them.
|
|
14
|
+
2. Run the build, full coverage, static quality, security, docs, package,
|
|
15
|
+
version, and hosted analysis gates required by the repository.
|
|
16
|
+
3. Verify the exact reviewed PR head and resolve actionable feedback before
|
|
17
|
+
merging. A silent or quota-limited provider is unavailable evidence.
|
|
18
|
+
4. After publishing, verify the main commit, tag, GitHub Release, npm
|
|
19
|
+
package, installed npm and Bun consumers, Sentry, and telemetry separately.
|
|
20
|
+
5. Record immutable close evidence and release the claim.
|
|
21
|
+
|
|
22
|
+
Use the repository release pipeline and pm_contracts rather than a remembered
|
|
23
|
+
flag spelling. Never assume a successful API request proves a scheduled
|
|
24
|
+
release or physical telemetry delivery.
|
|
@@ -1,170 +1,39 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm-workflow
|
|
3
|
-
description: Use
|
|
3
|
+
description: Use when starting, resuming, or handing off work in a repository managed by pm. Orient from live context, reuse existing items, and leave evidence for the next agent.
|
|
4
|
+
license: MIT
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# pm Workflow
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Project management is context management. Read the live tracker before describing
|
|
10
|
+
work as open, blocked, or done. Use the bundled pm MCP tools when available;
|
|
11
|
+
use the pm CLI with the same contracts when they are not.
|
|
9
12
|
|
|
10
|
-
##
|
|
13
|
+
## Orient
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
1. Read pm_context with a bounded limit, then pm_list for open and in-progress work.
|
|
16
|
+
2. Search all statuses before creating an item. Inspect the candidate's full
|
|
17
|
+
metadata, comments, notes, learnings, dependencies, and history.
|
|
18
|
+
3. Follow omission receipts and cursors before making a completeness claim.
|
|
19
|
+
4. Cross-check release, CI, package, or infrastructure claims against the live
|
|
20
|
+
system that owns them.
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
|---------|------|
|
|
16
|
-
| Orient / read state | `pm_context`, `pm_search`, `pm_list`, `pm_get` |
|
|
17
|
-
| Create / update | `pm_create`, `pm_update`, `pm_claim`, `pm_release`, `pm_close` |
|
|
18
|
-
| Evidence | `pm_comments`, `pm_notes`, `pm_learnings`, `pm_files`, `pm_docs`, `pm_test` |
|
|
19
|
-
| Verify | `pm_validate`, `pm_health`, `pm_contracts` |
|
|
20
|
-
| Everything else | `pm_run` with an explicit `action` |
|
|
22
|
+
## Work and hand off
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
Claim only an item being actively edited. Link files, docs, tests, and typed
|
|
25
|
+
relationships that express a real dependency or outcome. Record concise
|
|
26
|
+
evidence, then close with resolution, expected, and actual results when the
|
|
27
|
+
acceptance criteria are met. Release the claim when stopping.
|
|
23
28
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
3. **Claim** — call `pm_claim` before substantial edits.
|
|
27
|
-
4. **Sync TUI** — after claiming, call `TaskCreate` to mirror the item in Claude Code's task panel (see Hybrid TUI Sync below).
|
|
28
|
-
5. **Link evidence** — call `pm_files`, `pm_docs`, `pm_test` as work progresses.
|
|
29
|
-
6. **Add comments** — `pm_comments` for progress notes and verification results.
|
|
30
|
-
7. **Verify** — run `pm_validate` and project tests before closing.
|
|
31
|
-
8. **Close** — `pm_close` with reason, then `pm_release`, then `TaskUpdate(completed)`.
|
|
29
|
+
For handoff, report the item IDs, exact current status, last verified result,
|
|
30
|
+
remaining work, and the next read command. Do not copy the entire tracker.
|
|
32
31
|
|
|
33
|
-
##
|
|
32
|
+
## Host adapters
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
In Claude Code, mirror a claimed item in the task panel when TaskCreate and
|
|
35
|
+
TaskUpdate are available. Keep pm as the durable source of truth. In Codex,
|
|
36
|
+
use the native MCP tools and the same claim, evidence, close, and release loop.
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Call `TaskCreate` immediately after `pm_claim` (or after `pm_create` if starting fresh):
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
TaskCreate:
|
|
43
|
-
subject: "[pm-xxxx] <item title>"
|
|
44
|
-
description: "Tracking pm item pm-xxxx. AC: <acceptance_criteria if set>"
|
|
45
|
-
activeForm: "Implementing pm-xxxx"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Save the returned `taskId` — you'll need it for `TaskUpdate` calls later in this session.
|
|
49
|
-
|
|
50
|
-
### When setting in_progress
|
|
51
|
-
|
|
52
|
-
Call `TaskUpdate` with `status: "in_progress"` using the `taskId` from above.
|
|
53
|
-
|
|
54
|
-
### When closing
|
|
55
|
-
|
|
56
|
-
Call `pm_close` then `pm_release`, then immediately call:
|
|
57
|
-
```
|
|
58
|
-
TaskUpdate:
|
|
59
|
-
taskId: <saved taskId>
|
|
60
|
-
status: "completed"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Blocked items
|
|
64
|
-
|
|
65
|
-
If a pm item becomes blocked, call `TaskUpdate` with `status: "in_progress"` and add "(BLOCKED)" to the subject so it's visible in the panel.
|
|
66
|
-
|
|
67
|
-
## Tool Call Shape
|
|
68
|
-
|
|
69
|
-
Most tools accept `cwd`, `author`, and `options`:
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"cwd": "/path/to/repo",
|
|
74
|
-
"options": { "limit": "10" }
|
|
75
|
-
}
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
`pm_run` requires an `action` field:
|
|
79
|
-
|
|
80
|
-
```json
|
|
81
|
-
{
|
|
82
|
-
"action": "calendar",
|
|
83
|
-
"options": { "view": "week", "format": "markdown" }
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## Common Patterns
|
|
88
|
-
|
|
89
|
-
**Get active work snapshot:**
|
|
90
|
-
```json
|
|
91
|
-
{ "tool": "pm_context", "args": { "options": { "limit": "10" } } }
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**Search for existing work:**
|
|
95
|
-
```json
|
|
96
|
-
{ "tool": "pm_search", "args": { "query": "your keywords", "options": { "limit": "10" } } }
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Create a new item:**
|
|
100
|
-
```json
|
|
101
|
-
{
|
|
102
|
-
"tool": "pm_create",
|
|
103
|
-
"args": {
|
|
104
|
-
"options": {
|
|
105
|
-
"title": "Item title",
|
|
106
|
-
"description": "What this item tracks.",
|
|
107
|
-
"type": "Task",
|
|
108
|
-
"status": "open",
|
|
109
|
-
"priority": "1",
|
|
110
|
-
"createMode": "progressive"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Link changed files:**
|
|
117
|
-
```json
|
|
118
|
-
{
|
|
119
|
-
"tool": "pm_files",
|
|
120
|
-
"args": {
|
|
121
|
-
"id": "pm-xxxx",
|
|
122
|
-
"options": { "add": ["path=src/file.ts,scope=project,note=implementation"] }
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**Close with evidence:**
|
|
128
|
-
```json
|
|
129
|
-
{
|
|
130
|
-
"tool": "pm_close",
|
|
131
|
-
"args": {
|
|
132
|
-
"id": "pm-xxxx",
|
|
133
|
-
"reason": "All acceptance criteria met. Tests pass."
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
## Priority Reference
|
|
139
|
-
|
|
140
|
-
- `0` = critical, `1` = high, `2` = normal, `3` = low, `4` = minimal
|
|
141
|
-
|
|
142
|
-
## Safety
|
|
143
|
-
|
|
144
|
-
Do not pass `path` during real repository tracking. Only pass `path` for sandbox/test runs.
|
|
145
|
-
|
|
146
|
-
## Progressive Disclosure and Token Discipline
|
|
147
|
-
|
|
148
|
-
Load the smallest thing that answers the question. Costs are measured.
|
|
149
|
-
|
|
150
|
-
| Need | Call | Cost |
|
|
151
|
-
|------|------|------|
|
|
152
|
-
| Pick or resume work | `pm_next`, or `pm_context` with `limit: 10` | ~2.1-2.5k tok |
|
|
153
|
-
| Exact flags for one command | `pm_contracts` with `command: "<name>", flagsOnly: true` | ~1-3.4k tok |
|
|
154
|
-
| The whole command surface with per-command ceilings | `pm_contracts` with `summary: true` | ~2.6k tok |
|
|
155
|
-
| An unfamiliar capability family | `pm_run` with `action: "guide", topic: "<topic>", depth: "brief"` | ~0.6-1k tok |
|
|
156
|
-
|
|
157
|
-
Guide topics are declared at runtime: `pm guide` prints the current index and
|
|
158
|
-
`pm guide <topic> --depth brief` expands one topic. Do not copy the list.
|
|
159
|
-
|
|
160
|
-
Never load `docs/COMMANDS.md` (~29k tok) or `docs/SDK.md` (~45k tok) whole.
|
|
161
|
-
|
|
162
|
-
Bound every read in this order: projection (`outputInclude`), then row limit
|
|
163
|
-
(`outputLimit` or `limit`), then `outputBudget`, then `outputCursor` to resume.
|
|
164
|
-
Read the `omission_receipt` before treating a result as complete — a
|
|
165
|
-
budget-truncated read is a claim about the part it withheld, and a truncated
|
|
166
|
-
list must never be summarized as if it were the whole population.
|
|
167
|
-
|
|
168
|
-
Author identity is detected automatically. Never pass `author` and never set
|
|
169
|
-
`PM_AUTHOR`; the harness, model, effort, role, and topic are probed and recorded
|
|
170
|
-
on every history entry.
|
|
38
|
+
Use pm_contracts for exact active flags and pm_run for actions without a narrow
|
|
39
|
+
tool. Never set a static author; let the host identity be detected.
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
This plugin packages pm-cli for Codex with:
|
|
4
4
|
|
|
5
5
|
- a native stdio MCP server (`pm-mcp`) backed by pm command modules, not shell `pm` invocations
|
|
6
|
-
- skills for
|
|
6
|
+
- five portable skills for orientation, implementation, planning, review, and release
|
|
7
7
|
- command prompts for common planning and verification loops
|
|
8
8
|
- repo marketplace metadata for one-step local installation in Codex
|
|
9
9
|
|
|
10
|
+
The root `plugin.json` and typed `mcp.json` are the portable package entrypoints.
|
|
11
|
+
The `.codex-plugin/plugin.json` and `.mcp.json` files support existing hosts.
|
|
12
|
+
Both MCP configurations start the same pinned launcher. The five shared skills are generated with the Claude package from
|
|
13
|
+
`templates/agent-skills/`. The older `pm-native` and `pm-auditor` entrypoints
|
|
14
|
+
are generated compatibility skills that route to `pm-workflow`, `pm-planner`,
|
|
15
|
+
and `pm-audit`. `node scripts/gen-agent-plugin-skills.mjs --check` guards all
|
|
16
|
+
published copies against drift.
|
|
17
|
+
|
|
10
18
|
## Install
|
|
11
19
|
|
|
12
20
|
From this repository:
|
|
@@ -24,7 +32,7 @@ The launcher uses the local repo build when present. In a copied plugin cache it
|
|
|
24
32
|
Prefer the narrow tools when they match the task: `pm_context`, `pm_search`, `pm_list`, `pm_get`, `pm_create`, `pm_copy`, `pm_focus`, `pm_update`, `pm_append`, `pm_claim`, `pm_release`, `pm_close`, `pm_comments`, `pm_files`, `pm_docs`, `pm_notes`, `pm_learnings`, `pm_deps`, `pm_test`, `pm_validate`, `pm_health`, `pm_contracts`, `pm_schema`, `pm_config`, and `pm_plan`.
|
|
25
33
|
|
|
26
34
|
|
|
27
|
-
`pm_plan` exposes Codex-style ExecPlans as a first-class `Plan` item type with ordered steps, evidence, decisions, discoveries, validation, and materialization. See the `pm-
|
|
35
|
+
`pm_plan` exposes Codex-style ExecPlans as a first-class `Plan` item type with ordered steps, evidence, decisions, discoveries, validation, and materialization. See the `pm-planner` skill for the planning workflow.
|
|
28
36
|
For `init` automation, pass `options.agentGuidance` (`ask|add|skip|status`) when you need deterministic AGENTS/CLAUDE guidance behavior in non-interactive runs.
|
|
29
37
|
|
|
30
38
|
## Safety
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "pm-codex",
|
|
4
|
+
"version": "2026.9.28",
|
|
5
|
+
"description": "Repository-native project context workflows and a version-pinned pm MCP server for Codex.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "unbrained",
|
|
8
|
+
"url": "https://github.com/unbraind/pm-cli"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/unbraind/pm-cli/tree/main/plugins/pm-codex",
|
|
11
|
+
"repository": "https://github.com/unbraind/pm-cli",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"pm-cli",
|
|
15
|
+
"codex",
|
|
16
|
+
"mcp",
|
|
17
|
+
"project-management",
|
|
18
|
+
"agents"
|
|
19
|
+
],
|
|
20
|
+
"extensions": {
|
|
21
|
+
"com.openai": {
|
|
22
|
+
"interface": {
|
|
23
|
+
"displayName": "pm CLI",
|
|
24
|
+
"shortDescription": "Track project context with pm",
|
|
25
|
+
"longDescription": "Orient, plan, implement, verify, and hand off work with repository-native pm records and a bundled MCP server.",
|
|
26
|
+
"developerName": "unbrained",
|
|
27
|
+
"category": "Coding",
|
|
28
|
+
"capabilities": [
|
|
29
|
+
"Interactive",
|
|
30
|
+
"Read",
|
|
31
|
+
"Write"
|
|
32
|
+
],
|
|
33
|
+
"websiteURL": "https://github.com/unbraind/pm-cli",
|
|
34
|
+
"privacyPolicyURL": "https://github.com/unbraind/pm-cli/blob/main/SECURITY.md",
|
|
35
|
+
"termsOfServiceURL": "https://github.com/unbraind/pm-cli/blob/main/LICENSE",
|
|
36
|
+
"defaultPrompt": [
|
|
37
|
+
"Use pm to orient, track, verify, and hand off this repository task."
|
|
38
|
+
],
|
|
39
|
+
"composerIcon": "./assets/pm-cli-small.svg",
|
|
40
|
+
"logo": "./assets/pm-cli-small.svg",
|
|
41
|
+
"brandColor": "#2563EB"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pm-audit
|
|
3
|
+
description: Use when asked to inspect pm tracker health, duplicate work, graph quality, privacy, or release readiness. Report verified findings and reuse existing lineage.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# pm Review
|
|
8
|
+
|
|
9
|
+
Read the requested scope and the full live records behind any status claim.
|
|
10
|
+
Use pm_health, pm_validate, pm_search, pm_graph, and pm_contracts as needed.
|
|
11
|
+
Use pm_run for duplicate checks when no narrow tool covers them. Check omission
|
|
12
|
+
receipts and follow cursors before reporting totals.
|
|
13
|
+
|
|
14
|
+
Classify each finding by its observable impact. Search all statuses before
|
|
15
|
+
filing it and link it to its source with a meaningful typed relationship.
|
|
16
|
+
Record exact commands and results on the canonical item. Keep credentials,
|
|
17
|
+
private operational data, and raw meeting content out of public records.
|
|
18
|
+
|
|
19
|
+
An inspection does not imply permission to rewrite history or fabricate
|
|
20
|
+
relationships. When asked to fix findings, claim only the work being changed
|
|
21
|
+
and follow the pm-developer skill.
|
|
@@ -1,46 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm-auditor
|
|
3
|
-
description:
|
|
3
|
+
description: Use only when an existing Codex workflow explicitly invokes pm-auditor. This compatibility skill routes to the canonical pm-audit review skill.
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# pm Auditor
|
|
7
|
+
# pm Auditor Compatibility
|
|
8
8
|
|
|
9
|
-
Use for
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
1. Use `pm_context` with standard or deep options.
|
|
14
|
-
2. Use `pm_search` for likely existing audit or release items.
|
|
15
|
-
4. Convert each actionable finding into a pm item or append evidence to an existing item.
|
|
16
|
-
5. Keep sensitive operational data out of public docs and tracked comments.
|
|
17
|
-
|
|
18
|
-
## Evidence
|
|
19
|
-
|
|
20
|
-
Record exact verification commands and summarized results through `pm_comments`, and link touched files through `pm_files`.
|
|
21
|
-
|
|
22
|
-
## Progressive Disclosure and Token Discipline
|
|
23
|
-
|
|
24
|
-
Load the smallest thing that answers the question. Costs are measured.
|
|
25
|
-
|
|
26
|
-
| Need | Call | Cost |
|
|
27
|
-
|------|------|------|
|
|
28
|
-
| Pick or resume work | `pm_next`, or `pm_context` with `limit: 10` | ~2.1-2.5k tok |
|
|
29
|
-
| Exact flags for one command | `pm_contracts` with `command: "<name>", flagsOnly: true` | ~1-3.4k tok |
|
|
30
|
-
| The whole command surface with per-command ceilings | `pm_contracts` with `summary: true` | ~2.6k tok |
|
|
31
|
-
| An unfamiliar capability family | `pm_run` with `action: "guide", topic: "<topic>", depth: "brief"` | ~0.6-1k tok |
|
|
32
|
-
|
|
33
|
-
Guide topics are declared at runtime: `pm guide` prints the current index and
|
|
34
|
-
`pm guide <topic> --depth brief` expands one topic. Do not copy the list.
|
|
35
|
-
|
|
36
|
-
Never load `docs/COMMANDS.md` (~29k tok) or `docs/SDK.md` (~45k tok) whole.
|
|
37
|
-
|
|
38
|
-
Bound every read in this order: projection (`outputInclude`), then row limit
|
|
39
|
-
(`outputLimit` or `limit`), then `outputBudget`, then `outputCursor` to resume.
|
|
40
|
-
Read the `omission_receipt` before treating a result as complete — a
|
|
41
|
-
budget-truncated read is a claim about the part it withheld, and a truncated
|
|
42
|
-
list must never be summarized as if it were the whole population.
|
|
43
|
-
|
|
44
|
-
Author identity is detected automatically. Never pass `author` and never set
|
|
45
|
-
`PM_AUTHOR`; the harness, model, effort, role, and topic are probed and recorded
|
|
46
|
-
on every history entry.
|
|
9
|
+
Use pm-audit for live tracker health, duplicate, graph, privacy, and release
|
|
10
|
+
readiness reviews. Read full records and omission receipts before making a
|
|
11
|
+
status claim. Reuse existing lineage for each verified finding.
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name: "pm Auditor"
|
|
3
|
-
short_description: "
|
|
4
|
-
|
|
5
|
-
icon_large: "./assets/pm-cli-small.svg"
|
|
6
|
-
default_prompt: "Audit this pm repository with native pm tools, dedupe findings, link evidence, and avoid leaking private data."
|
|
2
|
+
display_name: "pm Auditor Compatibility"
|
|
3
|
+
short_description: "Route older reviews to the current pm review skill"
|
|
4
|
+
default_prompt: "Review this tracker using the canonical pm-audit guidance."
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pm-developer
|
|
3
|
+
description: Use when implementing, debugging, refactoring, or shipping code, tests, or docs tracked by pm. Keep SDK behavior and verification linked to the active item.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# pm Developer
|
|
8
|
+
|
|
9
|
+
Orient with pm-workflow before editing. Claim the canonical item and keep its
|
|
10
|
+
scope aligned with the change.
|
|
11
|
+
|
|
12
|
+
1. Read the complete source owner and relevant tests before editing. For a
|
|
13
|
+
regression, identify the observable contract and the change that would
|
|
14
|
+
make its test fail.
|
|
15
|
+
2. Put domain behavior in the public pm SDK. Keep CLI and MCP adapters thin,
|
|
16
|
+
with transport-specific tests only where those boundaries add risk.
|
|
17
|
+
3. Link changed files, docs, and isolated runnable tests through pm_files,
|
|
18
|
+
pm_docs, and pm_test.
|
|
19
|
+
4. Run the focused test, build, full coverage, static quality, and installed
|
|
20
|
+
consumer checks required by the affected contract. Keep tracker test roots
|
|
21
|
+
separate from the real repository.
|
|
22
|
+
5. Record exact results in pm_comments. Close with structured resolution,
|
|
23
|
+
expected, and actual fields only when the criteria are actually met.
|
|
24
|
+
|
|
25
|
+
Prefer pm_contracts for flags and the SDK public surface for integration APIs.
|
|
26
|
+
An unknown review provider or missing check is not approval.
|