Skip to content

pardnchiu/skill-version-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This README was generated by SKILL, get the ZH version from here.

skill-version-generate

license

Claude Code skill: Automatically generate structured changelogs from git tags to HEAD with semantic version recommendations.
This project was primarily generated by Claude Code, with minor adjustments by the author.

Table of Contents

Features

  • Automatic Version Detection: Retrieve the latest semantic version from git tags
  • Intelligent Classification: Automatically categorize changes by type (FEAT, FIX, BREAKING, etc.)
  • Semantic Version Calculation: Compute MAJOR, MINOR, PATCH upgrades based on changes
  • Bilingual Output: Generated changelogs include English descriptions with Chinese translations
  • Structured Format: Output clean Markdown-formatted changelogs

Installation

Add this skill to your Claude Code skills directory:

# Clone to Claude Code skills directory
git clone https://github.com/pardnchiu/skill-version-generate ~/.claude/skills/version-generate

Usage

Invoke this skill with Claude Code in your project directory:

/version-generate

The skill automatically executes the following workflow:

  1. Version Detection: Retrieve the latest semantic version tag (e.g., v1.2.3)
  2. Change Collection: Analyze all git diffs from tag to HEAD
  3. Classification Calculation: Determine version bump based on change types
  4. Generate Output: Create vA.B.C.md changelog file

Version Bump Rules

Change Type Version Impact
BREAKING MAJOR (+1.0.0)
FEAT MINOR (+0.1.0)
FIX, UPDATE, SECURITY, REFACTOR, PERF PATCH (+0.0.1)
STYLE, DOC, TEST, CHORE No bump

Output Example

Generated file format like v1.3.0.md:

> v1.2.3 -> v1.3.0

## Summary

Add task scheduling feature and fix memory leak issue.

## Changes

### FEAT
- Add task scheduler with cron expression support

### FIX
- Fix memory leak in worker pool cleanup

Classification Tags Reference

Tag Scope Example
FEAT New feature New function, endpoint, component
FIX Bug fix Error handling, logic fix
UPDATE Modify existing behavior Parameter change, algorithm adjustment
ADD Add files/resources Config files, assets, dependencies
REMOVE Delete Deprecated code, unused files
REFACTOR Code restructure Extract function, rename
PERF Performance improvement Caching, algorithm optimization
STYLE Formatting Whitespace, linting
DOC Documentation Comments, README
TEST Tests New tests, test fixes
CHORE Maintenance CI/CD, tooling
SECURITY Security patch Vulnerability fix
BREAKING Breaking change API signature change

License

This project is licensed under the MIT LICENSE.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors