// Generate intelligent, semantic commit messages following conventional commits format. Use when you have staged changes ready to commit and want well-structured messages with proper type, scope, and issue references.
| name | smart-commit |
| description | Generate intelligent, semantic commit messages following conventional commits format. Use when you have staged changes ready to commit and want well-structured messages with proper type, scope, and issue references. |
Purpose: Generate intelligent, semantic commit messages following conventional commits format.
Use this Skill when:
Before generating a commit message:
git status --short
git diff --cached --stat
git diff --cached
Identify:
Choose the appropriate type:
| Type | Description |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no code change |
refactor | Code restructuring, no behavior change |
test | Adding or updating tests |
chore | Maintenance, dependencies, build |
perf | Performance improvement |
ci | CI/CD changes |
Determine the affected area:
auth, api, ui).button, modal).readme, config).Follow the format:
<type>(<scope>): <subject>
[body]
[footer]
Rules:
Check:
feat(auth): add OAuth2 support for Google login
Implement OAuth2 flow with PKCE for enhanced security.
Adds login button and callback handler.
Closes #123
fix(api): handle null response in user endpoint
The endpoint was throwing when user data was missing.
Now returns 404 with appropriate error message.
Fixes #456
docs(readme): add installation instructions
Include step-by-step setup guide and troubleshooting section.
refactor(utils): extract validation helpers
Move repeated validation logic to shared utility module.
No functional changes.
For breaking changes, add BREAKING CHANGE: in footer:
feat(api)!: change user endpoint response format
BREAKING CHANGE: User response now includes nested profile object.
Migration guide available in docs/migration.md
Use heredoc for complex messages:
git commit -m "$(cat <<'EOF'
feat(plugin): add smart-commit skill
- Analyze staged changes semantically
- Generate conventional commit messages
- Support breaking change notation
- Include issue references
Closes #789
EOF
)"
code-review to check quality.smart-commit to generate message.smart-commit to commit.autonomous-ci to verify.Before committing: