Skip to main content
GUIDE · PROTOTYPES · PRE-RELEASE

HTML Mockup Artifacts

See the screens before you build them. Link the prototype from the spec.

DEFINITION // GEO SNIPPETENTITY EXTRACT

A MySpec artifact is a versioned set of files stored as one unit - most often a clickable HTML mockup made of index.html, a style sheet and a script. The AI builds it from a conversation and your spec files, every change adds a revision, and spec files link to it with [Name](artifacts/<slug>).

PRE-RELEASE

Artifacts and the Website artifact workflows are still rolling out, so they may not be available in your organization yet, and they can change before general release. If your project has no Artifacts tab, they are not in your workspace yet. Full reference: Artifacts in the MySpec Docs.

THINK OF IT AS - AN ARCHITECT'S SCALE MODEL

An architect does not hand the client a stack of drawings and ask them to imagine the building. They bring a scale model. The drawings stay the contract; the model is how everyone checks that the contract describes the building they want. A spec bundle is the drawings. An HTML mockup artifact is the model - and it is filed in the same project, linked from the page that describes it.

SECTION 01 WHY

Why a spec needs a clickable mockup

requirements.md says what a screen must do in EARS+ sentences. That is exactly what a coding agent needs - and exactly what a product owner, a designer, or a customer finds hard to review. Words like "WHEN the user selects a delivery slot THEN the system SHALL show the total" hide a dozen layout decisions.

  • Review UI requirements before code exists. Clicking through a mockup surfaces missing states, empty screens and confusing flows while they are still a one-line spec change.
  • Give agents a concrete reference. An agent that builds the real screen can read the mockup's HTML and CSS instead of guessing a layout from prose.
  • Keep the prototype next to the spec. No separate design tool, no stale screenshot: the mockup lives in the same project, has its own history, and the spec links to its latest revision.
SECTION 02 BUILD

Build one: the Website artifact workflow

In the chat picker, choose Website artifact (v1). It works in any project type - greenfield, brownfield or auto - and writes one artifact per session instead of spec files.

  1. 1 Interview
    no file yet
  2. 2 Site plan
    writes the site plan card
  3. 3 Build
    writes index.html + css/ + js/
  4. Complete
    hand off via MCP or ZIP
  1. Interview. Short rounds of multiple-choice questions: the site's purpose and audience, the pages and their content, the style, what should be interactive, and any third-party libraries. Reference the project's spec files, attachments or other artifacts with @ to base the site on them.
  2. Site plan. Before writing any code, the AI shows a plan card that names the artifact and lists every file with its purpose and every library with its address. Approve it, or say what to change.
  3. Build. The AI writes the files and stores them as a revision. The chat shows a live line per file - Writing css/site.css · ~12.0 KB becomes Wrote css/site.css - and a revision card with the file count, total size, the outside hosts the pages load from, and an expandable preview. Approve it to finish, or ask for changes; each round adds one revision.

A small mockup might be four files:

A typical artifact text
index.html
cart.html
css/site.css
js/app.js
TIPS FROM THE DOCS
  • Name the pages you want. A short list of pages and what each one shows gives a better plan than a general description.
  • Keep it small. Ask for more pages in the next round instead of all at once.
  • Use /goback to return to the interview or the site plan; the next revision still goes to the same artifact.
SECTION 03 ITERATE

Change it with Edit with AI

Open the latest revision in the artifact viewer, or the card that ends a Website artifact session, and select Edit with AI. That starts an Edit website artifact session bound to that one artifact.

  1. 1 Describe
    no file yet
  2. 2 Review
    writes a new revision
  3. Complete
    hand off via MCP or ZIP
  • Describe one change in plain words - "Add a contact page and link it from the header".
  • Review the new revision in the preview, then Keep it and describe the next change, or Discard it. Discard restores the previous revision by adding a new one, so history is never lost - and it is refused if someone else stored a revision after yours.
  • Type /complete when nothing is waiting for Keep or Discard.

Every kept and discarded revision stays in the artifact's history. In the viewer's History tab, Restore brings back any earlier revision as a new one.

SECTION 04 TRACEABILITY

Link the prototype from your spec

This is where artifacts become part of Spec-Driven Development rather than a side tool. A spec file links to an artifact with an ordinary Markdown link whose address is artifacts/ plus the artifact's slug:

requirements.md or solution.md markdown
## Checkout screen

