fulcro-spec-tdd

Structure Clojure apps for testability using fulcro-spec and Guardrails.

1|Updated Aug 16, 2018
One-click install
npx skills add https://github.com/saskenuba/dotfiles --skill fulcro-spec-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fulcro-spec-tdd
Source: https://github.com/saskenuba/dotfiles/tree/main/ai/.claude/skills/fulcro-spec-tdd
Command: npx skills add https://github.com/saskenuba/dotfiles --skill fulcro-spec-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in structuring Clojure and Clojurescript applications for testability and demonstrates how to leverage fulcro-spec and guardrails to drive robust tests across a project.

Core Features & Use Cases

  • Provides a blueprint for separating pure logic from side effects to improve testability and maintainability.
  • Demonstrates test-writing patterns with fulcro-spec, guardrails, and spec-driven verification.
  • Shows how to seal behavior with :covers metadata and effective mocking in tests.

Quick Start

Set up a Fulcro project with the required dependencies, then annotate functions with >defn, write orchestration tests, and run the dev/test suite to validate coverage.

Frequently Asked Questions about fulcro-spec-tdd

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

FAQPage Schema
How do I structure Clojure apps for testability using fulcro-spec?

To structure Clojure apps for testability, this skill provides a blueprint for separating pure logic from side effects and uses fulcro-spec with guardrails to drive robust tests across a project.

How do I enforce function contracts in Clojure testing with guardrails?

You can enforce function contracts in Clojure testing by annotating functions with >defn. This skill demonstrates using guardrails to enforce testable design and robust specifications for reliable verification.

What is the best way to mock dependencies in Clojure spec tests?

The best way to mock dependencies in Clojure spec tests is by using precise mocking patterns. This skill shows how to effectively mock tests and seal behavior using :covers metadata with fulcro-spec.

Does fulcro-spec work with Guardrails for test-driven development?

Yes, fulcro-spec works with Guardrails for test-driven development. This skill targets projects using Fulcro 3.9.0+ and Guardrails 1.2.16+ to enforce testable design and robust specifications.

How do I seal test behavior with :covers metadata in Clojure?

You seal test behavior with :covers metadata in Clojure by applying it to your orchestration tests. This skill demonstrates how to ensure tests are sealed with :covers metadata to verify coverage.