react-vite-dashboard
하는 일
이 스킬은 React, Vite, 데이터 로딩 도구를 써서 Stitch 화면으로 대시보드 웹 앱을 만듭니다. 데이터가 많은 관리자 또는 분석 화면을 만드는 프론트엔드 개발자를 위한 것입니다.
사용하는 경우
- ✓Stitch 디자인으로 데이터 대시보드를 만들고 싶을 때.
- ✓대시보드가 API에서 데이터를 불러오고 새로 고쳐야 할 때.
- ✓색과 간격이 DESIGN.md 파일을 따르기를 원할 때.
스킬 링크
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-build/skills/react-vite-dashboard/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Stitch 화면으로 React와 Vite 대시보드를 만들고, 판매 수치는 우리 API에서 불러오게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 Stitch 화면을 내려받고, 디자인 토큰을 CSS 변수에 대응시키며, 코드를 컴포넌트, 페이지, 데이터 훅으로 나눕니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Stitch to React + Vite Dashboard
You are a frontend engineer building data-dense dashboards from Stitch screens. Target stack: React 18, Vite, TypeScript, TanStack Query, React Router, and optional ethers v6 or viem for on-chain reads.
Prerequisites
- Stitch MCP configured (setup guide)
- A project
DESIGN.md(see thedesign-mdskill) for token fidelity - Vite + React + TypeScript scaffold (
npm create vite@latest)
Workflow
- Discover MCP prefix — run
list_tools, note the Stitch prefix (e.g.stitch:). - Fetch screen —
[prefix]:get_screenwith project and screen IDs. - Download assets — persist HTML/screenshot under
.stitch/designs/{screen}.htmland.png. - Read DESIGN.md — map
colors.*,typography.*,spacing.*to CSS variables insrc/index.css. - Generate components — split into
src/components/,src/pages/,src/hooks/. - Wire data — use TanStack Query for async fetches; keep presentational components pure.
HTML → React mapping
| Pattern | Implementation |
|---|---|
| Layout grid / flex | Tailwind utilities or CSS modules aligned to DESIGN.md spacing tokens |
| Cards / panels | <section> with tokenized border-radius and elevation fallbacks for forced-colors |
| Tables | Semantic <table> or TanStack Table; never div-only grids for tabular data |
| Buttons | <button type="button"> with visible focus ring (preserve browser default unless DESIGN.md defines focus tokens) |
| Forms | <label htmlFor> + <input id>; associate errors with aria-describedby |
| Loading | Skeleton components; aria-busy on containers during fetch |
| Wallet connect | Isolate in WalletProvider; never embed private keys in generated code |
DESIGN.md integration
/* src/index.css — example token bridge */
:root {
--color-primary: /* from DESIGN.md colors.primary */;
--font-body: /* typography.body-md.fontFamily */;
}
Run the design.md linter locally before shipping UI:
npx @google/design.md lint DESIGN.md
Web3 dashboard conventions
- Read-only contract calls via
useReadContract(viem/wagmi) or ethersContract+ TanStack QueryqueryFn. - Format token amounts with
formatUnits; show network name and chain ID in settings footer. - Surface transaction errors in plain language; link to block explorer when
txHashexists. - Gas-sensitive flows: batch reads, avoid redundant
eth_callin render loops.
File structure
src/
├── components/ # Presentational UI from Stitch
├── pages/ # Route-level screens
├── hooks/ # useQuery wrappers, wallet hooks
├── lib/ # ABI helpers, formatters
└── styles/ # Token CSS variables
Quality checklist
- WCAG 2.2 AA: contrast from DESIGN.md component pairs passes linter
- Keyboard navigable: focus order matches visual order
- Responsive: test at 375px and 1280px widths
- No secrets in repo: RPC URLs from env (
VITE_*prefix only for public endpoints) - TypeScript strict: no
anyon contract ABIs
Stitch docs note
When following links on stitch.withgoogle.com/docs, use the full https://stitch.withgoogle.com/docs/... URL if relative navigation redirects incorrectly.
자주 묻는 질문
TanStack Query는 무엇인가요?
React 화면을 위해 데이터를 불러오고, 캐시하고, 새로 고치는 라이브러리입니다.
DESIGN.md 파일이 필요한가요?
있으면 가장 잘 작동합니다. 이 스킬은 색, 글꼴, 간격을 맞추는 데 그 파일을 씁니다.
블록체인 데이터를 지원하나요?
네. ethers나 viem으로 온체인 데이터를 읽는 선택적 지원을 언급합니다.
상세 정보
작성자의 원본 설명
Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).
인기도
- GitHub 스타
- 8.7k
- 순위
- #12339
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 17.
댓글
- …
이 저장소의 다른 스킬
stitch::react-components
8.7kStitch 디자인을 React와 Vite 컴포넌트로 바꾸거나, 기존 컴포넌트를 최신 디자인에 맞게 업데이트하고, 점검을 거치도록 돕습니다.
stitch::react-native
8.7kStitch 웹 디자인을 휴대폰 앱용 React Native 컴포넌트로 바꾸거나, 기존 모바일 화면을 새 디자인에 맞게 업데이트하도록 돕습니다.
shadcn-ui
8.7kRadix 또는 Base UI와 Tailwind CSS로 만든, 복사해서 넣는 인터페이스 부품인 shadcn/ui 컴포넌트를 찾고 설치하고 맞춤 설정하도록 돕습니다.
stitch::code-to-design
8.7kReact, Vue, Angular 같은 기존 웹 앱을 Stitch 디자인으로 옮겨, Stitch에서 계속 개선할 수 있게 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.