aster-ui-demo
Skill135 starsChanged 4 months agoApache-2.0View on GitHub
How to demo UI work the way Claude does it, never with throwaway HTML mockups. Build the change in the real webview, verify it in the browser harness, open the live dev server for the user to click through, and run the real test suites. Use when the user asks for a demo, a preview, or "let me see" any UI change in the desktop or VS Code surfaces.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aster-capabilitiesSkill
- aster-chat-sessionsSkill
- aster-cliSkill
- aster-configSkill
- aster-fix-workflowSkill
- aster-planningSkill
- aster-review-ciSkill
- aster-skill-authoringSkill
- gpt-astraSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Never build a standalone HTML mockup to show a UI idea.
- Distinctive: line 32
Click through it yourself first: Use browser automation to exercise the feature before the user sees it: open the panel, trigger the …
- Very specific: line 35
Open it for the user: Use open_preview on the harness URL so they can click through the running app.
- Very specific: line 38
Run the real checks: before calling it done: bun run test (vitest) in editors/vscode/, and make check or scoped cargo test -p aster-cli for …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Demo UI work in the real surface
Never build a standalone HTML mockup to show a UI idea. Users judge UI by clicking the real product, and a mockup cannot answer the only questions that matter: does it work, does it match the surrounding design, does it survive real data.
The workflow
- Build it for real. Implement the change in the actual frontend source,
even when the user only asked to "see it first". For this repo that means
editors/vscode/webview/(shared webview used by both the VS Code panel and the browser harness) ordesktop/for Tauri surfaces. Serve it in the browser harness. From
editors/vscode/, runbun run dev:web(builds the webview, then runsout/devhost/main.js, a real browser-runnable host with a stubbedvscodeAPI). The devhost is a long-lived server: never run it directly throughrun_command, or the tool hangs until the process is killed. Fire and forget through a shell:bash -lc "cd editors/vscode && bun run dev:web > /tmp/devhost.log 2>&1 &"Note the port (default 4327). If the port does not come up, read
/tmp/devhost.login a later round instead of chaining a wait onto the start command.- Click through it yourself first. Use browser automation to exercise the feature before the user sees it: open the panel, trigger the feature, resize narrow (300px) to check layout. Fix what breaks.
- Open it for the user. Use
open_previewon the harness URL so they can click through the running app. State plainly that it is the real surface, running in a browser host. - Run the real checks before calling it done:
bun run test(vitest) ineditors/vscode/, andmake checkor scopedcargo test -p aster-clifor Rust changes.
Reporting
Reference real files with line numbers, describe behavior the user can trigger by clicking, and note anything the browser harness cannot reproduce (native menus, real extension API calls) so the user knows what still needs testing in the actual editor.
Why not mockups
A mockup gets one reaction ("looks fine") and then the work is thrown away. The real build gets the same reaction plus every real bug found before the feature ships. The mockup path only wastes the turn it saves.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

