Agent Dev Thai Academyprinciples · patterns · architecture

praneet-front

Skill ให้ Claude เขียน Frontend ภาษาไทยไม่พัง ทั้ง Font Pairing และกฎ CSS ที่ห้ามแตะ

AI เขียน CSS ภาษาอังกฤษได้ดี แต่พอเป็นภาษาไทยมักพังแบบเงียบๆ line-height ต่ำจนวรรณยุกต์ชนบรรทัดบน ใส่ letter-spacing จนสระอำแตก ใช้ word-break: break-all จนตัดกลางพยางค์ หรือ Font Stack ไม่มี Fallback ภาษาไทย Skill นี้มีกฎ 7 ข้อที่มันจะไม่ทำผิด

มีแนวทาง (Direction) 10 แบบพร้อมคู่ Font ไทย+ละติน และ Catalog Font ไทย 16 ตระกูล แยกแบบมีหัวกับไม่มีหัว ใช้คู่กับ Skill frontend-design โดยให้ frontend-design คุมกระบวนการออกแบบ ส่วน praneet-front คุมตัวอักษรตรงไหนที่มีภาษาไทย Font เกือบทั้งหมดเป็นงานของ Cadson Demak

เริ่มใช้

  1. เพิ่ม Marketplace ใน Claude Code

    /plugin marketplace add agent-dev-thai/praneet-front
  2. ติดตั้ง Plugin

    /plugin install praneet-front
  3. หรือ Clone มาเอง แล้วชี้ Claude ไปที่ skills/praneet-front/SKILL.md

    git clone https://github.com/agent-dev-thai/praneet-front.git

ข้างในมีอะไร 4

  • skills/praneet-front/SKILL.md

    ตัว Skill มีกฎ 7 ข้อกับวิธีเลือกแนวทาง

  • assets/starter.css

    CSS ตั้งต้นที่วางใช้ได้เลย แยก Font ไทยกับละตินด้วย unicode-range

  • references/directions.md

    10 แนวทางพร้อมคู่ Font และ CSS ครบ เช่น SaaS, Editorial, Fintech, ราชการ

  • references/font-catalog.md

    รายชื่อ Font ไทยใน Google Fonts แยกมีหัว/ไม่มีหัว น้ำหนัก และอารมณ์

บทความที่พูดถึง 1