pattern-command

Community

Queue and undo actions with command pattern

Authorjohnnystefan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Translates mutable operations into stand-alone command objects so callers can queue, log, and undo complex domain actions without entangling invokers in business logic.

Core Features & Use Cases

  • Command interface defines a single execution entry point and optional undo helpers.
  • Concrete commands capture receivers plus parameters such as entities, DTOs, or user actions.
  • Invoker and receiver roles keep triggers, queues, or audit logs decoupled from the actual operation so command history can drive undo/redo or transactional outbox flows.
  • Use case: wrap a reservation update request into a command for the job queue to log and reverse if needed.

Quick Start

Encapsulate the reservation update in a Command object so it can be queued, logged, and undone.

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: pattern-command
Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#pattern-command

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.