AGENT SKILL

py-changelog

Maintain the release-history.rst changelog for a Python project before publishing a new version. Use when the user wants to prepare release notes, update changelog, or is about to publish/tag a new version.

License 许可
MIT
最近更新
2026-07-31
Stars
★ 0
Forks
0

01 前言 Front Matter

name
py-changelog
description
Maintain the release-history.rst changelog for a Python project before publishing a new version. Use when the user wants to prepare release notes, update changelog, or is about to publish/tag a new version.

03 SKILL.md 正文

You are maintaining release-history.rst for a Python project. Your job is to keep the target version's section accurate and complete based on git history. You never touch the x.y.z (Backlog) section.

Step 1: Gather State

Run these commands to understand the current state:

# Last published tag
git describe --tags --abbrev=0

# pyproject.toml version (this is the target version to release)
grep '^version' pyproject.toml

Determine target version:

  • pyproject.toml version is always the source of truth for the new release target.
  • last tag is the baseline for git history comparison.

Step 2: Pull Git Changes (Feed to AI)

Use {LAST_TAG} = the tag from Step 1.

# Commit intent summary
git log {LAST_TAG}..HEAD --oneline

# Files changed (concise overview)
git diff {LAST_TAG}..HEAD --stat

# Actual Python code changes (for understanding what really changed)
git diff {LAST_TAG}..HEAD -- '*.py'

Read these outputs carefully. They are the ground truth for what changed.

Step 3: Read release-history.rst Format

Read the first 100 lines of release-history.rst:

head -100 release-history.rst

This shows you:

  • The RST formatting conventions used in this project
  • The section categories (Features and Improvements, Minor Improvements, Bugfixes, Breaking Changes, Miscellaneous)
  • The x.y.z (Backlog) placeholder at the top — never modify this section
  • The Backlog content — use it as reference only to understand what the user plans, do not copy or move it

Step 4: Determine Action

Case A — Target version section already exists in release-history.rst:

Compare the existing content against what git history reveals:

  • Is anything missing that git history shows?
  • Is anything written that git history does not support?
  • Are the descriptions accurate and clear?

Update the section in-place to be complete and accurate. Do not leave gaps.

Case B — Target version section does not exist:

Insert a new section immediately after the x.y.z (Backlog) block (after its blank line), following this exact RST format:

{VERSION} ({DATE})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

- ...

**Minor Improvements**

- ...

**Bugfixes**

- ...

**Miscellaneous**

- ...

Use today's date. Omit any category that has no entries (do not leave empty **Category** headers with no bullets).

Step 5: Write Directly

Edit release-history.rst directly. No need to ask the user for confirmation — the file is git-tracked and can be reverted.

Rules

  • Never touch x.y.z (Backlog) — not its header, not its content, not its blank lines.
  • Backlog content is reference only. Do not copy bullet points verbatim from Backlog into the version section.
  • Base all changelog entries on what git history actually shows, not assumptions.
  • Keep descriptions user-facing and concise (what changed and why it matters, not implementation details).
  • Follow the RST formatting exactly as seen in existing entries.
  • If a category has no entries, omit the entire category header.

04 同仓库更多 Skills

MacHu-GWU
MacHu-GWU/shsk_vercel-project

write-agent-skill

Claude Code Agent Skill Author Guide

★ 0
MacHu-GWU
MacHu-GWU/shsk_vercel-project

vercel-docs

Look up authoritative, up-to-date Vercel documentation covering deployments, builds, Functions, Fluid Compute, CDN/caching, environment variables, domains, the Vercel CLI, REST API, Security/Firewall, Observability, Storage, AI SDK/Gateway, and the kb troubleshooting guides. Use when the user asks how a Vercel feature works, what a vercel.json field does, how to configure deploys/functions/caching/env vars, when troubleshooting a Vercel build or runtime error, or when you need to cite current official docs rather than rely on training-cutoff knowledge.

★ 0
MacHu-GWU
MacHu-GWU/shsk_vercel-project

skill-subagent-design

How Agent Skills and Subagents differ and how to combine them — the skill-as-caller / subagent-as-doer best practice. Use when deciding whether a task should be a skill or a subagent, or when authoring a skill and subagent that work together (e.g. a /name skill that delegates to an isolated subagent).

★ 0
MacHu-GWU
MacHu-GWU/shsk_vercel-project

maintain-claude-plugins

My personal, authoritative spec for building, developing, versioning, releasing, and wiring dependencies for my own Claude Code plugins through a split-repo plus central-marketplace setup. Use when creating a new plugin repo, laying out a plugin's .claude/skills/<name>/ folder, writing plugin.json or marketplace.json, tagging a plugin release, wiring plugin-to-plugin dependencies, authenticating private repos, or when I ask how to structure, release, or publish my Claude Code plugin.

★ 0
MacHu-GWU
MacHu-GWU/shsk_vercel-project

create-sub-agent

Claude Code Sub Agent Author Guide

★ 0