# Git Workflow

> Guides the agent on how to handle git operations and generate .patch files instead of submitting PRs. Use when this capability is needed.

- Skill: `tomevault-io/git-workflow-208` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/git-workflow-208`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/git-workflow-208/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/git-workflow-208

---


# Git Workflow Skill

This skill provides guidelines for interacting with the Git repository and generating patches.

## Steps
1. **Clone Repository**: `git clone https://github.com/<owner>/<repo>.git`
2. **Make Changes**: Edit files in the cloned repository.
3. **Generate Patch**:
   - For a simple diff: `git diff > ../output/fix.patch`
   - For a proper commit-based patch:
     ```bash
     git add .
     git commit -m "Fix: describe the fix"
     git format-patch -1 HEAD --output-directory=../output/
     ```

## Rules
- **CRITICAL**: Do NOT push to remote branches.
- **CRITICAL**: Do NOT attempt to create Pull Requests or use GitHub CLI (`gh`).
- Always verify your changes locally before generating the patch.
- Save all generated patches to `{workspace}/output/`.

---
> Source: [google-gemini/gemini-managed-agents-templates](https://github.com/google-gemini/gemini-managed-agents-templates) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

