spec-test

Extract domain models and pure functions from specifications, then append unit tests to a Plan.

35|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/sean-sunagaku/claude-code-plugin --skill spec-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-test
Source: https://github.com/sean-sunagaku/claude-code-plugin/tree/main/spec-test/skills/spec-test
Command: npx skills add https://github.com/sean-sunagaku/claude-code-plugin --skill spec-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Analyzes a specification to identify domain models, class responsibilities, and pure functions, then designs test-first unit tests and appends the findings to an existing Plan.

Core Features & Use Cases

  • Extracts Entities, Value Objects, and Domain Events from specifications.
  • Identifies pure functions and test cases, then drafts unit tests following test-driven design.
  • Auto-updates an existing Plan file with the analysis results for traceability and faster implementation.

Quick Start

Provide a Plan file path and a specification to auto-analyze and append the design and tests.

Frequently Asked Questions about spec-test

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

FAQPage Schema
How do I automate extracting domain models and unit tests from a specification?

To automate extracting domain models and unit tests from a specification, provide a Plan file path and specification text. The tool analyzes the spec to identify entities, value objects, and pure functions, then drafts test-driven unit tests and appends them to the Plan.

What is spec-driven design analysis for test-driven development?

Spec-driven design analysis for test-driven development is the process of parsing a specification to identify class responsibilities, domain events, and pure functions. It generates test cases and updates an existing Plan file to ensure traceability between the design and the spec.

Can I use this tool to append unit tests to an existing Plan file?

Yes, you can use this tool to append unit tests to an existing Plan file. By applying a predefined template, it auto-updates the Plan with the extracted domain models, pure functions, and drafted test cases for faster implementation and traceability.

Does this work with plan-driven projects that rely on prior conversation context?

Yes, this works with plan-driven projects that rely on prior conversation context. It is designed for projects with an existing specification or prior conversation, updating the current Plan with a completed design based on that context.

What's the best way to generate domain events and entities from a project specification?

The best way to generate domain events and entities from a project specification is to run an automated code-analysis that extracts domain models, identifies class responsibilities, and drafts unit tests directly into your Plan file.

When should I not use automated spec-driven design analysis?

You should not use automated spec-driven design analysis when your project lacks a formal specification or an existing Plan file. It requires a predefined template and an initial spec to extract domain models and generate test cases.