@modootoday/pmcp 0.18.0 → 0.18.3

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 (156) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +2 -2
  4. package/.mcp.json +1 -1
  5. package/CONTRIBUTING.md +80 -0
  6. package/README.md +100 -206
  7. package/SECURITY.md +17 -1
  8. package/dist/{apply-4IGTXOCQ.js → apply-S2QI72W3.js} +13 -13
  9. package/dist/{available-DBSIVVJ6.js → available-GFMTJW4E.js} +3 -3
  10. package/dist/{broadcast-3RY3OZGY.js → broadcast-CBMVOV3G.js} +4 -4
  11. package/dist/{chunk-SG5TPMKH.js → chunk-26WLNWDG.js} +2 -2
  12. package/dist/{chunk-4VCC2NXE.js → chunk-2RTRY45B.js} +2 -2
  13. package/dist/{chunk-3NYG4SGU.js → chunk-3MEYKFFO.js} +3 -3
  14. package/dist/{chunk-KMXRRSKT.js → chunk-4CRRLDDS.js} +1 -1
  15. package/dist/{chunk-ZH6R642Z.js → chunk-4GSGT55G.js} +2 -2
  16. package/dist/{chunk-EJBZGIDK.js → chunk-6BN35BHI.js} +3 -3
  17. package/dist/{chunk-T3LKX23M.js → chunk-7B6IC3F7.js} +3 -3
  18. package/dist/{chunk-25GHX674.js → chunk-7DEYLLIE.js} +9 -9
  19. package/dist/{chunk-ELAGZ635.js → chunk-7PTG42QU.js} +5 -5
  20. package/dist/chunk-AF2IBMWN.js +7 -0
  21. package/dist/{chunk-IGYRMM62.js → chunk-CKTN6LKP.js} +2 -2
  22. package/dist/{chunk-PLX3BOOS.js → chunk-E5XVSMBR.js} +2 -2
  23. package/dist/{chunk-Q65R3XKX.js → chunk-EAWPJHJ7.js} +2 -2
  24. package/dist/{chunk-7BLPN3W6.js → chunk-F5LEGPGP.js} +2 -2
  25. package/dist/{chunk-BBTBJCFA.js → chunk-F5WBMUOT.js} +2 -2
  26. package/dist/{chunk-YMHUM7AV.js → chunk-F5XMGOOX.js} +7 -1
  27. package/dist/{chunk-R4L6LJJ2.js → chunk-FX3LTTMB.js} +2 -2
  28. package/dist/{chunk-5QQWS4US.js → chunk-HEBCQTOD.js} +2 -2
  29. package/dist/{chunk-NZS5CD72.js → chunk-HEWZ6INU.js} +21 -5
  30. package/dist/{chunk-MWFOUBFC.js → chunk-HFE4QDJQ.js} +2 -2
  31. package/dist/{chunk-N5AQ3PP7.js → chunk-HQWVGU3W.js} +5 -5
  32. package/dist/{chunk-UOCLRM7P.js → chunk-IIBB37JE.js} +22 -22
  33. package/dist/{chunk-MPSQXSC6.js → chunk-ISZOLR3D.js} +5 -3
  34. package/dist/{chunk-J6QLLQVL.js → chunk-JM2KR2WJ.js} +5 -5
  35. package/dist/{chunk-CJTKR6K6.js → chunk-JZK7ZO7K.js} +2 -2
  36. package/dist/{chunk-RK4PYD7L.js → chunk-LBXO4VPG.js} +2 -2
  37. package/dist/{chunk-BVCTKPT3.js → chunk-LMUBBIE2.js} +2 -2
  38. package/dist/{chunk-Z4HRRXRF.js → chunk-LTZH5E3G.js} +6 -5
  39. package/dist/{chunk-MM2Y43LC.js → chunk-M455QSCW.js} +3 -3
  40. package/dist/{chunk-7GBYECSK.js → chunk-NLHLA2N5.js} +3 -3
  41. package/dist/{chunk-HDMBVLCZ.js → chunk-NWOV2E26.js} +2 -2
  42. package/dist/{chunk-PWSJJXLQ.js → chunk-QK4G7FCU.js} +8 -8
  43. package/dist/{chunk-47O3X4VS.js → chunk-QRCAGKC6.js} +1 -1
  44. package/dist/{chunk-665TA55Z.js → chunk-TAOOPXBV.js} +2 -2
  45. package/dist/{chunk-JUXNIXN4.js → chunk-TZORR6GZ.js} +2 -2
  46. package/dist/{chunk-LAZQBMAU.js → chunk-WM2RF2MI.js} +3 -3
  47. package/dist/{chunk-65ZHM5RH.js → chunk-XJUNAVU2.js} +9 -9
  48. package/dist/{chunk-TNCZ6444.js → chunk-Y2XASHVY.js} +2 -2
  49. package/dist/{cli-VYCQJZ5X.js → cli-MI4ZCAZ3.js} +9 -9
  50. package/dist/{cli-ZTCBSDW4.js → cli-ZN7ZVDEZ.js} +3 -3
  51. package/dist/cli.js +4 -4
  52. package/dist/{completion-E7RRG3ZT.js → completion-GYN7PX3T.js} +3 -3
  53. package/dist/{diagnostics-XXH4FLUG.js → diagnostics-WACXQ33W.js} +6 -6
  54. package/dist/{doctor-ZIOESU3N.js → doctor-VSQ72A6X.js} +13 -13
  55. package/dist/{entry-ZNFCTDVE.js → entry-VFEZC2XB.js} +10 -10
  56. package/dist/{exec-mcp-X6372BLE.js → exec-mcp-TOQEJFK3.js} +8 -8
  57. package/dist/{harness-F2XFDYXF.js → harness-XCEWFGCG.js} +5 -5
  58. package/dist/harness-launch-gate.js +4 -4
  59. package/dist/harness-worker.js +6 -6
  60. package/dist/hook-body.js +7 -6
  61. package/dist/{hooks-FYE2L5RW.js → hooks-32AFBC3Z.js} +3 -3
  62. package/dist/{host-X6BR6X4O.js → host-72OLHUX7.js} +20 -10
  63. package/dist/{host-GRY3VAHH.js → host-TE5PNDHJ.js} +7 -7
  64. package/dist/{host-run-GCA6H6SR.js → host-run-MXCH26ZD.js} +5 -5
  65. package/dist/http.js +5 -5
  66. package/dist/{import-mcp-2TTBPVLY.js → import-mcp-QWGZSIZR.js} +6 -6
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +18 -18
  69. package/dist/{init-627KFXTG.js → init-5M3XWOTJ.js} +2 -2
  70. package/dist/{install-GG7HHZK2.js → install-MQ7QSJQ7.js} +3 -3
  71. package/dist/{invoke-LW22Z6ET.js → invoke-SFSN4XT7.js} +8 -8
  72. package/dist/{list-MCP2FXUF.js → list-FB6RNYYB.js} +3 -3
  73. package/dist/{list-NGMSQ5SH.js → list-FGDUU5DL.js} +8 -8
  74. package/dist/{logout-6CSHUWWE.js → logout-KM5N5GOC.js} +7 -7
  75. package/dist/{logs-SPB6AANY.js → logs-TBUA4UWU.js} +4 -4
  76. package/dist/mailbox/index.js +4 -4
  77. package/dist/{mailbox-GDJ7BWQN.js → mailbox-5DWLH4W2.js} +3 -3
  78. package/dist/{mailbox-7BV54Q4R.js → mailbox-BMTZOSZ7.js} +4 -4
  79. package/dist/{mainline-JQTTYJMI.js → mainline-KAD2ERLP.js} +2 -2
  80. package/dist/{mcp-V23HC3LB.js → mcp-FJ2UQ4RH.js} +2 -2
  81. package/dist/{mcp-2DKVU3SW.js → mcp-ND6ZQWJE.js} +2 -2
  82. package/dist/{pause-FFAYRBWI.js → pause-7LILUVGL.js} +4 -4
  83. package/dist/{project-FY62G55N.js → project-LZKQUV2W.js} +4 -4
  84. package/dist/{reindex-Y27QJFDB.js → reindex-ZULHSQWY.js} +5 -5
  85. package/dist/{resume-UU4HZIUP.js → resume-26VFAAMH.js} +4 -4
  86. package/dist/{run-HALGEJNJ.js → run-X4663F4M.js} +4 -4
  87. package/dist/{run-OGA3P7FC.js → run-YEVGHGTN.js} +7 -7
  88. package/dist/{serve-NBKT5BKY.js → serve-S7MF42SS.js} +12 -12
  89. package/dist/{start-login-UIQYQBMC.js → start-login-GKFGTE2A.js} +7 -7
  90. package/dist/{status-NOOHW5WA.js → status-FYG6XYQ6.js} +7 -7
  91. package/dist/{status-VHODZPXB.js → status-RO55QPKV.js} +4 -4
  92. package/dist/{status-XQANBVXW.js → status-XG5GRWVU.js} +11 -11
  93. package/dist/stdio.js +7 -7
  94. package/dist/{sweep-64JDCGK6.js → sweep-35LGQTTO.js} +4 -4
  95. package/dist/{test-MKAXFJOL.js → test-KFDO6ROC.js} +7 -7
  96. package/dist/{tui-MWKAXE4K.js → tui-2MP7DRIX.js} +5 -5
  97. package/dist/{unbroadcast-KPUEFLZD.js → unbroadcast-5QNGAJR2.js} +4 -4
  98. package/dist/{validate-5GZ5YWNA.js → validate-AVM2VHMM.js} +4 -4
  99. package/dist/{worker-RQ575EJL.js → worker-3VS6RQEL.js} +8 -8
  100. package/docs/authoring.md +82 -0
  101. package/docs/browser-and-desktop.md +46 -0
  102. package/docs/commands.md +325 -0
  103. package/docs/compare.md +35 -0
  104. package/docs/compatibility.md +56 -0
  105. package/docs/embeddings.md +1 -1
  106. package/docs/getting-started.md +105 -0
  107. package/docs/git-workflow.md +60 -0
  108. package/docs/glossary.md +31 -0
  109. package/docs/hooks.md +264 -0
  110. package/docs/install.md +72 -0
  111. package/docs/known-issues.md +17 -0
  112. package/docs/library-skills.md +132 -0
  113. package/docs/mailbox.md +16 -5
  114. package/docs/project-configuration.md +51 -386
  115. package/docs/sessions.md +64 -0
  116. package/docs/skills.md +4 -45
  117. package/docs/terminal-harness.md +26 -21
  118. package/docs/terminal-workspace.md +4 -13
  119. package/docs/upgrading.md +23 -0
  120. package/gemini-extension.json +2 -2
  121. package/mcp.json +1 -1
  122. package/package.json +8 -7
  123. package/plugin.json +2 -2
  124. package/plugins/pmcp/.claude-plugin/plugin.json +2 -2
  125. package/plugins/pmcp/.mcp.json +1 -1
  126. package/plugins/pmcp/gemini-extension.json +2 -2
  127. package/plugins/pmcp/mcp.json +1 -1
  128. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  129. package/plugins/pmcp/plugin.json +2 -2
  130. package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +8 -8
  131. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +12 -11
  132. package/plugins/pmcp/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
  133. package/plugins/pmcp/skills/package-skill-catalog/SKILL.md +0 -4
  134. package/plugins/pmcp/skills/pmcp-browser/SKILL.md +27 -0
  135. package/plugins/pmcp/skills/pmcp-desktop/SKILL.md +25 -0
  136. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +19 -11
  137. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +20 -28
  138. package/plugins/pmcp/skills/skill-package-scaffold/SKILL.md +16 -15
  139. package/schema/catalog-v1.json +36 -7
  140. package/schema/library.json +40 -8
  141. package/schema/marketplace-manifest.json +19 -5
  142. package/schema/plugin-manifest.json +6 -2
  143. package/schema/skill-frontmatter.json +33 -7
  144. package/schema/skill-metadata-core.json +26 -5
  145. package/skills/agent-assets-migrate/SKILL.md +8 -8
  146. package/skills/headless-agents-ci-scaffold/SKILL.md +12 -11
  147. package/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
  148. package/skills/package-skill-catalog/SKILL.md +0 -4
  149. package/skills/pmcp-browser/SKILL.md +27 -0
  150. package/skills/pmcp-desktop/SKILL.md +25 -0
  151. package/skills/pmcp-project-init/SKILL.md +19 -11
  152. package/skills/pmcp-sessions-and-git/SKILL.md +20 -28
  153. package/skills/skill-package-scaffold/SKILL.md +16 -15
  154. package/CHANGELOG.md +0 -60
  155. package/dist/chunk-E7OOHLQR.js +0 -7
  156. package/docs/manual-library-skills.md +0 -74
