smart-commit
仓库创建 2026年2月2日最近提交 6 天前SkillHot 收录 20 天前
▸ 精选理由
在提交前自动检查并生成高质量提交,适合日常开发流程。
▸ 风险提示
会在本地运行构建/测试/检查等命令,需注意权限与环境影响。
这个 Skill 做什么
对暂存更改运行质量门并起草规范的 conventional commit 信息。
帮你在准备 git commit 时自动跑质量门(lint、typecheck、受影响文件的 tests),检查暂存的 diff 有没有问题,并自动草拟符合 conventional commit 规范的提交信息。适合写完代码、准备提交但想先做自动检查和生成规范化提交说明的时候使用。特别之处是只针对受影响的文件跑检测并能从 diff 摘要生成标准化的 commit message,减少手动修改和遗漏。
▸ 展开 SKILL.md 英文原文
Run quality gates, review staged changes for issues, and create a well-crafted conventional commit. Use when saying "commit", "git commit", "save my changes", or ready to commit after making changes.
2.7k
Stars
257
Forks
40
仓库内 Skill
+55
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/rohitg00/pro-workflow/main/skills/smart-commit/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/rohitg00/pro-workflow/main/skills/smart-commit/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Smart Commit ## Trigger Use when saying "commit", "save changes", or ready to commit after making changes. ## Workflow 1. Check current state and identify what to commit. 2. Run quality gates (lint, typecheck, tests on affected files). 3. Scan staged changes for issues. 4. Draft a conventional commit message from the diff. 5. Stage specific files, create the commit. 6. Prompt for learnings from this change. ## Commands ```bash git status git diff --stat npm run lint 2>&1 | tail -5 npm run typecheck 2>&1 | tail -5 npm test -- --changed --passWithNoTests 2>&1 | tail -10 git add <specific files> git commit -m "<type>(<scope>): <summary>" ``` ## Code Review Scan Before committing, ch
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有