什麼是 api-error-handling?
用於 PHP REST API 的全面、標準化的錯誤回應系統,與 SweetAlert2 整合。在建立需要一致的錯誤格式、從資料庫異常中提取特定錯誤訊息、驗證錯誤處理和無縫前端整合的 REST API 時使用。包括 PDOException 解析、業務規則提取和完整的 SweetAlert2 錯誤顯示模式。 來源:peterbamuhigire/skills-web-dev。
用於 PHP REST API 的全面、標準化的錯誤回應系統,與 SweetAlert2 整合。在建立需要一致的錯誤格式、從資料庫異常中提取特定錯誤訊息、驗證錯誤處理和無縫前端整合的 REST API 時使用。包括 PDOException 解析、業務規則提取和完整的 SweetAlert2 錯誤顯示模式。
透過命令列快速安裝 api-error-handling AI 技能到你的開發環境
來源:peterbamuhigire/skills-web-dev。
Implement comprehensive, standardized error response system for PHP REST APIs with consistent JSON envelopes, specific error message extraction, and SweetAlert2 integration.
Security Baseline (Required): Always load and apply the Vibe Security Skill for PHP API work. Do not leak sensitive data in responses or logs.
Cross-Platform: APIs deploy to Windows (dev), Ubuntu (staging), Debian (production), all running MySQL 8.x. Use utf8mb4unicodeci collation. Match file/directory case exactly in require paths (Linux is case-sensitive). Use forward slashes in paths.
用於 PHP REST API 的全面、標準化的錯誤回應系統,與 SweetAlert2 整合。在建立需要一致的錯誤格式、從資料庫異常中提取特定錯誤訊息、驗證錯誤處理和無縫前端整合的 REST API 時使用。包括 PDOException 解析、業務規則提取和完整的 SweetAlert2 錯誤顯示模式。 來源:peterbamuhigire/skills-web-dev。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling用於 PHP REST API 的全面、標準化的錯誤回應系統,與 SweetAlert2 整合。在建立需要一致的錯誤格式、從資料庫異常中提取特定錯誤訊息、驗證錯誤處理和無縫前端整合的 REST API 時使用。包括 PDOException 解析、業務規則提取和完整的 SweetAlert2 錯誤顯示模式。 來源:peterbamuhigire/skills-web-dev。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/peterbamuhigire/skills-web-dev