datashaman/code-skills/onepager
Claude Code and agent skill by datashaman/code-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate a self-contained single-file HTML demo or presentation using Alpine.js + Tailwind via CDN. Emailable, double-clickable, no build step or server. Use when the user asks for a demo, prototype, slide deck, walkthrough, pitch, or interactive mockup. Triggers on phrases like "make a demo", "build a one-pager", "prototype this", "presentation/slides", "single-file HTML", or "no build step".
Install
npx vskill@latest install datashaman/code-skills/onepagerSKILL.md
The same SKILL.md was published earlier as datashaman/code-skills/onepager.
Onepager — single-file demo & presentation generator
Produce one HTML file. No package.json, no bundler, no server, no separate JS/CSS files. The output must run by double-clicking it (or open file.html) with only an internet connection for the CDN scripts.
Reference examples
Four canonical patterns live alongside this file in references/. Read whichever matches the request before you start writing. Use them for interaction structure and Alpine patterns, not as mandatory visual themes.
references/catalogue.html— the baseline demo pattern: search + filter + sort + detail pane + empty state. Start here for any list-with-details ask.references/dashboard-with-tour.html— KPI dashboard with a coaching-mark tour (spotlight overlay,getBoundingClientRectmeasurement, persisted "tour seen" via the$persistplugin).references/slide-deck.html— keyboard-driven slide deck with five layouts (cover, bullets, metric, quote, code), speaker notes, fullscreen mode.references/streaming-ai.html— simulated AI: thinking-step trace, word-by-word streaming reply, regenerate / edit / accept controls,runIdto abort stale streams.
Who you are talking to
Assume the person invoking this skill is a non-developer stakeholder — comfortable with computers and willing to open a file in a text editor or run open foo.html, but not interested in framework internals. They are using this to put a working interactive thing in front of a client, a stakeholder, a team, or an audience without booking a sprint with engineering.
What that means for you:
- No jargon without translation. If you mention
x-data,getter,$persist, or a CDN, give a one-line "this means…" the first time. The teaching comments inside the HTML do this; your chat replies should too. - Default to "I'll just do it" for technical implementation details. Do not ask whether to add getters, state fields, or event handlers. Do ask for creative direction when the user's request does not specify the desired style, tone, audience, or theme.
- You make the edits, not them. Never tell the user to open the file and change a line, replace an array, or paste a snippet. If something needs changing, change it yourself with the editing tools. The user's only interaction with the file should be opening it in a browser to look at the result.
- Talk about outcomes, not implementations. "I added a search box that filters as you type" beats "I bound
x-modelto a reactivesearchproperty and added afilteredItemsgetter." Reserve the second form for inline code comments. - Don't suggest dev workflow changes. No "add a test", "run the linter", "set up CI", "convert to TypeScript". They are not running any of that.
- Be generous with realistic sample data. They'll often hand you a topic ("a demo of our pricing tiers") rather than data. Invent plausible content; they will replace it (by asking you, not by editing). Aim for content that looks like a real customer's, not lorem ipsum.
- When you need their content, ask in plain English. "Got the pricing tiers and what each includes? Paste them in and I'll wire them in." Not "provide the
itemsarray in JSON."
This is not a reason to dumb anything down. The output is still a properly built, idiomatic Alpine app — it just needs to land without a developer in the loop.
When to use this skill
Use it for:
- Demos / prototypes — interactive UI to show an idea (catalogue, dashboard, form flow, data explorer).
- Presentations / slide decks — keyboard-navigable slides with transitions, speaker notes, progress.
- Walkthroughs / tutorials — step-by-step guided UI, often with a "next" button advancing state.
- Pitches / explainers — landing-page-style narrative scrolls with reactive bits.
Do not use it for:
- Anything needing real persistence, auth, server-side logic, or a real backend.
- Multi-page apps, routing-heavy UIs, or anything where one file becomes unwieldy (>~1500 lines is the soft ceiling — flag this to the user).
- Production apps. This is a starter, not a destination.
Hard rules
- One file. All markup, state, styles, and data live in the single
.htmlyou output. Never split. - CDN only, no install. Use these exact tags in
<head>:
``html <script src="https://cdn.tailwindcss.com"></script> <script defer src="https://unpkg.com/alpinejs@3.14.1/dist/cdn.min.js"></script> ` defer` on Alpine is required.
- One root `x-data` block holds the entire app's reactive state. Nested
x-dataonly when scoping is genuinely needed (e.g. a repeated component with local state). - Use getters as computed properties —
get filteredItems()rather than recomputing in templates. Alpine re-runs them automatically. - `x-cloak` on the root plus
[x-cloak]{display:none!important}in a<style>to prevent the un-hydrated flash. - Tabular numerics (
tabular-nums) on price/count columns. Small detail, big polish. - Comment the Alpine concepts inline the way
references/catalogue.htmldoes (x-model is two-way binding,x-for renders one element per array item, etc.). The output is a teaching artifact as much as a working demo. - No emojis in the output unless the user asked for them.
- No scattered assets. Images, icons, textures, fonts, and data must either be embedded in the HTML (
data:URLs, inline SVG, inline CSS, or inline arrays) or loaded from stable remote URLs/CDNs. Do not leave sibling.png,.jpg,.svg,.json,.js,.css, or screenshot files next to the onepager. - Clean up after yourself. If you generate images, screenshots, extracted data, browser snapshots, or temporary files while building or verifying the onepager, delete those temporary artifacts before delivery unless the user explicitly asked to keep them.
Style and theme discovery
Before creating a onepager, identify whether the user has already specified the visual direction. Treat phrases like "investor memo", "retro arcade", "luxury retail", "internal dashboard", "zine", "playful", "minimal", "cyberpunk", "for kids", "for executives", or a linked/reference design as style direction.
If style direction is missing or too vague, interview the user briefly before writing the HTML. Ask one concise question with 3-5 concrete style options plus an invitation to name their own. Keep the options tailored to the topic rather than generic. For example:
What style should this onepager use: analyst briefing, collector magazine, playful trading-card binder, auction-house premium, or something else?
When the user provides a style, honor it through layout, typography scale, color, imagery, density, copy tone, and interaction details. Do not impose a business/editorial theme unless the user chose it or the topic clearly calls for it.
If the user explicitly asks you to proceed without asking questions, choose a style that fits the audience and topic, then state the assumption in one sentence before building.
Interaction and implementation conventions
- Theme follows the interview. Pick color, spacing, and typography from the user's chosen style. There is no universal palette or business default.
- Fallback style only when needed. If the user gives no style direction and cannot be reached, use a clear, readable neutral treatment with restrained colors and enough contrast. Keep it visually appropriate to the topic, not automatically corporate.
- Spacing: use a responsive page container appropriate to the chosen style. Dense dashboards, magazine explainers, pitch pages, and playful demos should not all share the same spacing system.
- Typography: make headings, labels, and body copy match the theme and audience. Preserve readability; do not use tiny text, negative tracking, or viewport-scaled font sizes.
- Transitions: prefer
x-transitionwith explicitenter/leaveclasses for anything that appears/disappears. Motion should fit the style; keep it subtle for serious contexts and more expressive for playful ones. - Empty states: every list and detail pane should have one. Write the empty-state copy in the selected tone.
- Keyboard: for presentations, wire
@keydown.arrow-right.window/arrow-left/spaceon the root. For demos, at minimum supportEscapeto close modals/panes. - Mobile-first dense content: tables, catalogues, card grids, and comparison lists must be designed for narrow screens first. On mobile, stack dense rows into readable cards, allow long labels and chips to wrap, avoid
truncateexcept at wider breakpoints, and usemin-w-0on flex/grid children that contain dynamic text. Reintroduce compact rows or table-like layouts only fromsm/mdupward.
Images and visual assets
Prefer CSS, inline SVG, or remote image URLs for decorative visuals. If an image must travel with the onepager, embed it as a data: URL inside the HTML so the delivered artifact remains one file.
When using generated bitmap images, either embed the final chosen image in the HTML or use a stable hosted URL if the environment provides one. Remove any intermediate image files, screenshots, masks, or rejected variants. The final working directory should contain the onepager HTML only, plus any unrelated files that existed before the task.
Hero visuals and decorative mock objects should carry real information. Avoid blank placeholder cards, generic grey boxes, or empty device frames. Fill them with lightweight, topic-specific content such as labels, charts, stats, mini examples, or meaningful silhouettes so the first viewport feels intentional even before the user interacts.
Browser verification workflow
Even though the delivered file should be double-clickable, browser tooling often cannot inspect file:// pages. During development, serve the directory with a tiny local server such as python3 -m http.server 4173, open http://127.0.0.1:4173/<file>.html, verify desktop and mobile layouts, then stop the server before finishing.
If the agent cannot directly see or inspect the page, tell the user that a browser bridge is worth installing for future work. Recommend an in-app browser, Playwright MCP server, browser-use plugin, or equivalent browser extension/MCP service that lets the AI navigate local URLs, inspect the DOM, capture screenshots, and check responsive layouts. This is especially important for onepagers because visual issues often survive static HTML review.
Do not leave verification artifacts behind. Browser screenshots, Playwright snapshot folders, console logs, and temporary server output are development byproducts, not part of the delivered onepager.
Presentation-mode specifics
When the request is a slide deck:
- State shape:
{ slide: 0, slides: [...] }where each slide is{ title, body, notes? }or a discriminated{ type: 'cover' | 'bullets' | 'image' | 'code', ... }. - Render exactly one slide at a time via
x-show+x-transitionkeyed onslideindex. - Show
slide + 1 / slides.lengthin a corner. - Bind keys:
→/Spaceadvances,←retreats,Home/Endjump,ftoggles afullscreenboolean that hides chrome. - Speaker notes hidden by default, toggleable with
n. - Progress bar at the top:
width: ((slide+1) / slides.length * 100) + '%'.
Demo-mode specifics
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 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/onepager/SKILL.md
Popularity
- 7-day trend score
- 0
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/datashaman/code-skills/onepager)