Conversation
Agents weren't following the annotation lifecycle deterministically — they called annotation.list instead of annotation.process and skipped the updateStatus step after responding. Similarly, agents didn't use queryBySource to inspect live component state before/after edits. Three fixes: 1. Tool descriptions now encode the workflow as breadcrumbs — each tool says what comes next (process → implement → verify → respond → updateStatus) and annotation.list redirects to annotation.process for claiming work. 2. Tool outputs include contextual nextStep/hint fields that remind the agent of the next action at exactly the right moment (e.g. respond output tells agent to call updateStatus with the annotation ID). 3. SKILL.md and POWER.md gain an "Editing Components" section that positions queryBySource as the default before/after step when editing UI components, with guidance for browser-not-connected and element-not-rendered cases. Also fixes tool name typo in MCP prompts (domscribe.annotations.* → domscribe.annotation.*).
|
View your CI Pipeline Execution ↗ for commit d377ac4
☁️ Nx Cloud last updated this comment at |
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
process → implement → verify → respond → updateStatus).annotation.listexplicitly redirects toannotation.processfor claiming work.annotation.processandannotation.respondreturnnextStepfields;query.bySourcereturns contextualhintfields for browser-not-connected, element-not-rendered, and entry-not-found states — guiding the agent to ask the user to navigate when needed.query.bySourceas the default before/after step when editing UI components, replacing the need for curl/Playwright/screenshots. Broadens skill trigger keywords to activate when agents edit components.domscribe.annotations.*→domscribe.annotation.*inprocess_nextandfind_annotationsMCP prompts.Test plan
query.bySourcehint branches (browser disconnected, element not rendered, entry not found)query.bySourcebefore/after editing a component🤖 Generated with Claude Code