Claude Code Plugins

Community-maintained marketplace

Feedback

testing-domain

@YosrBennagra/3SC
0
0

Write domain and unit tests for the widget host app. Use when testing entities, value objects, invariants, domain services, and application logic with deterministic fixtures.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name testing-domain
description Write domain and unit tests for the widget host app. Use when testing entities, value objects, invariants, domain services, and application logic with deterministic fixtures.

Testing Domain

Overview

Validate domain rules and invariants without UI or infrastructure dependencies.

Focus areas

  • Entity and value object behavior
  • Aggregate invariants
  • Domain services
  • Application use cases (when pure)

Workflow

  1. Build fixtures for domain objects.
  2. Test invariants and edge cases.
  3. Keep tests fast and deterministic.
  4. Avoid infrastructure dependencies.

Guidance

  • Use builders/factories to reduce test setup noise.
  • Prefer explicit assertions over snapshots.
  • Name tests after the rule being validated.

References

  • references/fixtures.md for fixture patterns.
  • references/invariant-tests.md for invariant coverage.