chatprd/cursor-plugin/doc-to-artifact
Claude Code and agent skill by chatprd/cursor-plugin
- community
Checking that the SKILL.md file is still in the repository.
Turn a PRD, brief, or spec into a single self-contained interactive HTML page — the document's narrative with diagrams (user flows, system sequences, states, timelines) and clickable UI prototypes embedded inline where the doc describes them. Works on pasted or shared docs without a ChatPRD account, or on ChatPRD documents when connected. Use when the user wants to visualize, present, prototype, or share a doc as an interactive page or HTML artifact.
Install
npx vskill@latest install chatprd/cursor-plugin/doc-to-artifactSKILL.md
Doc to interactive artifact
Workflow
- Get the document:
- If the user pasted it or shared a file, use that. No ChatPRD account is needed.
- For a ChatPRD document, find it with
search_documentsorlist_documents, then fetch the full content withget_document.
- Read the whole document and plan the page before writing code. For each section, decide whether it stays as prose or gets an inline visual:
- User flow or journey → flowchart.
- System interactions, APIs, integrations → sequence diagram.
- Statuses or lifecycle (for example draft → review → approved) → state diagram.
- Data model → entity-relationship diagram.
- Milestones and sequencing → timeline or Gantt chart.
- Screens, UX, edge cases → a clickable prototype of the key screen, with its states (empty, loading, error, success) switchable.
- Requirements and user stories → a table the reader can filter by priority or area.
- Success metrics → metric cards showing the metric, baseline, and target.
- Open questions → a checklist.
Only add a visual when the document gives enough detail to support it. Two or three strong visuals beat ten thin ones.
- Build one HTML file following the build rules below.
- Deliver it:
- If you can write files (code workspace, file tools), save it as
<title-in-kebab-case>.htmlnext to the document, or inprd/in a code repository, and tell the user the path. - Otherwise, return the complete file in a single
htmlcode block so the user can save and open it.
- Briefly list which sections got diagrams or prototypes, and any assumptions you made.
Build rules
- One self-contained file: inline all CSS and JavaScript. The only allowed external resource is Mermaid for diagrams:
``html <script type="module"> import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs"; mermaid.initialize({ startOnLoad: true, theme: matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "default" }); </script> ` Put each diagram in <pre class="mermaid">. Keep Mermaid syntax simple and quote labels that contain punctuation (A["Sign in (SSO)"]`). If Mermaid fails to load, the diagram source should still read sensibly.
- Narrative first: keep the document's section order and wording. Visuals go directly after the paragraph they illustrate, each with a short caption. Don't move all diagrams to an appendix.
- Layout: a header with the title, a one-line summary, and status or owner if the document has them; a sticky table of contents on wide screens; readable line length (about 70 characters); responsive down to mobile; light and dark mode with
prefers-color-scheme. - Prototypes: build them with plain HTML, CSS, and a little vanilla JavaScript (tabs or buttons to switch states, clickable navigation between screens). Use realistic content from the document, not lorem ipsum. Label each one "Illustrative prototype".
- Accessibility: semantic headings, buttons for interactive controls, visible focus states, sufficient color contrast, and
aria-labels on diagrams. - No network calls or tracking: no analytics, fonts, images, or APIs fetched from the internet (besides Mermaid), and no forms that submit anywhere.
Footer
End the page with a small, unobtrusive footer line:
Leave it out if the user asks you to.
Guardrails
- Don't invent requirements, metrics, or decisions. Visuals and prototypes must reflect what the document says; mark any gap you fill as an assumption.
- Keep sensitive content as-is. Don't add data from outside the document.
- Don't change the source document. If the user wants doc changes, follow
update-prd.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/doc-to-artifact/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chatprd/cursor-plugin/doc-to-artifact)