[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72ZBVBQ3X3X8JA3DTX4C7X9":3,"skill-same:01M72ZBVBQ3X3X8JA3DTX4C7X9":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M72ZBVBQ3X3X8JA3DTX4C7X9","php-pro",null,"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\u002FPest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST\u002FGraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.","enigmaicon-eng\u002FAI-Enterprise-OS","enigmaicon-eng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269773191?v=4","01M72YXXYN7Q7BYRHV8RAVYNWD","01M72YXXZPW35H56D6F1XSK84D",2,"MIT","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: php-pro\ndescription: 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\u002FPest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST\u002FGraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: language\n  triggers: PHP, Laravel, Symfony, Composer, PHPStan, PSR, PHP API, Eloquent, Doctrine\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fullstack-guardian, fastapi-expert\n---\n\n# PHP Pro\n\nSenior PHP developer with deep expertise in PHP 8.3+, Laravel, Symfony, and modern PHP patterns with strict typing and enterprise architecture.\n\n## Core Workflow\n\n1. **Analyze architecture** — Review framework, PHP version, dependencies, and patterns\n2. **Design models** — Create typed domain models, value objects, DTOs\n3. **Implement** — Write strict-typed code with PSR compliance, DI, repositories\n4. **Secure** — Add validation, authentication, XSS\u002FSQL injection protection\n5. **Verify** — Run `vendor\u002Fbin\u002Fphpstan analyse --level=9`; fix all errors before proceeding. Run `vendor\u002Fbin\u002Fphpunit` or `vendor\u002Fbin\u002Fpest`; enforce 80%+ coverage. Only deliver when both pass clean.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Modern PHP | `references\u002Fmodern-php-features.md` | Readonly, enums, attributes, fibers, types |\n| Laravel | `references\u002Flaravel-patterns.md` | Services, repositories, resources, jobs |\n| Symfony | `references\u002Fsymfony-patterns.md` | DI, events, commands, voters |\n| Async PHP | `references\u002Fasync-patterns.md` | Swoole, ReactPHP, fibers, streams |\n| Testing | `references\u002Ftesting-quality.md` | PHPUnit, PHPStan, Pest, mocking |\n\n## Constraints\n\n### MUST DO\n- Declare strict types (`declare(strict_types=1)`)\n- Use type hints for all properties, parameters, returns\n- Follow PSR-12 coding standard\n- Run PHPStan level 9 before delivery\n- Use readonly properties where applicable\n- Write PHPDoc blocks for complex logic\n- Validate all user input with typed requests\n- Use dependency injection over global state\n\n### MUST NOT DO\n- Skip type declarations (no mixed types)\n- Store passwords in plain text (use bcrypt\u002Fargon2)\n- Write SQL queries vulnerable to injection\n- Mix business logic with controllers\n- Hardcode configuration (use .env)\n- Deploy without running tests and static analysis\n- Use var_dump in production code\n\n## Code Patterns\n\nEvery complete implementation delivers: a typed entity\u002FDTO, a service class, and a test. Use these as the baseline structure.\n\n### Readonly DTO \u002F Value Object\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\DTO;\n\nfinal readonly class CreateUserDTO\n{\n    public function __construct(\n        public string $name,\n        public string $email,\n        public string $password,\n    ) {}\n\n    public static function fromArray(array $data): self\n    {\n        return new self(\n            name: $data['name'],\n            email: $data['email'],\n            password: $data['password'],\n        );\n    }\n}\n```\n\n### Typed Service with Constructor DI\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Services;\n\nuse App\\DTO\\CreateUserDTO;\nuse App\\Models\\User;\nuse App\\Repositories\\UserRepositoryInterface;\nuse Illuminate\\Support\\Facades\\Hash;\n\nfinal class UserService\n{\n    public function __construct(\n        private readonly UserRepositoryInterface $users,\n    ) {}\n\n    public function create(CreateUserDTO $dto): User\n    {\n        return $this->users->create([\n            'name'     => $dto->name,\n            'email'    => $dto->email,\n            'password' => Hash::make($dto->password),\n        ]);\n    }\n}\n```\n\n### PHPUnit Test Structure\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Unit\\Services;\n\nuse App\\DTO\\CreateUserDTO;\nuse App\\Models\\User;\nuse App\\Repositories\\UserRepositoryInterface;\nuse App\\Services\\UserService;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\n\nfinal class UserServiceTest extends TestCase\n{\n    private UserRepositoryInterface&MockObject $users;\n    private UserService $service;\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n        $this->users   = $this->createMock(UserRepositoryInterface::class);\n        $this->service = new UserService($this->users);\n    }\n\n    public function testCreateHashesPassword(): void\n    {\n        $dto  = new CreateUserDTO('Alice', 'alice@example.com', 'secret');\n        $user = new User(['name' => 'Alice', 'email' => 'alice@example.com']);\n\n        $this->users\n            ->expects($this->once())\n            ->method('create')\n            ->willReturn($user);\n\n        $result = $this->service->create($dto);\n\n        $this->assertSame('Alice', $result->name);\n    }\n}\n```\n\n### Enum (PHP 8.1+)\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Enums;\n\nenum UserStatus: string\n{\n    case Active   = 'active';\n    case Inactive = 'inactive';\n    case Banned   = 'banned';\n\n    public function label(): string\n    {\n        return match($this) {\n            self::Active   => 'Active',\n            self::Inactive => 'Inactive',\n            self::Banned   => 'Banned',\n        };\n    }\n}\n```\n\n## Output Templates\n\nWhen implementing a feature, deliver in this order:\n1. Domain models (entities, value objects, enums)\n2. Service\u002Frepository classes\n3. Controller\u002FAPI endpoints\n4. Test files (PHPUnit\u002FPest)\n5. Brief explanation of architecture decisions\n\n## Knowledge Reference\n\nPHP 8.3+, Laravel 11, Symfony 7, Composer, PHPStan, Psalm, PHPUnit, Pest, Eloquent ORM, Doctrine, PSR standards, Swoole, ReactPHP, Redis, MySQL\u002FPostgreSQL, REST\u002FGraphQL APIs\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fphp-pro\u002F)\n","# PHP Pro\n\nSenior PHP developer with deep expertise in PHP 8.3+, Laravel, Symfony, and modern PHP patterns with strict typing and enterprise architecture.\n\n## Core Workflow\n\n1. **Analyze architecture** — Review framework, PHP version, dependencies, and patterns\n2. **Design models** — Create typed domain models, value objects, DTOs\n3. **Implement** — Write strict-typed code with PSR compliance, DI, repositories\n4. **Secure** — Add validation, authentication, XSS\u002FSQL injection protection\n5. **Verify** — Run `vendor\u002Fbin\u002Fphpstan analyse --level=9`; fix all errors before proceeding. Run `vendor\u002Fbin\u002Fphpunit` or `vendor\u002Fbin\u002Fpest`; enforce 80%+ coverage. Only deliver when both pass clean.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Modern PHP | `references\u002Fmodern-php-features.md` | Readonly, enums, attributes, fibers, types |\n| Laravel | `references\u002Flaravel-patterns.md` | Services, repositories, resources, jobs |\n| Symfony | `references\u002Fsymfony-patterns.md` | DI, events, commands, voters |\n| Async PHP | `references\u002Fasync-patterns.md` | Swoole, ReactPHP, fibers, streams |\n| Testing | `references\u002Ftesting-quality.md` | PHPUnit, PHPStan, Pest, mocking |\n\n## Constraints\n\n### MUST DO\n- Declare strict types (`declare(strict_types=1)`)\n- Use type hints for all properties, parameters, returns\n- Follow PSR-12 coding standard\n- Run PHPStan level 9 before delivery\n- Use readonly properties where applicable\n- Write PHPDoc blocks for complex logic\n- Validate all user input with typed requests\n- Use dependency injection over global state\n\n### MUST NOT DO\n- Skip type declarations (no mixed types)\n- Store passwords in plain text (use bcrypt\u002Fargon2)\n- Write SQL queries vulnerable to injection\n- Mix business logic with controllers\n- Hardcode configuration (use .env)\n- Deploy without running tests and static analysis\n- Use var_dump in production code\n\n## Code Patterns\n\nEvery complete implementation delivers: a typed entity\u002FDTO, a service class, and a test. Use these as the baseline structure.\n\n### Readonly DTO \u002F Value Object\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\DTO;\n\nfinal readonly class CreateUserDTO\n{\n    public function __construct(\n        public string $name,\n        public string $email,\n        public string $password,\n    ) {}\n\n    public static function fromArray(array $data): self\n    {\n        return new self(\n            name: $data['name'],\n            email: $data['email'],\n            password: $data['password'],\n        );\n    }\n}\n```\n\n### Typed Service with Constructor DI\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Services;\n\nuse App\\DTO\\CreateUserDTO;\nuse App\\Models\\User;\nuse App\\Repositories\\UserRepositoryInterface;\nuse Illuminate\\Support\\Facades\\Hash;\n\nfinal class UserService\n{\n    public function __construct(\n        private readonly UserRepositoryInterface $users,\n    ) {}\n\n    public function create(CreateUserDTO $dto): User\n    {\n        return $this->users->create([\n            'name'     => $dto->name,\n            'email'    => $dto->email,\n            'password' => Hash::make($dto->password),\n        ]);\n    }\n}\n```\n\n### PHPUnit Test Structure\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Unit\\Services;\n\nuse App\\DTO\\CreateUserDTO;\nuse App\\Models\\User;\nuse App\\Repositories\\UserRepositoryInterface;\nuse App\\Services\\UserService;\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\n\nfinal class UserServiceTest extends TestCase\n{\n    private UserRepositoryInterface&MockObject $users;\n    private UserService $service;\n\n    protected function setUp(): void\n    {\n        parent::setUp();\n        $this->users   = $this->createMock(UserRepositoryInterface::class);\n        $this->service = new UserService($this->users);\n    }\n\n    public function testCreateHashesPassword(): void\n    {\n        $dto  = new CreateUserDTO('Alice', 'alice@example.com', 'secret');\n        $user = new User(['name' => 'Alice', 'email' => 'alice@example.com']);\n\n        $this->users\n            ->expects($this->once())\n            ->method('create')\n            ->willReturn($user);\n\n        $result = $this->service->create($dto);\n\n        $this->assertSame('Alice', $result->name);\n    }\n}\n```\n\n### Enum (PHP 8.1+)\n\n```php\n\u003C?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Enums;\n\nenum UserStatus: string\n{\n    case Active   = 'active';\n    case Inactive = 'inactive';\n    case Banned   = 'banned';\n\n    public function label(): string\n    {\n        return match($this) {\n            self::Active   => 'Active',\n            self::Inactive => 'Inactive',\n            self::Banned   => 'Banned',\n        };\n    }\n}\n```\n\n## Output Templates\n\nWhen implementing a feature, deliver in this order:\n1. Domain models (entities, value objects, enums)\n2. Service\u002Frepository classes\n3. Controller\u002FAPI endpoints\n4. Test files (PHPUnit\u002FPest)\n5. Brief explanation of architecture decisions\n\n## Knowledge Reference\n\nPHP 8.3+, Laravel 11, Symfony 7, Composer, PHPStan, Psalm, PHPUnit, Pest, Eloquent ORM, Doctrine, PSR standards, Swoole, ReactPHP, Redis, MySQL\u002FPostgreSQL, REST\u002FGraphQL APIs\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Fphp-pro\u002F)\n",{"name":5,"license":14,"metadata":23,"description":7},{"role":24,"scope":25,"author":26,"domain":27,"version":28,"triggers":29,"output-format":30,"related-skills":31},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","language","1.1.0","PHP, Laravel, Symfony, Composer, PHPStan, PSR, PHP API, Eloquent, Doctrine","code","fullstack-guardian, fastapi-expert","main","a4b48842f3e48549adf3dc335a8837c66da99497","examples\u002Fclaude-skills\u002Fskills\u002Fphp-pro",0,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng","2026-05-17 16:00:01",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill php-pro",{"tool":45,"command":46},"bunx","bunx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill php-pro",{"tool":48,"command":49},"pnpm","pnpm dlx skills add enigmaicon-eng\u002FAI-Enterprise-OS --skill php-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002FSKILL.md",true,[53,59,63,67,71],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fasync-patterns.md","REFERENCE","参考文档",9047,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002Freferences\u002Fasync-patterns.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Flaravel-patterns.md",8919,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002Freferences\u002Flaravel-patterns.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fmodern-php-features.md",6403,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002Freferences\u002Fmodern-php-features.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fsymfony-patterns.md",11358,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002Freferences\u002Fsymfony-patterns.md",{"path":72,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ftesting-quality.md",11466,"https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fclaude-skills\u002Fskills\u002Fphp-pro\u002Freferences\u002Ftesting-quality.md",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M72ZGWW03JSE1T3TKK5NZ11Y","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M72ZGT3FJT7QRM1VNQRKR0XD","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M72ZGQ69DCF0SBP9JXFPWKJS","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M72ZGNF126QT0MQ2D3DNGZRN","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M72ZGHVJ9S0YXMNBHQGQ95BY","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":18},"01M72ZGFNZCHFY2FS3ZD9MCYV9","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fenigmaicon-eng\u002FAI-Enterprise-OS\u002Fblob\u002Fmain\u002Fexamples\u002Fsuperpowers\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]