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

git-commit-helper

Commit message generator that writes conventional commits from staged changes.

version
1.0.0
GitHub stars
79

What it does

  • Adds the /git-commit-helper command to generate conventional commit messages with semantic versioning awareness and templates
  • Covers the conventional commits format, including type, scope, and subject line conventions for your project
  • Guides message structure around commit templates so entries stay consistent across the repository's history

Generate conventional commit messages following best practices

Add marketplace

/plugin marketplace add devsforge/marketplace

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

Install

/plugin install git-commit-helper@devsforge-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Git Commit Helper

A comprehensive guide to writing effective git commits using Conventional Commits format, with templates, automation tools, and best practices.

Table of Contents

Introduction

Well-crafted commit messages are essential for maintaining a clean, understandable git history. They help teams collaborate effectively, make code reviews easier, and simplify debugging and project maintenance.

Why Good Commits Matter

const commitBenefits = {
  collaboration: [
    'Clear communication of changes',
    'Easier code reviews',
    'Better understanding of project history'
  ],
  maintenance: [
    'Quick identification of breaking changes',
    'Easier to find when bugs were introduced',
    'Simplified changelog generation',
    'Better git bisect results'
  ],
  automation: [
    'Automatic semantic versioning',
    'Automated changelog generation',
    'Automated release notes',
    'CI/CD trigger rules'
  ]
};

Conventional Commits Format

The Conventional Commits specification provides a structured format for commit messages.

Format Structure

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

<body>

<footer>

Commit Types

const commitTypes = {
  feat: {
    description: 'A new feature',
    example: 'feat(auth): add OAuth2 login support',
    semver: 'MINOR',
    emoji: 'โœจ'
  },
  fix: {
    description: 'A bug fix',
    example: 'fix(api): resolve null pointer exception in user service',
    semver: 'PATCH',
    emoji: '๐Ÿ›'
  },
  docs: {
    description: 'Documentation changes',
    example: 'docs(readme): update installation instructions',
    semver: 'PATCH',
    emoji: '๐Ÿ“'
  },
  style: {
    description: 'Code style changes (formatting, semicolons, etc.)',
    example: 'style(components): apply prettier formatting',
    semver: 'PATCH',
    emoji: '๐Ÿ’„'
  },
  refactor: {
    description: 'Code refactoring without feature changes',
    example: 'refactor(auth): simplify token validation logic',
    semver: 'PATCH',
    emoji: 'โ™ป๏ธ'
  },
  perf: {
    description: 'Performance improvements',
    example: 'perf(database): add index on user email column',
    semver: 'PATCH',
    emoji: 'โšก'
  },
  test: {
    description: 'Adding or updating tests',
    example: 'test(auth): add unit tests for login flow',
    semver: 'PATCH',
    emoji: 'โœ…'
  },
  build: {
    description: 'Build system or dependency changes',
    example: 'build(deps): upgrade react to version 18',
    semver: 'PATCH',
    emoji: '๐Ÿ“ฆ'
  },
  ci: {
    description: 'CI/CD configuration changes',
    example: 'ci(github): add automated release workflow',
    semver: 'PATCH',
    emoji: '๐Ÿ‘ท'
  },
  chore: {
    description: 'Other changes that dont modify src or test files',
    example: 'chore(gitignore): add .env to ignored files',
    semver: 'PATCH',
    emoji: '๐Ÿ”ง'
  },
  revert: {
    description: 'Revert a previous commit',
    example: 'revert: revert "feat(auth): add OAuth2 login"',
    semver: 'PATCH',
    emoji: 'โช'
  }
};

Breaking Changes

// Breaking change examples
const breakingChangeExamples = [
  {
    format: 'feat!: remove deprecated API endpoints',
    description: 'Exclamation mark indicates breaking change',
    semver: 'MAJOR'
  },
  {
    format: `feat(api): redesign authentication flow

BREAKING CHANGE: The authentication endpoint has been moved from /auth to /v2/auth.
All clients must update their configuration to use the new endpoint.`,
    description: 'BREAKING CHANGE footer provides details',
    semver: 'MAJOR'
  },
  {
    format: `refactor(database)!: change primary key type to UUID

BREAKING CHANGE: Database migration required. All integer IDs converted to UUIDs.
See migration guide at docs/migrations/uuid-migration.md`,
    description: 'Breaking change with migration instructions',
    semver: 'MAJOR'
  }
];

Complete Examples

// Good commit examples
const goodCommits = [
  {
    message: `feat(auth): add two-factor authentication support

Implements TOTP-based 2FA using the speakeasy library.
Users can enable 2FA in their profile settings.

Closes #123`,
    explanation: 'Clear subject, detailed body, references issue'
  },
  {
    message: `fix(api): prevent race condition in order processing

Added mutex lock around order status updates to prevent
concurrent modifications that could result in invalid state.

The race condition occurred when multiple workers processed
the same order simultaneously, leading to duplicate charges.

Fixes #456`,
    explanation: 'Explains problem and solution'
  },
  {
    message: `perf(queries): optimize user search with database indexes

Added composite index on (email, created_at) columns.
Reduced average query time from 1.2s to 45ms.

Benchmarks:
- Before: 1200ms avg, 2500ms p95
- After: 45ms avg, 120ms p95`,
    explanation: 'Includes performance metrics'
  },
  {
    message: `docs(api): add OpenAPI specification

Generated OpenAPI 3.0 spec from route definitions.
Documentation now available at /api/docs.

The spec includes:
- All endpoints with request/response schemas
- Authentication requirements
- Rate limiting information
- Example requests and responses`,
    explanation: 'Lists what was added'
  }
];

