# Git

> Use when user asks for git operations: branch creation, committing changes, creating pull requests.

- **Type:** Skill
- **Install:** `agentstack add skill-sniko-agent-skills-git`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [SNIKO](https://agentstack.voostack.com/s/sniko)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [SNIKO](https://github.com/SNIKO)
- **Source:** https://github.com/SNIKO/agent-skills/tree/master/skills/git

## Install

```sh
agentstack add skill-sniko-agent-skills-git
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

- if branch not created, create branch first before committing or opening PR
- if changes not committed, commit changes first before opening PR

Check for the followings for repository specific rules and instructions related to git names/messages conventions and workflows:
- AGETNS.md
- CLAUDE.md
- .agents/

Merge them with the general instructions below, with repository rules taking precedence in case of conflict.

## Commit

Commit message format:

```bash
[scope]: 

```

### Rules
- One logical change per commit, if many files changed, create multiple commits with clear scope and messages
- Present tense: "add" not "added"
- Imperative mood: "fix bug" not "fixes bug"
- Reference issues: `Closes #123`, `Refs #456`
- Keep description under 72 characters
- NEVER update git config
- NEVER run destructive commands (`--force`, hard reset) without explicit request
- NEVER skip hooks (`--no-verify`) unless user asks
- NEVER force push unless the user explicitly requests it
- NEVER commit to `master`/`main` unless repository rules allow it and the user confirms it

## Branch

Branch naming format: `{type}/{semantic-name}`

### Rules
- NEVER delete or rename existing branches without explicit user request
- NEVER force-push or reset master/main
- NEVER run destructive commands without confirmation
- If branch already exists, report this to the user and ask how to proceed

## Pull Request

Title format: `{type}[scope]: {description}`

Description format:

```markdown
## Summary
{1–3 sentences explaining what this PR does and its scope}

## Changes
- {key change 1, do not repeat file changes, focus on observable behavior changes}
- {key change 2, do not repeat file changes, focus on observable behavior changes}
- {more as needed — keep each bullet atomic and concrete}

## Why
{motivation: what problem does this solve, or what goal does it achieve.}

## Breaking Changes
{describe what breaks and how consumers should migrate. Omit if no breaking changes.}
```

Git workflows for branching, committing, and opening pull requests, with automatic convention detection and branch-safety checks.

## Types

**Change types**:

| Type | Purpose |
|---|---|
| `feat` | New feature |
| `fix` | Bug fix |
| `docs` | Documentation only |
| `style` | Formatting/style (no logic) |
| `refactor` | Code refactor |
| `perf` | Performance improvement |
| `test` | Add/update tests |
| `build` | Build system/dependencies |
| `ci` | CI/config changes |
| `chore` | Maintenance/misc |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [SNIKO](https://github.com/SNIKO)
- **Source:** [SNIKO/agent-skills](https://github.com/SNIKO/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sniko-agent-skills-git
- Seller: https://agentstack.voostack.com/s/sniko
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
