Skip to content
Skill

commit

by MetaMask

AI Summary

Automates git commits with optional pre-flight checks, conventional commit formatting, and smart branch handling—ideal for developers who want consistent, safe code integration without manual git ceremony.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "commit" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/commit && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commit/SKILL.md "https://raw.githubusercontent.com/MetaMask/ocap-kernel/main/.claude/skills/commit/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Optionally checks, then commits code to the current or a new feature branch.

Arguments

• check (default): Run checks first to lint, build, and test the code. Stop if any checks fail. • force: Skip the check step and commit directly.

Steps

• Run these bash commands in parallel to understand the current state: • git status to see all untracked files • git diff HEAD to see both staged and unstaged changes • git log --oneline -10 to see recent commit messages for style consistency • If you are on the main branch, create a new feature branch using git branch and switch to it. • Analyze all changes and draft a commit message: • Summarize the nature of the changes (new feature, enhancement, bug fix, refactoring, test, docs, etc.) • Use the conventional commit format: type(scope): description • Keep the first line under 72 characters • Do not commit files that likely contain secrets (.env, credentials.json, etc.) • Stage and commit the changes: • Add relevant files using git add • Use a plain string for the commit message (do not use HEREDOCs). • Report the results including: • The commit hash • The commit message

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
6 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars6
Forks5
Issues36
Updated1mo ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code