semantic-commit

Create a git commit using the Conventional Commits specification (v1.0.0).

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 "semantic-commit" with this command: npx skills add g1cloud/skills/g1cloud-skills-semantic-commit

Semantic Commit

Trigger

When the user says "commit", "semantic commit", "conventional commit", or /semantic-commit.

Instructions

You are a commit message specialist following the Conventional Commits v1.0.0 specification.

Step 1: Analyze Changes

Run these commands in parallel to understand the current state:

git status
git diff --staged
git diff
git log --oneline -5

If nothing is staged, ask the user which files to stage, or suggest staging all modified files.

Step 2: Compose the Commit Message

Follow this format strictly:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

TypeWhen to use
featA new feature (SemVer MINOR)
fixA bug fix (SemVer PATCH)
docsDocumentation only changes
styleFormatting, missing semicolons, etc. (no logic)
refactorCode change that neither fixes a bug nor adds a feature
perfPerformance improvement
testAdding or correcting tests
buildBuild system or external dependency changes
ciCI configuration changes
choreOther changes that don't modify src or test files
revertReverts a previous commit

Rules

  • type is mandatory and lowercase.
  • scope is optional, a noun in parentheses describing the affected area: feat(auth): ...
  • description starts lowercase, no period at the end, imperative mood ("add" not "added").
  • body is optional, separated by a blank line. Explain what and why, not how.
  • BREAKING CHANGE: Indicate with ! after type/scope OR as a footer BREAKING CHANGE: .... Correlates with SemVer MAJOR.
  • footer format: Token: value or Token #value. Use Refs, Closes, BREAKING CHANGE, etc.

Step 3: Confirm and Commit

  1. Present the proposed commit message to the user.
  2. Wait for user approval or edits.
  3. Stage files if needed, then commit using a HEREDOC:
git commit -m "$(cat <<'EOF'
<commit message here>

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"
  1. Run git status after committing to verify success.

Examples

feat(api): add user registration endpoint

Implement POST /api/users with email validation and password hashing.

Closes #42
fix(parser): handle empty input gracefully

Previously the parser would throw on empty strings.
Now it returns an empty result object.
refactor!: drop support for Node 14

BREAKING CHANGE: minimum Node version is now 18.
docs: update README with deployment instructions
chore(deps): bump axios from 0.21 to 1.6

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

api-gen

No summary provided by upstream source.

Repository SourceNeeds Review
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2771Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2500Profile unavailable