Commit

From softspark/ai-toolkit · View interactive version

Commit is an AI agent skill from the GitHub repository softspark/ai-toolkit. Creates Conventional Commits with pre-commit validation. Triggers: commit, conventional commit, git commit, message.

How to use this skill

Skill file

Git Commit

$ARGUMENTS

Creates well-structured git commits following Conventional Commits specification.

Project context

Commit Format

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

[optional body]

[optional footer]

Types

| Type | Description |

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

| feat | New feature |

| fix | Bug fix |

| docs | Documentation only |

| style | Formatting, no code change |

| refactor | Code restructuring |

| perf | Performance improvement |

| test | Adding/updating tests |

| chore | Maintenance tasks |

| ci | CI/CD changes |

Examples

# Feature
git commit -m "$(cat <<'EOF'
feat(search): add multi-hop reasoning support

- Implement query decomposition
- Add iterative retrieval with reasoning
- Include answer synthesis from aggregated context
EOF
)"

# Bug fix
git commit -m "$(cat <<'EOF'
fix(cache): resolve connection pool exhaustion

Root cause: connections not returned to pool on error
Solution: use context manager for automatic cleanup

Fixes #123
EOF
)"

Automated Pre-Commit Check

Run the bundled script for structured pre-commit analysis:

python3 ${CLAUDE_SKILL_DIR}/scripts/pre-commit-check.py

Use the output to validate staged changes, detect secrets, and suggest commit type/scope.

Pre-Commit Checklist

Before committing:

Git Safety

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.