Skip to content

Plugin slash commands: prompt commands on issues and pull requests #3551

Open

Description

@integry

Goal

Let a plugin add slash commands such as /deploy, so a plugin's behaviour can be started from an issue or pull request comment the same way /review or /fix is. This issue covers commands that queue an ordinary task without write access; write authorization and handler commands follow in the next issue.

Manifest

contributes.commands: [{ name, description, where: ['pull_request' | 'issue'], kind, ... }]

  • kind: 'prompt': the command queues an ordinary one-shot follow-up task (on a pull request) or implementation task (on an issue). Fields: prompt (instruction text; the rest of the comment line after the command is appended as the user's argument, clearly delimited and treated as untrusted input), skills and servers (names of this plugin's own contributions to add to that run; remote or package servers), needsWrite (boolean; commands with needsWrite: true are refused until the next issue lands).

Rules

  • Command names are lowercase, unique across enabled plugins, and can never shadow a built-in command. The built-in list is defined in one shared place; plugins:check and enabling a plugin both refuse a conflict with a clear message.
  • Who may use a plugin command follows the existing trigger access rules for commands on that repository. Commands from a plugin apply only inside the plugin's repository limit, and only while the plugin is enabled.
  • The reply and task follow existing command behaviour: acknowledgement comment, task visible in the UI, one-shot.
  • Unknown commands keep today's behaviour. A command of a disabled or uninstalled plugin is treated as unknown.
  • Help: wherever built-in commands are listed (docs, any in-product help or command hints), enabled plugin commands are listed with their description and plugin name. The Plugins page lists a plugin's commands under "What it added".

Acceptance criteria

  • A prompt command from the example plugin on a pull request queues one follow-up task whose instruction contains the manifest prompt and the delimited user argument, with the plugin's named skill and read server attached; on an issue it starts an implementation task.
  • Name conflicts with built-ins and between plugins are refused by plugins:check and at enable time.
  • Commands are ignored outside the plugin's repository limit and when the plugin is off; trigger access rules are honoured.
  • The command's argument cannot change which skills or servers are attached and is delimited as untrusted text in the prompt (test with an argument that tries to add instructions).
  • Existing built-in commands behave exactly as before (regression tests on the current parser).
  • Docs: docs/docs/features/pr-commands.md (plugin commands section) and docs/docs/features/plugins.md.

Implementation

  1. Shared: command contribution schema and the single built-in command list (move the existing command names there and use it from the current parser).
  2. Command resolution where PR and issue comments are classified today (src/jobs/prCommentLabelGate.ts, src/jobs/reviewFollowupRequests.ts, the PR comment job and the issue comment intake in packages/core/src/webhook): after built-ins, look up enabled plugin commands for the repository.
  3. prompt commands build the follow-up/implementation job with extension additions resolved through the extension library's explicit-additions path.
  4. Plugins page: command list under "What it added".
  5. Tests in test/ and packages/core/test with the example plugin.

Notes

Depends on the contributions issue and the Plugins page. Ordinary task runs are one-shot.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 15, 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: 3551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3551-20261115-2203-claude-opus-5-5-syc

    🔍 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