// Bad commit examples (to avoid)
const badCommits = [
  {
    message: 'fix bug',
    problem: 'Too vague - which bug? What was fixed?'
  },
  {
    message: 'update stuff',
    problem: 'Not specific - what was updated and why?'
  },
  {
    message: 'WIP',
    problem: 'Work in progress - should not be in main history'
  },
  {
    message: 'Fixed issue with login and also updated the homepage design and refactored the database queries',
    problem: 'Too many unrelated changes in one commit'
  },
  {
    message: 'feat: Add new feature',
    problem: 'Subject is too generic - what feature?'
  }
];

Commit Message Templates

Basic Template

# .gitmessage template
# Place in ~/.gitmessage and configure with:
# git config --global commit.template ~/.gitmessage

# <type>(<scope>): <subject>
# |<---- Using a maximum of 50 characters ---->|

# Explain why this change is being made
# |<---- Try to limit each line to a maximum of 72 characters ---->|

# Provide links to any relevant tickets, articles or other resources
# Example: Fixes #23

# --- COMMIT END ---
# Type can be:
#   feat     (new feature)
#   fix      (bug fix)
#   docs     (documentation changes)
#   style    (formatting, missing semicolons, etc.)
#   refactor (code restructuring)
#   perf     (performance improvement)
#   test     (adding tests)
#   build    (build system changes)
#   ci       (CI/CD changes)
#   chore    (other changes)
# --------------------
# Remember to:
#   - Use the imperative mood in the subject line
#   - Do not end the subject line with a period
#   - Separate subject from body with a blank line
#   - Use the body to explain what and why vs. how
#   - Can use multiple lines with "-" or "*" for bullet points in body

Interactive Template Generator

#!/usr/bin/env node
// commit-helper.js

const readline = require('readline');
const { execSync } = require('child_process');

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

const commitTypes = [
  { value: 'feat', name: 'feat:     A new feature' },
  { value: 'fix', name: 'fix:      A bug fix' },
  { value: 'docs', name: 'docs:     Documentation changes' },
  { value: 'style', name: 'style:    Code style changes' },
  { value: 'refactor', name: 'refactor: Code refactoring' },
  { value: 'perf', name: 'perf:     Performance improvement' },
  { value: 'test', name: 'test:     Adding or updating tests' },
  { value: 'build', name: 'build:    Build system changes' },
  { value: 'ci', name: 'ci:       CI/CD changes' },
  { value: 'chore', name: 'chore:    Other changes' }
];

function question(prompt) {
  return new Promise((resolve) => {
    rl.question(prompt, resolve);
  });
}

function showTypes() {
  console.log('\nAvailable commit types:\n');
  commitTypes.forEach((type, index) => {
    console.log(`${index + 1}. ${type.name}`);
  });
  console.log();
}

async function getGitDiff() {
  try {
    const diff = execSync('git diff --cached --stat', { encoding: 'utf8' });
    return diff;
  } catch (error) {
    return null;
  }
}

async function generateCommit() {
  console.log('=== Git Commit Helper ===\n');

  // Show staged changes
  const diff = await getGitDiff();
  if (diff) {
    console.log('Staged changes:');
    console.log(diff);
  }

  // Select type
  showTypes();
  const typeIndex = await question('Select commit type (1-10): ');
  const type = commitTypes[parseInt(typeIndex) - 1]?.value;

  if (!type) {
    console.log('Invalid type selection');
    rl.close();
    return;
  }

  // Get scope
  const scope = await question('Enter scope (optional, press enter to skip): ');

  // Get subject
  const subject = await question('Enter commit subject (required): ');

  if (!subject) {
    console.log('Subject is required');
    rl.close();
    return;
  }

  // Get body
  console.log('\nEnter commit body (optional, press enter twice to finish):');
  let body = '';
  let line = '';
  let emptyLineCount = 0;

  while (emptyLineCount < 2) {
    line = await question('');
    if (line === '') {
      emptyLineCount++;
    } else {
      emptyLineCount = 0;
      body += line + '\n';
    }
  }

  // Check for breaking change
  const isBreaking = await question('Is this a breaking change? (y/N): ');
  const breaking = isBreaking.toLowerCase() === 'y';

  // Get breaking change description if applicable
  let breakingDesc = '';
  if (breaking) {
    breakingDesc = await question('Describe the breaking change: ');
  }

  // Get issue reference
  const issueRef = await question('Enter issue reference (e.g., #123) or press enter to skip: ');

  // Build commit message
  let commitMessage = '';

  // Subject line
  const scopeStr = scope ? `(${scope})` : '';
  const breakingIndicator = breaking ? '!' : '';
  commitMessage += `${type}${scopeStr}${breakingIndicator}: ${subject}\n`;

  // Body
  if (body.trim()) {
    commitMessage += `\n${body.trim()}\n`;
  }

  // Footer
  let footer = '';
  if (breaking && breakingDesc) {
    footer += `BREAKING CHANGE: ${breakingDesc}\n`;
  }
  if (issueRef) {
    footer += `Closes ${issueRef}\n`;
  }

  if (footer) {
    commitMessage += `\n${footer}`;
  }

  // Preview
  console.log('\n=== Commit Message Preview ===\n');
  console.log(commitMessage);
  console.log('==============================\n');

  const confirm = await question('Create this commit? (Y/n): ');

  if (confirm.toLowerCase() !== 'n') {
    try {
      // Write message to temp file
      const fs = require('fs');
      const tempFile = '/tmp/commit-msg.txt';
      fs.writeFileSync(tempFile, commitMessage);

      // Execute git commit
      execSync(`git commit -F ${tempFile}`, { stdio: 'inherit' });

      console.log('\nโœ… Commit created successfully!');
    } catch (error) {
      console.error('\nโŒ Error creating commit:', error.message);
    }
  } else {
    console.log('\nCommit cancelled.');
  }

  rl.close();
}

