commit-message
Skill0 starsChanged 4 months agoMITView on GitHub
เขียน commit message คุณภาพดีจาก file diff โดยใช้รูปแบบ Conventional Commits และใช้ภาษาไทยเป็นหลัก ยกเว้นคำศัพท์เฉพาะหรือคำที่ไม่ควรแปลให้ทับศัพท์ เช่น git diff, staged changes, scope, breaking change. ใช้เมื่อผู้ใช้ขอ commit message, commit title, commit body, Conventional Commit หรือต้องการให้ Codex อ่าน git diff/staged changes แล้วสรุปเป็น commit.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- parkbarg/claude-skillstheir own version, first seen Oct 3, 2026
- microsoft/nvxtheir own version, first seen Oct 3, 2026
- sheshbabu/zentheir own version, first seen Oct 2, 2026
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- laodao-ai/laodao-skillstheir own version, first seen Sep 26, 2026
- Manshooo/astral-genesistheir own version, first seen Sep 25, 2026
Used with
Projects with it also use error-handling, changelog and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 3 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 6 projects that use this
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 3 projects that use this
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- mergisi/awesome-openclaw-agents★ 4ksame name
- github/copilot-cli-for-beginners★ 2.8ksame name
- sheshbabu/zen★ 1.2ksame name
- microsoft/nvx★ 296same name
- danielvm-git/bigpowers★ 252same name
- Aedelon/claude-code-blueprint★ 120same name
- c-kick/hnl-agent-skills★ 51same name
- iamwjun/localcoder★ 39same name
- whyashthakker/agent-skills-marketing★ 19same name
- jiatastic/open-python-skills★ 9same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- audit-product-experienceSkill
- git-deliver-workSkill
- git-flow-releaseSkill
- management-talkSkill
- post-mortemSkill
- repo-next-taskSkill
- scrutinizeSkill
The file
Files
Commit Message
หลักการใช้ภาษา
- ใช้ภาษาไทยเป็นหลักในการอธิบาย เหตุผล ตัวเลือก และคำแนะนำ
- คงคำศัพท์เฉพาะเป็นภาษาอังกฤษหรือทับศัพท์เมื่อแปลแล้วเสียความหมาย เช่น
git diff,staged,unstaged,commit,scope,type,subject,body,footer,Conventional Commits,BREAKING CHANGE - โดย default ให้เขียน commit message เป็นภาษาไทย แต่ยังคง
type(scope):เป็นภาษาอังกฤษตามรูปแบบ Conventional Commits - คงคำศัพท์เฉพาะหรือคำที่แปลแล้วแปลกเป็นภาษาอังกฤษ/ทับศัพท์ใน subject และ body เช่น
WebAuthn,passkey,TanStack Query,PostgreSQL,rate limiter - ถ้าผู้ใช้ขอ commit message ภาษาอังกฤษ ให้เขียน subject/body เป็นภาษาอังกฤษได้
Workflow
- อ่าน diff ก่อนเขียน commit message
- ใช้
git diff --stagedเป็นหลักเมื่อผู้ใช้กำลังเตรียม commit - ใช้
git diffเมื่อไม่มี staged changes หรือผู้ใช้ถามถึง working tree - ถ้าทั้ง staged และ unstaged changes มีผลต่อคำตอบ ให้อ่านทั้งคู่แล้วบอกให้ชัดว่า message ครอบคลุมส่วนไหน
- ใช้
- หา intent หลักของการเปลี่ยนแปลง ไม่ต้องไล่สรุปทุกไฟล์
- เลือก Conventional Commit type:
feat: เพิ่ม feature หรือความสามารถที่ผู้ใช้เห็นได้fix: แก้ bug หรือพฤติกรรมที่ผิดdocs: เปลี่ยนเฉพาะ documentationstyle: เปลี่ยน formatting เท่านั้น ไม่กระทบ behaviorrefactor: เปลี่ยนโครงสร้าง code โดยไม่เพิ่ม feature และไม่แก้ bugperf: ปรับ performancetest: เพิ่มหรือแก้ tests/test infrastructurebuild: build system, dependencies, packagingci: CI configuration หรือ automationchore: งาน maintenance ที่ไม่เข้ากลุ่มอื่นrevert: revert commit ก่อนหน้า
- ใส่ scope เฉพาะเมื่อเห็นชัดและช่วยให้ message อ่านง่าย โดยใช้ lowercase kebab-case หรือ convention ของ project
- เขียน subject ให้กระชับ อ่านเหมือนคำสั่งหรือผลลัพธ์ของ change และใช้ตัวพิมพ์เล็กหลัง type เมื่อเป็นภาษาอังกฤษ
- ให้ subject กระชับ โดยทั่วไปประมาณ 50-72 ตัวอักษร
- ใส่ body เฉพาะเมื่อ diff มีหลายประเด็นสำคัญ มี motivation ที่ไม่ obvious หรือมี behavior ที่ควรอธิบาย
- ใส่
BREAKING CHANGE:ใน footer เฉพาะเมื่อ diff แสดงชัดว่ามี breaking API, schema, behavior หรือ compatibility change
รูปแบบคำตอบ
สำหรับคำขอทั่วไป ให้ตอบเป็น commit message ที่แนะนำ 1 อันใน fenced text block:
feat(auth): เพิ่มการเข้าสู่ระบบด้วย passkeyถ้า body มีประโยชน์ ให้เว้นบรรทัดแล้วใส่ body ต่อ:
feat(auth): เพิ่มการเข้าสู่ระบบด้วย passkey
เพิ่มขั้นตอนลงทะเบียนและเข้าสู่ระบบด้วย WebAuthn.
รองรับ fallback ไปยังรหัสผ่านเดิมเมื่ออุปกรณ์ไม่รองรับ passkey.ถ้าผู้ใช้ขอตัวเลือก ให้เสนอ 2-3 แบบ พร้อมอธิบายสั้น ๆ เป็นภาษาไทยว่าแต่ละแบบเหมาะกับกรณีไหน
Guardrails
- อย่าเดาการเปลี่ยนแปลงที่ไม่อยู่ใน diff
- อย่าเน้น generated files, formatting หรือชื่อไฟล์ เว้นแต่เป็นสาระหลักของ change
- เลือก commit message เดียวสำหรับ intent เดียวที่ชัดเจน ถ้า diff มีหลาย intent ที่ไม่เกี่ยวกัน ให้แนะนำ split commit และให้ message แยกกัน
- ถ้าไม่มี diff ให้ขอ diff จากผู้ใช้ หรือรัน git diff commands เมื่อเข้าถึง local repo ได้
- ถ้าผู้ใช้ขอภาษาไทย ให้ตอบคำอธิบายเป็นภาษาไทย และใช้คำศัพท์เฉพาะแบบทับศัพท์ตามความเหมาะสม
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

