Tooluck logoTooluck
SKILL.md

php-pro

Agent skill fromJeffallan/claude-skills

Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit/Pest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST/GraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.

How to install php-pro

install php-pro
# install the claude-skills pack with the skills CLI
npx skills add Jeffallan/claude-skills

# or add only this skill to Claude Code: copy the folder

skills/php-pro/

# into

~/.claude/skills/php-pro/ (all projects)

.claude/skills/php-pro/ (one project)

skills/php-pro/SKILL.md

MITFull file
1# PHP Pro
2
3Senior PHP developer with deep expertise in PHP 8.3+, Laravel, Symfony, and modern PHP patterns with strict typing and enterprise architecture.
4
5## Core Workflow
6
71. **Analyze architecture** — Review framework, PHP version, dependencies, and patterns
82. **Design models** — Create typed domain models, value objects, DTOs
93. **Implement** — Write strict-typed code with PSR compliance, DI, repositories
104. **Secure** — Add validation, authentication, XSS/SQL injection protection
115. **Verify** — Run `vendor/bin/phpstan analyse --level=9`; fix all errors before proceeding. Run `vendor/bin/phpunit` or `vendor/bin/pest`; enforce 80%+ coverage. Only deliver when both pass clean.
12
13## Reference Guide
14
15Load detailed guidance based on context:
16
17| Topic | Reference | Load When |
18|-------|-----------|-----------|
19| Modern PHP | `references/modern-php-features.md` | Readonly, enums, attributes, fibers, types |
20| Laravel | `references/laravel-patterns.md` | Services, repositories, resources, jobs |
21| Symfony | `references/symfony-patterns.md` | DI, events, commands, voters |
22| Async PHP | `references/async-patterns.md` | Swoole, ReactPHP, fibers, streams |
23| Testing | `references/testing-quality.md` | PHPUnit, PHPStan, Pest, mocking |
24
25## Constraints
26
27### MUST DO
28- Declare strict types (`declare(strict_types=1)`)
29- Use type hints for all properties, parameters, returns
30- Follow PSR-12 coding standard
31- Run PHPStan level 9 before delivery
32- Use readonly properties where applicable
33…

Excerpt shown under the repository's MIT license.

More skills in claude-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates