Draft
Conversation
c613b29 to
dff9851
Compare
dff9851 to
3d0a3dd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
/annotateskill to Studio Code. Users type/annotate, a browser opens with the Agentation annotation toolbar, they click elements and leave feedback, and the agent reads those annotations and makes changes.Tested end-to-end: user annotated "make this red", "change this to H2" → agent read annotations, applied changes via Global Styles custom CSS and WP-CLI.
Alternative approach to the custom element picker in #2936 — instead of building a custom UI, this injects Agentation's React toolbar into a Playwright browser using esm.sh CDN with
?deps=pinning for a single React instance.How it works
agentation-mcpbundled as dependency — launches HTTP (localhost:4747) + MCP servers/annotateskill clears old annotations, opens headed Playwright browser viaopen_annotation_browsertoolimport()from esm.sh CDNagentation_get_all_pending(CSS selectors, computed styles, text)Changes
apps/cli/ai/agentation-inject.ts(new) — Opens headed Playwright browser, injects Agentation via esm.sh dynamic importsapps/cli/ai/tools.ts— Newopen_annotation_browsertoolapps/cli/ai/plugin/skills/annotate/SKILL.md(new) —/annotateskill with guided workflow and WordPress-native change patternsapps/cli/ai/slash-commands.ts— Register/annotatecommandapps/cli/ai/agent.ts— Agentation MCP server added alongside Studio toolsapps/cli/package.json—agentation-mcpdependencyTesting
npm install && npm run cli:buildnode apps/cli/dist/cli/main.mjs code/annotateQuality gates