semantic-git
БесплатноБез исполняемых скриптовНе проверенManage Git commits using conventional commit format with atomic staging. Always generate plain git commands before running them and offer to let the user run…
от siviter-xyz★ 23 звезды на GitHubОб этом скилле
Semantic Git
Manage Git commits using conventional commit format with atomic commits and concise messages.
This skill is zagi-aware and is designed to work well with AI IDEs (Cursor, etc.)
Tooling
- Preferred:
zagi(a better git interface for agents).- Assume zagi is installed if:
gitis aliased to zagi in the shell or- a
zagibinary is available.
- When in doubt, treat
gitas if it may be zagi-compatible and avoid using exotic flags. - Even when zagi is available, generate plain
gitcommands and let anygit→zagiintegration handle them.
- Assume zagi is installed if:
- Fallback: plain
gitwhen zagi is not available.
When to Use
- Committing changes to git
- Staging files for commit
- Creating commit messages
- Managing atomic commits
- Before pushing changes
Core Principles
- Atomic commits: Stage and commit related changes together. Tests go with implementation code.
- User confirmation: Always confirm with user before committing and before moving to the next commit.
- Conventional format: Use conventional commit message format (feat, fix, etc.) unless directed otherwise.
- Concise messages: Keep messages brief and to the point. Omit description unless change is complicated.
- Command transparency: Always show the exact
gitcommands that will be run (which may be handled by zagi via alias/wrapper), and ask whether the user wants:- to run them manually, or
- to have the agent run them.
Commit Message Format
<type>[optional scope]: <subject>
[optional body]
[optional footer(s)]
Types
feat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)refactor: A code change that neither fixes a bug nor adds a featureperf: A code change that improves performancetest: Adding missing tests or correcting existing testsbuild: Changes that affect the build system or external dependenciesci: Changes to CI configuration files and scriptschore: Maintenance tasks (updating build tasks, dependencies, etc.; no production code change)revert: Revert a previous commit
Breaking Changes
Use ! after the type/scope to indicate breaking changes:
feat!: add new APIfix(api)!: change response format
Subject Line
- Use imperative mood: "add feature" not "added feature" or "adds feature"
- First letter lowercase (unless starting with proper noun)
- No period at the end
- Keep under 72 characters when possible
Body and Footer
- Omit body unless change is complicated or requires explanation
- When needed, be concise and reference issues, PRs, or documentation
- Use footer for breaking changes:
BREAKING CHANGE: <description>
Workflow
- Implement atomic change: Code + tests together.
- Use
test:for test-only changes.
- Use
- Run CI checks: Verify types, tests, and linting pass before staging.
- Prefer a single CI command if it exists (e.g.,
pnpm ci,npm run ci,just ci). - If no CI command, run checks individually (typecheck, test, lint).
- If any check fails, stop and report – do not proceed.
- Prefer a single CI command if it exists (e.g.,
- Stage atomic changes: Group related files together (implementation + tests).
- Suggest commit message: Generate a conventional commit message based on changes.
- Generate commands:
Construct explicit shell commands using
git(which may be an alias or wrapper such as zagi), for example:git add path/to/file1 path/to/file2 GIT_AUTHOR_DATE="YYYY-MM-DD HH:MM:SS" \ GIT_COMMITTER_DATE="YYYY-MM-DD HH:MM:SS" \ git commit -m "feat: add feature"Always print these commands to the user in order.
- Ask for execution preference:
- Ask the user whether they want:
- to copy-paste and run the commands themselves, or
- to have the agent run them.
- Only execute commands after explicit user approval.
- Ask the user whether they want:
- Commit:
- When executing, run exactly the printed commands.
- Respect any user instructions about backdating timestamps or additional flags.
- Next commit:
- Before staging the next set of changes, confirm with the user that the previous commit is complete and understood.
Automation Mode
If user requests "continue to X" or "automate until X":
- Proceed with atomic commits automatically, but still print commands.
- For each commit:
- Show the staging and commit commands.
- Optionally execute them automatically, as per the user’s automation request.
- Resume asking for confirmation when X is reached.
- X can be: specific file, feature completion, test passing, etc.
Stop and Ask Protocols
Stop and ask user before:
- Adding type ignores (
@ts-ignore,# type: ignore, etc.). - Adding suppressions (ESLint disable, pylint disable, etc.).
- Using
anytype or similar type escapes. - When
Установить semantic-git в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл semantic-git?
Manage Git commits using conventional commit format with atomic staging. Always generate plain git commands before running them and offer to let the user run them manually.
Как установить скилл semantic-git?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл semantic-git запускает скрипты?
Нет, скилл состоит только из инструкций (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