Skip to content
Automation
Command

/commit

Commit changes following Conventional Commits format (local only, no push).

From plugin
claude-scholar
5.1k65 skills6 agents65 commands5 hooks
Install
> /plugin marketplace add Galaxy-Dawn/claude-scholar
> /plugin install claude-scholar@claude-scholar

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Commit changes following Conventional Commits format (local only, no push).

Command definition

commit.md
description: Commit changes following Conventional Commits format (local only, no push).

Commit

Stage and commit changes using Conventional Commits format.

Instructions

1. **Check Git Status**

  • Run `git status` to review all changes
  • Run `git diff` to inspect modifications

2. **Analyze Changes**

  • Review changed files and their content
  • Determine commit type and scope
  • Draft a concise commit message

3. **Commit Type Reference**

   feat     - New feature
   fix      - Bug fix
   docs     - Documentation only
   style    - Code style (formatting, semicolons, etc.)
   refactor - Code refactoring (no feature/fix)
   perf     - Performance improvement
   test     - Adding or updating tests
   chore    - Build, CI, tooling, dependencies

4. **Commit Message Format**

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

   <body>
  • Subject: imperative mood, no period, max 72 chars
  • Body: explain what and why (optional for small changes)
  • Scope: affected module (data, model, config, trainer, utils, workflow)

5. **Stage and Commit**

  • Stage relevant files with `git add`
  • Do NOT stage files containing secrets (.env, credentials, tokens)
  • Create commit with formatted message
  • Do not include `Co-Authored-By` footers unless the user explicitly asks for them
  • Verify with `git log --oneline -1`

Notes

  • This command only commits locally. Use `/update-github` to also push.
  • Always confirm the commit message with the user before committing.
  • If unsure about type or scope, ask the user.
Read more
Ships withclaude-scholar

Semi-automated research assistant for academic research and software development. Supports Claude Code, Codex CLI, Kimi Code CLI, and OpenCode across ideation, coding, experiments, writing, and publication.

Get the whole plugin