Skip to content
FunCoding

playground-demos

Choose and write live playground demos for the dataclient.io docs site and homepage (HooksPlayground examples, the homepage demo, their fixtures). Use when adding, redesigning or reviewing a docs demo, or coming up with a new demo idea for a feature.

Star
2,039
License
Apache-2.0
Last commit
Dec 1, 2026

.agents/skills/playground-demos/SKILL.md

View on GitHub

Playground demos

How playgrounds work is in the Playground README, mainly its Layouts and Design system sections.

Goal

A demo soft-sells Data Client first and teaches users and agents how to use it second. People copy what they see and agents copy the code, so both teach.

  • Use case: one where the preview clearly shows the feature's advantage over the alternative.
  • Mechanism: easy to see how it works and why it's better.
  • Look: very beautiful, built from the playground design system, with no inline styles or CSS in the example code.
  • Scope: as simple as possible while still showing maximum value, utility and related features.
  • New ideas: inventing one needs at least high reasoning effort. At lower or unknown effort, hand the ideation to a high-effort subagent or ask the user.

Conventions

  • The demo makes its point without captions or narration text. If it needs them, pick another use case.
  • Loading states are skeletons (<Loading />, skeleton), not "Loading…" text.
  • A demo of a real public API calls its real URL, intercepted by a fixture in website/src/fixtures/, so copied code works.
  • The code follows the practices a careful app would, even where the demo could skip them, because readers copy it.
  • Use the row layout, with one uncollapsed file, when the code is the lesson. Use demo, which hides the code, only when the point is purely visual, and ask the user first.
  • Anything extra a demo needs goes in the demo code with a design-system component, never a new Playground prop.
  • Build the app to work at 256px wide, and switch its layout with container queries on its own elements, never viewport media queries: its width follows where the Playground sits, not the screen. For a list beside what it opens, use DesignSystem's .split; on wide docs screens its Playground widens to give it room.
  • Check phone width and both themes.

Similar Skills

Featured

domain-modeling

Write a glossary, record ADRs, and clarify vague terms.

MAmattpocock/skills336k4,217 new stars in the last 7 days

writing-fragments

MAmattpocock/skills336k4,217 new stars in the last 7 days

writing-shape

MAmattpocock/skills336k4,217 new stars in the last 7 days

writing-beats

MAmattpocock/skills336k4,217 new stars in the last 7 days

perfect-docs

MAmattpocock/skills336k4,217 new stars in the last 7 days

writing-skills

OBobra/superpowers331k5,030 new stars in the last 7 days