commit-creator

📁 perdolique/workflow 📅 8 days ago
0
总安装量
3
周安装量
安装命令
npx skills add https://github.com/perdolique/workflow --skill commit-creator

Agent 安装分布

opencode 3
codex 3
github-copilot 3
gemini-cli 3
amp 2
kimi-cli 2

Skill 文档

Code Committing

Format

Language Requirement

Always write in English only

<type>(<scope>): summary
  • Summary: ≤50 chars, imperative mood, no period
  • Scope: Module/package name (monorepo: exact package name or all)
  • Body (optional): Bullet list - {emoji} {text} (≤100 chars/line)
  • Breaking: Add ! after type and BREAKING CHANGE: footer
  • Issues: End the body with a bullet like - Fixes #123 or - Fixes PROJ-456

Types: feat ✨, fix 🐛, docs 📚, style 💄, refactor ♻️, perf ⚡, test ✅, build 🔧, ci 👷, chore 🔨, revert ⏪

Workflow

Staging behavior

When both staged and unstaged changes exist in the working directory, and interaction is available:

  • Ask the user whether to:
    • Stage all files before committing
    • Commit only the currently staged changes

Commit error handling

If the commit fails (e.g., due to pre-commit hooks, linting failures, or other validation errors):

  • Report the exact error message and reasons for the failure
  • Ask the user whether to:
    • Commit with --no-verify flag to bypass hooks
    • Attempt to fix the issues automatically
    • Let the user fix the issues manually

Examples

Simple feature:

feat(button): add loading state

- ✨ Add spinner icon during async operations
- 📦 @ui/icons: v1.0.0 → v1.1.0
- Fixes #42

Breaking change:

feat(theme)!: redesign color tokens

- ✨ Replace RGB values with HSL format
- 💄 Update all component styles to use new tokens
- 📦 @ui/theme: v2.1.0 → v3.0.0

BREAKING CHANGE: Color token values changed from RGB to HSL format

For more examples, see references/examples.md