@@ -12,13 +12,15 @@ metadata:
12
12
 
13
13
  # Starting a repository the pmcp way
14
14
 
15
- pmcp has no `init` command. You write the sources by hand; `pmcp project` writes every
16
- tool's native files from them, and `pmcp doctor` asks each installed tool what it loads.
17
- Never write the generated files yourself: pmcp refuses to overwrite a file it did not write.
15
+ `pmcp init [--preset solo|multi-session]` writes a starting `pmcp.toml` from what it detects
16
+ in the checkout; it refuses to replace an existing one without `--force`. You edit it and write
17
+ the other sources by hand; `pmcp project` writes every tool's native files from them, and
18
+ `pmcp doctor` asks each installed tool what it loads. Never write the generated files
19
+ yourself: pmcp refuses to overwrite a file it did not write.
18
20
 
19
- Install the pmcp package as a dev dependency under the scoped name its documentation gives.
20
- Never run the bare unscoped name through npx: that name is not the package, and whoever
21
- publishes it later would run in your repository.
21
+ Install `@modootoday/pmcp` as a dev dependency. Never run the bare unscoped name `pmcp`
22
+ through npx: that name is not the package, and whoever publishes it later would run in your
23
+ repository.
22
24
 
23
25
  ## 1. Instructions: one file, two links
