dsh-git-commit
Skill4 starsChanged 3 months agoMITView on GitHub
提交代码时使用:按约定式提交写 commit message,并在提交前做最小自检。
In this repository18 other files it gives its agents.
- dsh-changelogSkill
- dsh-chinese-docsSkill
- dsh-code-reviewSkill
- dsh-debug-sessionSkill
- dsh-dependency-auditSkill
- dsh-doc-syncSkill
- dsh-office-artifactsSkill
- dsh-plugin-clientSkill
- dsh-plugin-devSkill
- dsh-plugin-i18nSkill
- dsh-plugin-publishSkill
- dsh-preset-authoringSkill
- dsh-pr-reviewSkill
- dsh-refactor-safeSkill
- dsh-skill-adapterSkill
- dsh-task-breakdownSkill
- dsh-test-firstSkill
- dsh-webapp-testingSkill
The file
Files
规范化 Git 提交
提交格式(约定式提交)
<type>(<scope>): <subject>- type:feat(新功能)、fix(修复)、docs(文档)、chore(杂务)、refactor(重构)、test(测试)、perf(性能)
- subject:祈使句,≤ 50 字符,写"动机/效果"而不是"做了什么动作"
- 需要更多上下文时,空一行后写 body:为什么改、影响范围、验证方式
提交前最小自检(逐条确认)
git diff --cached通读一遍,确认没有混入无关改动- 无密钥/令牌/密码:
git diff --cached | grep -iE "token|secret|password|api[_-]?key"无意外命中 - 无大文件、临时文件、构建产物:
.log、node_modules、dist、.DS_Store不进库 - 每个提交只做一件事:功能与格式化分两次提交
- 测试通过后才提交;被测试覆盖的修复在 subject 里写清复现路径
小步提交
- 一次提交对应一个可回滚的逻辑单元
- 先提交能让项目处于"可用状态"的最小改动,再叠加
- 与 issue 关联:
fix: ... (#42)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

