service-guard

Official

Guard service preconditions in-process.

Authorsocialsoftware
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Adds a Layer 3 service-layer guard that reads the DB and throws before any mutation. This approach helps preserve domain integrity by validating preconditions prior to state changes.

Core Features & Use Cases

  • Reads the database to validate preconditions before a mutation.
  • Runs inside the same unit of work and only reads the service's own aggregate.
  • Guides developers on repository queries, error constants, and test coverage for guards.

Quick Start

Implement the guard in the target service's operation so that it runs before the mutation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: service-guard
Download link: https://github.com/socialsoftware/microservices-simulator/archive/main.zip#service-guard

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.