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

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가 스킬을 읽고 지침을 따릅니다.

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

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

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 the design-md skill) for token fidelity
  • Vite + React + TypeScript scaffold (npm create vite@latest)

Workflow

  1. Discover MCP prefix — run list_tools, note the Stitch prefix (e.g. stitch:).
  2. Fetch screen — [prefix]:get_screen with project and screen IDs.
  3. Download assets — persist HTML/screenshot under .stitch/designs/{screen}.html and .png.
  4. Read DESIGN.md — map colors.*, typography.*, spacing.* to CSS variables in src/index.css.
  5. Generate components — split into src/components/, src/pages/, src/hooks/.
  6. 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 ethers Contract + TanStack Query queryFn.
  • 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 txHash exists.
  • Gas-sensitive flows: batch reads, avoid redundant eth_call in 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 any on 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).

repo: google-labs-code/stitch-skills

인기도

GitHub 스타
8.7k
순위
#12339
라이선스
Apache-2.0
업데이트
2026. 8. 17.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