This skill provides a methodical approach to writing specifications for the React and TypeScript surface of a Cratis application slice. It focuses on view models, helpers, command orchestration, and narrow component behavior, leveraging Vitest, Sinon, and Chai. This skill supports adding or changing frontend behavior in applications that consume Cratis while maintaining consistency with backend slice specifications.
What this skill does
Writes specifications using the Vitest runner with Mocha-style `describe`, `beforeEach`, and `it` syntax.
Employs Sinon for creating stubs and fakes with `sinon.stub()` and `sinon.createStubInstance()`.
Uses the Chai `.should` fluent interface for assertions, providing a readable sentence structure.
Places specifications alongside the units they specify, using a `for_ / when_ / and_` naming convention in snake_case.
Who it is for
Frontend developers working on Cratis-based React applications.
Development teams using AI coding agents like Claude Code, Cursor, and Codex for application enhancements.
Use cases
Developers specifying frontend behavior for Cratis-consuming applications, ensuring alignment with backend specifications.
Teams updating or adding view models and component interactions in React applications while maintaining documentation clarity and precision.
Technical details
Utilizes Vitest as the test runner, compatible with Mocha-style setups.
Incorporates Sinon for method and object stubbing to simulate scenarios and interactions.
Relies on the Chai library's `.should` syntax to structure specifications as readable sentences.
Specifications are specifically for frontend development in Cratis consumer applications, not within Cratis framework packages or backend contexts.
Source & Licence
This package is built on open-source work published by Cratis (Cratis/AI) and distributed under MIT. The original licence text and copyright notice are included in your download.
Personal and commercial use, modification and redistribution are permitted, provided the original copyright and licence notice are retained.
Your purchase covers curation, licence verification, packaging, documentation and instant delivery. It does not grant exclusive rights to the underlying open-source code, which remains available under its original licence.
Delivery & Support
Delivery: instant — a secure download link is emailed to you as soon as payment is confirmed.
Format: ZIP archive containing the skill files, documentation and the original licence.
Updates: updates are included only where stated on this page.
Refunds
This is a digital product delivered immediately after purchase. By completing your order you request immediate delivery and acknowledge that, once the download has been accessed, the statutory right to cancel no longer applies to the extent permitted by law. Refund requests are handled in accordance with our published Refund Policy.
Claude, Codex, Gemini and Cursor are trademarks of their respective owners. MCP Cart is an independent marketplace and is not affiliated with, endorsed by, or sponsored by any of them. Compatibility references describe interoperability only.