generateCommit();

Automated Commit Generation

Commit Message Generator from Git Diff

// generate-commit.js
const { execSync } = require('child_process');
const fs = require('fs');

class CommitGenerator {
  constructor() {
    this.changes = {
      added: [],
      modified: [],
      deleted: []
    };
  }

  analyzeChanges() {
    try {
      // Get staged files
      const status = execSync('git diff --cached --name-status', {
        encoding: 'utf8'
      });

      const lines = status.trim().split('\n');

      lines.forEach(line => {
        const [status, file] = line.split('\t');

        switch (status) {
          case 'A':
            this.changes.added.push(file);
            break;
          case 'M':
            this.changes.modified.push(file);
            break;
          case 'D':
            this.changes.deleted.push(file);
            break;
        }
      });

      return this.changes;
    } catch (error) {
      console.error('Error analyzing changes:', error.message);
      return null;
    }
  }

  inferCommitType() {
    const { added, modified, deleted } = this.changes;

    // Check for new features
    if (added.some(f => f.includes('feature') || f.includes('component'))) {
      return 'feat';
    }

    // Check for tests
    if (added.some(f => f.includes('test')) || modified.some(f => f.includes('test'))) {
      if (this.changes.added.length + this.changes.modified.length === 1) {
        return 'test';
      }
    }

    // Check for docs
    if (added.concat(modified).every(f =>
      f.includes('.md') || f.includes('docs/') || f.includes('README')
    )) {
      return 'docs';
    }

    // Check for config changes
    if (added.concat(modified).every(f =>
      f.includes('config') || f.includes('.json') || f.includes('.yml') ||
      f.includes('.yaml') || f.includes('package.json')
    )) {
      return 'chore';
    }

    // Check for CI changes
    if (added.concat(modified).some(f =>
      f.includes('.github') || f.includes('.gitlab') || f.includes('ci/')
    )) {
      return 'ci';
    }

    // Default to fix for modifications
    if (modified.length > 0 && added.length === 0) {
      return 'fix';
    }

    // Default to feat for additions
    if (added.length > 0) {
      return 'feat';
    }

    return 'chore';
  }

  inferScope() {
    const allFiles = [
      ...this.changes.added,
      ...this.changes.modified,
      ...this.changes.deleted
    ];

    // Extract common directory
    if (allFiles.length === 0) return '';

    const paths = allFiles.map(f => f.split('/'));

    // Find common prefix
    let commonPath = paths[0];

    for (let i = 1; i < paths.length; i++) {
      const path = paths[i];
      const newCommon = [];

      for (let j = 0; j < Math.min(commonPath.length, path.length); j++) {
        if (commonPath[j] === path[j]) {
          newCommon.push(commonPath[j]);
        } else {
          break;
        }
      }

      commonPath = newCommon;
    }

    // Use the last directory in common path as scope
    if (commonPath.length > 0) {
      return commonPath[commonPath.length - 1];
    }

    return '';
  }

  generateSubject() {
    const { added, modified, deleted } = this.changes;

    if (added.length === 1 && modified.length === 0 && deleted.length === 0) {
      const file = added[0].split('/').pop();
      return `add ${file}`;
    }

    if (modified.length === 1 && added.length === 0 && deleted.length === 0) {
      const file = modified[0].split('/').pop();
      return `update ${file}`;
    }

    if (deleted.length === 1 && added.length === 0 && modified.length === 0) {
      const file = deleted[0].split('/').pop();
      return `remove ${file}`;
    }

    // Multiple files
    const total = added.length + modified.length + deleted.length;

    if (added.length > 0) {
      return `add ${added.length} new file${added.length > 1 ? 's' : ''}`;
    }

    if (modified.length > 0) {
      return `update ${modified.length} file${modified.length > 1 ? 's' : ''}`;
    }

    return `modify ${total} file${total > 1 ? 's' : ''}`;
  }

