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

fosmvvm-react-view-generator

foscomputerservices 제작

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

요약

Generate React components that render FOSMVVM ViewModels.

설명

이 스킬이 하는 일

Scaffolds React components that render FOSMVVM ViewModels following the ViewModelView pattern. Generates test files first, then implementation files, using the viewModelComponent() wrapper and intent-based navigation. Components stay as thin rendering layers with no business logic or HTTP calls.

Enforces the ViewModelView pattern consistently across a team, preventing common mistakes like fetch() calls in components or mismatched filenames that break discoverability.

사용 시점

  • Generating a form component with validation for a FOSMVVM app
  • Scaffolding a list view that composes child components via .bind()
  • Creating display-only cards from ViewModel properties
  • Migrating Leaf templates to React while preserving ViewModel alignment
  • Adding error ViewModel handling to an existing component

예시 워크플로

입력

User asks: Generate a TaskListView component that renders a TaskListViewModel with empty state and child TaskCard bindings

에이전트
  1. 1

    Identifies component category as list type from conversation context

  2. 2

    Generates TaskListView.test.js with tests for empty state, populated list, and child binding — tests fail at this stage

  3. 3

    Generates TaskListView.jsx using FOSMVVM.viewModelComponent() wrapper with isEmpty check and TaskCard.bind() calls

  4. 4

    Verifies both files exist and component accesses FOSMVVM from global namespace

출력

TaskListView.test.js and TaskListView.jsx written to src/components/Tasks/, ready for npm test

설치

clawhub install foscomputerservices/fosmvvm-react-view-generator

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

링크