/engineering:php-modern-standardsfrom engineering
Provides modern PHP 8+ development standards covering OOP patterns, PSR compliance, security, performance optimization, and Laravel services. Includes workflows for runtime upgrades and containerized PHP.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
references/world-class-php-oop-clean-architecture.md before designing controllers, services, repositories, or domain objects.docker-development.docs/source-registers/skills-engine-currentness-2026-09.json.references/php-runtime-upgrades.md.| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | PHP test plan | Markdown doc per skill-composition-standards/references/test-plan-template.md covering unit, integration, and contract tests | docs/php/test-plan-checkout.md |
| Operability | PHP-FPM operations note | Markdown doc covering opcache, request lifecycle, and OPcache reset procedure | docs/php/fpm-ops-note.md |
references/ directory for deep detail after reading the core workflow below.examples/ directory for concrete patterns when implementation shape matters.references/php-runtime-upgrades.md for a staged PHP 8.5 compatibility and release procedure.Production-grade PHP patterns for maintainable, testable, secure, high-performance applications.
Core Principle: Write type-safe, secure, performant PHP code following PSR standards with modern PHP 8+ features.
References:
references/performance-efficiency.md — generators, OPcache, profiling, Fibers deep dive
references/code-quality-tooling.md — PHPStan, Pint config, CI/CD patterns
references/rate-limiting.md — rate limiting patterns
references/message-queues.md — queue patterns
references/cache-invalidation.md — cache invalidation patterns
references/resilience-patterns.md — circuit breakers, retries
references/restful-api-patterns.md — cURL client, Attribute routing, JWT, API versioning, testing
references/database-orm-patterns.md — PDO, QueryBuilder, Active Record Model, soft delete, ORM concepts
references/attack-prevention.md — SQL injection, XSS, CSRF, CSP, brute force, least privilege
references/world-class-php-oop-clean-architecture.md — PHP 8 OOP, SOLID, clean architecture, repositories, adapters, and framework-independent domain rules
references/source-register-dev-engine.md — book sources (titles only) used for this development-engine upgrade
references/php-security.md - absorbed PHP-specific security hardening, sessions, validation, crypto, upload, and deployment guidance
references/php-vs-nextjs.md - absorbed PHP vs Next.js architecture decision guidance
references/javascript-php-integration.md - absorbed integration patterns for PHP-rendered pages and JavaScript modules
Examples: examples/modern-php-patterns.php, examples/laravel-patterns.php
Security: Load references/php-security.md for comprehensive security patterns.
Use for PHP 8+, OOP, security, testing, performance, and Laravel; do not use for legacy PHP below 7.4 or WordPress-specific work.
<?php
declare(strict_types=1);
namespace App\Domain\User;
use App\Domain\Shared\ValueObject;
final readonly class User
{
public function __construct(
private int $id,
private string $email,
) {
}
}
Rules: Always declare(strict_types=1), one class per file, namespace = directory, import all dependencies.
Code runs on Windows (dev), Ubuntu (staging), and Debian (production). Linux is case-sensitive:
StaffService.php)src/config/, src/lang/)src/HR/Services/)/ (forward slash). Never hardcode C:\. Use sys_get_temp_dir() for temp files.Extended guidance for php-modern-standards was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
When PHP work affects deployment, Docker, or production operations, pair this skill with docker-development and deployment-release-engineering, then apply the PHP delivery notes in ../../devops-cloud/deployment-release-engineering/references/devops-book-patterns.md:
.env and secrets outside version control;Use that deep dive for:
Type SystemModern FeaturesPerformanceSOLID PrinciplesControl FlowSecurity (Essentials)TestingLaravel ConventionsCode Quality ToolingPSR StandardsAnti-PatternsChecklist| Condition | Action |
|---|---|
| Boundary accepts external data | Validate into typed input before domain logic |
| Framework convention is secure and testable | Prefer it over a custom abstraction |
| Change affects persistence or queues | Define transaction, retry, and idempotency behaviour |
Fallback: without execution, provide exact Composer, static-analysis, and test commands. Do not assume framework support without dependency metadata.
Throwable without recovery policy.uniqid(), random_int(), COUNT(*)+1 or sprintf over the id. Fix: call the single allocator inside the save transaction and wrap the unit of work in its retry helper (tenant-document-numbering).| Artefact | Required? | Purpose |
|---|---|---|
| PHP version, framework, code, and repository standards | yes | Apply compatible typing, security, and tooling rules |
Read/search and local static checks are allowed. Dependency changes, migrations, deployment, and production execution require explicit task authority.
examples/laravel-patterns.php (opens in a new tab)examples/modern-php-patterns.php (opens in a new tab)references/attack-prevention.md (opens in a new tab)references/cache-invalidation.md (opens in a new tab)references/code-quality-tooling.md (opens in a new tab)references/database-orm-patterns.md (opens in a new tab)references/javascript-php-integration.md (opens in a new tab)references/message-queues.md (opens in a new tab)references/performance-efficiency.md (opens in a new tab)references/php-runtime-upgrades.md (opens in a new tab)references/php-security.md (opens in a new tab)references/php-security/references/db-layer-security.md (opens in a new tab)references/php-security/references/injection-attack-patterns.md (opens in a new tab)references/php-security/references/input-output-security.md (opens in a new tab)references/php-security/references/php-ini-security-checklist.md (opens in a new tab)references/php-security/references/security-code-patterns.md (opens in a new tab)references/php-security/references/session-hardening.md (opens in a new tab)references/php-security/references/xss-deep-dive.md (opens in a new tab)references/php-vs-nextjs.md (opens in a new tab)references/rate-limiting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions./ai-agent-commercial-operationsUse when pricing, billing, refunding, recognizing revenue, or packaging commercial terms for agentic AI services, or when defining agent SLAs, customer commitments, SLA dashboards, breach credits, and service evidence./ai-agent-compliance-controlsUse when mapping AI agent operations to SOC 2, ISO 27001, HIPAA, audit logs, control testing, attestations, and compliance evidence, including drill-cadence evidence, approval-completeness (PI1.1) gap checks, and signed agent-memory erasure proofs./ai-agent-governance-and-limitsUse when defining agent budgets, step limits, reversibility, blast-radius controls, kill switches, and governance policy for agentic AI systems.Other plugins' skills for the same job