State Comparison Patterns
CommunityDRY state checks with model helpers.
Authorhackur
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Reduces verbose state comparisons with model helper methods.
Core Features & Use Cases
- Clean helper methods for both Submissions and Cards
- Query scopes to filter by single or multiple states
- Readable, maintainable state checks in business logic
Quick Start
Replace verbose patterns like (new ($card->card_state)($card))->equals(CardState::QUALITY_CHECK) with $card->isCardQualityCheck().
Dependency Matrix
Required Modules
None requiredComponents
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: State Comparison Patterns Download link: https://github.com/hackur/web-standards-playground-showcase/archive/main.zip#state-comparison-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.