[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EBPKWEBW2VXXBBMM3F0ZPW":3,"skill-same:01M6EBPKWEBW2VXXBBMM3F0ZPW":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6EBPKWEBW2VXXBBMM3F0ZPW","php-error-handling",null,"Modern PHP error and exception handling standards. Use when implementing exception hierarchies, error handlers, or custom exceptions in PHP. (triggers: **\u002F*.php, try, catch, finally, Throwable, set_exception_handler)","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-error-handling\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"error handling","php","error","php error handling","SET","use","standards","triggers","2026-11-10 10:12:30",false,"---\nname: php-error-handling\ndescription: 'Modern PHP error and exception handling standards. Use when implementing exception hierarchies, error handlers, or custom exceptions in PHP. (triggers: **\u002F*.php, try, catch, finally, Throwable, set_exception_handler)'\n---\n\n# PHP Error Handling\n\n## **Priority: P0 (CRITICAL)**\n\n## Structure\n\n```text\nsrc\u002F\n└── Exceptions\u002F\n    ├── {Domain}Exception.php\n    └── Handler.php\n```\n\n## Implementation Guidelines\n\n- **Exception-Driven**: Favor **`throwing exceptions`** over returning `false` or `null` for error states.\n- **Throwable Interface**: Always catch **`Throwable`** for both PHP 7\u002F8 Errors and Exceptions.\n- **Custom Exceptions**: Extend **`RuntimeException`** or **`LogicException`** for domain-specific errors.\n- **Multi-Catch**: Use Union types in catch blocks: **`catch (DomainException | InvalidArgumentException $e)`**.\n- **Global Handler**: Use **`set_exception_handler`** and **`set_error_handler`** for top-level logging and cleanup.\n- **Finally**: Always use **`finally`** for resource cleanup (e.g., closing file handles, DB connections).\n- **PSR-3 Logging**: Implement **`Psr\\Log\\LoggerInterface`** for structured error reporting.\n- **Production Guard**: Ensure **`display_errors=Off`** and **`log_errors=On`** in production `php.ini`.\n\n## Anti-Patterns\n\n- **No `@` error suppression**: Handle or log errors explicitly.\n- **No empty catch blocks**: Log or rethrow all caught exceptions.\n- **No exceptions for control flow**: Reserve for unexpected errors only.\n- **No `display_errors` in production**: Log to file; never show users.\n\n## References\n\n- [Exception & Logging Patterns](references\u002Fimplementation.md)\n\n","# PHP Error Handling\n\n## **Priority: P0 (CRITICAL)**\n\n## Structure\n\n```text\nsrc\u002F\n└── Exceptions\u002F\n    ├── {Domain}Exception.php\n    └── Handler.php\n```\n\n## Implementation Guidelines\n\n- **Exception-Driven**: Favor **`throwing exceptions`** over returning `false` or `null` for error states.\n- **Throwable Interface**: Always catch **`Throwable`** for both PHP 7\u002F8 Errors and Exceptions.\n- **Custom Exceptions**: Extend **`RuntimeException`** or **`LogicException`** for domain-specific errors.\n- **Multi-Catch**: Use Union types in catch blocks: **`catch (DomainException | InvalidArgumentException $e)`**.\n- **Global Handler**: Use **`set_exception_handler`** and **`set_error_handler`** for top-level logging and cleanup.\n- **Finally**: Always use **`finally`** for resource cleanup (e.g., closing file handles, DB connections).\n- **PSR-3 Logging**: Implement **`Psr\\Log\\LoggerInterface`** for structured error reporting.\n- **Production Guard**: Ensure **`display_errors=Off`** and **`log_errors=On`** in production `php.ini`.\n\n## Anti-Patterns\n\n- **No `@` error suppression**: Handle or log errors explicitly.\n- **No empty catch blocks**: Log or rethrow all caught exceptions.\n- **No exceptions for control flow**: Reserve for unexpected errors only.\n- **No `display_errors` in production**: Log to file; never show users.\n\n## References\n\n- [Exception & Logging Patterns](references\u002Fimplementation.md)\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-error-handling",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill php-error-handling",{"tool":47,"command":48},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill php-error-handling",{"tool":50,"command":51},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill php-error-handling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-error-handling\u002FSKILL.md",true,[],[56,65,74,83,89,95],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":27},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[62,63,64],"model","model hierarchy","model hierarchy skill",{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":27},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[71,72,73],"MCP","zoom","zoom mcp",{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":27},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[80,81,82,72],"sdk","zoom apps sdk","apps",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":27},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[85],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":27},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[91],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":27},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[97]]