Automated summary
This skill inspects current Git changes, stages files when needed, drafts a Conventional Commits message, and creates the commit.
Strengths
- Reads `git status`, `git diff`, and `git diff --cached` before acting, so it does not commit blindly.
- Enforces an explicit Conventional Commits structure (type, optional scope, body) with a listed set of allowed types.
- Honors a user request for a partial commit instead of always staging everything.
- Finishes by reporting the message it used and the outcome of the commit.
Limitations
- By default it runs `git add -A`, which stages every change, including unwanted or sensitive files.
- Commit bodies are written in Chinese while the type stays in English, which will not suit every team.
- Does not cover amending, splitting into multiple commits, or pushing after committing.
Use it when you want to turn a batch of edits into a clean, well-formed commit without writing the message yourself.
Avoid it when you need to hand-pick individual hunks, rewrite history, or follow a commit message convention other than the one described here.
Security analysis
CautionThe skill runs standard git commands for staging and committing changes. It does not perform destructive or exfiltrating actions, but the automatic staging of all changes could lead to committing secrets or unintended files, so caution is warranted.
- •Automatically stages all changes with `git add -A` without user confirmation, which may commit unintended or sensitive files.
Examples
/commit/commit fix the null pointer in the region cache loaderCommit my changes with a Conventional Commit message.name: "commit" description: "Analyze git changes, stage as needed, generate a Conventional Commit message, and create a commit." argument-hint: "[optional commit intent]" user-invocable: true
Skill: Smart Git Commit
Use this skill when the user runs /commit or asks to commit changes.
Instructions
-
Analyze Context:
- Run
git statusto identify modified, added, or deleted files. - Run
git diffto inspect changes in unstaged files. - Run
git diff --cachedto inspect changes in staged files.
- Run
-
Stage Changes:
- If there are unstaged changes, run
git add -Ato stage all changes unless the user explicitly requested a partial commit.
- If there are unstaged changes, run
-
Generate Commit Message:
- Analyze diffs to understand the intent of changes.
- Draft a message following Conventional Commits:
<type>(<scope>): <description> [optional body] - Type 使用英文:
feat,fix,docs,style,refactor,perf,test,build,ci,chore。 - Scope 为可选,应反映受影响的功能区域。
- 标题示例格式:
feat(world): WorldStore/RegionCache 架构与 runtime chunk streaming - 正文尽量使用中文编写,描述具体变更细节和原因。
-
Execute Commit:
- Run
git commit -m "generated_message". - If a body is needed, use multiple
-mflags.
- Run
-
Report:
- Inform the user of the commit message used and commit result.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/smart-git-commit-mrwakcfe/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/smart-git-commit-mrwakcfe' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/smart-git-commit-mrwakcfe/download' --output '.skill-downloads/smart-git-commit-mrwakcfe/SKILL.md.part' && mv '.skill-downloads/smart-git-commit-mrwakcfe/SKILL.md.part' '.skill-downloads/smart-git-commit-mrwakcfe/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/smart-git-commit-mrwakcfe/SKILL.md' && test -s '.skill-downloads/smart-git-commit-mrwakcfe/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit' && cp -R '.skill-downloads/smart-git-commit-mrwakcfe' '.claude/skills/commit'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/smart-git-commit-mrwakcfe'openskills read 'smart-git-commit-mrwakcfe'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/smart-git-commit-mrwakcfe/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.