  generateCommitMessage() {
    this.analyzeChanges();

    const type = this.inferCommitType();
    const scope = this.inferScope();
    const subject = this.generateSubject();

    const scopeStr = scope ? `(${scope})` : '';
    const message = `${type}${scopeStr}: ${subject}`;

    return message;
  }

  generateDetailedBody() {
    const { added, modified, deleted } = this.changes;
    const lines = [];

    if (added.length > 0) {
      lines.push('Added:');
      added.forEach(file => lines.push(`- ${file}`));
      lines.push('');
    }

    if (modified.length > 0) {
      lines.push('Modified:');
      modified.forEach(file => lines.push(`- ${file}`));
      lines.push('');
    }

    if (deleted.length > 0) {
      lines.push('Deleted:');
      deleted.forEach(file => lines.push(`- ${file}`));
    }

    return lines.join('\n');
  }
}

// Usage
const generator = new CommitGenerator();
const message = generator.generateCommitMessage();
console.log('Suggested commit message:');
console.log(message);
console.log('\nDetailed changes:');
console.log(generator.generateDetailedBody());

Git Hooks Integration

Commit Message Hook (commit-msg)

#!/bin/sh
# .git/hooks/commit-msg

# Conventional Commits validation hook

commit_msg_file=$1
commit_msg=$(cat "$commit_msg_file")

# Regex for conventional commits
conventional_commit_regex='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9\-]+\))?!?: .{1,50}'

# Check if commit message matches conventional commits format
if ! echo "$commit_msg" | grep -iqE "$conventional_commit_regex"; then
    echo "โŒ Invalid commit message format"
    echo ""
    echo "Commit message must follow Conventional Commits format:"
    echo "  <type>(<scope>): <subject>"
    echo ""
    echo "Example: feat(auth): add login functionality"
    echo ""
    echo "Valid types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert"
    echo ""
    exit 1
fi

# Check subject length (should be <= 50 chars)
subject_line=$(echo "$commit_msg" | head -n1)
subject_length=${#subject_line}

if [ $subject_length -gt 72 ]; then
    echo "โš ๏ธ  Warning: Commit subject line is too long ($subject_length chars, should be <= 72)"
    echo ""
    echo "Current subject: $subject_line"
    echo ""
fi

# Check for imperative mood
if echo "$subject_line" | grep -qE "(ed|ing)$"; then
    echo "โš ๏ธ  Warning: Use imperative mood in subject line"
    echo "   Bad:  'Added feature' or 'Adding feature'"
    echo "   Good: 'Add feature'"
    echo ""
fi

echo "โœ… Commit message format is valid"
exit 0

Prepare Commit Message Hook

#!/bin/sh
# .git/hooks/prepare-commit-msg

commit_msg_file=$1
commit_source=$2

# Only run for regular commits (not merge, squash, etc.)
if [ -z "$commit_source" ]; then
    # Get current branch name
    branch=$(git symbolic-ref --short HEAD 2>/dev/null)

    # Extract issue number from branch name (e.g., feature/ABC-123-description)
    issue=$(echo "$branch" | grep -oE '[A-Z]+-[0-9]+' | head -n1)

    if [ -n "$issue" ]; then
        # Check if issue number is already in commit message
        if ! grep -q "$issue" "$commit_msg_file"; then
            # Add issue reference to commit message
            echo "" >> "$commit_msg_file"
            echo "Refs: $issue" >> "$commit_msg_file"
        fi
    fi
fi

Commit Message Linting

Commitlint Configuration

// commitlint.config.js
module.exports = {
  extends: ['@commitlint/config-conventional'],

  rules: {
    // Type enum
    'type-enum': [
      2,
      'always',
      [
        'feat',
        'fix',
        'docs',
        'style',
        'refactor',
        'perf',
        'test',
        'build',
        'ci',
        'chore',
        'revert'
      ]
    ],

    // Type case
    'type-case': [2, 'always', 'lower-case'],

    // Type empty
    'type-empty': [2, 'never'],

    // Scope case
    'scope-case': [2, 'always', 'lower-case'],

    // Subject case
    'subject-case': [2, 'always', 'lower-case'],

    // Subject empty
    'subject-empty': [2, 'never'],

    // Subject full stop
    'subject-full-stop': [2, 'never', '.'],

    // Subject max length
    'subject-max-length': [2, 'always', 50],

    // Body leading blank
    'body-leading-blank': [2, 'always'],

    // Body max line length
    'body-max-line-length': [2, 'always', 72],

    // Footer leading blank
    'footer-leading-blank': [2, 'always'],

    // Custom rules
    'header-max-length': [2, 'always', 72]
  },

  // Custom plugins
  plugins: [
    {
      rules: {
        'ticket-reference': (parsed) => {
          const { body, footer } = parsed;
          const text = (body || '') + (footer || '');

          // Check for ticket reference (e.g., #123, JIRA-123)
          const hasTicket = /(?:#\d+|[A-Z]+-\d+)/.test(text);

          return [
            hasTicket,
            'Commit must reference a ticket (e.g., #123 or JIRA-123)'
          ];
        }
      }
    }
  ]
};

Husky Integration

{
  "name": "my-project",
  "version": "1.0.0",
  "scripts": {
    "prepare": "husky install"
  },
  "devDependencies": {
    "@commitlint/cli": "^17.0.0",
    "@commitlint/config-conventional": "^17.0.0",
    "husky": "^8.0.0"
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ]
  }
}
# Install husky and commitlint
npm install --save-dev @commitlint/cli @commitlint/config-conventional husky

# Initialize husky
npx husky install

# Add commit-msg hook
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit $1'

Interactive Commit Tools

Commitizen Setup

# Install commitizen
npm install --save-dev commitizen cz-conventional-changelog

# Initialize
npx commitizen init cz-conventional-changelog --save-dev --save-exact
{
  "scripts": {
    "commit": "cz"
  },
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  }
}

