agentleFS
ZfinixZfinix/aster/skills/aster-ui-demo/SKILL.md

aster-ui-demo

Skill107 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.

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
  1. Distinctive:

    Never build a standalone HTML mockup to show a UI idea.

    line 8
  2. Distinctive:

    Click through it yourself first: Use browser automation to exercise the feature before the user sees it: open the panel, trigger the …

    line 32
  3. Very specific:

    Open it for the user: Use open_preview on the harness URL so they can click through the running app.

    line 35
  4. Very specific:

    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 …

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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) or desktop/ for Tauri surfaces.
  2. Serve it in the browser harness. From editors/vscode/, run bun run dev:web (builds the webview, then runs out/devhost/main.js, a real browser-runnable host with a stubbed vscode API). The devhost is a long-lived server: never run it directly through run_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.log in a later round instead of chaining a wait onto the start command.

  3. 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.
  4. Open it for the user. Use open_preview on the harness URL so they can click through the running app. State plainly that it is the real surface, running in a browser host.
  5. 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 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.