commit

Generate git commits following Conventional Commits (commitlint). Use when user wants to commit changes.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commit" with this command: npx skills add vainjs/skills/vainjs-skills-commit

Commit Message Format

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

[optional body]

[optional footer(s)]

Types

TypeDescription
featNew feature
fixBug fix
docsDocumentation only
styleFormatting, missing semicolons (no code change)
refactorCode change that neither fixes nor adds features
perfPerformance improvement
testAdding or correcting tests
buildBuild system or external dependencies
ciCI configuration files and scripts
choreOther changes that don't modify src or test
revertReverts a previous commit

Rules

  • type: Required, lowercase, from list above
  • scope: Optional, lowercase, describes affected area (e.g., api, auth, ui)
  • description: Required, lowercase start, no period at end, imperative mood, max 72 chars
  • body: Optional, wrap at 100 chars, explain "what" and "why" (not "how")
  • footer: Optional, for breaking changes (BREAKING CHANGE:) or issue refs (Closes #123)

Breaking Changes

Add ! after type/scope or BREAKING CHANGE: in footer:

feat(api)!: change authentication endpoint response format

BREAKING CHANGE: The /auth endpoint now returns a JWT token instead of session ID.

Examples

feat(auth): add OAuth2 login support
fix(ui): resolve button alignment on mobile
docs: update API documentation
refactor(core): simplify error handling logic
chore(deps): upgrade React to v19

Workflow

  1. Run git status to see all changes; if unrelated changes exist, suggest splitting into separate commits

  2. Stage relevant files with git add <files> (avoid git add -A to prevent accidentally staging secrets or large files)

  3. Run git diff --staged to review what will be committed

  4. Generate commit message following the format above

  5. End your response with only the commit message — do NOT execute git commit. Example:

    feat(auth): add OAuth2 login

    This lets prompt suggestion prefill it for the user to review and edit.

  6. On the next turn, execute git commit -m "<confirmed message>"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

commit

No summary provided by upstream source.

Repository SourceNeeds Review