Custom Commitizen Adapter

// .cz-config.js
module.exports = {
  types: [
    { value: 'feat', name: 'feat:     A new feature' },
    { value: 'fix', name: 'fix:      A bug fix' },
    { value: 'docs', name: 'docs:     Documentation only changes' },
    { value: 'style', name: 'style:    Code style changes' },
    { value: 'refactor', name: 'refactor: Code change that neither fixes a bug nor adds a feature' },
    { value: 'perf', name: 'perf:     Performance improvement' },
    { value: 'test', name: 'test:     Adding or updating tests' },
    { value: 'build', name: 'build:    Build system or external dependencies' },
    { value: 'ci', name: 'ci:       CI configuration files and scripts' },
    { value: 'chore', name: 'chore:    Other changes that don\'t modify src or test files' },
    { value: 'revert', name: 'revert:   Revert to a commit' }
  ],

  scopes: [
    { name: 'api' },
    { name: 'auth' },
    { name: 'database' },
    { name: 'ui' },
    { name: 'components' },
    { name: 'services' },
    { name: 'utils' },
    { name: 'config' },
    { name: 'deps' }
  ],

  allowCustomScopes: true,
  allowBreakingChanges: ['feat', 'fix'],
  skipQuestions: [],

  subjectLimit: 50,
  breaklineChar: '|',

  footerPrefix: 'ISSUES CLOSED:',

  messages: {
    type: 'Select the type of change that you\'re committing:',
    scope: 'What is the scope of this change (e.g. component or file name):',
    customScope: 'Denote the scope of this change:',
    subject: 'Write a SHORT description of the change:\n',
    body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
    breaking: 'List any BREAKING CHANGES (optional):\n',
    footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
    confirmCommit: 'Are you sure you want to proceed with the commit above?'
  }
};

Best Practices

const commitBestPractices = {
  content: [
    'Write clear, concise commit messages',
    'Use imperative mood ("Add feature" not "Added feature")',
    'Start subject line with lowercase',
    'Don\'t end subject line with a period',
    'Limit subject line to 50 characters',
    'Separate subject from body with a blank line',
    'Wrap body at 72 characters',
    'Explain what and why, not how',
    'Reference issues and pull requests'
  ],

  structure: [
    'Make atomic commits (one logical change per commit)',
    'Commit complete, working code',
    'Don\'t commit commented-out code',
    'Don\'t commit debugging statements',
    'Review your changes before committing (git diff --staged)',
    'Use interactive staging when needed (git add -p)'
  ],

  workflow: [
    'Commit often with meaningful messages',
    'Don\'t commit work-in-progress to main branch',
    'Use feature branches for new development',
    'Squash commits before merging to main',
    'Write commit message when committing, not later',
    'Use git commit hooks to enforce standards'
  ],

  team: [
    'Follow team conventions consistently',
    'Agree on commit message format',
    'Use commit templates',
    'Configure linting tools',
    'Review commit history during code reviews',
    'Document commit conventions in CONTRIBUTING.md'
  ]
};

// Example workflow
const exampleWorkflow = `
# 1. Stage specific changes
git add src/auth/login.js

# 2. Review staged changes
git diff --staged

# 3. Commit with conventional message
git commit -m "feat(auth): implement OAuth2 login flow

Add OAuth2 authentication using passport.js library.
Supports Google and GitHub providers.

Closes #42"

# 4. Or use interactive tool
npm run commit

# 5. Verify commit message
git log -1 --pretty=format:"%s%n%n%b"
`;

This comprehensive guide provides everything needed to implement effective git commit practices with Conventional Commits format, automation tools, and team workflows.

From the devsforge/marketplace README

Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.


๐Ÿš€ DevsForge Marketplace

Version Plugins License Claude Code Stars

The Ultimate Plugin Ecosystem for Claude Code

161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins

Get Started โ€ข Browse Plugins โ€ข Documentation โ€ข Contributing


โšก What's New in v1.2

โœ… Plugin Compliance & Quality

All 161 plugins validated for Claude Code CLI

Fixes Applied:

  • ๐Ÿ”ง Removed invalid commands field from 65 command plugins
  • โœ… All plugin.json files validated
  • ๐Ÿ“ Auto-discovery pattern for commands
  • ๐Ÿ—๏ธ Super plugins structure retained

๐Ÿ—๏ธ Super Plugins (Advanced)

Multi-component platforms with hooks & MCP servers

Features:

  • ๐Ÿค– AI Agent orchestration
  • ๐Ÿข Enterprise workspace management
  • ๐Ÿ”ง Complete DevOps automation
  • ๐Ÿ“Š Real-time state tracking
  • โœจ Event-driven workflows

โœจ Why DevsForge Marketplace?


๐ŸŽจ

Curated Quality

Every plugin manually reviewed & enterprise-tested


โšก

Production Ready

Battle-tested in real-world scenarios


๐Ÿ”’

Security First

Zero dependencies, fully audited code


๐Ÿš€

Advanced Features

Hooks, MCP servers, automation


๐Ÿ’ฏ

100% Original

No copycat plugins, pure innovation


๐ŸŽฏ Quick Start

Installation

# ๐Ÿ”ฅ One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git

# โœ… Verify installation
/plugin marketplace list

# ๐ŸŽ‰ Expected: devsforge-marketplace (1.2.0) - 161 plugins available

Using Plugins

# ๐Ÿ” Browse available plugins
/plugin

# ๐Ÿ“ฆ Install specific plugin
/plugin install ai-architect@devsforge-marketplace

# ๐Ÿš€ Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace

# ๐Ÿ“‹ Manage plugins
/plugin list                              # List installed
/plugin update ai-architect@devsforge-marketplace   # Update plugin
/plugin remove debugger@devsforge-marketplace       # Remove plugin

๐ŸŽจ Featured Categories

๐Ÿค– AI & Machine Learning (12 plugins)
  • ai-architect - ML optimization & AI system design
  • ai-ethics-officer - Ethical AI governance
  • vision-specialist - Computer vision & image processing
  • data-scientist - Data analysis & BigQuery operations
  • data-analyst - Analytics & business intelligence
๐Ÿ”’ Security & Compliance (15 plugins)
  • enterprise-security-reviewer - B2B security assessments
  • security-scanner - Vulnerability detection & remediation
  • authentication-specialist - JWT, OAuth2, security patterns
  • cors-security-expert - CORS configuration & best practices
  • data-privacy-engineer - GDPR compliance & data protection
  • compliance-automation-specialist - Regulatory automation
  • legal-compliance-checker - Legal compliance validation
๐Ÿ’ป Development & Code Quality (25 plugins)
  • code-quality-expert - Code governance & security
  • code-migrator - Legacy code modernization
  • debugger - Advanced debugging methodologies
  • web-dev - React, Next.js, NestJS, TypeScript
  • python-expert - Advanced Python development
  • database-expert โšก NEW - SQL optimization & query tuning
  • docker-specialist โšก NEW - Container optimization
  • git-workflow-expert โšก NEW - Advanced Git strategies
  • rest-api-designer โšก NEW - REST API best practices
  • graphql-specialist โšก NEW - GraphQL schema design
๐Ÿ”ง DevOps & Infrastructure (18 plugins)
  • devops-automator - CI/CD & infrastructure automation
  • deployment-engineer - Production deployment strategies
  • cloud-architect - Multi-cloud architecture
  • monitoring-observability-specialist - System monitoring
  • sre-reliability-engineer - Site reliability engineering
  • cost-optimizer - Cloud cost optimization
๐Ÿงช Testing & QA (10 plugins)
  • testing-orchestrator - Test automation frameworks
  • unit-test-generator - Automated test generation
  • api-quality-assurance - API testing & validation
  • performance-benchmarker - Performance testing
  • test-writer-fixer - Test creation & maintenance
๐Ÿ“ Documentation & Knowledge (8 plugins)
  • codebase-documenter - Comprehensive code documentation
  • technical-writer-pro - Technical documentation
  • api-docs-generator - OpenAPI/Swagger docs
  • doc-generator - Auto-documentation generation
๐ŸŽจ Design & UX (8 plugins)
  • ui-designer - Beautiful, functional interfaces
  • ui-ux-engineer - React/Vue/Angular components
  • accessibility-architect - WCAG 2.1 AA compliance
  • mobile-ux-optimizer - Mobile-first experiences
  • ux-researcher - User research & journey maps
๐Ÿ“Š Data & Analytics (7 plugins)
  • data-analyst - Analytics methodologies
  • data-scientist - SQL queries & data insights
  • database-performance-optimizer - Database optimization
  • sql-query-optimizer - Advanced SQL optimization
๐Ÿข Enterprise & Business (12 plugins)
  • software-architect - Scalable architecture design
  • system-architect - Backend design & integration
  • b2b-project-shipper - B2B project delivery
  • customer-success-manager - Customer success ops
  • technical-sales-engineer - Technical sales support
  • pricing-packaging-specialist - Pricing strategies
