Skill

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**.

Bài học liên quan

Gõ để tìm trong tra cứu, mẫu cấu hình và bài học. Không dấu cũng được.