generating-smart-commits
Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2.0k
- Forks
- 233
01 前言 Front Matter
- name
- generating-smart-commits
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards.
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash(git:*)
02 资源文件 33
- 资产文件assets/commit_template.txt3.7 KB
- 资产文件assets/example_diff.txt4.1 KB
- 资产文件assets/README.md234 B
- 参考文档references/create.md24.0 KB
- 参考文档references/edit.md23.9 KB
- 参考文档references/fix.md1.2 KB
- 参考文档references/format.md33.3 KB
- 参考文档references/ooxml-cheatsheet.md6.3 KB
- 参考文档references/read-analyze.md4.2 KB
- 参考文档references/README.md379 B
- 参考文档references/validate.md29.4 KB
- 脚本scripts/commit_analyzer.py4.7 KB
- 脚本scripts/commit_formatter.py2.8 KB
- 脚本scripts/formula_check.py17.5 KB
- 脚本scripts/git_utils.py2.8 KB
- 脚本scripts/libreoffice_recalc.py9.2 KB
- 脚本scripts/README.md434 B
- 脚本scripts/shared_strings_builder.py5.1 KB
- 脚本scripts/style_audit.py22.2 KB
- 脚本scripts/test_style_audit_sheets.py5.4 KB
- 脚本scripts/xlsx_add_column.py14.6 KB
- 脚本scripts/xlsx_insert_row.py10.0 KB
- 脚本scripts/xlsx_pack.py2.9 KB
- 脚本scripts/xlsx_reader.py13.2 KB
- 脚本scripts/xlsx_shift_rows.py13.3 KB
- 脚本scripts/xlsx_unpack.py4.7 KB
- 其他templates/minimal_xlsx/_rels/.rels309 B
- 其他templates/minimal_xlsx/[Content_Types].xml836 B
- 其他templates/minimal_xlsx/xl/_rels/workbook.xml.rels862 B
- 其他templates/minimal_xlsx/xl/sharedStrings.xml1.1 KB
- 其他templates/minimal_xlsx/xl/styles.xml8.2 KB
- 其他templates/minimal_xlsx/xl/workbook.xml1.1 KB
- 其他templates/minimal_xlsx/xl/worksheets/sheet1.xml2.5 KB
03 SKILL.md 正文
Git Commit Smart
This skill provides automated assistance for git commit smart tasks.
Prerequisites
Before using this skill, ensure:
- Git repository is initialized in {baseDir}
- Changes are staged using
git add - User has permission to create commits
- Git user name and email are configured
Instructions
- Analyze Staged Changes: Examine git diff output to understand modifications
- Determine Commit Type: Classify changes as feat, fix, docs, style, refactor, test, or chore
- Identify Scope: Extract affected module or component from file paths
- Detect Breaking Changes: Look for API changes, removed features, or incompatible modifications
- Format Message: Construct message following pattern:
type(scope): description - Present for Review: Show generated message and ask for confirmation before committing
Output
Generates conventional commit messages in this format:
type(scope): brief description
- Detailed explanation of changes
- Why the change was necessary
- Impact on existing functionality
BREAKING CHANGE: description if applicable
Examples:
feat(auth): implement JWT authentication middlewarefix(api): resolve null pointer exception in user endpointdocs(readme): update installation instructions
Error Handling
Common issues and solutions:
No Staged Changes
- Error: "No changes staged for commit"
- Solution: Stage files using
git add <files>before generating commit message
Git Not Initialized
- Error: "Not a git repository"
- Solution: Initialize git with
git initor navigate to repository root
Uncommitted Changes
- Warning: "Unstaged changes detected"
- Solution: Stage relevant changes or use
git stashfor unrelated modifications
Invalid Commit Format
- Error: "Generated message doesn't follow conventional format"
- Solution: Review and manually adjust type, scope, or description
Resources
- Conventional Commits specification: https://www.conventionalcommits.org/
- Git commit best practices documentation
- Repository commit history for style consistency
- Project-specific commit guidelines in {baseDir}/000-docs/007-DR-GUID-contributing.md
Overview
This skill provides automated assistance for the described functionality.
Examples
Example usage patterns will be demonstrated in context.
04 同仓库更多 Skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
neuropixels-analysis
Neuropixels neural recording analysis. Load SpikeGLX/OpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen/IBL curation, AI-assisted visual analysis, for Neuropixels 1.0/2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
notebooklm
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.