๐Ÿš€ Productivity & Automation (15 plugins)
  • workflow-optimizer - Workflow optimization
  • project-shipper - Launch & release management
  • sprint-prioritizer - Sprint planning & prioritization
  • experiment-tracker - Experiment tracking & analysis
  • finance-tracker - Budget & cost management
โšก Super Plugins - Advanced (3 plugins)

๐Ÿข enterprise-workspace

Complete workspace management platform with hooks & MCP

Components:

  • 3 Commands: workspace-init, workspace-sync, workspace-audit
  • 2 Agents: workspace-architect, compliance-auditor
  • 1 Hook: PostToolUse validation
  • 1 MCP Server: workspace-state
  • 1 Script: validate-workspace.sh

Features:

  • โœ… Architecture governance
  • โœ… Compliance tracking
  • โœ… Automated validation
  • โœ… State management

๐Ÿค– ai-studio-orchestrator

Advanced multi-agent coordination platform

Components:

  • 3 Commands: orchestrate-task, monitor-performance, optimize-workflow
  • 2 Agents: task-coordinator, performance-analyzer
  • 1 Hook: PreToolUse logging
  • 1 MCP Server: orchestrator
  • 1 Script: task-logger.sh

Features:

  • โœ… Task distribution
  • โœ… Load balancing
  • โœ… Performance analytics
  • โœ… Real-time monitoring

๐Ÿ”ง devops-platform

Complete DevOps automation platform

Components:

  • 3 Commands: setup-pipeline, deploy-application, manage-infrastructure
  • 2 Agents: cicd-architect, infrastructure-engineer
  • 1 Hook: PostToolUse config validation
  • 1 MCP Server: devops-state
  • 1 Script: validate-devops-config.sh

Features:

  • โœ… CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
  • โœ… Zero-downtime deployments
  • โœ… Infrastructure as Code (Terraform, CloudFormation)
  • โœ… Security scanning

๐Ÿ“Š Marketplace Statistics

CategoryCountDescription
๐Ÿค– Agents93AI-powered development assistants
โšก Commands65Instant productivity tools
๐Ÿš€ Super Plugins3Advanced multi-component platforms
Total161Production-ready plugins

Quality Metrics

  • โœ… Average Documentation: 250+ lines per plugin
  • โœ… Code Examples: Real-world templates included
  • โœ… Testing: Enterprise-grade validation
  • โœ… Security: Zero external dependencies
  • โœ… Maintenance: Regular updates & improvements

๐Ÿ—๏ธ Architecture

devsforge-marketplace/
โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ””โ”€โ”€ marketplace.json          # ๐Ÿ“‹ Marketplace registry (161 plugins)
โ”‚
โ”œโ”€โ”€ plugins/
โ”‚   โ”œโ”€โ”€ agents/                    # ๐Ÿค– 93 AI Agent Plugins
โ”‚   โ”‚   โ”œโ”€โ”€ ai-architect/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ plugin.json
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ agents/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ ai-engineer.md
โ”‚   โ”‚   โ”œโ”€โ”€ database-expert/       โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ docker-specialist/     โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ git-workflow-expert/   โšก NEW in v1.1
โ”‚   โ”‚   โ””โ”€โ”€ ... (90 more agents)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ commands/                  # โšก 65 Command Plugins
โ”‚   โ”‚   โ”œโ”€โ”€ api-designer/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ plugin.json
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ commands/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ api-designer.md
โ”‚   โ”‚   โ”œโ”€โ”€ env-validator/         โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ import-organizer/      โšก NEW in v1.1
โ”‚   โ”‚   โ””โ”€โ”€ ... (62 more commands)
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ super/                     # ๐Ÿš€ 3 Super Plugins
โ”‚       โ”œโ”€โ”€ enterprise-workspace/
โ”‚       โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ plugin.json    # With hooks & MCP
โ”‚       โ”‚   โ”œโ”€โ”€ commands/          # Multiple commands
โ”‚       โ”‚   โ”œโ”€โ”€ agents/            # Multiple agents
โ”‚       โ”‚   โ”œโ”€โ”€ scripts/           # Automation scripts
โ”‚       โ”‚   โ””โ”€โ”€ servers/           # MCP servers
โ”‚       โ”œโ”€โ”€ ai-studio-orchestrator/
โ”‚       โ””โ”€โ”€ devops-platform/
โ”‚
โ””โ”€โ”€ README.md                      # ๐Ÿ“– This file

๐ŸŽ“ Documentation

Plugin Installation Examples

# ๐Ÿค– AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace

# ๐Ÿ’ป Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace

# ๐Ÿ”’ Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace

# ๐Ÿ”ง DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace

# โšก Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace

# ๐Ÿš€ Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace

Marketplace Management

# ๐Ÿ“‹ List installed marketplaces
/plugin marketplace list

# ๐Ÿ”„ Update marketplace
/plugin marketplace update devsforge-marketplace

