Skip to content

Plugin authoring guide, scaffold command and compatibility rules for official plugins #3561

Open

Description

@integry

Goal

Make adding the next official plugin routine, and write down the rules that keep the plugin interface stable.

What to build

  1. Scaffold: npm run plugins:new -- <id> creates packages/plugins/<id>/ with a manifest, README template (setup, permissions, smoke-test checklist, documentation links), an example handler and test using the plugin test kit, and registers it in the registry index.
  2. Authoring guide (docs/docs/plugins/authoring.md): the manifest reference (generated from the zod schema so it cannot drift, with a CI check), remote and package MCP server contributions (pinning, integrity value, secret variables and the acknowledgement), the handler interface, events and payloads, webhook verification schemes, commands, settings schema with optionsFrom, connections, permissions, delivery guarantees and limits, security rules (untrusted external text, no secrets in handlers, no core imports, narrowest scopes), and a worked example.
  3. Compatibility rules, documented and enforced where possible:
    • Additive manifest changes keep manifestVersion; breaking changes add a new version and keep reading the old one for at least one minor release.
    • Event payloads are additive-only within a domain; a contract test snapshots each event type's payload keys and fails on removal or type change.
    • ctx operations are additive-only; a contract test snapshots the SDK surface.
  4. CLI: propr plugin list and propr plugin show <id> (read-only) using the REST API.
  5. Catalog page in the docs listing all official plugins with category and a one-line description, generated from the manifests.

Out of scope

Third-party plugins (installing from outside the repository, out-of-process or container runtime, signing, a public catalog). Add a short "Not yet supported" section stating this and that the handler interface was designed so an out-of-process runtime can be added without changing manifests.

Acceptance criteria

  • The scaffold produces a plugin that passes plugins:check, lint and its generated test without edits.
  • The generated manifest reference and plugin catalog are checked in CI for drift.
  • Contract tests for event payloads and the SDK surface exist and fail on a breaking change (demonstrated by a test fixture).
  • CLI commands work against the API and are covered by CLI tests.
  • Docs sidebar has a Plugins section: overview, one page per official plugin, authoring guide.

Implementation

  1. scripts/new-plugin.mjs, scripts/gen-plugin-docs.mjs (+ check mode in CI).
  2. Contract snapshot tests in packages/shared/test.
  3. CLI commands in packages/cli/src/commands/pluginCommands.ts with tests.
  4. Docs and sidebar.

Notes

Last issue of the plan; depends on all earlier ones.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 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:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3561/claude-opus-5-5-plugin-authoring-guide-sc-20261117-0455-agt
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3561-20261117-0455-claude-opus-5-5-agt

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions