framework:make:invalide

Generate final Invalide classes with static factories for PHP entity exceptions.

9|2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-invalide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framework:make:invalide
Source: https://github.com/atournayre/claude-marketplace/tree/main/framework/skills/make-invalide
Command: npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-invalide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious manual creation of business exception classes, saving developers hours of boilerplate coding while ensuring consistent, professional error handling across your application.

Core Features & Use Cases

  • Automated Class Generation: Instantly creates final Invalide classes with proper encapsulation and factory patterns.
  • Standardized Exception Handling: Enforces consistent naming conventions and error message formats across your team.
  • Use Case: Imagine you're building an e-commerce system. Use this Skill to automatically generate ProductInvalide with methods like carStockInsuffisant() and carPrixNegatif(), ensuring all validation errors follow the same professional structure.

Quick Start

Use skill framework:make:invalide to generate a business exception class for your Product entity.

Frequently Asked Questions about framework:make:invalide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate business exception classes for PHP entities?

This Skill generates final Invalide classes that encapsulate entity-specific business exceptions for PHP projects using Elegant Objects. It scaffolds validation and domain-exception factories with standardized naming and message formatting, eliminating manual boilerplate for each entity.

What does an Invalide class include when generated?

The generated Invalide class includes a final declaration, private constructor, static new() factory, a private entity property, static car-prefixed exception factory methods (like carStockInsuffisant), and contextual error messages without trailing periods.

Can I use this Skill to automate exception handling across multiple entities?

Yes. Run the Skill for each entity in src/Entity/{EntityName}.php to automatically generate corresponding Invalide classes. This ensures consistent exception handling patterns and naming conventions across your entire application.

What's the quickest way to implement standardized validation exceptions in my PHP project?

Use this Skill to target your existing entity file and generate a complete Invalide class with all required factory methods in seconds, eliminating hours of manual exception class coding and ensuring professional, consistent error handling.

Does this work with Elegant Objects patterns in PHP?

Yes. This Skill is designed specifically for PHP projects using Elegant Objects principles. It implements immutability, encapsulation, and factory patterns that align with Elegant Objects conventions.