-
Notifications
You must be signed in to change notification settings - Fork 1
Block editor command palette integration #33
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Early idea — this will need significant exploration before building. The questions below need answers and the scope may change substantially during investigation.
Explore integrating MCP prompts into Gutenberg's Command Center (Cmd+K / Ctrl+K) via the @wordpress/commands package, so users can trigger Claude actions without opening the sidebar.
Commands to Register
Register commands using wp.data.dispatch('core/commands') or the useCommand hook:
- "Proofread with Claude" — submits
proofreadcommand - "Review with Claude" — submits
reviewcommand - "Edit with Claude..." — opens a prompt for editing focus, then submits
editcommand - "Translate with Claude..." — opens a prompt for target language, then submits
translatecommand - "Respond to notes with Claude" — submits
respond-to-notescommand - "Draft with Claude..." — submits
draftcommand (this one creates a new post, so it works differently from the sidebar actions which operate on the current post)
Exploration Questions
- How well does
@wordpress/commandssupport commands that need follow-up input (language, editing focus, topic)? Can we open a modal from a command, or does the command palette handle sub-prompts? - Should
draftcreate a new post in a new tab, or navigate away from the current editor? How does the MCP handle this (it would need to create the post and then open it)? - Should commands be contextual (only registered when Claude is connected), or always visible with a "Claude not connected" error on invocation?
- Can we register commands on non-editor screens (e.g., Posts list) for actions like
draft?
Acceptance Criteria
- Claude actions appear in the Command Center (
Cmd+K) - Parameter-free commands (proofread, review, respond-to-notes) work directly
- Commands requiring input have a reasonable UX (modal, sub-prompt, or similar)
- Commands are disabled or show appropriate feedback when Claude is not connected
- Draft command handles new post creation gracefully
- Reuses the
@wordpress/datastore and hooks from AI Actions sidebar panel #32
Part of #28.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request