git-ops

Automates Git branch/worktree management, commits, and PR creation workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/RyoyaYahagi/skills --skill git-ops-ryoyayahagi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-ops
Source: https://github.com/RyoyaYahagi/skills/tree/main/git-ops
Command: npx skills add https://github.com/RyoyaYahagi/skills --skill git-ops-ryoyayahagi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Git Ops policy and automation for managing branches, worktrees, and PRs during code changes, reducing manual overhead.

Core Features & Use Cases

  • Automatic branch and worktree management: Create and switch branches or worktrees as needed by the task scope.
  • Guided commit and PR automation: Standardized commit messages, milestone commits, and PR generation with CI integration.
  • Policy enforcement: Enforce one-feature-per-branch, prevent direct pushes to main/master, and ensure human review before merging.

Quick Start

Tell the agent your task and it will create or switch to a dedicated feature branch, optionally set up a worktree, and prepare commits and a PR workflow.

Frequently Asked Questions about git-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate git workflow management for branches and pull requests?

Git workflow management for branches and PRs is automated by creating dedicated feature branches, setting up worktrees, and preparing standardized commits. This enforces one-feature-per-branch and generates PRs with optional human review before merging.

What's the best way to manage git worktrees when switching tasks?

Git worktrees are managed by applying safe worktree practices when starting or switching tasks. The automation creates and switches branches or worktrees as needed by the task scope, reducing manual overhead and keeping your workspace organized.

Can I use gh to automate pull request creation with standardized commit messages?

PR creation with gh is supported through guided commit and PR automation. It generates standardized commit messages, creates milestone commits, and prepares pull requests with CI integration for your feature branches.

How do I enforce one-feature-per-branch in my git workflow?

One-feature-per-branch is enforced automatically by creating a dedicated branch for each task you describe to the agent. This policy prevents branch pollution and keeps code changes isolated and reviewable.