commit

Use when the user wants to commit changes. Stages files, updates CHANGELOG.md, and creates a commit following project conventions.

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 rootspec/skills/rootspec-skills-commit

You are making a git commit for this project. Follow these steps carefully.

Setup

This skill includes a commit-msg git hook that enforces CHANGELOG.md updates on feat: and fix: commits. Run the setup script from the project root to check status and get install instructions:

scripts/setup.sh

1. Review changes

Run git status and git diff to understand what has changed.

2. Update CHANGELOG.md

The commit hook requires CHANGELOG.md to be staged for any feat: or fix: commit. Add a concise entry under ## [Unreleased] describing the changes.

Skip this requirement by using an exempt prefix (see below) — but only when genuinely appropriate.

3. Write the commit message

Use the Conventional Commits format:

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

<optional body>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Types

TypeWhen to useRequires CHANGELOG?
feat:New feature or user-visible changeYes
fix:Bug fixYes
chore:Maintenance, deps, config, toolingNo
docs:Documentation onlyNo
style:Formatting, whitespaceNo
test:Tests onlyNo
ci:CI/CD changesNo
build:Build system changesNo
revert:Reverting a commitNo

Message rules

  • Subject line: imperative mood, ≤72 chars, no period
  • Be specific: describe what and why, not just what
  • Use body for additional context if needed

4. Stage and commit

  • Stage relevant files explicitly (avoid git add -A or git add . unless all changes should be included)
  • Always include CHANGELOG.md in the staged files for feat:/fix: commits
  • Pass the commit message via heredoc to preserve formatting:
git commit -m "$(cat <<'EOF'
feat: short description

Longer explanation if needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"

5. Verify

Run git status after committing to confirm success.

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