कंटेंट पर जाएँ
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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक