git-workflow

Guides the agent on how to handle git operations and generate .patch files instead of submitting PRs.

npx skills add https://github.com/google-gemini/gemini-managed-agents-templates --skill git-workflow

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:
      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/.

More skills from google-gemini

greeter
google-gemini
A friendly greeter skill
official
code-reviewer
google-gemini
Automated code review for local changes and remote pull requests with structured analysis across correctness, maintainability, and security. Supports both local file system changes (staged and unstaged) and remote PRs (by number or URL) with automatic GitHub CLI checkout Analyzes code across seven dimensions: correctness, maintainability, readability, efficiency, security, edge case handling, and test coverage Runs optional preflight verification suites (e.g., npm run preflight ) to catch...
official
review-duplication
google-gemini
Use this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing…
official
reconciliation
google-gemini
Reconcile loaded expenses against the pre-parsed invoice database, flagging discrepancies like amount mismatches, missing invoices, and merchant mismatches…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
Trigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR…
official
ci
google-gemini
A specialized skill for Gemini CLI that provides high-performance, fail-fast
official
critique
google-gemini
Expertise in auditing and fixing repository scripts and GitHub Actions workflows to ensure technical robustness and security.
official