Repository navigation
feat(mcp): add preview-flutter-component prompt - #205
Merged
Merged
Conversation
Registers an MCP prompt that walks an agent through rendering one Flutter widget in isolation: discovery, the previewer, widget-test and web entrypoint lanes in that order, captures in a Pickforge session, text scaling and semantics checks, and cleanup of every generated path. Also resets the release draft after 0.6.0 and records the prompt there.
…run checks in widget tests
This was referenced Sep 25, 2026
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.
PR 1 of #43. Adds the MCP prompt
preview-flutter-component(requiredwidget, optionalstatesandviewports). It walks an agent through rendering one Flutter widget without the full app: discovery and agit statusbaseline first, the widget-test harness for every check (state matrix, exact sizes, overflow,tester.takeException(), semantics, text scaling,meetsGuideline), and the Widget Previewer for pixels, with a temporary web entrypoint only as a fallback. Visual lanes are served on loopback from the agent's shell and viewed in a Pickforge browser session. Captures join the session's evidence run and the verdict goes throughevidence_outcome. Generated paths are tracked and removed, and production routing, app startup, committed code and goldens are off limits.README lists the prompt.
docs/releases/UNRELEASED.mdstill held the published 0.6.0 notes, so it is reset from the template as RELEASING.md prescribes, with an entry for this prompt.Validation
bun run typecheck,bun run lint,bun run build; prompt and stdio conformance tests: 28 passed.bun run teston the first commit: 2121 passed, 8 failed in 5 files (containment, agents, commands, browser evidence, one conformance case). All 5 files passed when rerun alone (174 tests), so these were load flakes on this host. Later commits touch only the prompt text and its tests.ProjectDetailPage, three states at 390/768/1440), run by GPT-6 Astra low through this branch's MCP server in a detached worktree. The first run found two prompt defects, fixed here:runSlugcaptures landed outside the evidence run soevidence_outcomefailed, and captures could catch loading frames. The rerun rendered the previewer at all three widths in a browser session and recorded the verdict on the session's evidence run.git status --shortwas empty before and after both runs.The portable skill is PR 2, in the dotfiles repo.