24
26
 
@@ -46,13 +48,17 @@ an agent whose `tools` names another tool's tools. Those fields go in `pmcp.toml
46
48
 
47
49
  ## 3. The base pmcp.toml
48
50
 
51
+ Start with `pmcp init`: it writes `[targets]`, the stage-all and heredoc guards and the git
52
+ settings it detects (`--preset multi-session` adds the session registry, pause and broadcast).
53
+ Then add what it does not invent, such as the MCP servers:
54
+
49
55
  ```toml
50
56
  [targets]
51
57
  tools = ["claude", "codex", "gemini", "grok", "antigravity"]
52
58
 
53
59
  [mcp.skills]
54
60
  command = "node"
55
- args = ["${PROJECT_ROOT}/node_modules/<pmcp package>/dist/cli.js", "serve"]
61
+ args = ["${PROJECT_ROOT}/node_modules/@modootoday/pmcp/dist/cli.js", "serve"]
56
62
 
57
63
  [skills.release]
58
64
  invocation = "user"
@@ -82,7 +88,7 @@ Every layer is a table; a missing table is off. Look before adding:
82
88
 
83
89
  ```sh
84
90
  git rev-parse --git-common-dir # a git checkout? then the git layer applies
85
- git worktree list # more than one line: desks already exist
91
+ git worktree list # more than one line: linked worktrees already exist
86
92
  git remote -v # the remote deliveries push to
