.agent/skills/debugging/SKILL.md
วิเคราะห์และแก้ไขบั๊กอย่างเป็นระบบ
npx skillsauth add saknarinz/agent_skills_gemini DebuggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill สำหรับวิเคราะห์ปัญหา หาสาเหตุ และแก้ไขบั๊กอย่างมีประสิทธิภาพ
| Error | สาเหตุที่พบบ่อย | | ----------------------------------- | ---------------------------------------- | | "Cannot read property of undefined" | ไม่ได้เช็ค null/undefined ก่อนใช้ | | "Too many re-renders" | State update ใน render loop | | "Invalid hook call" | Hook เรียกนอก component หรือ conditional | | "Key prop missing" | ไม่ใส่ key ใน list items |
| Error | สาเหตุที่พบบ่อย | | ---------------------------------------- | ------------------------------ | | "ExpressionChangedAfterItHasBeenChecked" | State change ใน lifecycle hook | | "NullInjectorError" | ไม่ได้ provide service | | "Template parse errors" | Syntax ผิดใน template |
| Error | สาเหตุที่พบบ่อย | | --------------------------------------- | ------------------------------- | | "Property X was accessed during render" | Reactive property ไม่ถูก define | | "Maximum recursive updates exceeded" | Watcher loop |
| Error | สาเหตุที่พบบ่อย | | --------------------------------- | ----------------------------- | | "No qualifying bean" | Bean ไม่ถูก inject | | "LazyInitializationException" | Entity access นอก transaction | | "ConstraintViolationException" | Database constraint violation | | "HttpMessageNotReadableException" | JSON parse error |
| Error | สาเหตุที่พบบ่อย | | --------------- | ------------------------- | | "ECONNREFUSED" | Service/Database ไม่พร้อม | | "CORS error" | CORS ไม่ถูกตั้งค่า | | "JWT malformed" | Token format ผิด |
| Error | สาเหตุที่พบบ่อย | | ----------------- | ------------------------------- | | "IntegrityError" | Duplicate key หรือ FK violation | | "ValidationError" | Pydantic validation fail | | "ImportError" | Module ไม่ถูก install |
| Error | สาเหตุที่พบบ่อย | | ----------------------- | ------------------------------------ | | "Connection refused" | Database ไม่ running หรือ config ผิด | | "Duplicate key" | Primary key หรือ unique constraint | | "Foreign key violation" | Reference ไปยัง row ที่ไม่มี | | "Deadlock" | Transaction conflict |
testing
เขียน Tests ทุกประเภทอย่างมีประสิทธิภาพ
development
ปรับปรุงโค้ดให้ดีขึ้นโดยไม่เปลี่ยน behavior
tools
สร้างโปรเจคใหม่ทุก Tech Stack พร้อม setup ที่สมบูรณ์
development
พัฒนา Frontend ด้วย Angular, React, Vue, Next.js อย่างมืออาชีพ