What problem does it solve?
This Skill automates the creation of new blocks (handlers, generators, utilities, or routers) in the flow-state-dev framework, following project conventions. It produces the block file, exports, and a matching test file, significantly reducing the time and effort required to write new blocks.
Core Features & Use Cases
- Automated Block Creation: Generates the block file, exports, and a matching test file.
- Customizable Block Types: Supports creation of handlers, generators, utilities, or routers.
- Code Generation Best Practices: Ensures blocks follow established patterns and best practices, including reading reference examples, writing the block, adding exports, writing tests, and verifying.
- Use Case: If you need to create a new utility block that analyzes sentiment, use this Skill to generate the block and its test file following the project's conventions.
Quick Start
Generate a sentiment analysis utility block by running the 'fsd:create-block' skill with the argument 'utility generator for sentiment analysis'.