LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

acc-create-state - PHP 8 State Pattern Generator

Generates State pattern infrastructure with context, state interface, concrete states, and unit tests.

Tags

Updated: 2026-03-23

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • generate state interface
  • generate abstract state
  • generate concrete states
  • generate state factory
  • generate state exceptions
  • update entity with state pattern
  • generate unit tests

Inputs

  • bounded context name
  • state definitions
  • state transition actions
  • valid transitions per state

Outputs

  • state interface file
  • abstract state file
  • concrete state files
  • state factory file
  • state exception file
  • entity file
  • unit test files

Requirements

  • PHP 8
  • PHP readonly classes support

Source

  • Spec: SKILL.md
PHP
State Pattern
Code Generation
Domain-Driven Design
Unit Testing
generate state interface
generate abstract state
generate concrete states
generate state factory
bounded context name
state definitions
state transition actions
state interface file
abstract state file
concrete state files