Generate conventional commit messages following the project style. Analyzes staged changes and creates properly formatted commits.
Commands are custom slash commands that extend Claude Code's functionality. They're markdown files in .claude/commands/ that define reusable prompts or workflows. Invoke them with /command-name in Claude Code. Commands can accept arguments and automate complex multi-step tasks.
Save as `.claude/commands/commit.md` and use `/commit` after staging changes
Analyze the staged git changes and create a well-formatted commit message: 1. **Check Status** - Run `git status` to see staged files - Run `git diff --cached` to see actual changes 2. **Analyze Changes** - Determine the type: feat, fix, refactor, docs, test, chore - Identify the scope (component, file, or area affected) - Summarize the "why" not just the "what" 3. **Generate Message** Format: `type(scope): description` Examples: - `feat(auth): add OAuth2 support for GitHub login` - `fix(api): handle null response in user endpoint` - `refactor(utils): simplify date formatting helpers` 4. **Create Commit** ```bash git commit -m "type(scope): description Optional body with more details Generated with Claude Code" ``` Never commit sensitive files (.env, credentials, etc.)
Generate comprehensive documentation for code, APIs, or components. Creates markdown docs following best practices.
Create and execute a phases-based plan for complex tasks. Divides work into structured phases with individual step tracking.
Generate comprehensive test cases for functions, components, or modules. Creates unit tests following testing best practices.