본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

wasm-spa-autofix-react-imports

tippyentertainment 제작

Web & Frontend Development
296clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Meticulously detect and fix missing React/TSX imports, undefined components, and bundler runtime errors in the WASM.

설명

이 스킬이 하는 일

Detects and fixes missing React/TSX imports, undefined components, and bundler runtime errors in a WASM-based SPA preview pipeline. It parses bundler logs for ReferenceErrors and safety-net messages, classifies each missing symbol by type, and generates surgical source-level patches to the affected files.

It patches import errors at the source rather than at runtime, so stubs don't accumulate and real missing dependencies stay visible.

사용 시점

  • Fixing ReferenceError: X is not defined thrown in a WASM browser preview
  • Resolving safety-net stubs being injected for undeclared React components
  • Auto-completing lucide-react icon imports after editing a TSX file
  • Correcting bare specifier errors for react/jsx-runtime in SPA builds
  • Catching missing section component imports before the preview iframe loads

예시 워크플로

입력

User asks: My WASM preview throws ReferenceError: Mail is not defined and safety-net stubs are injected for Card and Button

에이전트
  1. 1

    Parse bundler logs for ReferenceError messages and safety-net stub lists

  2. 2

    Classify Mail as a lucide-react icon and Card, Button as UI components

  3. 3

    Inspect current file imports to locate existing lucide-react and UI import lines

  4. 4

    Generate patches that extend existing import statements with the missing symbols

  5. 5

    Return patches with a plain-language summary and a list of any unresolvable issues

출력

Patch applied: Mail added to lucide-react import line; Card and Button added to @/components/ui import; preview loads without runtime stubs

설치

clawhub install tippyentertainment/wasm-spa-autofix-react-imports

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크