Data Fetch banner
YawnsDuzin YawnsDuzin

Data Fetch

Data community

Description

--- name: data-fetch description: 외부 API/공공데이터 포털을 calculateMetadata에서 호출하는 패턴 install_to: .claude/skills/ version: 0.1.0 depends_on: [remotion-composition] --- # Data Fetch 스킬 ## 목적 외부 데이터(기상청, 한국은행 환율, RSS 등)를 컴포지션 props로 주입한다. 런타임 fetch는 피하고 `calculateMetadata`로 빌드 시점에 1회 호출한다. ## 원칙 1. 모든 외부 호출은 `calculateMetadata` 안에서. 컴포넌트 본문에서 `fetch` 금지 2. API 키는 `process.env.<KEY>`로. 코드에 하드코딩 금지 3. 결과는 `.cache/<sha256>.json`에 캐싱 — 같은 props로 다시 부르면 디스크 hit 4. 실패 시 throw 대신 폴백 데이터 반환 (에이전트가 컴포지션 자체는

Installation

Installs to ~/.claude/skills/yawnsduzin-remotion-skills-playground-data-fetch/SKILL.md

Terminal
mkdir -p ~/.claude/skills/yawnsduzin-remotion-skills-playground-data-fetch && curl -fsSL https://raw.githubusercontent.com/YawnsDuzin/remotion-skills-playground/HEAD/skills/data-fetch.md -o ~/.claude/skills/yawnsduzin-remotion-skills-playground-data-fetch/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository