Semantic git

From siviter-xyz/dot-agent · View interactive version

Semantic git is an AI agent skill from the GitHub repository siviter-xyz/dot-agent. 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.

How to use this skill

Skill file

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

When to Use

Core Principles

Commit Message Format

<type>[optional scope]: <subject>

[optional body]

[optional footer(s)]

Types

Breaking Changes

Use ! after the type/scope to indicate breaking changes:

Subject Line

Body and Footer

Workflow

  1. Implement atomic change: Code + tests together.
  1. Run CI checks: Verify types, tests, and linting pass before staging.
  1. Stage atomic changes: Group related files together (implementation + tests).
  2. Suggest commit message: Generate a conventional commit message based on changes.
  3. Generate commands:

```bash

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"

```

  1. Ask for execution preference:
  1. Commit:
  1. Next commit:

Automation Mode

If user requests "continue to X" or "automate until X":

Stop and Ask Protocols

Stop and ask user before:

Examples

Simple feature or behaviour change:

feat: add user authentication

Feature with scope:

feat(api): add user endpoint

Bug fix:

fix: resolve memory leak in cache

Breaking change:

feat!: migrate to new API version

Test-only change:

test: improve unit tests for auth service

Refactor (no behavior change):

refactor: extract validation logic into separate function

Complex change (with body):

feat(api): add pagination support

Implements cursor-based pagination for large datasets.
See docs/api/pagination.md for details.

References

For detailed guidance, see:

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.