@unbrained/pm-cli 2026.5.11 → 2026.5.14

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.
Files changed (171) hide show
  1. package/AGENTS.md +3 -116
  2. package/CHANGELOG.md +18 -0
  3. package/PRD.md +18 -39
  4. package/README.md +8 -5
  5. package/dist/cli/commander-usage.js +27 -0
  6. package/dist/cli/commander-usage.js.map +1 -1
  7. package/dist/cli/commands/activity.js +19 -4
  8. package/dist/cli/commands/activity.js.map +1 -1
  9. package/dist/cli/commands/calendar.js +5 -2
  10. package/dist/cli/commands/calendar.js.map +1 -1
  11. package/dist/cli/commands/contracts.js +63 -19
  12. package/dist/cli/commands/contracts.js.map +1 -1
  13. package/dist/cli/commands/create.js +58 -3
  14. package/dist/cli/commands/create.js.map +1 -1
  15. package/dist/cli/commands/extension.d.ts +14 -3
  16. package/dist/cli/commands/extension.js +481 -95
  17. package/dist/cli/commands/extension.js.map +1 -1
  18. package/dist/cli/commands/index.d.ts +1 -8
  19. package/dist/cli/commands/index.js +1 -8
  20. package/dist/cli/commands/index.js.map +1 -1
  21. package/dist/cli/commands/reindex.d.ts +8 -0
  22. package/dist/cli/commands/reindex.js +96 -23
  23. package/dist/cli/commands/reindex.js.map +1 -1
  24. package/dist/cli/commands/search.js +51 -25
  25. package/dist/cli/commands/search.js.map +1 -1
  26. package/dist/cli/commands/test.js +14 -6
  27. package/dist/cli/commands/test.js.map +1 -1
  28. package/dist/cli/commands/upgrade.d.ts +63 -0
  29. package/dist/cli/commands/upgrade.js +260 -0
  30. package/dist/cli/commands/upgrade.js.map +1 -0
  31. package/dist/cli/guide-topics.js +18 -16
  32. package/dist/cli/guide-topics.js.map +1 -1
  33. package/dist/cli/help-content.js +57 -18
  34. package/dist/cli/help-content.js.map +1 -1
  35. package/dist/cli/main.js +73 -7
  36. package/dist/cli/main.js.map +1 -1
  37. package/dist/cli/register-list-query.js +24 -142
  38. package/dist/cli/register-list-query.js.map +1 -1
  39. package/dist/cli/register-mutation.js +49 -257
  40. package/dist/cli/register-mutation.js.map +1 -1
  41. package/dist/cli/register-operations.js +29 -198
  42. package/dist/cli/register-operations.js.map +1 -1
  43. package/dist/cli/register-setup.js +181 -204
  44. package/dist/cli/register-setup.js.map +1 -1
  45. package/dist/cli/registration-helpers.d.ts +2 -2
  46. package/dist/cli/registration-helpers.js +1 -19
  47. package/dist/cli/registration-helpers.js.map +1 -1
  48. package/dist/core/extensions/loader.js +7 -1
  49. package/dist/core/extensions/loader.js.map +1 -1
  50. package/dist/core/packages/manifest.d.ts +38 -0
  51. package/dist/core/packages/manifest.js +221 -0
  52. package/dist/core/packages/manifest.js.map +1 -0
  53. package/dist/core/search/embedding-batches.d.ts +13 -1
  54. package/dist/core/search/embedding-batches.js +19 -1
  55. package/dist/core/search/embedding-batches.js.map +1 -1
  56. package/dist/core/store/front-matter-cache.d.ts +8 -1
  57. package/dist/core/store/front-matter-cache.js +20 -11
  58. package/dist/core/store/front-matter-cache.js.map +1 -1
  59. package/dist/mcp/server.d.ts +8 -0
  60. package/dist/mcp/server.js +100 -43
  61. package/dist/mcp/server.js.map +1 -1
  62. package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +7 -0
  63. package/dist/sdk/cli-contracts/commander-mutation-options.js +477 -0
  64. package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -0
  65. package/dist/sdk/cli-contracts/commander-types.d.ts +21 -0
  66. package/dist/sdk/cli-contracts/commander-types.js +92 -0
  67. package/dist/sdk/cli-contracts/commander-types.js.map +1 -0
  68. package/dist/sdk/cli-contracts.d.ts +22 -32
  69. package/dist/sdk/cli-contracts.js +155 -296
  70. package/dist/sdk/cli-contracts.js.map +1 -1
  71. package/dist/sdk/index.d.ts +2 -0
  72. package/dist/sdk/index.js +2 -0
  73. package/dist/sdk/index.js.map +1 -1
  74. package/dist/sdk/runtime.d.ts +29 -0
  75. package/dist/sdk/runtime.js +28 -0
  76. package/dist/sdk/runtime.js.map +1 -0
  77. package/docs/ARCHITECTURE.md +1 -1
  78. package/docs/COMMANDS.md +17 -1
  79. package/docs/EXTENSIONS.md +169 -61
  80. package/docs/QUICKSTART.md +11 -2
  81. package/docs/README.md +4 -6
  82. package/docs/RELEASING.md +4 -2
  83. package/docs/SDK.md +79 -438
  84. package/package.json +6 -23
  85. package/packages/pm-beads/README.md +10 -0
  86. package/packages/pm-beads/extensions/beads/index.js +113 -0
  87. package/{.agents/pm/extensions/beads/index.js → packages/pm-beads/extensions/beads/index.ts} +42 -20
  88. package/{.agents/pm → packages/pm-beads}/extensions/beads/runtime.js +2 -17
  89. package/{.agents/pm → packages/pm-beads}/extensions/beads/runtime.ts +41 -18
  90. package/packages/pm-beads/package.json +50 -0
  91. package/packages/pm-calendar/README.md +13 -0
  92. package/packages/pm-calendar/extensions/calendar/index.js +56 -0
  93. package/packages/pm-calendar/extensions/calendar/index.ts +62 -0
  94. package/packages/pm-calendar/extensions/calendar/manifest.json +7 -0
  95. package/packages/pm-calendar/extensions/calendar/runtime.js +95 -0
  96. package/packages/pm-calendar/extensions/calendar/runtime.ts +104 -0
  97. package/packages/pm-calendar/package.json +51 -0
  98. package/packages/pm-governance-audit/README.md +23 -0
  99. package/packages/pm-governance-audit/extensions/governance-audit/index.js +117 -0
  100. package/packages/pm-governance-audit/extensions/governance-audit/index.ts +118 -0
  101. package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +7 -0
  102. package/packages/pm-governance-audit/extensions/governance-audit/runtime.js +159 -0
  103. package/packages/pm-governance-audit/extensions/governance-audit/runtime.ts +176 -0
  104. package/packages/pm-governance-audit/package.json +52 -0
  105. package/packages/pm-guide-shell/README.md +23 -0
  106. package/packages/pm-guide-shell/extensions/guide-shell/index.js +76 -0
  107. package/packages/pm-guide-shell/extensions/guide-shell/index.ts +81 -0
  108. package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +7 -0
  109. package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +263 -0
  110. package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +327 -0
  111. package/packages/pm-guide-shell/package.json +52 -0
  112. package/packages/pm-linked-test-adapters/README.md +24 -0
  113. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.js +101 -0
  114. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.ts +102 -0
  115. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +7 -0
  116. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.js +142 -0
  117. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.ts +173 -0
  118. package/packages/pm-linked-test-adapters/package.json +53 -0
  119. package/packages/pm-search-advanced/README.md +27 -0
  120. package/packages/pm-search-advanced/extensions/search-advanced/index.js +93 -0
  121. package/packages/pm-search-advanced/extensions/search-advanced/index.ts +94 -0
  122. package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +7 -0
  123. package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +120 -0
  124. package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +144 -0
  125. package/packages/pm-search-advanced/package.json +54 -0
  126. package/packages/pm-templates/README.md +20 -0
  127. package/packages/pm-templates/extensions/templates/index.js +101 -0
  128. package/packages/pm-templates/extensions/templates/index.ts +109 -0
  129. package/packages/pm-templates/extensions/templates/manifest.json +7 -0
  130. package/packages/pm-templates/extensions/templates/runtime.js +226 -0
  131. package/packages/pm-templates/extensions/templates/runtime.ts +283 -0
  132. package/packages/pm-templates/package.json +50 -0
  133. package/packages/pm-todos/README.md +11 -0
  134. package/packages/pm-todos/extensions/todos/index.js +130 -0
  135. package/{.agents/pm/extensions/todos/index.js → packages/pm-todos/extensions/todos/index.ts} +47 -23
  136. package/{.agents/pm → packages/pm-todos}/extensions/todos/runtime.js +3 -18
  137. package/{.agents/pm → packages/pm-todos}/extensions/todos/runtime.ts +42 -20
  138. package/packages/pm-todos/package.json +51 -0
  139. package/plugins/pm-cli-claude/README.md +1 -2
  140. package/plugins/pm-cli-claude/hooks/session-start.mjs +4 -55
  141. package/plugins/pm-cli-claude/scripts/pm-mcp-server.mjs +4 -2
  142. package/plugins/pm-cli-codex/scripts/pm-mcp-server.mjs +4 -2
  143. package/.agents/pm/extensions/.managed-extensions.json +0 -42
  144. package/.agents/skills/HARNESS_COMPATIBILITY.md +0 -45
  145. package/.agents/skills/README.md +0 -21
  146. package/.agents/skills/pm-developer/SKILL.md +0 -73
  147. package/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +0 -48
  148. package/.agents/skills/pm-developer/references/PROMPTS.md +0 -17
  149. package/.agents/skills/pm-extensions/SKILL.md +0 -57
  150. package/.agents/skills/pm-extensions/references/LIFECYCLE.md +0 -40
  151. package/.agents/skills/pm-extensions/references/TROUBLESHOOTING.md +0 -25
  152. package/.agents/skills/pm-sdk/SKILL.md +0 -50
  153. package/.agents/skills/pm-sdk/references/INTEGRATION_CHECKLIST.md +0 -31
  154. package/.agents/skills/pm-sdk/references/PROMPTS.md +0 -13
  155. package/.agents/skills/pm-user/SKILL.md +0 -59
  156. package/.agents/skills/pm-user/references/PROMPTS.md +0 -17
  157. package/.agents/skills/pm-user/references/WORKFLOWS.md +0 -35
  158. package/.pi/README.md +0 -35
  159. package/.pi/agents/pm-triage-agent.md +0 -19
  160. package/.pi/agents/pm-verification-agent.md +0 -21
  161. package/.pi/chains/pm-native-delivery.chain.md +0 -11
  162. package/.pi/extensions/pm-cli/index.js +0 -387
  163. package/.pi/prompts/pm-workflow.md +0 -5
  164. package/.pi/skills/pm-native/SKILL.md +0 -44
  165. package/.pi/skills/pm-release/SKILL.md +0 -35
  166. package/dist/pi/native.d.ts +0 -5
  167. package/dist/pi/native.js +0 -236
  168. package/dist/pi/native.js.map +0 -1
  169. package/docs/PI_PACKAGE.md +0 -141
  170. /package/{.agents/pm → packages/pm-beads}/extensions/beads/manifest.json +0 -0
  171. /package/{.agents/pm → packages/pm-todos}/extensions/todos/manifest.json +0 -0
