Workflow smart commit

From macalbert/envilder · View interactive version

Workflow smart commit is an AI agent skill from the GitHub repository macalbert/envilder. Analyze staged changes and create a conventional commit with an auto-generated message. Use when committing code, staging changes, or generating commit messages.

How to use this skill

Skill file

Smart Commit

Analyze staged changes and create a conventional commit message.

When to Use

Procedure

  1. Run git diff --cached --stat to see what's staged.
  2. Run git diff --cached to read the full diff.
  3. Analyze the changes: identify the dominant change type and scope.
  4. Generate a conventional commit message following the format, rules, and scope heuristics.
  5. Present the commit message for user approval.
  6. Run git commit -m "<message>" after approval.

Commit Message Format

<type>(<scope>): <description>

[optional body]

Types

| Type | When |

|------|------|

| feat | New feature or capability |

| fix | Bug fix |

| refactor | Code restructuring without behavior change |

| test | Adding or updating tests |

| docs | Documentation only |

| chore | Build, CI, tooling, dependencies |

| style | Formatting (no logic change) |

| perf | Performance improvement |

Scopes

See reference.md for the full scope table.

Rules

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.