test-design-mandates

Validate test design adherence to Clean Architecture principles.

8|2|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/SebastienDegodez/skraft-plugin --skill test-design-mandates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-design-mandates
Source: https://github.com/SebastienDegodez/skraft-plugin/tree/main/plugins/skills/test-design-mandates
Command: npx skills add https://github.com/SebastienDegodez/skraft-plugin --skill test-design-mandates

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of designing tests in a Clean Architecture context, ensuring that each test is correctly implemented and contributes to the overall test coverage.

Core Features & Use Cases

  • Mandate Enforcement: Applies four mandatory rules to ensure tests are correctly designed and implemented.
  • Layer Boundary Enforcement: Ensures tests do not directly target internal classes.
  • Business Language Abstraction: Maintains separation of business and technical vocabulary in tests.
  • User Journey Completeness: Validates complete user journeys in test scenarios.
  • Domain Test Extraction: Determines when domain unit tests are required based on coverage.
  • Walking Skeleton Strategy: Provides strategies for validating the end-to-end flow of a feature.

Quick Start

To design a test that follows Clean Architecture guidelines, load the test-design-mandates skill and use the provided rules to structure your test.

Frequently Asked Questions about test-design-mandates

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

FAQPage Schema
How do I design tests that follow Clean Architecture principles?

To design tests for Clean Architecture, you must validate application boundaries, business logic, and infrastructure separately. This approach enforces layer boundaries so tests do not directly target internal classes, ensuring proper coverage.

What is a walking skeleton strategy in test design?

A walking skeleton strategy in test design validates the end-to-end flow of a feature. It provides structural guidelines to ensure complete user journeys are tested across the entire architectural flow before deeper implementation.

How do you separate business and technical vocabulary in tests?

Separating business and technical vocabulary in tests requires maintaining strict language abstraction. This ensures business rules are clearly distinguished from infrastructure concerns, keeping test scenarios aligned with domain logic.

When do I need to extract domain unit tests in Clean Architecture?

You need to extract domain unit tests when existing test coverage is insufficient for core business logic. This extraction determines exactly when isolated domain tests are required to validate rules independently of infrastructure.

Can I use test mandates to enforce layer boundary restrictions?

Yes, test mandates enforce layer boundary restrictions by applying four mandatory rules. These rules ensure tests do not directly target internal classes, maintaining strict separation between application boundaries and infrastructure.