fsd:write-block-tests

Generate test cases for Flow State Dev framework blocks with mock contexts.

2|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/fixpoint-labs/flow-state-dev --skill fsd-write-block-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fsd:write-block-tests
Source: https://github.com/fixpoint-labs/flow-state-dev/tree/main/.agents/skills/write-block-tests
Command: npx skills add https://github.com/fixpoint-labs/flow-state-dev --skill fsd-write-block-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the creation of test specifications for blocks within the flow-state-dev framework, eliminating the need to write extensive test cases by automating many steps following established conventions.

Core Features & Use Cases

  • Automated Test Generation: Automates the writing of test specifications that verify block functionality following the project's test patterns.
  • Mocking and Context Setup: Offers built-in methods for setting up mock contexts, including model mocking, to test block logic independently.
  • Test Coverage Verification: Provides a checklist for ensuring comprehensive test coverage of block inputs, outputs, state, and resource management.
  • Integration with CI Systems: Generates CI specs, ensuring that automated testing is a seamless part of the deployment workflow.
  • Use Case: When working with a new block or updating an existing one, this Skill automates the test-writing process, enabling faster integration and less time spent on manual testing.

Quick Start

To write tests for a new block, run the write-block-tests skill and follow the on-screen guide to input the necessary information about the block to be tested.

Frequently Asked Questions about fsd:write-block-tests

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

FAQPage Schema
How do I automate test case generation for Flow State Dev framework blocks?

You can automate test case generation for Flow State Dev blocks by running a specialized skill that writes test specifications following established project conventions. It eliminates manual test writing by automating context mocking and verifying block inputs, outputs, and state.

What is the best way to mock contexts for unit testing Flow State blocks?

Mocking contexts for unit testing Flow State blocks is best handled using built-in methods within an automated test generation tool. These methods support model mocking to isolate and test block logic independently without requiring external dependencies beyond standard project tools.

Can I generate CI specs for block testing without adding extra dependencies?

Yes, you can generate CI specs for block testing without adding extra dependencies. The automated test generation process integrates seamlessly into CI environments, ensuring deployment workflows include comprehensive testing without requiring additional external libraries.

How does automated test coverage verification work for framework blocks?

Automated test coverage verification works by providing a structured checklist that ensures comprehensive testing of block inputs, outputs, state, and resource management. This process validates that all functional aspects of the block are fully covered according to project standards.

Do I need to manually write test specifications when updating an existing Flow State block?

No, you do not need to manually write test specifications when updating an existing Flow State block. An automated test writing skill handles the generation process, enabling faster integration and significantly reducing time spent on manual testing tasks.