# Git Workflow General

> Git workflow: branch naming, conventional commits, PR conventions, and merge strategies

- **Type:** Skill
- **Install:** `agentstack add skill-ucdavis-ai-skills-registry-git-workflow-general`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ucdavis](https://agentstack.voostack.com/s/ucdavis)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ucdavis](https://github.com/ucdavis)
- **Source:** https://github.com/ucdavis/ai-skills-registry/tree/main/skills/git-workflow-general

## Install

```sh
agentstack add skill-ucdavis-ai-skills-registry-git-workflow-general
```

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

## About

# Git Workflow

## Branch Naming
```
/
```
| Type | Use for |
|------|---------|
| `feat` | New functionality |
| `fix` | Bug fixes |
| `chore` | Tooling, deps, config |
| `refactor` | Code improvements, no behavior change |
| `docs` | Documentation only |
| `test` | Adding or fixing tests |
| `hotfix` | Urgent production fix |

Examples: `feat/user-auth`, `fix/login-redirect`, `chore/upgrade-node`

## Commit Messages (Conventional Commits)
```
(): 

[body — explain why, not what]

[footer — Closes #123, breaking changes]
```
- Subject: imperative mood, no period, max 72 characters.
- Body: explain *why* the change was made. Reference issues.

```
feat(auth): add JWT refresh token support

Adds sliding window refresh to prevent session expiry during active use.
Tokens expire after 7 days of inactivity. Refresh endpoint is POST /auth/refresh.

Closes #142
```

## Pull Requests
- **Title**: follows conventional commit format.
- **Description**: what changed, why, and how to test it.
- **Size**: one logical change per PR. Large PRs get worse reviews.
- **Reviewers**: request at least one before merging.
- **Link**: reference the related issue.

## Merge Strategy
- **Squash and merge** for feature branches → clean linear history on `main`.
- **Merge commit** for release branches → preserves release history.
- Delete branches after merge.
- Never force-push to `main` or `develop`.

## Rules
- Never commit `.env` files, secrets, or credentials.
- Add `.env.example` with placeholder values.
- CI must be green before merging.

## Source & license

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

- **Author:** [ucdavis](https://github.com/ucdavis)
- **Source:** [ucdavis/ai-skills-registry](https://github.com/ucdavis/ai-skills-registry)
- **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:** yes
- **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-ucdavis-ai-skills-registry-git-workflow-general
- Seller: https://agentstack.voostack.com/s/ucdavis
- 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%.
