分支重命名工具 (gen-rn-br)

Rename local Git branches to YYYYMM format based on last commit date.

16|3|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/Yomiamy/flutter_inspector_kit --skill gen-rn-br
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 分支重命名工具 (gen-rn-br)
Source: https://github.com/Yomiamy/flutter_inspector_kit/tree/main/.claude/skills/gen-rn-br
Command: npx skills add https://github.com/Yomiamy/flutter_inspector_kit --skill gen-rn-br

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the issue of unorganized Git branches that do not follow a consistent naming convention, leading to difficulties in navigation and maintenance.

Core Features & Use Cases

  • Branch Naming Conventions: Automatically renames branches to adhere to a YYYYMM format based on the last commit date.
  • Local Branch Management: Focuses on local branches for renaming operations.
  • Use Case: If you have a project with many branches, this Skill can help you organize them by moving branches to the correct year and month directory based on their last commit date.

Quick Start

Run the 'gen-rn-br' command to rename branches that do not follow the 'YYYYMM' format to the correct structure.

Frequently Asked Questions about 分支重命名工具 (gen-rn-br)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically rename local Git branches to a YYYYMM date format?

You can automatically rename local Git branches to a YYYYMM date format by running a command that reads the last commit date and normalizes the branch name accordingly. This process targets local branches only and skips protected branches.

What is the best way to organize unorganized Git branches by year and month?

The best way to organize unorganized Git branches by year and month is using an automated branch management tool that moves branches into a YYYYMM directory structure based on their last commit date, keeping your codebase tidy.

Does the branch renaming tool require any external dependencies to run?

No, the branch renaming tool requires no external dependencies to run. It operates entirely on local branches within your Git repository without needing additional software or packages installed.

When should I not use automated Git branch naming conventions?

You should not use automated Git branch naming conventions for protected branches, as the tool explicitly skips them. Additionally, it only processes local branches and does not rename remote branches.

How does YYYYMM branch naming normalization work based on commit history?

YYYYMM branch naming normalization works by extracting the date of the last commit made on a branch. It then renames the branch to match that year and month, ensuring all branches follow a consistent naming convention.