Skip to content

chore: show a mockup before writing a UI issue - #166

Merged
TooonyChen merged 1 commit into
mainfrom
chore/issue-workflow-mockups
Nov 10, 2026
Merged

TooonyChen merged 1 commit into
mainfrom
chore/issue-workflow-mockups

Conversation

@TooonyChen

Copy link
Copy Markdown
Owner

Summary

Adds a mockup step to the issue workflow (.claude/skills/issue-workflow/), as was done for the command editor (#160): for a change people will see, a picture of the finished feature is shown to the owner and approved before the issue is written.

  • SKILL.md: a "Show a mockup first" part in step 1, a ## Mockup section in the issue template, comparing tester screenshots with the mockup in step 4, and checking them against it in the review (step 6).
  • references/mockups.md: what to draw (callouts and a legend, options side by side, the other app's screenshot when it follows one), how to make it (an HTML page styled after docs/screenshots/, rendered with the sandbox's Playwright), how to show it, and how to keep it: on the chore/mockups branch, committed with a temporary index, embedded in the issue with a blob link. GitHub's attachment upload is browser-only.
  • references/render-mockup.js: renders HTML pages to PNG at 2x.
  • references/subagent-prompt.md: the prompt gives the subagent the mockup's path and link.

The chore/mockups branch already exists (no history in common with main, never merged) with the #148 and #160 mockups, and #160 has a comment embedding them, which the owner confirmed shows the images.

Closes #165

Testing

  • node .claude/skills/issue-workflow/references/render-mockup.js page.html rendered the command editor mockup's page to a 2480x1556 PNG.
  • The temporary-index commit in mockups.md was run as written against origin/chore/mockups: the new commit had the old images plus the new one and its parent was the branch head (not pushed).
  • No Go code changed.

Generated by Claude Code

Add a mockup step to the issue workflow for changes people will see:
an HTML page styled after the app, rendered to PNG, approved by the
owner before the issue is written, kept on the chore/mockups branch and
embedded in the issue. Subagents get it and compare their screenshots
with it; the review does too. references/mockups.md has the steps and
render-mockup.js renders a page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015nMqJHsqtndDSqJDPp1qYv
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T00:56:05.079607Z 05c0036 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TooonyChen
TooonyChen merged commit d5d34e1 into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: show a mockup before writing a UI issue

2 participants