87
93
  ```
88
94
 
@@ -91,14 +97,16 @@ git remote -v # the remote deliveries push to
91
97
  | Agents run shell commands (always for Claude or Codex) | `[hooks]` with `targets`, and the `[hooks.guards.shell.*]` and `[hooks.guards.git.*]` you want | Refuses heredocs, in-place `sed -i`, `git add -A`, `push --no-verify`, credential exfiltration. Each declared table is one guard. |
92
98
  | A validator script per skill or package | `[hooks.checks.after_edit]` with `validator_glob` and a `command` containing `{validator}` | Reports a failing validator as context right after the edit. |
93
99
  | Committed generated files | `[hooks.checks.on_stop]` | Reports projection drift at the end of a turn that edited. |
94
- | More than one agent at a time | `[sessions.registry]`, `[sessions.pause]`, `[sessions.broadcast]` | The operator can see, pause and message every session. |
100
+ | More than one agent at a time | `[sessions.registry]`, `[sessions.pause]`, `[sessions.broadcast]` | The user can see, pause and message every session. |
95
101
  | A lockfile or other file two sessions must not change at once | `[sessions.leases.<name>]` with `path` and the `blocks` command prefixes | A delivery touching that file holds the lease; the listed commands wait. |
96
- | A git checkout | nothing: `[git] enabled` is `"auto"`, and `[git.shared_checkout]` warns once the hooks exist | A session in the main checkout is warned while desks exist. |
97
- | Parallel agents in worktrees | `[git.worktrees]`, `[git.worktrees.sync]` | `pmcp git worktree create <alias>`; desks follow the mainline when that loses nothing. |
102
+ | A git checkout | nothing: `[git] enabled` is `"auto"`, and `[git.shared_checkout]` warns once the hooks exist | A session in the main checkout is warned while worktrees exist. |
103
+ | Parallel agents in worktrees | `[git.worktrees]`, `[git.worktrees.sync]` | `pmcp git worktree create <alias>`; worktrees follow the mainline when that loses nothing. |
98
104
  | A protected mainline with a test gate | `[git.mainline]` with `branch`, `[git.mainline.gate]` with `command`, `[git.mainline.deliver]`, `[git.mainline.sync]` | `pmcp git deliver` replays, gates and pushes one delivery at a time; direct `git push` is refused. |
99
105
  | Submodules | `[git.submodules]` | Sync follows clean submodule pins. |
100
106
  | You will debug hooks | `[logging]` with `level` | `pmcp logs` reads the JSONL; redaction is on by default. |
101
107
  | A remote MCP server both Claude and Codex use | `auth = "pmcp"` on that `[mcp.<alias>]`, then `pmcp mcp login <alias>` | One login shared by both tools; tokens never enter the project. |
108
+ | Agents on Gemini CLI, Grok, Antigravity or opencode too | the runtime ids in `[hooks] targets` | The same guards run there; `pmcp doctor` shows what each runtime supports. |
109
+ | Long-running sessions pmcp-pty should host (Linux) | `[host]` with `[[host.sessions]]` and any `[[host.answers]]` | Nothing runs until the user approves it with `pmcp harness host approve` in their own terminal. |
102
110
  | A team plugin marketplace | `[marketplaces.<name>]` with `source` and `plugins` | Claude and Codex both enable the same plugins. |
103
111
  | Claude Code with several sessions | `[ui.claude]` (needs `[sessions.registry]`) | Session panes and a hold before editing another session's file. |
104
112
  | Claude should ask before reading secrets or running risky git | `[permissions.claude]` with `allow`, `ask`, `deny` lists of native rules such as `Read(.env)` or `Bash(git push:*)` | pmcp owns only the entries it adds to `.claude/settings.json`; rules already there stay. Claude only. |
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: pmcp-sessions-and-git
3
- description: Work alongside other agent sessions in a pmcp repository - read who is working and what is held with pmcp sessions status, pause, resume and broadcast as the operator, wait out a lease, work in a desk (a linked worktree) instead of the shared main checkout, deliver commits through pmcp git deliver rather than git push, sync the main checkout and desks, and read pmcp logs to explain a hook refusal. Use when a pmcp hook refused or warned, when several agents share one repository, when asked to land or deliver work, or when a session reports a pause, lease or leftover edits. Not for writing pmcp.toml (set the project up first) or for repositories without pmcp hooks.
3
+ description: Work alongside other agent sessions in a pmcp repository - read who is working and what is held with pmcp sessions status, leave pause and broadcast to the user, wait out a lease, work in a linked worktree instead of the shared main checkout, deliver commits through pmcp git deliver rather than git push, sync the main checkout and linked worktrees, and read pmcp logs to explain a hook refusal. Use when a pmcp hook refused or warned, when several agents share one repository, when asked to deliver work, or when a session reports a pause, lease or leftover edits. Not for writing pmcp.toml (set the project up first) or for repositories without pmcp hooks.
4
4
  metadata:
5
5
  tier: open
6
6
  level: L2
7
7
  domain: agent-workflow
8
8
  install: optional
9
- keywords: "pmcp, sessions, pause, broadcast, lease, worktree, desk, deliver, mainline, git sync, pmcp logs, hook refusal"
9
+ keywords: "pmcp, sessions, pause, broadcast, lease, worktree, deliver, mainline, git sync, pmcp logs, hook refusal"
10
10
  requires-bin: "pmcp"
11
11
  ---
12
12
 
@@ -23,48 +23,40 @@ pmcp sessions status
23
23
  ```
