Langsung ke konten
Skillpedia
Website & UI (frontend)46k Β· #6343

playground

Fungsinya

Skill ini memungkinkan AI Anda membuat halaman web satu file tempat Anda mengatur pengaturan dengan kontrol dan melihat pratinjau langsung. Ini berguna untuk menjelajahi suatu topik secara visual.

Kapan dipakai

  • βœ“Saat Anda ingin penjelajah interaktif untuk desain, dataset, atau dokumen.
  • βœ“Saat sebuah topik lebih mudah dipahami dengan mengklik dan menyesuaikan daripada membaca teks.
  • βœ“Saat Anda ingin halaman yang diakhiri dengan prompt yang bisa Anda salin kembali ke AI Anda.

Link skill

https://github.com/anthropics/claude-plugins-official/blob/main/plugins/playground/skills/playground/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/playground/skills/playground/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda membuat playground interaktif agar saya bisa menyesuaikan pengaturan tata letak dan melihat hasilnya secara langsung?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI memilih tata letak yang cocok dari sekumpulan templat, membangun satu file HTML mandiri, dan menambahkan kotak di bagian bawah yang berisi prompt untuk disalin.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Playground Builder

A playground is a self-contained HTML file with interactive controls on one side, a live preview on the other, and a prompt output at the bottom with a copy button. The user adjusts controls, explores visually, then copies the generated prompt back into Claude.

When to use this skill

When the user asks for an interactive playground, explorer, or visual tool for a topic β€” especially when the input space is large, visual, or structural and hard to express as plain text.

How to use this skill

  1. Identify the playground type from the user's request
  2. Load the matching template from templates/:
    • templates/design-playground.md β€” Visual design decisions (components, layouts, spacing, color, typography)
    • templates/data-explorer.md β€” Data and query building (SQL, APIs, pipelines, regex)
    • templates/concept-map.md β€” Learning and exploration (concept maps, knowledge gaps, scope mapping)
    • templates/document-critique.md β€” Document review (suggestions with approve/reject/comment workflow)
    • templates/diff-review.md β€” Code review (git diffs, commits, PRs with line-by-line commenting)
    • templates/code-map.md β€” Codebase architecture (component relationships, data flow, layer diagrams)
  3. Follow the template to build the playground. If the topic doesn't fit any template cleanly, use the one closest and adapt.
  4. Open in browser. After writing the HTML file, run open <filename>.html to launch it in the user's default browser.

Core requirements (every playground)

  • Single HTML file. Inline all CSS and JS. No external dependencies.
  • Live preview. Updates instantly on every control change. No "Apply" button.
  • Prompt output. Natural language, not a value dump. Only mentions non-default choices. Includes enough context to act on without seeing the playground. Updates live.
  • Copy button. Clipboard copy with brief "Copied!" feedback.
  • Sensible defaults + presets. Looks good on first load. Include 3-5 named presets that snap all controls to a cohesive combination.
  • Dark theme. System font for UI, monospace for code/values. Minimal chrome.

State management pattern

Keep a single state object. Every control writes to it, every render reads from it.

const state = { /* all configurable values */ };

function updateAll() {
  renderPreview(); // update the visual
  updatePrompt();  // rebuild the prompt text
}
// Every control calls updateAll() on change

Prompt output pattern

function updatePrompt() {
  const parts = [];

  // Only mention non-default values
  if (state.borderRadius !== DEFAULTS.borderRadius) {
    parts.push(`border-radius of ${state.borderRadius}px`);
  }

  // Use qualitative language alongside numbers
  if (state.shadowBlur > 16) parts.push('a pronounced shadow');
  else if (state.shadowBlur > 0) parts.push('a subtle shadow');

  prompt.textContent = `Update the card to use ${parts.join(', ')}.`;
}

Common mistakes to avoid

  • Prompt output is just a value dump β†’ write it as a natural instruction
  • Too many controls at once β†’ group by concern, hide advanced in a collapsible section
  • Preview doesn't update instantly β†’ every control change must trigger immediate re-render
  • No defaults or presets β†’ starts empty or broken on load
  • External dependencies β†’ if CDN is down, playground is dead
  • Prompt lacks context β†’ include enough that it's actionable without the playground
Pertanyaan umum

Apakah saya perlu menginstal sesuatu untuk membuka playground?

Tidak. Hasilnya berupa satu file HTML yang bisa dibuka di peramban web.

Topik apa yang cocok untuk playground?

Topik dengan banyak pilihan yang bersifat visual atau struktural, seperti pilihan desain, kueri, atau arsitektur kode.

Apa yang saya lakukan dengan prompt yang saya salin?

Anda menempelkannya kembali ke chat AI untuk melanjutkan dari pilihan yang sudah Anda buat.

Detail

Deskripsi asli dari pembuat

Creates interactive HTML playgrounds β€” self-contained single-file explorers that let users configure something visually through controls, see a live preview, and copy out a prompt. Use when the user asks to make a playground, explorer, or interactive tool for a topic.

repo: anthropics/claude-plugins-official

Popularitas

Bintang GitHub
46k
Peringkat
#6343
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa