/commit
Creates Conventional Commits with pre-commit validation. Triggers: commit, conventional commit, git commit, message.
$ npx -y skills add softspark/ai-toolkit --skill commit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/commit
Context preview
The summary Claude sees to decide when to auto-load this skill.
Creates Conventional Commits with pre-commit validation. Triggers: commit, conventional commit, git commit, message.
SKILL.md
commit.SKILL.mdname: commit
description: "Creates Conventional Commits with pre-commit validation. Triggers: commit, conventional commit, git commit, message."
effort: medium
disable-model-invocation: true
argument-hint: "[message or scope]"
allowed-tools: Bash, Read, Grep
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "echo 'Reminder: ensure linting passes before committing'"Git Commit
$ARGUMENTS
Creates well-structured git commits following Conventional Commits specification.
Project context
- Staged changes: !`git diff --cached --stat 2>/dev/null || echo "nothing staged"`
- Current branch: !`git branch --show-current 2>/dev/null`
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.pyUse the output to validate staged changes, detect secrets, and suggest commit type/scope.
Pre-Commit Checklist
Before committing:
- [ ] Run linting: `make lint` (or `docker exec {app-container} make lint`)
- [ ] Run tests: `make test` (or `docker exec {app-container} make test`)
- [ ] Check for secrets: No API keys or passwords
Git Safety
- NEVER use `--force` push without explicit request
- NEVER skip hooks (`--no-verify`) unless explicitly asked
- ALWAYS create NEW commits (don't amend previous unless asked)
- Stage specific files, avoid `git add -A` with sensitive files
Read more
name: commit
description: "Creates Conventional Commits with pre-commit validation. Triggers: commit, conventional commit, git commit, message."
effort: medium
disable-model-invocation: true
argument-hint: "[message or scope]"
allowed-tools: Bash, Read, Grep
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "echo 'Reminder: ensure linting passes before committing'"Git Commit
$ARGUMENTS
Creates well-structured git commits following Conventional Commits specification.
Project context
- Staged changes: !`git diff --cached --stat 2>/dev/null || echo "nothing staged"`
- Current branch: !`git branch --show-current 2>/dev/null`
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.pyUse the output to validate staged changes, detect secrets, and suggest commit type/scope.
Pre-Commit Checklist
Before committing:
- [ ] Run linting: `make lint` (or `docker exec {app-container} make lint`)
- [ ] Run tests: `make test` (or `docker exec {app-container} make test`)
- [ ] Check for secrets: No API keys or passwords
Git Safety
- NEVER use `--force` push without explicit request
- NEVER skip hooks (`--no-verify`) unless explicitly asked
- ALWAYS create NEW commits (don't amend previous unless asked)
- Stage specific files, avoid `git add -A` with sensitive files
Professional-grade AI coding toolkit with multi-platform support. Machine-enforced safety, 109 skills, 44 agents, expanded lifecycle hooks, persona presets, experimental opt-in plugin packs, and benchmark tooling — works with Claude Code, Claude Chat/Cowork,
Repo: softspark/ai-toolkit
Other skills on ai-toolkit.
- /ai-toolkit-rules
Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every technical, coding, debugging, review, architecture, DevOps, data, or file-editing task in Chat or Cowork.
Open skill - /mem-search
Search past coding sessions using natural language. Finds relevant observations, decisions, and context from previous work.
Open skill - /a11y-validate
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen reader.
Open skill - /agent-creator
Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent, create agent, agent scaffold, specialized agent.
Open skill - /analyze
Analyzes code quality, complexity, patterns across codebase. Triggers: quality report, hotspot scan, code analysis, architecture signal.
Open skill - /api-patterns
REST/GraphQL API design: naming, versioning, pagination, idempotency, OpenAPI. Triggers: API design, REST, GraphQL, OpenAPI, Swagger, idempotency, rate limit.
Open skill

