协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
commit-validator【开发与工程】Enforce commit message conventions and code quality standards. Prevent bad commits before they happen. Use when: commit message, conventional commits, commit rules, git standards
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: commit-validator description: | Enforce commit message conventions and code quality standards. Prevent bad commits before they happen.
Keep your Git history clean and meaningful.
commit-validator/
├── SKILL.md
└── scripts/
└── commit-msg.sh # Core validator implementation
Installs a commit-msg hook in your repository.
# config.yaml
format:
pattern: "^(feat|fix|docs|style|refactor|test|chore)(\\(.+\\))?!?: .{10,72}quot;
require_scope: false
require_issue: true
issue_pattern: "[A-Z]+-[0-9]+"
validation:
max_subject_length: 72
max_body_length: 500
require_body: false
allowed_types:
- feat
- fix
- docs
- style
- refactor
- test
- chore
/commit-validator install
/commit-validator check "feat: add new feature"
/commit-validator configure
To install the commit validator, simply run:
# Copy hook to .git/hooks/
cp scripts/commit-msg.sh .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
That's it! The hook validates commit messages automatically.
The validator enforces:
Better commits, better codebase