Repository navigation
Open
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Description
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),skillsandservers(names of this plugin's own contributions to add to that run; remote or package servers),needsWrite(boolean; commands withneedsWrite: trueare 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:checkand 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
promptcommand 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:checkand 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) anddocs/docs/features/plugins.md.
Implementation
- Shared: command contribution schema and the single built-in command list (move the existing command names there and use it from the current parser).
- 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 inpackages/core/src/webhook): after built-ins, look up enabled plugin commands for the repository. promptcommands build the follow-up/implementation job with extension additions resolved through the extension library's explicit-additions path.- Plugins page: command list under "What it added".
- Tests in
test/andpackages/core/testwith the example plugin.
Notes
Depends on the contributions issue and the Plugins page. Ordinary task runs are one-shot.
Metadata
Metadata
Assignees
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Activity
propr-dev commentedon Nov 15, 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-53551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc3542-epic-plugin-system-xu8issue-3551-20261115-2203-claude-opus-5-5-syc🔍 Track Task Execution