24
24
 
25
25
  It prints each live session (its id, runtime, checkout and current tool), the pause, current
26
- broadcasts, held leases, and files edited but not landed in a shared checkout. Read it
27
- before landing anything, and whenever a hook mentions another session.
26
+ broadcasts, held leases, and files edited but not delivered in a shared checkout. Read it
27
+ before delivering anything, and whenever a hook mentions another session.
28
28
 
29
- ## Pause and broadcast (operator)
29
+ ## Pause and broadcast are the user's
30
30
 
31
- ```sh
32
- pmcp sessions pause "release freeze" --by operator
33
- pmcp sessions resume
34
- pmcp sessions broadcast "main moved; sync your desk before delivering"
35
- pmcp sessions unbroadcast
36
- pmcp sessions sweep # drop records whose process is gone
37
- ```
38
-
39
- While paused, every other session's edits and mutating commands are refused; reading and
40
- planning continue. A broadcast reaches each session once, as context. An agent does not
41
- pause, resume or broadcast on its own initiative; it reports the need to the operator.
31
+ Do not pause, resume or broadcast on your own initiative; report the need to the user. While
32
+ a pause is in effect, your edits and mutating commands are refused; keep to reading and
33
+ planning until it lifts.
42
34
 
43
35
  ## Leases
44
36
 
45
37
  A lease protects a file two sessions must not change at once, such as a lockfile. While a
46
- delivery that touches it is landing, the commands listed for that lease are refused with
47
- `... is landing ... retry when it has landed`. Wait and retry; do not run the command another
48
- way.
38
+ delivery that touches it is in progress, the commands listed for that lease are refused with
39
+ `... is being delivered ... retry once the delivery finishes`. Wait and retry; do not run
40
+ the command another way.
49
41
 
50
- ## Desks, not the shared checkout
42
+ ## Linked worktrees, not the shared checkout
51
43
 
52
44
  When the repository has worktrees, the main checkout is shared: an edit left there blocks
53
- syncing the mainline for every session, and the hook says so. Work in a desk:
45
+ syncing the mainline for every session, and the hook says so. Work in a linked worktree:
54
46
 
55
47
  ```sh
56
- pmcp git worktree create <alias> # prints the desk path; work there
48
+ pmcp git worktree create <alias> # prints the worktree path; work there
57
49
  pmcp git worktree list # alias, branch, behind/ahead, path
58
- pmcp git worktree sync # move this desk onto the mainline when nothing is lost
50
+ pmcp git worktree sync # move this worktree onto the mainline when nothing is lost
59
51
  ```
60
52
 
61
- If you already edited the main checkout, land those files within the task or move them to a
62
- desk. `pmcp sessions status` lists them under the shared checkout.
53
+ If you already edited the main checkout, deliver those files within the task or move them
54
+ to a linked worktree. `pmcp sessions status` lists them under the shared checkout.
63
55
 
64
56
  ## Deliver, do not push
65
57
 
66
58
  With `[git.mainline.deliver]`, a direct `git push` from any checkout of the repository is
67
- refused. Commit in the desk, then:
59
+ refused. Commit in the linked worktree, then:
68
60
 
69
61
  ```sh
70
62
  pmcp git deliver # every commit the upstream lacks
@@ -78,7 +70,7 @@ stderr; 2 the fetch failed. Fix what the gate reports; never bypass it with
78
70
  `--no-verify` or a gate-bypass variable, which the guards refuse.
79
71
 
80
72
  `pmcp git sync` moves the main checkout to the mainline afterwards; it refuses (exit 2)
81
- while unlanded edits sit there.
73
+ while undelivered edits sit there.
82
74
 
83
75
  ## Explain a refusal with pmcp logs
84
76
 
@@ -101,4 +93,4 @@ duration. Secret values, prompt text and environment values are redacted.
101
93
 
102
94
  What `pmcp sessions status` showed, which refusal or warning occurred and what it asked
103
95
  for, the commands run instead (delivery or sync and their exit codes), and anything left for
104
- the operator (a pause to lift, a lease still held, leftovers in the shared checkout).
96
+ the user (a pause to lift, a lease still held, leftovers in the shared checkout).
@@ -13,7 +13,7 @@ metadata:
13
13
  # Scaffolding one skill folder
14
14
 
15
15
  This is the shape, not the content. What the body should say, and how to word a description
16
- that triggers, is skill authoring (domain-skill-authoring covers it). Here the job is a
16
+ that triggers, is skill authoring and out of scope here. Here the job is a
17
17
  folder that every loader accepts and that carries its own test cases.
18
18
 
19
19
  ## Layout
@@ -35,19 +35,20 @@ for code that is not there.
35
35
 
36
36
  ## Frontmatter limits
37
37
 
38
- These are the checks `pmcp validate` runs (pmcp 0.8):
38
+ These are the Agent Skills checks `pmcp validate` always runs:
39
39
 
40
- | Field | Rule |
41
- | --- | --- |
42
- | `name` | required; at most 64 characters; lowercase letters, digits and single hyphens, not starting or ending with one; equal to the directory name |
43
- | `description` | required, non-blank; at most 1024 characters |
44
- | `compatibility` | optional string; at most 500 characters |
45
- | `license` | optional string |
46
- | `allowed-tools` | optional; one space-separated string, not a list |
47
- | `metadata` | optional map |
40
+ | Field | Rule |
41
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
42
+ | `name` | required; at most 64 characters; lowercase letters, digits and single hyphens, not starting or ending with one; equal to the directory name |
43
+ | `description` | required, non-blank; at most 1024 characters |
44
+ | `compatibility` | optional string; at most 500 characters |
45
+ | `license` | optional string |
46
+ | `allowed-tools` | optional; one space-separated string, not a list |
47
+ | `metadata` | optional map |
48
48
 
49
49
  A marketplace may add its own rules on top (a metadata schema, tiers, ASCII-only text).
50
- Check those separately; `pmcp validate` does not know them.
50
+ `pmcp validate` checks them only when `pmcp.toml` names a profile in `[catalog.validation]`
51
+ (`catalog-v1` or `library`); without one, a skill that breaks them still passes.
51
52
 
52
53
  ```markdown
53
54
  ---
@@ -58,10 +59,10 @@ description: Draft a reply to a customer disputing an invoice ... Use when ... N
58
59
 
59
60
  ## Evals: three cases, each self-contained
60
61
 
61
- | Case | Tests |
62
- | --- | --- |
63
- | normal | the common request, with every input present |
64
- | exception | the input that should change the answer: a rule's exception, an edge value, a refusal |
62
+ | Case | Tests |
63
+ | ------------ | --------------------------------------------------------------------------------------------- |
64
+ | normal | the common request, with every input present |
65
+ | exception | the input that should change the answer: a rule's exception, an edge value, a refusal |
65
66
  | missing-info | a request lacking something essential; the skill must ask or state the assumption, not invent |
66
67
 
67
68
  Each `prompt.md` must carry everything the case needs. The grader's sandbox starts empty, so
@@ -51,7 +51,13 @@
51
51
  },
52
52
  "level": {
53
53
  "type": "string",
54
- "enum": ["L1", "L2", "L3", "L4", "L5"]
54
+ "enum": [
55
+ "L1",
56
+ "L2",
57
+ "L3",
58
+ "L4",
59
+ "L5"
60
+ ]
55
61
  },
56
62
  "domain": {
57
63
  "type": "string",
@@ -59,7 +65,11 @@
59
65
  },
60
66
  "install": {
61
67
  "type": "string",
62
- "enum": ["default", "optional", "catalog-only"]
68
+ "enum": [
69
+ "default",
70
+ "optional",
71
+ "catalog-only"
72
+ ]
63
73
  },
64
74
  "requires": {
65
75
  "type": "object",
@@ -102,7 +112,11 @@
102
112
  },
103
113
  "approval": {
104
114
  "type": "string",
105
- "enum": ["none", "scripts", "hooks"]
115
+ "enum": [
116
+ "none",
117
+ "scripts",
118
+ "hooks"
119
+ ]
106
120
  },
107
121
  "output-license": {
108
122
  "type": "string"
@@ -131,7 +145,12 @@
131
145
  },
132
146
  "tier": {
133
147
  "type": "string",
134
- "enum": ["open", "free", "paid", "internal"],
148
+ "enum": [
149
+ "open",
150
+ "free",
151
+ "paid",
152
+ "internal"
153
+ ],
135
154
  "deprecated": true,
136
155
  "description": "Inherited from marketplace metadata.tier; repeated skill tiers warn."
137
156
  },
@@ -149,10 +168,20 @@
149
168
  }
150
169
  }
151
170
  },
152
- "required": ["level", "domain", "install"],
171
+ "required": [
172
+ "level",
173
+ "domain",
174
+ "install"
175
+ ],
153
176
  "additionalProperties": false
154
177
  }
155
178
  },
156
- "required": ["name", "description", "metadata"],
157
- "additionalProperties": {}
179
+ "required": [
180
+ "name",
181
+ "description",
182
+ "metadata"
183
+ ],
184
+ "additionalProperties": {},
185
+ "title": "Catalog skill frontmatter",
186
+ "description": "The SKILL.md frontmatter of a marketplace catalog skill: [catalog.validation] profile = \"catalog-v1\"."
158
187
  }
@@ -51,7 +51,13 @@
51
51
  },
52
52
  "level": {
53
53
  "type": "string",
54
- "enum": ["L1", "L2", "L3", "L4", "L5"]
54
+ "enum": [
55
+ "L1",
56
+ "L2",
57
+ "L3",
58
+ "L4",
59
+ "L5"
60
+ ]
55
61
  },
56
62
  "domain": {
57
63
  "type": "string",
@@ -59,7 +65,11 @@
59
65
  },
