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>).
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.
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.
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.
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 Interviewno file yet
- 2 Site planwrites the site plan card
- 3 Buildwrites index.html + css/ + js/
- Completehand off via MCP or ZIP
- 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. - 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.
- 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:
index.html
cart.html
css/site.css
js/app.js - 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
/gobackto return to the interview or the site plan; the next revision still goes to the same artifact.
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 Describeno file yet
- 2 Reviewwrites a new revision
- Completehand 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
/completewhen 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.
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:
## 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.
Preview, source and history
| Tab | What it shows |
|---|---|
| Preview | The site running in an isolated frame, at Desktop, Tablet (768 px) or Mobile (375 px) width, with Reload and Open in new tab. |
| Source | Every file of the revision with its size and type. Long lines wrap. |
| History | Every 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.
Artifacts for coding agents
Both MySpec MCP servers expose artifacts to Claude Code, Cursor, Claude, ChatGPT and any MCP client:
list_artifacts,get_artifactandread_artifact_fileread a prototype's files.create_artifactandwrite_artifact_revisionupload 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_artifactrestores an earlier revision by adding a new one. Passexpected_versionto 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:
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.
What a mockup can contain
- File types the AI writes:
.html,.htm,.css,.js,.mjs,.json,.svg,.txt,.md,.xmland.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.cssorabout.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.
| Action | Read | Write | Admin |
|---|---|---|---|
| Preview, source, history, Download ZIP | Yes | Yes | Yes |
| Restore a revision, Edit with AI, @-mention | No | Yes | Yes |
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.
The spec files a prototype links from
Project vision, core principles, and the MUST / MUST NOT constraints every later file has to obey.
User roles, FR-/NFR- requirements with EARS+ acceptance criteria; a coded AR-/BR-/CR- delta for brownfield changes.
Architecture, modules, data model, and API design with Mermaid flowchart, ER and sequence diagrams - plus C4 diagrams when your organisation enables them.
Ordered, sized implementation tasks grouped into milestones, traced back to requirement IDs.
Why a brownfield change is needed, what changes, the technical solution, and its impact on existing code.
Spec Kit's prioritised user stories and success criteria, or OpenSpec's ADDED / MODIFIED / REMOVED / RENAMED requirement deltas.
Spec Kit's technical plan: technical context, constitution gates, architecture, data model, and key decisions.
OpenSpec's optional context, goals / non-goals, decisions, and risks for a change.
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.