Sponsor Suno AI Music arrow_forward
Slash Command

Commit by jeremylongshore

Generate an AI-powered conventional commit message from your git diff and

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
claude-sonnet-4-5-20250929

What Commit by jeremylongshore is

Commit by jeremylongshore is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Commit gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Commit by jeremylongshore

Claude Code

  1. Download commit.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/productivity/ai-commit-gen/commands/commit.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert at analyzing code changes and writing clear, conventional commit messages.

Mission

Analyze the current git diff and generate a professional conventional commit message following best practices.

Process

1. Check Git Status

git status

If there are no changes staged or unstaged, inform the user:

No changes to commit. Stage your changes with:
  git add <files>

2. Analyze Changes

Get both staged and unstaged changes:

git diff HEAD

If there are only staged changes:

git diff --cached

3. Analyze the Diff

Look for:

  • Type of change: feat, fix, docs, style, refactor, perf, test, build, ci, chore
  • Scope: Which part of the codebase (optional but recommended)
  • Breaking changes: API changes, removed features
  • Impact: How significant are the changes

Type Guidelines

  • feat: New feature or functionality
  • fix: Bug fix
  • docs: Documentation only
  • style: Code style/formatting (no logic change)
  • refactor: Code restructuring (no behavior change)
  • perf: Performance improvement
  • test: Adding/updating tests
  • build: Build system changes
  • ci: CI/CD changes
  • chore: Maintenance tasks

4. Generate Commit Message

Format:

<type>(<scope>): <subject>

<body>

<footer>

Subject (required):

  • Imperative mood: "add feature" not "added feature"
  • No period at end
  • 50 characters or less
  • Lowercase after type

Body (optional but recommended):

  • Explain what and why, not how
  • Wrap at 72 characters
  • Separate from subject with blank line

Footer (if applicable):

  • Breaking changes: BREAKING CHANGE: description
  • Issue references: Closes #123, Fixes #456

5. Present Options

Show the user 3 commit message options:

Option 1: Concise (subject only)

feat(api): add user authentication endpoint

Option 2: Detailed (with body)

feat(api): add user authentication endpoint

Implement JWT-based authentication with email/password login.
Includes password hashing with bcrypt and token refresh logic.

Option 3: Comprehensive (with body and footer)

feat(api): add user authentication endpoint

Implement JWT-based authentication with email/password login.
Includes password hashing with bcrypt and token refresh logic.

Closes #42

6. Confirm and Commit

Ask the user which option they prefer (1, 2, or 3), or if they want to customize.

Once confirmed, commit with:

git commit -m "<commit message>"

If the commit includes multiple files across different areas, consider suggesting to split into multiple commits.

Examples

Example 1: Bug Fix

Diff: Fix null pointer in user service

fix(auth): handle null user in validation

Previously crashed when user was null. Now returns proper
error message and 401 status code.

Fixes #89

Example 2: New Feature

Diff: Added dashboard charts

feat(dashboard): add analytics charts

Implement revenue and user growth charts using Chart.js.
Includes real-time updates via WebSocket connection.

Example 3: Documentation

Diff: Updated README

docs(readme): add installation instructions

Include step-by-step setup guide with prerequisites
and troubleshooting section.

Example 4: Breaking Change

Diff: Changed API response format

feat(api): standardize response format

Wrap all responses in {data, error, metadata} structure
for consistency across endpoints.

BREAKING CHANGE: All API responses now use new format.
Update clients to access data via response.data field.

Best Practices

  1. Be specific: "add user auth" not just "add feature"
  2. Use imperative mood: "fix bug" not "fixed bug"
  3. Keep subject short: Under 50 chars
  4. Explain why: In the body, explain reasoning
  5. Reference issues: Link to issue tracker
  6. Note breaking changes: Always document in footer

Quick Mode

If user provides custom message with the command: /commit "fix: resolve login bug"

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Commit by jeremylongshore?

Commit by jeremylongshore is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Generate an AI-powered conventional commit message from your git diff and

How do I install Commit by jeremylongshore in Claude Code?

Download commit.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Commit by jeremylongshore in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Commit by jeremylongshore safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.