The customer reviews the cart, picks a delivery slot and pays.
See the clickable prototype:
[Checkout prototype](artifacts/checkout-prototype)
  • Stable. The slug does not change when the artifact is renamed, and the link always opens the latest revision.
  • Rendered as a marker. In the spec viewer and in chat replies the link shows as an artifact marker that opens the prototype in a new tab.
  • Written for you. In Generate and Edit sessions, the AI links the matching prototype when it writes a section about screens, pages or user flows. Or ask: "Link the checkout prototype in the payment screen section".
  • Safe for brownfield repos. A link to a slug the project has no artifact for stays an ordinary link, so a real artifacts/ folder in your codebase keeps working.
  • Share links show the artifact's name without a link: people with a share link can read the spec files, not the artifacts.

You can also point any chat at a prototype: type @, open the Artifacts section and pick one. Spec sessions only read artifacts; only a website session or an agent writes revisions.

SECTION 05 VIEWER

Preview, source and history

TabWhat it shows
PreviewThe site running in an isolated frame, at Desktop, Tablet (768 px) or Mobile (375 px) width, with Reload and Open in new tab.
SourceEvery file of the revision with its size and type. Long lines wrap.
HistoryEvery revision, newest first, with who made it (a person or the AI), file count, size and message - plus Restore.

Download ZIP exports every file of the revision you are viewing. Artifacts also appear in the project's Artifacts tab and in the ARTIFACTS section of the sidebar.

SECTION 06 AGENTS & MCP

Artifacts for coding agents

Both MySpec MCP servers expose artifacts to Claude Code, Cursor, Claude, ChatGPT and any MCP client:

  • list_artifacts, get_artifact and read_artifact_file read a prototype's files.
  • create_artifact and write_artifact_revision upload a prototype an agent built locally, or a change to one - all files, or only the changed ones on top of a base revision.
  • rollback_artifact restores an earlier revision by adding a new one. Pass expected_version to avoid overwriting someone else's revision.

On Claude Code, the MySpec plugin's artifacts skill starts on its own when you mention a prototype or mockup:

Example prompts text
List the artifacts in project "flashpay" and open the latest prototype.
Read index.html of the checkout prototype and check it against FR-012.
Add a "Saved cards" page to the checkout prototype as a new revision.

Tool reference: How artifacts work.

SECTION 07 LIMITS

What a mockup can contain

  • File types the AI writes: .html, .htm, .css, .js, .mjs, .json, .svg, .txt, .md, .xml and .webmanifest. It does not create images or fonts - load them from a CDN or use inline SVG.
  • Size: at most 50 files, 2 MiB per file and 10 MiB in all.
  • Relative paths only: pages link to each other and their files with paths like css/site.css or about.html. Before storing a revision, the AI checks every local file a page refers to is in the site.
  • Libraries from any CDN over https; ones you did not plan show up on the revision card.
  • No storage in the preview: it runs in an isolated frame with no origin, so localStorage, cookies and IndexedDB do not work - a mockup keeps its data in memory for the visit.
ActionReadWriteAdmin
Preview, source, history, Download ZIPYesYesYes
Restore a revision, Edit with AI, @-mentionNoYesYes
SECTION 08 FAQ

HTML mockup artifacts FAQ

What is a MySpec artifact?

An artifact is a set of files that MySpec stores and versions as one unit, such as a clickable HTML mockup made of index.html, css/site.css and js/app.js. Every change adds a new revision, and earlier revisions stay in the artifact's history.

How do I create an HTML mockup with MySpec?

Start a chat with the Website artifact (v1) workflow. The AI interviews you about the site's purpose, pages, style and interactions, shows a site plan that lists every file and library, then writes the HTML, CSS and JavaScript and stores it as an artifact you preview in MySpec.

Can I base the mockup on my spec files?

Yes. Reference the project's spec files, attachments or other artifacts with @ in your message, and the AI reads them while it plans and builds the site.

How do I link a prototype from requirements.md or solution.md?

Use a normal Markdown link whose address is artifacts/ followed by the artifact's slug, for example [Checkout prototype](artifacts/checkout-prototype). The link always opens the latest revision, and it keeps working when the artifact is renamed. In Generate and Edit sessions, the AI adds these links itself when it writes about screens, pages or user flows.

Can coding agents read and update artifacts?

Yes. Both MySpec MCP servers have artifact tools - list_artifacts, get_artifact, read_artifact_file, create_artifact, write_artifact_revision and rollback_artifact - and the Claude Code plugin has an artifacts skill that uses them.

Is the artifacts feature available to everyone?

Not yet. Artifacts and the Website artifact workflows are Pre-Release: they are still rolling out, may not be in your organization yet, and can change before general release. If your project has no Artifacts tab, they are not available in your workspace yet.

Full guides: Website artifact workflow · Edit website artifact · Artifacts.

SPEC FILES FIELD GUIDE

The spec files a prototype links from

Prototype the spec before you code it

Let MySpec's AI Architect write your spec bundle, then turn its screens into a clickable HTML mockup that stays linked to requirements.md. Free during Open Beta.