OpenParable
Skip to content
← Back to skills

Demo Patterns

Development
demo-patterns

Demo Patterns is an Agent Skill for development published in the naver/egjs-flicking repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Sandpack 데모 코드 패턴. packages/docs/src/demo/ 또는 packages/docs/docs/demos/ 내 파일 작성·수정 시 자동 로드. 프레임워크별 코드 구조, 파일 구성, import 패턴 안내.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/naver/egjs-flicking/blob/HEAD/.claude/skills/demo-patterns/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/demo-patterns, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

데모 작성 핵심 규칙

파일 구성

데모 디렉토리(packages/docs/src/demo/{category}/{Name}/)에 다음 파일:

  • react.jsx, vue.vue, vanilla.js — 프레임워크별 코드 (TSX 내 템플릿 리터럴 금지)
  • index.html — Vanilla용 HTML 구조
  • styles.css — 공통 스타일
  • index.tsx — Sandpack 데모 컴포넌트 (?raw import)

프레임워크별 패턴 요약

  • React: @egjs/react-flicking, props 기반, <ViewportSlot> 으로 플러그인 UI
  • Vue: @egjs/vue3-flicking, :options 객체 prop, <template #viewport> 슬롯
  • Vanilla: @egjs/flicking, .flicking-viewport > .flicking-camera DOM 구조

상세 가이드

MDX 문서 작성법, Sandpack 설정, 플러그인 데모 dependencies, 전체 체크리스트는 @dev-guide/DEMO_GUIDE.md 참조.