@@ -1,73 +0,0 @@
1
- ---
2
- name: pm-developer
3
- description: Runs the pm-cli developer execution loop (orient, claim, implement, verify, close) with linked files/tests/docs evidence. Use when coding, debugging, refactoring, or shipping repository changes tracked in pm items.
4
- license: MIT
5
- compatibility: Works in terminal-based coding agents with bash, Node.js, and pnpm.
6
- metadata:
7
- owner: unbrained
8
- domain: pm-cli
9
- scope: developer-workflow
10
- ---
11
-
12
- # pm Developer Skill
13
-
14
- Use this skill for implementation work that changes code, docs, tests, or release gates.
15
-
16
- ## Quick Start
17
-
18
- ```bash
19
- pm context --limit 10
20
- pm search "<task keywords>" --limit 10
21
- pm list-open --limit 20
22
- pm claim <ID>
23
- pm update <ID> --status in_progress
24
- pm guide workflows
25
- ```
26
-
27
- ## Canonical Workflow
28
-
29
- 1. **Orient**: pick an existing item when possible.
30
- 2. **Claim**: claim before substantial edits.
31
- 3. **Link context**: attach changed files/tests/docs while implementing.
32
- 4. **Verify**: run linked tests plus local quality gates.
33
- 5. **Close with evidence**: append what changed and what passed.
34
- 6. **Release claim**: release when paused, handed off, or closed.
35
-
36
- ## Workflow Prompts
37
-
38
- Use one prompt template, then execute only the minimum required commands.
39
-
40
- ### Prompt: Implement Scoped Change
41
-
42
- `Implement the requested change on <ID>. Keep edits scoped, link files/tests/docs, run targeted verification, and record closure evidence before releasing claim.`
43
-
44
- ### Prompt: Debug Regression
45
-
46
- `Investigate failing behavior for <ID>. Reproduce first, add or update regression tests, patch root cause, and append evidence with exact command outputs.`
47
-
48
- ### Prompt: Documentation + Code Sync
49
-
50
- `Update implementation and docs together for <ID>. Ensure docs route through pm guide topics and verify command examples still match pm contracts output.`
51
-
52
- ## Required Evidence Commands
53
-
54
- ```bash
55
- pm files <ID> --add path=<path>,scope=project,note="<reason>"
56
- pm test <ID> --add command="node scripts/run-tests.mjs test -- <target>",scope=project,timeout_seconds=240
57
- pm docs <ID> --add path=<doc>,scope=project,note="<reason>"
58
- pm comments <ID> "Evidence: <what changed + tests run>"
59
- ```
60
-
61
- ## Verification Defaults
62
-
63
- ```bash
64
- pnpm build
65
- node scripts/run-tests.mjs test -- <targets>
66
- node scripts/run-tests.mjs coverage
67
- pm validate --check-resolution --check-history-drift
68
- ```
69
-
70
- ## Progressive Disclosure References
71
-
72
- - [Developer command playbook](references/COMMAND_PLAYBOOK.md)
73
- - [Prompt templates and examples](references/PROMPTS.md)
@@ -1,48 +0,0 @@
1
- # Developer Command Playbook
2
-
3
- ## Session Bootstrap (Maintainer Run)
4
-
5
- ```bash
6
- npm install -g .
7
- pm --version
8
- node -v
9
- pnpm -v
10
- pnpm build
11
- ```
12
-
13
- ## Item Lifecycle
14
-
15
- ```bash
16
- pm context --limit 10
17
- pm search "<keywords>" --limit 10
18
- pm list-open --limit 20
19
- pm claim <ID>
20
- pm update <ID> --status in_progress --description "..."
21
- pm append <ID> --body "Implementation notes"
22
- ```
23
-
24
- ## Evidence Linking
25
-
26
- ```bash
27
- pm files <ID> --add path=src/<file>.ts,scope=project,note="implementation"
28
- pm docs <ID> --add path=docs/<doc>.md,scope=project,note="public docs update"
29
- pm test <ID> --add command="node scripts/run-tests.mjs test -- tests/unit/<file>.spec.ts",scope=project,timeout_seconds=240
30
- ```
31
-
32
- ## Close Workflow
33
-
34
- ```bash
35
- pm test <ID> --run --progress
36
- node scripts/run-tests.mjs coverage
37
- pm comments <ID> "Evidence: linked tests passed; coverage remained green."
38
- pm close <ID> "Acceptance criteria met with verification evidence." --validate-close warn
39
- pm release <ID>
40
- ```
41
-
42
- ## Local Docs Routing
43
-
44
- ```bash
45
- pm guide workflows
46
- pm guide commands --depth standard
47
- pm guide release --json
48
- ```
@@ -1,17 +0,0 @@
1
- # Prompt Templates
2
-
3
- ## Implement Feature
4
-
5
- `Implement <feature> on <ID>. Reuse existing architecture, link all changed files/tests/docs, run targeted + coverage checks, and append evidence before close.`
6
-
7
- ## Fix Bug
8
-
9
- `Fix <bug> on <ID>. Add a regression test, keep the patch minimal, run focused tests first, then full gate commands if scope expands.`
10
-
11
- ## Refactor
12
-
13
- `Refactor <area> on <ID> without behavior changes. Preserve API contracts, update docs where command behavior is clarified, and validate with existing regression suite.`
14
-
15
- ## Release Readiness Sweep
16
-
17
- `Perform release readiness checks for <ID>. Run build, coverage, static quality, secret scan, and release gates. Document all results in a closure comment.`
@@ -1,57 +0,0 @@
1
- ---
2
- name: pm-extensions
3
- description: Manages pm-cli extension lifecycle operations (explore, install, activate, diagnose, and release-safe validation). Use when building, integrating, or troubleshooting pm extensions and extension-provided commands.
4
- license: MIT
5
- compatibility: Requires pm extension commands and local project/global extension directories.
6
- metadata:
7
- owner: unbrained
8
- domain: pm-cli
9
- scope: extension-workflow
10
- ---
11
-
12
- # pm Extensions Skill
13
-
14
- Use this skill when the request touches extension install, activation, command registration, diagnostics, or extension governance.
15
-
16
- ## Quick Start
17
-
18
- ```bash
19
- pm guide extensions
20
- pm extension explore --project
21
- pm extension manage --detail summary
22
- pm extension doctor --detail deep
23
- ```
24
-
25
- ## Lifecycle Workflow
26
-
27
- 1. **Inspect state first** (`explore`, `manage`, `doctor`).
28
- 2. **Apply lifecycle mutation** (`install`, `adopt`, `activate`, `deactivate`, `uninstall`).
29
- 3. **Verify command/action exposure** with `pm contracts`.
30
- 4. **Record evidence** in linked `pm` items.
31
-
32
- ## Workflow Prompts
33
-
34
- ### Prompt: Diagnose Extension Failure
35
-
36
- `Diagnose extension activation issues using pm extension explore/manage/doctor before making lifecycle changes. Report root cause and minimal remediation commands.`
37
-
38
- ### Prompt: Install and Validate Extension
39
-
40
- `Install <extension> in project scope, validate with doctor diagnostics, and confirm command/action availability using pm contracts runtime output.`
41
-
42
- ### Prompt: Safe Deactivation
43
-
44
- `Deactivate or uninstall <extension> with rollback-safe sequencing and explicit evidence of which commands/actions are removed.`
45
-
46
- ## Contract Verification
47
-
48
- ```bash
49
- pm contracts --command extension --flags-only
50
- pm contracts --runtime-only --availability-only
51
- pm contracts --command <extension-command> --flags-only
52
- ```
53
-
54
- ## Progressive Disclosure References
55
-
56
- - [Extension lifecycle recipes](references/LIFECYCLE.md)
57
- - [Troubleshooting playbook](references/TROUBLESHOOTING.md)
@@ -1,40 +0,0 @@
1
- # Extension Lifecycle Recipes
2
-
3
- ## Inspect Current State
4
-
5
- ```bash
6
- pm extension explore --project
7
- pm extension manage --detail summary
8
- pm extension doctor --detail deep
9
- ```
10
-
11
- ## Install and Activate
12
-
13
- ```bash
14
- pm extension install <target> --project
15
- pm extension activate <target> --project
16
- pm extension doctor --detail summary
17
- ```
18
-
19
- ## Adopt Existing Extensions
20
-
21
- ```bash
22
- pm extension adopt <name> --project
23
- pm extension adopt-all --project
24
- pm extension manage --detail summary
25
- ```
26
-
27
- ## Deactivate / Uninstall
28
-
29
- ```bash
30
- pm extension deactivate <target> --project
31
- pm extension uninstall <target> --project
32
- pm extension doctor --detail deep
33
- ```
34
-
35
- ## Contract Checks
36
-
37
- ```bash
38
- pm contracts --runtime-only --availability-only
39
- pm contracts --command extension --flags-only
40
- ```
@@ -1,25 +0,0 @@
1
- # Extension Troubleshooting
2
-
3
- ## Common Diagnostic Sequence
4
-
5
- 1. `pm extension explore --project`
6
- 2. `pm extension manage --detail summary`
7
- 3. `pm extension doctor --detail deep --trace`
8
- 4. `pm contracts --runtime-only --availability-only`
9
-
10
- ## Symptoms and Checks
11
-
12
- - **Command not visible**
13
- - Confirm extension is managed and active.
14
- - Confirm capability includes `commands`.
15
- - Check `pm contracts` action availability.
16
-
17
- - **Schema mismatch**
18
- - Confirm capability includes `schema`.
19
- - Re-run doctor with `--detail deep --trace`.
20
- - Validate runtime-only contracts output.
21
-
22
- - **Unexpected behavior after updates**
23
- - Check registration precedence with manage/doctor.
24
- - Run with `--no-extensions` to isolate core behavior.
25
- - Re-activate extension after fixing manifest or entry path.
@@ -1,50 +0,0 @@
1
- ---
2
- name: pm-sdk
3
- description: Implements pm-cli integrations using @unbrained/pm-cli/sdk and runtime contracts. Use when authoring extensions, wrappers, or automation that must stay aligned with command/action schema changes.
4
- license: MIT
5
- compatibility: Requires Node.js and access to pm contracts output for runtime parity checks.
6
- metadata:
7
- owner: unbrained
8
- domain: pm-cli
9
- scope: sdk-integration
10
- ---
11
-
12
- # pm SDK Skill
13
-
14
- Use this skill when integrating against `@unbrained/pm-cli/sdk` or validating external wrappers.
15
-
16
- ## Quick Start
17
-
18
- ```bash
19
- pm guide sdk
20
- pm contracts --schema-only
21
- pm contracts --runtime-only --availability-only
22
- pm contracts --command <command> --flags-only
23
- ```
24
-
25
- ## Integration Workflow
26
-
27
- 1. Capture current runtime schema and command contracts.
28
- 2. Map integration payload fields to contract keys.
29
- 3. Implement with SDK exports (no internal `src/core/...` imports).
30
- 4. Validate command/action availability in runtime-only mode.
31
- 5. Add regression tests for schema-bound behavior.
32
-
33
- ## Workflow Prompts
34
-
35
- ### Prompt: Build New Integration
36
-
37
- `Implement <integration> using @unbrained/pm-cli/sdk and pm contracts output as the source of truth. Add tests that fail when required command/action fields drift.`
38
-
39
- ### Prompt: Contract Drift Investigation
40
-
41
- `Compare integration assumptions with current pm contracts output, identify drift, and patch mapping logic and tests to restore parity.`
42
-
43
- ### Prompt: Extension Authoring
44
-
45
- `Author extension registration using defineExtension and declared capabilities only, then verify activation and command availability with pm contracts.`
46
-
47
- ## Progressive Disclosure References
48
-
49
- - [Integration checklist](references/INTEGRATION_CHECKLIST.md)
50
- - [SDK prompt templates](references/PROMPTS.md)
@@ -1,31 +0,0 @@
1
- # SDK Integration Checklist
2
-
3
- ## Contract Capture
4
-
5
- ```bash
6
- pm contracts --schema-only --json
7
- pm contracts --runtime-only --availability-only --json
8
- pm contracts --command <command> --flags-only --json
9
- ```
10
-
11
- ## Implementation Rules
12
-
13
- - Use `@unbrained/pm-cli/sdk` exports only.
14
- - Do not import internal runtime modules from `src/core/...`.
15
- - Keep action/flag mappings derived from `pm contracts` outputs.
16
- - Handle extension-unavailable states through availability metadata.
17
-
18
- ## Validation
19
-
20
- ```bash
21
- pnpm build
22
- node scripts/run-tests.mjs test -- <targeted sdk/integration tests>
23
- node scripts/run-tests.mjs coverage
24
- ```
25
-
26
- ## Release Readiness
27
-
28
- ```bash
29
- node scripts/release/docs-skills-gate.mjs
30
- node scripts/release/run-gates.mjs --telemetry-mode best-effort
31
- ```
@@ -1,13 +0,0 @@
1
- # SDK Prompt Templates
2
-
3
- ## Runtime Contract Mapping
4
-
5
- `Map this integration request to pm contracts output first, then generate implementation steps keyed to command flags and action schema fields.`
6
-
7
- ## Extension Capability Design
8
-
9
- `Design extension capabilities for <feature> using defineExtension. Include only needed capabilities and provide a verification command list for activation and contracts checks.`
10
-
11
- ## Wrapper Parity Check
12
-
13
- `Audit wrapper action/command mapping parity against current pm contracts output and report any missing or stale fields with patch recommendations.`
@@ -1,59 +0,0 @@
1
- ---
2
- name: pm-user
3
- description: Guides user- and operator-facing pm-cli workflows for planning, triage, prioritization, and task lifecycle management with minimal token usage. Use when routing requests into pm items without implementing code changes.
4
- license: MIT
5
- compatibility: Works in terminal-based agent harnesses that execute pm CLI commands.
6
- metadata:
7
- owner: unbrained
8
- domain: pm-cli
9
- scope: operator-workflow
10
- ---
11
-
12
- # pm User Skill
13
-
14
- Use this skill for planning and coordination work where the main output is clean tracker state.
15
-
16
- ## Quick Start
17
-
18
- ```bash
19
- pm guide quickstart
20
- pm context --limit 10
21
- pm search "<request keywords>" --limit 10
22
- pm list-open --limit 20
23
- pm list-in-progress --limit 20
24
- ```
25
-
26
- ## Primary Use Cases
27
-
28
- - Intake a new request and decide whether an item already exists.
29
- - Create parent lineage (`Epic` -> `Feature` -> `Task`) for net-new scope.
30
- - Prioritize and schedule work with deterministic metadata.
31
- - Maintain clear ownership and handoff notes.
32
-
33
- ## Workflow Prompts
34
-
35
- ### Prompt: New Request Triage
36
-
37
- `Triage this request using pm only. Reuse an existing item if relevant; otherwise create canonical parent lineage and a scoped child item with duplicate-check evidence.`
38
-
39
- ### Prompt: Prioritization Sweep
40
-
41
- `Review open and in-progress items, normalize priority/status metadata, and leave append-only notes explaining why any prioritization changed.`
42
-
43
- ### Prompt: Handoff Preparation
44
-
45
- `Prepare handoff for <ID>: summarize state in comments, ensure linked files/tests/docs are complete, and release claim when ready.`
46
-
47
- ## Deterministic Metadata Commands
48
-
49
- ```bash
50
- pm update <ID> --description "..." --ac "..." --estimate 60
51
- pm update <ID> --deadline +2d --priority 1 --status open
52
- pm comments <ID> "Decision log: <why this status/priority>"
53
- pm notes <ID> --add "Context for next owner."
54
- ```
55
-
56
- ## Progressive Disclosure References
57
-
58
- - [Triage and planning workflows](references/WORKFLOWS.md)
59
- - [Operator prompt templates](references/PROMPTS.md)
@@ -1,17 +0,0 @@
1
- # Operator Prompt Templates
2
-
3
- ## Triage
4
-
5
- `Find the canonical pm item for this request. Show duplicate-check commands, then either reuse and update the item or create parent lineage + child item with explicit rationale.`
6
-
7
- ## Schedule
8
-
9
- `Apply deterministic scheduling metadata (status, priority, estimate, deadline) to <ID> and leave a comment explaining the prioritization decision.`
10
-
11
- ## Handoff
12
-
13
- `Prepare <ID> for handoff: append current state, blockers, and next actions; release the claim when handoff is complete.`
14
-
15
- ## Closure Readiness
16
-
17
- `Validate whether <ID> is close-ready by checking acceptance criteria, linked files/tests/docs, and latest verification evidence.`
@@ -1,35 +0,0 @@
1
- # User and Operator Workflows
2
-
3
- ## Intake Workflow
4
-
5
- 1. Query current context:
6
-
7
- ```bash
8
- pm context --limit 10
9
- pm search "<keywords>" --limit 10
10
- pm list-open --limit 20
11
- pm list-in-progress --limit 20
12
- ```
13
-
14
- 2. If existing item matches, reuse and update it.
15
- 3. If no match exists, create parent lineage then child item.
16
- 4. Add duplicate-check evidence in comments at creation time.
17
-
18
- ## Claim and Ownership Workflow
19
-
20
- ```bash
21
- pm claim <ID>
22
- pm update <ID> --status in_progress --message "Start work"
23
- pm comments <ID> "Owner update: <state>"
24
- pm release <ID>
25
- ```
26
-
27
- ## Audit-Friendly Collaboration
28
-
29
- For non-owner append-only collaboration:
30
-
31
- ```bash
32
- pm comments <ID> --add "audit comment" --allow-audit-comment
33
- pm notes <ID> --add "audit note" --allow-audit-comment
34
- pm update <ID> --dep "id=<id>,kind=related,author=<author>,created_at=now" --allow-audit-dep-update
35
- ```
package/.pi/README.md DELETED
@@ -1,35 +0,0 @@
1
- # pm CLI Pi Package
2
-
3
- This directory is the installable Pi package payload for `@unbrained/pm-cli`.
4
-
5
- Install from npm after publish:
6
-
7
- ```bash
8
- pi install npm:@unbrained/pm-cli
9
- ```
10
-
11
- For local development from a checkout:
12
-
13
- ```bash
14
- pnpm build
15
- pi install -l .
16
- # or one-shot
17
- pi -e .
18
- ```
19
-
20
- Resources exposed by `package.json`:
21
-
22
- - `.pi/extensions/pm-cli/index.js` — native Pi extension registering the `pm` tool, custom TUI renderers, autocomplete, status/widget UI, and slash commands.
23
- - `.pi/skills/*` — Pi skills for native pm workflows and release validation.
24
- - `.pi/prompts/*` — prompt templates for pm-tracked work.
25
- - `.pi/agents/*` and `.pi/chains/*` — optional pi-subagents setup for pm triage and verification workflows in repositories that use subagents.
26
-
27
- The extension imports the built package from `dist/`, so run `pnpm build` before local install or before publishing.
28
-
29
- Interactive commands:
30
-
31
- - `/pm-board [limit]` — dashboard panel for active pm context.
32
- - `/pm-item <id>` and `/pm-history <id>` — item details/history panels.
33
- - `/pm-actions` and `/pm-workflows` — native action list and workflow reminders.
34
-
35
- The `pm` tool should be preferred over shelling out to `pm`; it calls pm command modules directly in-process.
@@ -1,19 +0,0 @@
1
- ---
2
- name: pm-triage-agent
3
- description: Native pm triage agent for Pi. Use to inspect context, search for duplicates, select or create tracker lineage, and hand off an implementation-ready pm item without shelling out to the pm CLI.
4
- tools: pm,read,grep,find,ls
5
- skills: pm-native,pm-user
6
- ---
7
-
8
- # pm Triage Agent
9
-
10
- Use the native `pm` tool only for pm operations.
11
-
12
- Workflow:
13
- 1. Run `pm` action `context` with `limit: 10`.
14
- 2. Run `pm` action `search` with the user's key terms.
15
- 3. Run `pm` actions `list-open` and `list-in-progress`.
16
- 4. If an item exists, recommend reusing it and claim/start only when asked.
17
- 5. If no item exists, identify parent lineage and propose a create payload with duplicate-check evidence.
18
-
19
- Output a concise handoff with item id, rationale, recommended next action, and exact native `pm` tool calls.
@@ -1,21 +0,0 @@
1
- ---
2
- name: pm-verification-agent
3
- description: Native pm verification agent for Pi. Use to inspect linked files/tests/docs, run sandbox-safe linked tests through pm, validate close readiness, and produce closure evidence.
4
- tools: pm,bash,read,grep,find,ls
5
- skills: pm-native,pm-release
6
- ---
7
-
8
- # pm Verification Agent
9
-
10
- Use the native `pm` tool for pm mutations and linked-test orchestration.
11
- Use bash only for non-pm project commands such as `pnpm build` or `gh run list`.
12
-
13
- Workflow:
14
- 1. Read the target item with `pm` action `get`.
15
- 2. Check linked files/docs/tests and acceptance criteria.
16
- 3. Run `pm` action `test` with `run: true` or equivalent linked-test options when available.
17
- 4. Run targeted project validation requested by the parent.
18
- 5. Add a `pm` comment summarizing evidence.
19
- 6. Recommend close/release only if verification is clean.
20
-
21
- Output failures with exact commands, item id, and next remediation step.
@@ -1,11 +0,0 @@
1
- ---
2
- name: pm-native-delivery
3
- description: Triage, implement, and verify a pm-tracked change using native pm operations in Pi.
4
- steps:
5
- - agent: pm-triage-agent
6
- task: "Triage the requested work and identify the canonical pm item for: {task}"
7
- - agent: worker
8
- task: "Implement the approved scope from the triage handoff. Use native pm for tracker operations, link changed files/tests/docs, and keep edits scoped. Original request: {task}\n\nTriage handoff:\n{previous}"
9
- - agent: pm-verification-agent
10
- task: "Verify the implementation and produce pm closure evidence. Original request: {task}\n\nImplementation handoff:\n{previous}"
11
- ---