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

fosmvvm-leaf-view-generator

foscomputerservices 제작

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

요약

Generate Leaf templates for FOSMVVM WebApps.

설명

이 스킬이 하는 일

Generates Leaf templates for FOSMVVM web applications. Covers full-page views that extend a base layout and fragment templates returned via HTML-over-the-wire for partial DOM updates. Templates render pre-localized ViewModels, so the template just displays what it receives.

Enforcing a one-to-one filename match between ViewModel and Leaf template eliminates the lookup problem where developers must guess which template renders a given ViewModel.

사용 시점

  • Creating a new feature page that extends the base layout
  • Building a card fragment for drag-and-drop kanban updates
  • Adding data-* attributes so JavaScript can build server request payloads
  • Troubleshooting Localizable types rendering as raw structs in templates
  • Generating fragment templates for modal and inline component responses

예시 워크플로

입력

User asks: generate a fragment template for TaskCardViewModel with id, status enum, statusDisplay, and createdAt

에이전트
  1. 1

    Identify template type as fragment based on CardViewModel suffix

  2. 2

    Map id to data-task-id attribute for JS identification

  3. 3

    Map status enum to data-status attribute for raw server request values

  4. 4

    Map statusDisplay and createdAt as inline text using ViewModel properties

  5. 5

    Output fragment with single root element, no layout extension, and all state in data-* attributes

출력

A TaskCardView.leaf fragment with correct data attributes, localized display values from ViewModel properties, and no #extend("base") call

설치

clawhub install foscomputerservices/fosmvvm-leaf-view-generator

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

링크