improve-codebase-architecture

Installation
SKILL.md

Improve Codebase Architecture

ขุดหาจุดฝืดเชิงสถาปัตยกรรม แล้วเสนอ โอกาส deepening — refactor ที่เปลี่ยน module ตื้น ๆ ให้กลายเป็น deep module เป้าหมายคือให้ test ได้ง่ายและให้ AI นำทางใน codebase ได้สะดวก

คำสั่งนี้_อิง_ domain model ของโปรเจกต์ และสร้างบนคลังคำศัพท์ด้าน design ที่ใช้ร่วมกัน:

  • รัน skill /codebase-design เพื่อโหลดคำศัพท์ด้านสถาปัตยกรรม (module, interface, depth, seam, adapter, leverage, locality) และหลักการของมัน (deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real") ใช้คำเหล่านี้ให้ตรงเป๊ะในทุกข้อเสนอ — อย่าเผลอไปใช้คำอย่าง "component," "service," "API," หรือ "boundary"
  • ภาษา domain ใน CONTEXT.md ช่วยตั้งชื่อให้ seam ที่ดี ส่วน ADR ใน docs/adr/ บันทึกการตัดสินใจที่คำสั่งนี้ไม่ควรหยิบมาถกใหม่

ขั้นตอนการทำงาน

1. Explore

อ่าน domain glossary ของโปรเจกต์ (CONTEXT.md) และ ADR ในบริเวณที่กำลังจะแตะก่อน

จากนั้นใช้ Agent tool แบบ subagent_type=Explore เดินสำรวจ codebase อย่ายึด heuristic ตายตัว — สำรวจแบบเป็นธรรมชาติ แล้วจดจุดที่รู้สึกฝืด:

Installs
25
GitHub Stars
4
First Seen
Jul 11, 2026
improve-codebase-architecture — boom-vitt/skills-thai