用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/legra-ai/rhusky --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | commit |
| description | Create commits following Angular Conventional Commits format with proper scope naming for consistent changelog generation |
Use this skill when creating git commits. All commits must follow Angular Conventional Commits format because:
<type>(<scope>): <subject>
[optional body]
[optional footer]
Requirements:
| Type | Purpose | In Changelog |
|---|---|---|
feat | New feature | Yes |
fix | Bug fix | Yes |
docs | Documentation only | Yes |
refactor | Code change (no feat/fix) | Yes |
perf | Performance improvement | Yes |
build | Build system changes | Yes |
style | Formatting, whitespace | No |
test | Adding/fixing tests | No |
ci | CI/CD configuration | No |
These are widely adopted extensions configured in cog.toml:
| Type | Purpose | In Changelog |
|---|---|---|
chore | Maintenance, deps, tooling | No |
revert | Revert previous commit | Yes |
Scopes should be consistent to group related changes in changelogs.
lib - main library code (src/lib.rs)builder - Rhusky builder pattern APIinstall - hooks installation logicgit - git operationsversion - version bumpsdeps - dependency updatesci - CI/CD workflows (use with ci: or chore: type)config - configuration fileshooks - git hooksreadme - README.md changesclaude - CLAUDE.md, Claude Code skillstests - general test changesfeat(builder): add custom hooks directory support
fix(install): handle missing git repository gracefully
docs(readme): update installation instructions
refactor(lib): extract git operations into functions
test(builder): add tests for skip_in_env method
chore(deps): update tempfile to 3.24
ci(workflows): add release binary uploads
feat(builder)!: change default hooks directory
feat: add feature # missing scope
Fix(lib): Fix bug # uppercase type and subject
feat(lib): Add feature. # uppercase subject, has period
updated the readme # wrong format entirely
feat(lib) add feature # missing colon
feat(Lib): add feature # uppercase scope
For breaking changes, add an exclamation mark after the scope:
feat(api)!: remove deprecated endpoint
BREAKING CHANGE: The /v1/status endpoint has been removed.
Use /v2/health instead.
This will appear prominently in the changelog.
git add <files>git commit -m "type(scope): subject"If the commit is rejected, fix the issue and try again.
For complex changes, use a body:
git commit -m "feat(bump): add README badge updates
Updates version badges in README.md when bumping.
Searches for crates.io and docs.rs badge patterns
and replaces version numbers.
Closes #42"
To see the commit style used in this repo:
git log --oneline -20