New advertisers: 50% off your first month with code FIRSTMONTHSee slots
fusengine avatar

fuse-commit-pro

Git commit plugin enforcing Conventional Commits with secret scanning and auto type detection.

version
1.2.33
GitHub stars
36

What it does

  • Adds 10 commands (/commit, /feat, /fix, /docs, /refactor, /test, /chore, /wip, /amend, /undo) and a commit-detector agent
  • Detects the commit type from your changes, covering docs, test, fix, feat, and chore patterns, then confirms before committing
  • Blocks commits containing .env files, credentials, or private keys, and warns on debug statements, files over 1MB, and TODO/FIXME comments
  • Designed for developers who want consistent Conventional Commits history without writing the message format by hand

Professional git commits with Conventional Commits, GitHub Flow branch enforcement, auto PR creation, security validation, and auto-detection

Add marketplace

/plugin marketplace add fusengine/agents

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install fuse-commit-pro@fusengine-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source
Detects the optimal conventional commit type (feat/fix/docs/style/refactor/perf/test/build/ci/chore) from staged and unstaged git changes, using file-pattern categorization (docs/test/config/ci/build/src) plus diff-keyword heuristics ("fix", "bug", "optimize", etc.), and derives a scope suggestion from the primary changed directory (e.g. `src/api/auth.ts` → `auth`). Covers the full detection algorithm, the rule cascade, scope extraction, and worked examples. Does not perform the commit itself — routes to the matching `/commit-pro:` command, or to the `commit` skill for full smart analysis when no rule matches cleanly.

Commit Type Detection Skill

Expert knowledge for detecting the optimal conventional commit type.

Detection Algorithm

Step 1: Gather Data

# Get modified files
git diff --name-only
git diff --staged --name-only

# Get change statistics
git diff --stat
git diff --staged --stat

# Check for keywords in diff
git diff | grep -i "fix\|bug\|error" | head -5

Step 2: Categorize Files

CategoryFile Patterns
docs*.md, *.txt, *.rst, README*, CHANGELOG*
test*.test.*, *.spec.*, __tests__/*, test/*
config*.json, *.yml, *.yaml, *.toml, .*rc
ci.github/*, .gitlab-ci.yml, Jenkinsfile
buildpackage.json, Makefile, webpack.*, vite.*
styleOnly whitespace, formatting changes
src*.ts, *.js, *.py, *.go, *.rs, etc.

Step 3: Apply Rules

IF only docs files changed:
  → docs

IF only test files changed:
  → test

IF only config/build files changed:
  → chore

IF only CI files changed:
  → ci

IF diff contains "fix", "bug", "error", "issue", "resolve":
  → fix

IF new files added with business logic:
  → feat

IF files renamed/moved without logic change:
  → refactor

IF performance keywords ("optimize", "perf", "speed", "cache"):
  → perf

IF formatting only (whitespace, semicolons):
  → style

DEFAULT:
  → Use /commit-pro:commit for smart analysis

Step 4: Determine Scope

Extract scope from primary directory:

src/components/Button.tsx → ui or button
src/api/auth.ts → auth
lib/utils/date.ts → utils
server/routes/user.ts → user

Quick Reference

TypeWhenVersion Bump
featNew functionalityPATCH
fixBug correctionPATCH
docsDocumentation onlyPATCH
styleFormatting onlyPATCH
refactorCode restructurePATCH
perfPerformancePATCH
testTests onlyPATCH
buildBuild/depsPATCH
ciCI/CD configPATCH
choreMaintenancePATCH

MINOR/MAJOR bumps are manual user decisions, never automatic.

Post-Commit Actions

See the post-commit skill for universal CHANGELOG, version bump, and tag logic (works for all repos).

Examples

Example 1: Only README changed

Files: README.md
→ /commit-pro:docs

Example 2: New component + test

Files: src/Button.tsx, src/Button.test.tsx
→ /commit-pro:feat (primary is new feature)

Example 3: Fix in existing file

Files: src/api/auth.ts
Diff contains: "fix login bug"
→ /commit-pro:fix

Readme

commit-pro

Professional git commits following Conventional Commits standard with smart auto-detection and security validation.

Features

  • Smart auto-detection agent - Automatically analyzes changes and selects optimal commit type
  • Security validation - Blocks commits containing secrets or credentials
  • Scope detection - Extracts scope from modified directories
  • Best practices - Enforces imperative mood, 50-char limit, proper formatting
  • Safety checks - Prevents amending pushed commits
  • No AI signature - Commits appear 100% human-written

Installation

# From marketplace
/plugin marketplace add brunoazoulay/commit-pro
/plugin install commit-pro

# Or local testing
claude --plugin-dir ./commit-pro

Commands

CommandDescription
/commit-pro:commitSmart commit with auto-detection
/commit-pro:featQuick feature commit
/commit-pro:fixQuick bugfix commit
/commit-pro:docsDocumentation commit
/commit-pro:refactorRefactoring commit
/commit-pro:testTest commit
/commit-pro:choreMaintenance commit
/commit-pro:wipWork in progress (quick save)
/commit-pro:amendAmend last commit (if not pushed)
/commit-pro:undoUndo last commit (soft reset)

Smart Auto-Detection Agent

The plugin includes an intelligent agent that automatically detects the best commit type:

# Just say "commit" and the agent analyzes your changes
"commit my changes"
"save my work"
"git commit"

The agent will:

  1. Analyze all modified files
  2. Detect patterns (docs, tests, fixes, features...)
  3. Select the optimal commit command
  4. Execute with confirmation

Detection rules:

PatternAuto-selected command
Only .md files/commit-pro:docs
Only test files/commit-pro:test
Bug fix keywords in diff/commit-pro:fix
New files with logic/commit-pro:feat
Config/deps only/commit-pro:chore

Usage Examples

# Smart commit - analyzes changes and suggests type
/commit-pro:commit

# Quick feature with description
/commit-pro:feat add user authentication

# Quick fix
/commit-pro:fix resolve login redirect issue

# Documentation update
/commit-pro:docs update API reference

# Work in progress
/commit-pro:wip

Commit Types

TypeWhen to use
featNew feature
fixBug fix
docsDocumentation only
styleFormatting (no logic change)
refactorCode restructure
perfPerformance improvement
testAdding/updating tests
buildBuild system, dependencies
ciCI/CD configuration
choreMaintenance tasks

Security Features

The plugin automatically blocks commits containing:

  • .env files
  • Credentials (password=, secret=, api_key=)
  • Private keys (*.pem, *.key)

And warns about:

  • Debug statements (console.log, debugger)
  • Large files (>1MB)
  • TODO/FIXME comments

No AI Signature

All commits created by this plugin are 100% clean with no AI traces:

  • No Co-authored-by: Claude or similar
  • No Generated by AI mentions
  • No automation footers or trailers
  • Commits appear completely human-written

Structured Output (Auto)

All commands automatically output structured feedback:

📊 Analysis
───────────────────────────────
Files changed: 3
Files staged: 3
Pattern detected: feature

📝 Proposed Commit
───────────────────────────────
feat(auth): add JWT token refresh

⚡ Ready to commit? [Y/N/E]

✅ Committed successfully
───────────────────────────────
Hash: abc1234
Message: feat(auth): add JWT token refresh

License

MIT

Details

Marketplace
fusengine/agents
Source
plugins/commit-pro
Author
Fusengine
Category
Productivity
License
MIT
Keywords
git, commit, conventional-commits, security, automation
Listed since
Apr 7, 2026

More from fusengine/agents

All 26

Similar to fuse-commit-pro

More Git & Releases