# Workflow

> Enforces git branching strategy, PR process, and merge rules. Covers branch naming, commit conventions, PR creation, CI requirements, and the merge-to-main checklist. Use when creating branches, making commits, opening PRs, or merging code.

- **Type:** Skill
- **Install:** `agentstack add skill-pvnarp-agent-skills-workflow`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [pvnarp](https://agentstack.voostack.com/s/pvnarp)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [pvnarp](https://github.com/pvnarp)
- **Source:** https://github.com/pvnarp/agent-skills/tree/main/skills/workflow

## Install

```sh
agentstack add skill-pvnarp-agent-skills-workflow
```

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

## About

# Git Workflow

Main is always deployable. No exceptions.

## Branching Strategy (GitHub Flow)

```
main (protected - always deployable)
  ├── feature/user-auth
  ├── feature/search-api
  ├── fix/login-timeout
  └── chore/upgrade-deps
```

### Branch Naming
| Prefix | Use |
|--------|-----|
| `feature/` | New functionality |
| `fix/` | Bug fixes |
| `refactor/` | Code restructuring with no behavior change |
| `chore/` | Build config, dependencies, CI, docs |

Rules:
- Lowercase, hyphens only. No spaces, no underscores.
- Short and descriptive: `feature/user-search`, not `feature/implement-the-user-search-functionality-with-filters`.
- One concern per branch. Don't mix a feature with a refactor.

### Creating a Branch
```bash
git checkout main
git pull origin main
git checkout -b feature/your-feature
```

## Commit Conventions

Format: `type: short description`

```
feat: add user search endpoint
fix: correct pagination off-by-one
refactor: extract auth middleware into separate module
chore: upgrade dependencies to latest
test: add unit tests for rate limiting
```

Types: `feat`, `fix`, `refactor`, `chore`, `test`, `docs`

Rules:
- Present tense, imperative mood ("add" not "added" or "adds").
- First line under 72 characters.
- Commit often. Small, atomic commits that each do one thing.
- Never commit: `.env`, credentials, API keys, large binaries.

## Pull Request Process

### 1. Before Opening PR
- [ ] All commits follow conventions
- [ ] Code builds without errors
- [ ] All tests pass
- [ ] No new warnings introduced
- [ ] Self-review: read your own diff

### 2. Open PR
```bash
gh pr create --title "feat: add user search" --body "$(cat <<'EOF'
## Summary
- Brief description of what changed and why

## Test plan
- [ ] Unit tests pass
- [ ] Manual verification of key flows
EOF
)"
```

### 3. CI Must Pass
Automated checks run on every PR. All must pass before merge.

### 4. Code Review
Run `/review` on the PR changes. Address all CRITICAL and WARNING items.

### 5. Merge to Main
```bash
gh pr merge --squash
```

Squash merge keeps main history clean. The PR title becomes the merge commit message.

### 6. Clean Up
```bash
git checkout main
git pull origin main
git branch -d feature/your-feature
```

## What Goes Directly to Main (Never)
Nothing. Even a one-line fix gets a branch and PR. The CI gate and review step catch things humans miss.

## Hotfix Process
Same as above but with urgency:
```bash
git checkout main && git pull
git checkout -b fix/critical-issue
# fix, commit, push, PR, CI passes, merge
```

## Source & license

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

- **Author:** [pvnarp](https://github.com/pvnarp)
- **Source:** [pvnarp/agent-skills](https://github.com/pvnarp/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:** 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-pvnarp-agent-skills-workflow
- Seller: https://agentstack.voostack.com/s/pvnarp
- 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%.
