php:make-contracts

Generate PHP interfaces for Elegant Objects and DDD architectures.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill php-make-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php:make-contracts
Source: https://github.com/atournayre/claude-personas/tree/main/php/skills/make-contracts
Command: npx skills add https://github.com/atournayre/claude-personas --skill php-make-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of essential interfaces for PHP projects adhering to Elegant Objects and Domain-Driven Design principles, establishing a robust foundation for further development.

Core Features & Use Cases

  • Interface Generation: Creates standard interfaces for DTOs, exceptions, entities with URLs, and Doctrine migrations.
  • Foundation Building: Provides the necessary contract definitions that other skills in the PHP plugin will rely upon.
  • Use Case: Kickstart a new PHP project by generating all fundamental contract interfaces, ensuring consistency and adherence to best practices from the outset.

Quick Start

Use the php:make-contracts skill to generate all necessary contract interfaces.

Frequently Asked Questions about php:make-contracts

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

FAQPage Schema
How do I generate PHP interfaces for Elegant Objects and DDD architectures?

You can generate PHP interfaces for Elegant Objects and DDD architectures by using a self-contained code generation utility. It creates standard contracts for DTOs, exceptions, entities, and migrations, providing a foundational codebase for new or refactored PHP projects.

What PHP contracts do I need for Domain-Driven Design entities and DTOs?

For Domain-Driven Design, you need standard contract interfaces defining DTOs, exceptions, entities with URLs, and Doctrine migrations. Generating these interfaces establishes a robust foundation and ensures adherence to Elegant Objects principles from the outset.

Do I need external dependencies to generate Elegant Objects contracts in PHP?

No, you do not need external dependencies to generate Elegant Objects contracts in PHP. The generation utility is entirely self-contained, requiring no additional packages or setups to create the necessary interface definitions for your project.

What is the best way to kickstart a new PHP project adhering to Elegant Objects principles?

The best way to kickstart a new PHP project adhering to Elegant Objects principles is to automate the creation of essential interfaces. Generating fundamental contract definitions for DTOs and entities ensures consistency and adherence to best practices from the start.

Can I use generated PHP contracts to refactor an existing codebase to Domain-Driven Design?

Yes, you can use generated PHP contracts to refactor an existing codebase to Domain-Driven Design. The generation utility applies foundational code generation to existing projects, helping them adopt Elegant Objects and DDD design patterns effectively.