Skip to content
Development
Command

/commit

Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.

From plugin
open-agent-hub
1k3 skills5 agents3 commands6 MCP
> /plugin marketplace add guanyang/open-agent-hub
> /plugin install open-agent-hub@open-agent-hub

Command definition

commit.md
name: commit
description: Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.
type: command

Slash Command: /commit

Core Objective

Analyze staged git modifications and generate/write a high-quality Semantic Commit message.

Steps for the Agent

1. **Analyze Staged Changes**: Run `git diff --cached` to inspect what changes have been staged. 2. **Determine Conventional Commit Type**:

  • `feat`: New features (e.g., new skill, agent, command, utility).
  • `fix`: Bug fixes.
  • `docs`: Documentation updates.
  • `refactor`: Code restructurings.
  • `chore`: Maintenance, dependencies, config updates.

3. **Format Subject & Body**:

  • Write a concise summary line (subject) under 50 characters.
  • Formulate a structured commit message body detailing Added, Modified, and Deleted resources.

4. **Action**: Write the generated message directly to `.git/COMMIT_EDITMSG`. 5. **Output**: Output the commit message for the user to review, and tell them they can run `git commit -F .git/COMMIT_EDITMSG` to finalize the commit.

@guanyang
Ships withopen-agent-hub

A lightweight, zero-dependency CLI tool to manage and activate capabilities for AI coding assistants (such as Claude Code, Cursor, Trae, etc.).

1k105 skills5 agents6 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.0k
Star history of guanyang/open-agent-hub on GitHub, a chart by star-history.com

Other commands on open-agent-hub.

review

review

Command

Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.

test-tdd

test-tdd

Command

Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command