code-generation-standards

Generate standardized PHP code with strict typing, SOLID principles, and framework-first patterns.

1|Updated Mar 2, 2024
One-click install
npx skills add https://github.com/Aiweline/WelineFramework --skill code-generation-standards
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-generation-standards
Source: https://github.com/Aiweline/WelineFramework/tree/main/dev/ai/skills/code-generation-standards
Command: npx skills add https://github.com/Aiweline/WelineFramework --skill code-generation-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code generation standards to ensure PHP projects follow strict typing, framework-first patterns, and SOLID design, preventing ad-hoc implementations and encouraging consistent frontend references to theme-development.

Core Features & Use Cases

  • Enforces strict_types declarations and proper ObjectManager usage
  • Standardizes i18n integration and text handling for multilingual support
  • Prevents inventing framework methods and promotes a clean, testable service layer
  • Guides generation of controllers, models, services, and blocks with consistent architecture
  • Requires frontend alignment with theme-development to ensure cohesive UX

Quick Start

Generate a new PHP class using the standard templates, ensuring strict_types=1, proper ObjectManager usage, and i18n integration, while adhering to framework-first, SOLID principles and frontend reference to theme-development.

Frequently Asked Questions about code-generation-standards

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

FAQPage Schema
How do I enforce strict typing and SOLID principles in PHP code generation?▼

PHP code generation standards enforce strict typing, SOLID principles, and framework-first patterns by mandating strict_types declarations, proper ObjectManager usage, and a clean, testable service layer to prevent ad-hoc implementations.

What's the best way to standardize i18n text handling in PHP module development?▼

Standardize i18n text handling in PHP module development by applying code generation standards that integrate multilingual support directly into controllers, services, and frontend components, ensuring cohesive UX through theme-development alignment.

Does this PHP code generation standard work with existing framework-first patterns?▼

Yes, this PHP code generation standard works with framework-first patterns by strictly enforcing existing framework methods and preventing the invention of custom ones, ensuring controllers, models, and blocks maintain consistent architecture.

Why should I avoid custom framework methods when generating PHP controllers and services?▼

Avoid custom framework methods when generating PHP controllers and services to maintain a SOLID-oriented architecture, ensure code testability, and keep generated components aligned with established framework-first patterns and theme-development conventions.

How do I generate a PHP class with proper ObjectManager usage and SOLID architecture?▼

Generate a PHP class with proper ObjectManager usage and SOLID architecture by applying standardized templates that require strict_types=1, framework-first instantiation, i18n integration, and a clean service layer for testable code.