본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)46k · #6343

playground

하는 일

이 스킬은 AI가 컨트롤로 설정을 조정하고 실시간 미리보기를 볼 수 있는 단일 웹 페이지를 만들게 합니다. 주제를 시각적으로 탐색하는 데 유용합니다.

사용하는 경우

  • ✓디자인, 데이터셋, 문서를 대화형으로 살펴보고 싶을 때.
  • ✓글보다 클릭하고 조정하며 이해하기 쉬운 주제가 있을 때.
  • ✓끝에 복사해서 AI에게 다시 붙여넣을 프롬프트가 있는 페이지를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/anthropics/claude-plugins-official/blob/main/plugins/playground/skills/playground/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“레이아웃 설정을 조절하고 결과를 실시간으로 볼 수 있는 대화형 플레이그라운드를 만들어 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 템플릿 모음에서 맞는 레이아웃을 고르고, 외부 파일 없이 혼자 완결되는 HTML 파일 하나를 만듭니다. 맨 아래에는 복사할 수 있는 프롬프트 상자를 넣습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

플레이그라운드를 열려면 설치가 필요한가요?

아니요. 결과물은 웹 브라우저에서 열 수 있는 HTML 파일 하나입니다.

어떤 주제가 플레이그라운드에 맞나요?

디자인 선택, 쿼리, 코드 구조처럼 시각적이거나 구조적이며 선택지가 많은 주제가 맞습니다.

복사한 프롬프트는 어떻게 하나요?

AI 채팅에 다시 붙여넣으면, 선택한 내용을 바탕으로 이어서 작업할 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
46k
순위
#6343
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