feature-scaffold

Generates CQRS feature directory structures and boilerplate files with TypeScript definitions and model schemas.

Updated Dec 18, 2021
One-click install
npx skills add https://github.com/isihigameKoudai/utils --skill feature-scaffold-isihigamekoudai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-scaffold
Source: https://github.com/isihigameKoudai/utils/tree/main/.opencode/skills/feature-scaffold
Command: npx skills add https://github.com/isihigameKoudai/utils --skill feature-scaffold-isihigamekoudai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires valibot, createModelFactory, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of directory structures and boilerplate files for new CQRS features, streamlining the initial setup and reducing manual work.

Core Features & Use Cases

  • Directory Structure Generation: Automatically creates the required directories for a CQRS feature, including models, stores, services, and components.
  • Boilerplate Files: Generates boilerplate files for each directory, such as TypeScript type definitions, model schemas, and store actions.
  • Use Case: When starting a new CQRS feature, use this Skill to quickly set up the project structure and get started with development.

Quick Start

Generate the directory structure and boilerplate files for a new feature named 'TaskManager' with the following command: @feature-scaffold Feature名: TaskManager 主要エンティティ: Task 機能説明: タスク管理機能(作成、更新、削除、フィルタリング).

Frequently Asked Questions about feature-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate directory structure generation for CQRS features?

To generate boilerplate files for CQRS features, you provide a feature name, main entity, and description. This Skill then automatically creates the required directory structure and TypeScript type definitions for models, stores, services, and components.

What is the best way to scaffold boilerplate files for a new TypeScript CQRS feature?

The best way to scaffold boilerplate files for a TypeScript CQRS feature is using an automated generator. This Skill creates the standard repository conventions, including model schemas and store actions, reducing manual setup work.

Do I need Valibot to generate CQRS models and stores with this automation?

Yes, you need Valibot to generate CQRS models and stores with this automation. The Skill depends on Valibot for validation and createModelFactory for model creation to ensure TypeScript type definitions are correct.

Can I customize the directory structure when automating CQRS boilerplate generation?

When automating CQRS boilerplate generation, you specify the feature name and main entity to guide the directory structure creation. The tool then handles generating the standard repository conventions for models, stores, services, and components.

What limitations exist when generating TypeScript boilerplate files for CQRS patterns?

A key limitation when generating TypeScript boilerplate files for CQRS patterns is the strict dependency on Valibot and createModelFactory. The generated directory structure must also align with the predefined repository conventions for models and services.