60
66
  "install": {
61
67
  "type": "string",
62
- "enum": ["default", "optional", "catalog-only"]
68
+ "enum": [
69
+ "default",
70
+ "optional",
71
+ "catalog-only"
72
+ ]
63
73
  },
64
74
  "requires": {
65
75
  "type": "object",
@@ -102,7 +112,11 @@
102
112
  },
103
113
  "approval": {
104
114
  "type": "string",
105
- "enum": ["none", "scripts", "hooks"]
115
+ "enum": [
116
+ "none",
117
+ "scripts",
118
+ "hooks"
119
+ ]
106
120
  },
107
121
  "output-license": {
108
122
  "type": "string"
@@ -131,7 +145,12 @@
131
145
  },
132
146
  "tier": {
133
147
  "type": "string",
134
- "enum": ["open", "free", "paid", "internal"],
148
+ "enum": [
149
+ "open",
150
+ "free",
151
+ "paid",
152
+ "internal"
153
+ ],
135
154
  "deprecated": true,
136
155
  "description": "Inherited from marketplace metadata.tier; repeated skill tiers warn."
137
156
  },
@@ -141,7 +160,12 @@
141
160
  },
142
161
  "ecosystem": {
143
162
  "type": "string",
144
- "enum": ["npm", "pypi", "crates", "go"]
163
+ "enum": [
164
+ "npm",
165
+ "pypi",
166
+ "crates",
167
+ "go"
168
+ ]
145
169
  },
146
170
  "target-identity": {
147
171
  "type": "string",
@@ -153,12 +177,20 @@
153
177
  },
154
178
  "loading": {
155
179
  "type": "string",
156
- "enum": ["manual", "automatic"]
180
+ "enum": [
181
+ "manual",
182
+ "automatic"
183
+ ]
157
184
  }
158
185
  },
159
186
  "additionalProperties": {}
160
187
  }
161
188
  },
162
- "required": ["name", "description"],
163
- "additionalProperties": {}
189
+ "required": [
190
+ "name",
191
+ "description"
192
+ ],
193
+ "additionalProperties": {},
194
+ "title": "Library skill frontmatter",
195
+ "description": "The SKILL.md frontmatter of a library skill: [catalog.validation] profile = \"library\"."
164
196
  }
@@ -54,7 +54,12 @@
54
54
  "properties": {
55
55
  "tier": {
56
56
  "type": "string",
57
- "enum": ["open", "free", "paid", "internal"]
57
+ "enum": [
58
+ "open",
59
+ "free",
60
+ "paid",
61
+ "internal"
62
+ ]
58
63
  },
59
64
  "description": {
60
65
  "type": "string",
@@ -120,11 +125,20 @@
120
125
  "additionalProperties": {}
121
126
  }
122
127
  },
123
- "required": ["name"],
124
- "additionalProperties": {}
128
+ "required": [
129
+ "name"
130
+ ],
131
+ "additionalProperties": {},
132
+ "title": "Plugin manifest",
133
+ "description": "A native plugin manifest as pmcp reads it from a marketplace."
125
134
  }
126
135
  }
127
136
  },
128
- "required": ["name", "plugins"],
129
- "additionalProperties": {}
137
+ "required": [
138
+ "name",
139
+ "plugins"
140
+ ],
141
+ "additionalProperties": {},
142
+ "title": "Marketplace manifest",
143
+ "description": "A native plugin marketplace manifest and the plugins it lists."
130
144
  }
@@ -50,6 +50,10 @@
50
50
  "additionalProperties": {}
51
51
  }
52
52
  },
53
- "required": ["name"],
54
- "additionalProperties": {}
53
+ "required": [
54
+ "name"
55
+ ],
56
+ "additionalProperties": {},
57
+ "title": "Plugin manifest",
58
+ "description": "A native plugin manifest as pmcp reads it from a marketplace."
55
59
  }
@@ -51,7 +51,13 @@
51
51
  },
52
52
  "level": {
53
53
  "type": "string",
54
- "enum": ["L1", "L2", "L3", "L4", "L5"]
54
+ "enum": [
55
+ "L1",
56
+ "L2",
57
+ "L3",
58
+ "L4",
59
+ "L5"
60
+ ]
55
61
  },
56
62
  "domain": {
57
63
  "type": "string",
@@ -59,7 +65,11 @@
59
65
  },
60
66
  "install": {
61
67
  "type": "string",
62
- "enum": ["default", "optional", "catalog-only"]
68
+ "enum": [
69
+ "default",
70
+ "optional",
71
+ "catalog-only"
72
+ ]
63
73
  },
64
74
  "requires": {
65
75
  "type": "object",
@@ -102,7 +112,11 @@
102
112
  },
103
113
  "approval": {
104
114
  "type": "string",
105
- "enum": ["none", "scripts", "hooks"]
115
+ "enum": [
116
+ "none",
117
+ "scripts",
118
+ "hooks"
119
+ ]
106
120
  },
107
121
  "output-license": {
108
122
  "type": "string"
@@ -131,14 +145,26 @@
131
145
  },
