commit
БесплатноБез исполняемых скриптовНе проверен"Automatically analyzes code changes and creates git commits with conventional commit messages when the user indicates they want to save their work, commit…
от coalesce-labs★ 20 звёзд на GitHubОб этом скилле
Commit Changes
You are tasked with creating git commits using conventional commit format for the changes made during this session.
Process:
Analyze what changed:
- Review the conversation history and understand what was accomplished
- Run
git statusto see current changes - Run
git diff --cachedto see staged changes (if any) - Run
git diffto see unstaged changes - Get changed file list:
git diff --name-onlyandgit diff --cached --name-only
Auto-detect conventional commit components:
Type detection (suggest to user):
- If only
*.mdfiles indocs/: suggestdocs - If only test files (
*test*,*spec*): suggesttest - If
package.json,*.lockfiles: suggestbuild - If
.github/workflows/: suggestci - If mix of changes: suggest
featorfixbased on context - Otherwise: ask user to choose from:
feat,fix,refactor,chore,docs,style,perf,test,build,ci
Scope detection (suggest to user):
- Parse changed file paths
- Map to scopes:
agents/*.md→agentscommands/*.md→commandsscripts/*→scriptsdocs/*.md→docs.claude/→claude- Multiple dirs or root files → empty scope (cross-cutting)
Extract ticket reference:
- Get current branch:
git branch --show-current - Extract ticket pattern:
{PREFIX}-{NUMBER}(e.g., ENG-123, PROJ-456) - Will be added to commit footer
- If only
Generate conventional commit message:
Format:
<type>(<scope>): <short summary> <body - optional but recommended> <footer - ticket reference>Rules:
- Header max 100 characters
- Type: lowercase
- Subject: imperative mood, no period, no capital first letter
- Body: explain WHY, not what (optional for simple changes)
- Footer:
Refs: TICKET-123if ticket in branch name
Example:
feat(commands): add conventional commit support to /commit Updates the commit command to automatically detect commit type and scope from changed files, following conventional commits spec. Extracts ticket references from branch names for traceability. Refs: ENG-123Present plan to user:
- Show detected type and scope with confidence
- Show generated commit message
- Explain: "Detected changes suggest:
<type>(<scope>): <summary>" - List files to be committed
- Ask: "Proceed with this commit? [Y/n/e(dit)]"
- Y: execute as-is
- n: abort
- e: allow user to edit message
Execute commit:
- Stage files:
git add <specific-files>(NEVER use-Aor.) - Create commit with message
- Show result:
git log --oneline -n 1 - Show summary:
git show --stat HEAD
- Stage files:
Configuration
Reads from .catalyst/config.json:
{
"catalyst": {
"commit": {
"useConventional": true,
"scopes": ["agents", "commands", "scripts", "docs", "config"],
"autoDetectType": true,
"autoDetectScope": true,
"requireBody": false
},
"project": {
"ticketPrefix": "PROJ"
}
}
}
Type Reference
Types that appear in CHANGELOG:
feat- New featurefix- Bug fixperf- Performance improvementrevert- Revert previous commit
Internal types:
docs- Documentation onlystyle- Formatting, no code changerefactor- Code restructuring, no behavior changetest- Adding/updating testsbuild- Build system or dependenciesci- CI/CD configurationchore- Maintenance tasks
Examples
Feature:
feat(agents): add codebase-pattern-finder agent
Implements new agent for finding similar code patterns across
the codebase with concrete examples and file references.
Refs: ENG-456
Fix:
fix(commands): handle missing PR template gracefully
Previously crashed when thoughts/shared/pr_description.md was
missing. Now provides clear error with setup instructions.
Refs: ENG-789
Documentation:
docs(scripts): add README for setup scripts
Documents all scripts in scripts/ directory with usage examples
and explains when to use each setup method.
Refs: ENG-012
Chore (no ticket):
chore(config): update conventional commit scopes
Adds new scopes for agents and commands directories.
Important:
- NEVER add co-author information or Claude attribution
- Commits should be authored solely by the user
- Do not include any "Generated with Claude" messages
- Do not add "Co-Authored-By" lines
- Write commit messages as if the user wrote them
- Use conventional format for consistency and changelog generation
- Keep header under 100 characters
- Use imperative mood: "add feature" not "added feature"
Remember:
- You have the full context of what was done in this session
- Group related changes together logically
- Keep commits focused and atomic when possible
- The user trusts your judgment - they a
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadFAQ
Что делает скилл commit?
"Automatically analyzes code changes and creates git commits with conventional commit messages when the user indicates they want to save their work, commit changes, or says 'commit this', 'save my changes', 'let's commit'. Auto-detects commit type, scope, and ticket reference from branch name."
Как установить скилл commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic