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

fosmvvm-swiftui-view-generator

foscomputerservices 제작

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

요약

Generate SwiftUI views that render FOSMVVM ViewModels.

설명

이 스킬이 하는 일

Generates SwiftUI views that conform to the FOSMVVM ViewModelView protocol. Handles display-only, interactive, form, and container view types with correct property wiring, operation binding, and debug infrastructure. Views are scaffolded to match their corresponding ViewModel by name and structure.

Enforces FOSMVVM's strict separation between rendering and data by generating views that never compute or transform data, only render what the ViewModel provides.

사용 시점

  • Scaffolding a new SwiftUI view for an existing FOSMVVM ViewModel
  • Adding form views with field validation and error handling
  • Building container views that compose child views via .bind()
  • Setting up interactive views with operations and repaint toggle
  • Creating SwiftUI previews with stub ViewModels for design iteration

예시 워크플로

입력

User asks: Generate an interactive SwiftUI view for TaskViewModel with a submit action and cancel action

에이전트
  1. 1

    Identifies view type as interactive based on operations in TaskViewModel

  2. 2

    Scaffolds TaskView.swift conforming to ViewModelView with viewModel and operations properties

  3. 3

    Adds @State private var repaintToggle and #if DEBUG testDataTransporter modifier

  4. 4

    Generates performAction() and cancel() methods each calling toggleRepaint() after the operation

  5. 5

    Adds .previewHost() previews inside #if DEBUG block

출력

TaskView.swift placed in Sources/{ViewsTarget}/Tasks/ with full ViewModelView conformance, operation wiring, debug infrastructure, and previews

설치

clawhub install foscomputerservices/fosmvvm-swiftui-view-generator

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

링크