SKILL.md đầu tiên
Khung một skill của dự án. Claude đọc phần description để tự quyết định khi nào dùng skill, nên hãy viết rõ skill làm gì và những câu yêu cầu nào nên kích hoạt nó. Bạn cũng gọi tay được bằng /tên-skill.
Đã thử với Claude Code 2.1.329
Chỗ cần điền
{{skill_name}}Tên skill, viết thường nối bằng gạch ngang; cũng là tên thư mụcví dụwrite-release-notes{{what_it_does}}Một câu nói skill làm gìví dụDrafts release notes from the commits since the last tag{{when_to_use}}Những yêu cầu nên kích hoạt skillví dụthe user asks for release notes, a changelog entry or what changed since the last version
.claude/skills/{{skill_name}}/SKILL.md
---
name: {{skill_name}}
description: {{what_it_does}}. Use when {{when_to_use}}.
---
# {{skill_name}}
## Steps
1. Find the last release tag: `git describe --tags --abbrev=0`.
2. List the commits since then: `git log <tag>..HEAD --oneline`.
3. Group them under Added, Changed and Fixed. Skip merge commits and chores.
4. Write one line per change, in plain words a user would understand.
## Output
A Markdown list under a `## <next version>` heading. Ask for the version number if it is
not obvious from the tags.
## Rules
- Never invent a change that is not in the commit list.
- Mention breaking changes first, marked **Breaking**.
.claude/skills/write-release-notes/SKILL.md
---
name: write-release-notes
description: Drafts release notes from the commits since the last tag. Use when the user asks for release notes, a changelog entry or what changed since the last version.
---
# write-release-notes
## Steps
1. Find the last release tag: `git describe --tags --abbrev=0`.
2. List the commits since then: `git log <tag>..HEAD --oneline`.
3. Group them under Added, Changed and Fixed. Skip merge commits and chores.
4. Write one line per change, in plain words a user would understand.
## Output
A Markdown list under a `## <next version>` heading. Ask for the version number if it is
not obvious from the tags.
## Rules
- Never invent a change that is not in the commit list.
- Mention breaking changes first, marked **Breaking**.