Skip to content
Conventional Commits logo

Conventional Commits

Conventional Commits specification format. Use when creating commit messages. Format: <type>(<scope>): <description>. Types: feat, fix, chore, docs, test, refactor, style, perf. CRITICAL: All commits must follow conventional commit format.

SKILL.md

Full skill instructions

Conventional Commits Skill

CRITICAL: All commits must follow Conventional Commits format: <type>(<scope>): <description>

When to Use This Skill

Use this skill when:

  • Creating commit messages
  • Formatting commits
  • Understanding commit types
  • Writing commit descriptions

Commit Format

<type>(<scope>): <description>

[optional body]

[optional footer]

Commit Types

TypePurposeExample
featNew featurefeat(auth): add user login
fixBug fixfix(api): resolve memory leak
choreMaintenance taskschore(deps): update packages
docsDocumentation changesdocs(readme): update install guide
testTest additions/​changestest(auth): add unit tests
refactorCode refactoringrefactor(api): restructure services
styleCode style changesstyle: format code with prettier
perfPerformance improvementsperf(api): optimize database query
ciCI/​CD changesci: add GitHub Actions workflow
buildBuild system changesbuild: update webpack config

Scope Guidelines

Scopes identify the affected area:

API Scopes

feat(api): add new endpoint
fix(api): resolve endpoint error
refactor(api): restructure controllers

Module Scopes

feat(auth): add authentication
fix(llm): resolve provider issue
chore(mcp): update MCP tools

Feature Scopes

feat(agents): add new agent type
fix(webhooks): resolve status tracking
perf(orchestration): optimize execution

Commit Examples

Simple Commit

feat(auth): add JWT token authentication

Commit with Body

feat(auth): add JWT token authentication

Implement JWT token generation and validation.
- Add token generation service
- Add token validation middleware
- Update auth controller

Commit with Footer

fix(api): resolve memory leak

The service was holding references to completed requests.
Now properly cleans up after request completion.

Closes #123

Breaking Change

feat(api)!: change authentication endpoint

BREAKING CHANGE: Authentication endpoint moved from /​auth/​login to /​api/​auth/​login

Common Patterns

Feature Development

feat(user-dashboard): add user dashboard component

- Create dashboard Vue component
- Add user stats API endpoint
- Implement real-time updates

Bug Fixes

fix(login): resolve authentication error

The login was failing due to incorrect token validation.
Fixed by updating token validation logic.

Fixes #456

Chores

chore(deps): update NestJS to v10

- Update @nestjs/​core to 10.0.0
- Update @nestjs/​common to 10.0.0
- Resolve breaking changes

Documentation

docs(api): update API documentation

- Add endpoint documentation
- Update examples
- Fix formatting issues

Tests

test(auth): add unit tests for auth service

- Test login functionality
- Test token generation
- Test error handling

Refactoring

refactor(api): restructure service layer

- Extract common service logic
- Improve dependency injection
- Update module structure

❌ Bad Commit Messages

❌ fix stuff
❌ update
❌ changes
❌ WIP
❌ asdf
❌ fixed bug
❌ add feature
❌ work in progress
❌ commit
❌ test

✅ Good Commit Messages

✅ feat(auth): add user authentication
✅ fix(api): resolve memory leak in service
✅ chore(deps): update dependencies
✅ docs(readme): update installation guide
✅ test(auth): add unit tests for login
✅ refactor(api): restructure service layer
✅ perf(db): optimize query performance
✅ style: format code with prettier

Multi-Line Commit Messages

Format

<type>(<scope>): <short description>

<detailed description>

<footer>

Example

feat(agents): add new API agent type

This commit adds support for API agents that wrap external HTTP services.
API agents use request/​response transforms to adapt between Orchestrator AI
format and external service format.

Changes:
- Add API agent runtime dispatch service
- Add request/​response transform logic
- Update agent registry to support API agents
- Add API agent validation

Closes #789

Commit Message Guidelines

✅ DO

  • Use imperative mood ("add" not "added")
  • Keep first line under 50 characters
  • Use body for detailed explanation
  • Reference issues in footer
  • Use breaking change notation for breaking changes

❌ DON'T

  • Don't use past tense ("fixed" use "fix")
  • Don't use first person ("I added" use "add")
  • Don't write vague messages
  • Don't commit unrelated changes together
  • Don't use abbreviations

Commit Message Templates

Feature Template

feat(<scope>): <description>

<what was added>

<why it was added>

<how to test>

Fix Template

fix(<scope>): <description>

<what was broken>

<how it was fixed>

<how to verify fix>

Fixes #<issue-number>

Refactor Template

refactor(<scope>): <description>

<what was refactored>

<why it was refactored>

<what changed>

Git Commit Commands

Simple Commit

git commit -m "feat(auth): add user login"

Multi-Line Commit

git commit -m "feat(auth): add user login" -m "Implement JWT token authentication with middleware validation"

Commit with Editor

git commit
# Opens editor for multi-line message

Checklist for Conventional Commits

When creating commits:

  • Commit message follows format: <type>(<scope>): <description>
  • Type is correct (feat, fix, chore, etc.)
  • Scope identifies affected area
  • Description is clear and concise
  • Description uses imperative mood
  • Body included if needed for context
  • Footer included if referencing issues
  • Breaking changes marked with !

Related Documentation

  • Git Standards: See Orchestrator Git Standards Skill
  • GitHub Workflow: See GitHub Workflow Skill
  • Quality Gates: See Quality Gates Skill

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View