Skip to content

agenvoy/skill-commit-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This README was generated by SKILL, get the ZH version from here.
This skill's implementation was fully agent-generated; the developer only tuned its input/output.


WRITE BILINGUAL COMMITS FROM STAGED DIFF WITH STRICT TAG DISCIPLINE!

License


A Claude Code skill that generates bilingual commit messages from staged diff with mandatory tag escalation and multi-topic detection

Table of Contents

Features

/commit-generate · Documentation

  • Bilingual One-Shot Output — Emits English subject and Traditional Chinese body in a single pass so the two never drift apart.
  • Staged-Only Strict Input — Reads only git diff --cached; aborts with an error when nothing is staged instead of silently falling back to the working tree.
  • Mandatory Tag Escalation — Scans Breaking and Security signals; any hit forces the tag up and blocks downgrades to feat or update.
  • Multi-Topic Detection — Warns and recommends splitting when a diff touches 2+ primary tags or 3+ unrelated topics before emitting a rollup message.
  • 13 Classification Tags — Resolves intent through a fixed priority of BREAKING > FEAT > FIX > SECURITY > UPDATE > REFACTOR > PERF.

Architecture

Full Architecture

graph TB
    A[git diff --cached] --> B{Staged empty?}
    B -->|Yes| E[Error & stop]
    B -->|No| C[Multi-topic detection]
    C --> D[Tag escalation scan]
    D --> F[Emit bilingual commit message]
Loading

License

This project is licensed under the MIT LICENSE.

About

No description or website provided.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Contributors