Repository navigation
Description
Goal
Define what a plugin is as data, and where official plugins live. This issue adds no database tables, no API and no runtime behaviour: only the manifest schema, the registry package, the check script and one example plugin. Later issues add installation state, contributions, the page, handlers and commands; the schema already reserves their sections so later issues only add behaviour.
Manifest
Each official plugin is a folder packages/plugins/<id>/ containing manifest.json (pure data, so the UI and API can show a plugin without loading its code), an optional README.md, optional skill bundle sources, and later optional handler code. The schema lives in @propr/shared (zod) with these fields:
manifestVersion(currently 1),id(lowercase slug, unique),name,description,version(semver),category(messaging,issue-tracking,observability,deployment,context,other),homepage,icon(file in the plugin folder).permissions: list from a closed set defined in shared code (for exampleevents.read,tasks.create,issues.create,pull_requests.read,pull_requests.comment). Declarative-only plugins usually need none.connections: named credentials the plugin needs. Types:oauth(the extension OAuth sign-in, with the same three client registration methods),token(administrator pastes a secret),signing_secret(shared secret for inbound webhooks). Each has a label and help text with a link to where the credential is obtained.settings: a JSON-schema subset (string, number, boolean, enum, string list, repository map) with labels, help, defaults andrequired.outboundHosts: hostnames the plugin's handlers may call (used by later issues; validated now).contributes:mcpServers: server definitions in the extension library's item shapes. Two kinds are accepted:- remote:
httpsendpoint, tools, capability, authentication referencing one of the plugin's connections. - package (local server run in the task container):
ecosystem(npm; the same closed list as the extension library),package, an exactversion, theintegrityvalue recorded in the manifest, optionalbin,args,env(plain values),secretEnv(variable name mapped to one of the plugin'stokenconnections), tools and capability. Version ranges, tags, paths, images and free-form commands are refused, exactly as the extension library refuses them.
- remote:
skills: skill bundle sources inside the plugin folder.automationTemplates: automation templates in the existing template format.commands,subscriptions,webhooks: accepted and validated by the schema now, ignored at runtime until their issues land.
Registry
packages/plugins is a workspace package exporting the list of official plugins (manifest + resolved asset paths). A check script npm run plugins:check validates every manifest against the schema, checks unique ids and command names, that referenced connections, skills and icons exist, that every package server has an exact version and an integrity value, and that each plugin has a README; it runs in CI next to the automation template check. An optional --online mode (not run in CI) compares each package server's integrity value with the registry. Include one tiny example plugin (example-pack, hidden from the catalog unless a development flag is set) with one remote server, one package server pointing at the existing test fixture package, one skill and one automation template; later issues use it in tests.
Out of scope
Installation state, API, UI, contributions being applied to runs, handlers, webhooks, commands.
Acceptance criteria
- Schema tests: valid manifest; each invalid case (bad id, unknown permission, contribution referencing a missing connection, duplicate names, host not a hostname, package server with a range, a tag, a missing integrity value, a path or a command,
secretEnvreferencing a connection that is nottoken). npm run plugins:checkpasses for the registry and fails with a clear message for each broken fixture manifest; it is wired into CI.- The registry package builds as a workspace and exports the example plugin only when the development flag is set.
- New doc page
docs/docs/features/plugins.mdwith the concept and the manifest overview (later issues extend it).
Implementation
- Shared:
packages/shared/src/plugins.tswith the manifest schema, permission list, settings-schema subset and public projections; reuse the extension library's remote and package server schemas (packages/shared/src/extensionLibrary.ts,packages/shared/src/extensionPackages.ts) rather than redefining them. - New workspace package
packages/plugins(registry index,example-pack), added to the root workspaces and build. scripts/check-plugins.mjs+plugins:checknpm script + CI step next toautomation-templates:check; fixtures for broken manifests under the script's test folder.- Tests in
packages/shared/testand a script test.
Notes
Requires the extensions library (library items, OAuth sign-in, package servers) on the default branch. Official plugins are trusted code shipped with ProPR; nothing is downloaded at install time except a package server's pinned npm package, which goes through the existing package cache. Keep this pull request small: do not add tables, routes or UI. Keep every file within the repository's max-lines lint rule.
Activity
propr-dev commentedon Nov 14, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox3542-epic-plugin-system-xu8issue-3542-20261114-0323-claude-opus-5-5-zox🔍 Track Task Execution
I've implemented #3542: the plugin manifest schema in `@propr/shared`…
I've implemented #3542: the plugin manifest schema in `@propr/shared`…