single-line-commit
Installation
SKILL.md
Instructions
When this skill is invoked, follow these steps:
- Run
git diff --cachedto review ONLY the staged changes in the user's workspace. Generate the commit message based exclusively on these staged changes. - Generate a single-line conventional commit message summarizing the change.
- The format MUST be exactly:
type(scope): description.type: e.g., feat, fix, docs, style, refactor, perf, test, chorescope: optional but recommended (e.g., what part of the code changed)description: clear, concise, imperative mood (e.g., "add", not "added")
- Output ONLY the generated commit message inside a markdown bash code block so the user can easily copy it. Do not add any extra commentary, XML, or explanations.
Example Output
feat(chatbot): expand input area to three lines and add scrolling