132
146
  "tier": {
133
147
  "type": "string",
134
- "enum": ["open", "free", "paid", "internal"],
148
+ "enum": [
149
+ "open",
150
+ "free",
151
+ "paid",
152
+ "internal"
153
+ ],
135
154
  "deprecated": true,
136
155
  "description": "Inherited from marketplace metadata.tier; repeated skill tiers warn."
137
156
  }
138
157
  },
139
- "additionalProperties": {}
158
+ "additionalProperties": {},
159
+ "title": "Skill metadata",
160
+ "description": "The metadata map of a SKILL.md frontmatter: catalog fields pmcp reads (level, domain, install, keywords and the rest)."
140
161
  }
141
162
  },
142
- "required": ["name", "description"],
143
- "additionalProperties": {}
163
+ "required": [
164
+ "name",
165
+ "description"
166
+ ],
167
+ "additionalProperties": {},
168
+ "title": "SKILL.md frontmatter",
169
+ "description": "The Agent Skills frontmatter pmcp validate checks: name, description and the optional fields."
144
170
  }
@@ -21,7 +21,13 @@
21
21
  },
22
22
  "level": {
23
23
  "type": "string",
24
- "enum": ["L1", "L2", "L3", "L4", "L5"]
24
+ "enum": [
25
+ "L1",
26
+ "L2",
27
+ "L3",
28
+ "L4",
29
+ "L5"
30
+ ]
25
31
  },
26
32
  "domain": {
27
33
  "type": "string",
@@ -29,7 +35,11 @@
29
35
  },
30
36
  "install": {
31
37
  "type": "string",
32
- "enum": ["default", "optional", "catalog-only"]
38
+ "enum": [
39
+ "default",
40
+ "optional",
41
+ "catalog-only"
42
+ ]
33
43
  },
34
44
  "requires": {
35
45
  "type": "object",
@@ -72,7 +82,11 @@
72
82
  },
73
83
  "approval": {
74
84
  "type": "string",
75
- "enum": ["none", "scripts", "hooks"]
85
+ "enum": [
86
+ "none",
87
+ "scripts",
88
+ "hooks"
89
+ ]
76
90
  },
77
91
  "output-license": {
78
92
  "type": "string"
@@ -101,10 +115,17 @@
101
115
  },
102
116
  "tier": {
103
117
  "type": "string",
104
- "enum": ["open", "free", "paid", "internal"],
118
+ "enum": [
119
+ "open",
120
+ "free",
121
+ "paid",
122
+ "internal"
123
+ ],
105
124
  "deprecated": true,
106
125
  "description": "Inherited from marketplace metadata.tier; repeated skill tiers warn."
107
126
  }
108
127
  },
109
- "additionalProperties": {}
128
+ "additionalProperties": {},
129
+ "title": "Skill metadata",
130
+ "description": "The metadata map of a SKILL.md frontmatter: catalog fields pmcp reads (level, domain, install, keywords and the rest)."
110
131
  }
@@ -21,14 +21,14 @@ tool files.
21
21
 
22
22
  List every source with its bytes and line count, and note which are links:
23
23
 
24
- | Found | Goes to |
25
- | --- | --- |
26
- | `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, `.windsurfrules`, `.github/copilot-instructions.md` | merged into `AGENTS.md`; each then becomes a link to it |
27
- | `.claude/skills/<n>/`, `.agent/skills/<n>/` | `.agents/skills/<n>/` (whole folder) |
28
- | `.claude/commands/<n>.md`, `.agent/workflows/<n>.md` | `.agents/skills/<n>/SKILL.md` plus `[skills.<n>] invocation = "user"` |
29
- | `.claude/agents/<n>.md`, `.gemini/agents/<n>.md`, `.agent/agents/<n>.md` | `.agents/agents/<n>/agent.md` |
30
- | `.claude/rules/*.md` with `paths:` | `.agents/rules/<n>.md` with `trigger: glob` and `globs:` |
31
- | MCP entries in `.mcp.json`, `.gemini/settings.json`, `.codex/config.toml` | `[mcp.<alias>]` in `pmcp.toml` |
24
+ | Found | Goes to |
25
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
26
+ | `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, `.windsurfrules`, `.github/copilot-instructions.md` | merged into `AGENTS.md`; each then becomes a link to it |
27
+ | `.claude/skills/<n>/`, `.agent/skills/<n>/` | `.agents/skills/<n>/` (whole folder) |
28
+ | `.claude/commands/<n>.md`, `.agent/workflows/<n>.md` | `.agents/skills/<n>/SKILL.md` plus `[skills.<n>] invocation = "user"` |
29
+ | `.claude/agents/<n>.md`, `.gemini/agents/<n>.md`, `.agent/agents/<n>.md` | `.agents/agents/<n>/agent.md` |
30
+ | `.claude/rules/*.md` with `paths:` | `.agents/rules/<n>.md` with `trigger: glob` and `globs:` |
31
+ | MCP entries in `.mcp.json`, `.gemini/settings.json`, `.codex/config.toml` | `[mcp.<alias>]` in `pmcp.toml` |
32
32
 
33
33
  pmcp has no Copilot or Cursor target. Keep those filenames as links to `AGENTS.md` so they
34
34
  cannot drift.