# ๐Ÿ—‘๏ธ Remove marketplace
/plugin marketplace remove devsforge-marketplace

# ๐Ÿ” Search plugins
/plugin search "security"
/plugin search "api design"

# ๐Ÿ“Š Show plugin details
/plugin info ai-architect@devsforge-marketplace

๐Ÿ› ๏ธ Troubleshooting

โŒ Marketplace Not Loading

Symptoms: Marketplace doesn't appear in /plugin marketplace list

Solutions:

  1. โœ… Verify .claude-plugin/marketplace.json exists in repository root
  2. โœ… Check JSON syntax: claude plugin validate .
  3. โœ… Ensure Git repository is accessible and cloned correctly
  4. โœ… Restart Claude Code CLI after adding marketplace
โŒ Plugin Installation Failures

Symptoms: Error message "Plugin not found" or installation timeout

Solutions:

  1. โœ… Verify plugin source paths are correct: ./plugins/[type]/[name]
  2. โœ… Ensure all required files exist: .claude-plugin/plugin.json, commands/*.md or agents/*.md
  3. โœ… Check network connectivity for Git-based plugin sources
  4. โœ… Try explicit version: /plugin install [name]@devsforge-marketplace@1.0.0
โŒ Super Plugin Issues

Symptoms: Hooks not triggering or MCP server connection errors

Solutions:

  1. โœ… Verify ${CLAUDE_PLUGIN_ROOT} environment variable resolves correctly
  2. โœ… Check script permissions: chmod +x on Linux/Mac
  3. โœ… Ensure Node.js is installed for MCP server JavaScript files
  4. โœ… Review Claude Code logs for hook execution errors
โŒ Performance Issues

Symptoms: Slow marketplace loading or plugin installation

Solutions:

  1. โœ… Check internet connection speed (GitHub clone performance)
  2. โœ… Verify available disk space (minimum 50MB required)
  3. โœ… Close unnecessary applications to free system resources
  4. โœ… Use local path installation for faster access after initial clone

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

๐ŸŽฏ Contributing New Plugins

  1. ๐Ÿด Fork the repository
  2. ๐Ÿ“ Create plugin structure in appropriate directory (agents/, commands/, or super/)
  3. ๐Ÿ“ Follow plugin.json schema requirements
  4. ๐Ÿ“– Add comprehensive documentation (200-700+ lines recommended)
  5. ๐Ÿงช Test thoroughly with Claude Code CLI
  6. ๐Ÿš€ Submit pull request with detailed description

๐Ÿ“‹ Plugin Quality Standards

  • โœ… Minimum 200 lines of documentation
  • โœ… Real-world code examples and templates
  • โœ… Phase-based methodologies
  • โœ… Best practices and anti-patterns
  • โœ… Quality metrics and KPIs
  • โœ… Business impact analysis

๐Ÿ’ก Contributing Ideas

  • ๐Ÿ’ฌ Open a GitHub Discussion with plugin proposal
  • ๐Ÿ“ Describe use case and business value
  • ๐Ÿ’ป Provide examples of desired functionality
  • ๐Ÿ—ณ๏ธ Community votes on most valuable additions

๐Ÿ”’ Security & Trust

โš ๏ธ Important Disclaimer

DevsForge Marketplace is an independent, community-driven project

  • โŒ NOT affiliated with Anthropic or Claude
  • โŒ NOT officially endorsed or connected to Anthropic
  • โœ… Community maintained by open-source contributors
  • โš ๏ธ Use at your own risk - review plugin code before production use

Security Measures

Our Practices:

  • โœ… Security vulnerability scanning
  • โœ… Static code analysis
  • โœ… Zero third-party dependencies
  • โœ… Open source transparency
  • โœ… Community moderation
  • โœ… Regular security audits

Your Responsibilities:

  • ๐Ÿ” Review plugin source code
  • ๐Ÿงช Test in development first
  • ๐Ÿ› Report security issues on GitHub
  • ๐Ÿ”„ Keep plugins updated
  • ๐Ÿ”’ Follow least privilege principle
  • ๐Ÿ“– Read documentation carefully

๐Ÿ“œ License

MIT License - See LICENSE for details

Copyright (c) 2025 DevsForge Community


๐Ÿ™ Acknowledgments

Built with โค๏ธ by the DevsForge Community

Special thanks to:

  • ๐ŸŽจ Anthropic for Claude Code CLI platform
  • ๐Ÿ’ป All plugin contributors and testers
  • ๐Ÿข Enterprise users providing valuable feedback
  • ๐ŸŒŸ Open source community for inspiration

๐Ÿš€ Ready to supercharge your Claude Code experience?

Get Started Now โ€ข Browse Plugins โ€ข Contribute


DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code

Made with Love Community Driven Production Ready

Details

Marketplace
devsforge/marketplace
Source
plugins/commands/git-commit-helper
Author
DevsForge Community
Category
Commands
Keywords
devsforge, command, git, commit
Listed since
Apr 7, 2026

More from devsforge/marketplace

All 161

Similar to git-commit-helper

More Git & Releases