Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add oryanmoshe/agent-skills --skill "committing-code"
Install specific skill from multi-skill repository
# Description
Writes git commit messages using conventional commits format with gitmoji. Use when creating git commits, preparing commit messages, or when the user asks to commit changes. Triggers on "commit", "git commit", "save changes", or any request to record changes to version control.
# SKILL.md
name: committing-code
description: Writes git commit messages using conventional commits format with gitmoji. Use when creating git commits, preparing commit messages, or when the user asks to commit changes. Triggers on "commit", "git commit", "save changes", or any request to record changes to version control.
Committing Code
Overview
Every commit message uses conventional commits with gitmoji. The format is consistent, scannable, and conveys intent at a glance.
Format
<emoji> <type>: <short description>
<body β what changed and why>
Co-Authored-By: Claude <agent> <[email protected]>
The short description is imperative mood, lowercase, no period. The body uses bullet points for multiple changes.
Gitmoji Reference
| Emoji | Type | When to use |
|---|---|---|
| π | feat |
Initial commit / first commit in a repo |
| β¨ | feat |
New feature or capability |
| π | fix |
Bug fix |
| β»οΈ | refactor |
Code restructuring without behavior change |
| π | docs |
Documentation only |
| π§ | chore |
Config, tooling, non-code changes |
| β | test |
Adding or updating tests |
| π | perf |
Performance improvement |
| π₯ | chore |
Removing code or files |
| ποΈ | refactor |
Architectural change |
| π | style |
UI/cosmetic change |
| π | security |
Security fix |
| β¬οΈ | chore |
Dependency upgrade |
| π | refactor |
Moving or renaming files |
Examples
Good:
β¨ feat: add user authentication with JWT
- Add login/logout endpoints in auth.controller.ts
- Add JWT middleware for protected routes
- Add refresh token rotation
- Add auth integration tests
Co-Authored-By: Claude Opus 4.5 <[email protected]>
π fix: prevent race condition in websocket reconnect
The reconnect logic was firing multiple times when the connection
dropped during a message send, causing duplicate subscriptions.
Added a mutex guard around the reconnect path.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
β»οΈ refactor: rename getUserById to fetchUser across codebase
Aligns with the fetch* naming convention for async data access.
Updated all call sites, tests, and type definitions.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Bad:
updated stuff # No type, no emoji, vague
feat: Add Feature # No emoji, capitalized
β¨ feat: add feature. # Trailing period
πβ¨ fix/feat: stuff # Multiple types
Rules
- One type per commit. If changes span multiple types, split into multiple commits.
- Body explains WHY, not just WHAT. The diff shows what changed β the message explains the reasoning.
- Use bullet points in the body when listing multiple changes.
- Always include Co-Authored-By when the commit was AI-assisted.
- Use HEREDOC for multi-line messages to preserve formatting:
```bash
git commit -m "$(cat <<'EOF'
β¨ feat: add new feature
Body text here.
Co-Authored-By: Claude Opus 4.5 [email protected]
EOF
)"
```
Commit Frequency
Commit early and often:
- After each logical unit of work (one feature, one fix, one refactor)
- After adding a new file or skill
- After updating documentation alongside code changes
- Never batch unrelated changes into a single commit
Pre-Commit Checklist
Before committing, verify:
- README.md is updated if the change affects user-facing documentation (new features, skills, APIs, installation steps)
- AGENTS.md is updated if the change affects project structure, conventions, or available skills
- Documentation changes are part of the same commit as the code they describe β not a separate "docs" commit after the fact
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.