# GitHub workflow

> GitHub workflow is an open-source agent skill for developer tools. Gives your agent a git and GitHub workflow for branches, commits, PRs and issues. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/github-workflow
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** github-workflow
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks an AI coding agent through the everyday GitHub development cycle: creating branches from an up-to-date main, staging specific files, writing conventional commit messages, pushing, opening pull requests and filing issues. It also covers basic code review, such as viewing a PR's diff and checks, and leaving comments or approvals with the gh CLI.

The workflow begins by having the agent inspect repository state with git status, git branch and recent log entries before acting. Each action then follows a fixed pattern with guardrails: no blind git add -A, no force-pushes to main or master without approval, no secrets or .env files in commits, no skipped pre-commit hooks, and PRs linked to issues. Commit, PR and branch conventions are detailed in reference files bundled with the skill.

The skill relies on the git command line and the GitHub CLI (gh) being available and authenticated in the environment. It contains no scripts; it instructs the agent to run these commands directly.

## When your agent uses it

> GitHub workflow automation — branching, committing, pushing, pull requests, issues, and code review. Use when asked to commit, push, create PRs/branches/issues, or manage git workflow.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/github-workflow)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/github-workflow)

## Features

- **Branch creation:** Sets up feature, bugfix, docs, refactor, test and chore branches from an up-to-date main.
- **Conventional commits:** Guides staging specific files and writing type(scope): description commit messages.
- **Push handling:** Covers upstream setup on first push and rebasing when a push is rejected.
- **Pull request creation:** Drafts PRs with a summary, test plan and issue link using the gh CLI.
- **Issue filing:** Creates issues with problem, proposed solution and acceptance criteria sections.
- **Code review steps:** Lists commands to view a PR, its diff and checks, and to comment or approve.

## Good for

- Create a feature branch and commit my changes with a conventional message
- Open a pull request that links to issue 42
- File a GitHub issue describing a bug with acceptance criteria
- Review a teammate's pull request and leave feedback
- Push my branch and recover if the push is rejected

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/github-workflow` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/github-workflow &&
cp -R "$tmp/skills/github-workflow" ~/.claude/skills/github-workflow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/github-workflow` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/github-workflow` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/github-workflow &&
cp -R "$tmp/skills/github-workflow" ~/.agents/skills/github-workflow &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/github-workflow` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/github-workflow` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/github-workflow &&
cp -R "$tmp/skills/github-workflow" ~/.cursor/skills/github-workflow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/github-workflow` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/github-workflow
```

Or copy the folder to `~/.gemini/skills/github-workflow` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/github-workflow`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/github-workflow &&
cp -R "$tmp/skills/github-workflow" ~/.copilot/skills/github-workflow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/github-workflow` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/github-workflow` into your agent's skills folder as `github-workflow`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses git and the GitHub CLI (gh) commands, so both need to be available to the agent in the repository.

### Will GitHub workflow force-push or commit secrets?

The instructions forbid force-pushing to main or master without explicit approval and forbid committing .env files, credentials or secrets.

### Does GitHub workflow include scripts?

No. It has no scripts and works by having the agent run standard git and gh commands, with reference files for commit, PR and branch conventions.

### How do I install GitHub workflow in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/github-workflow to use it in all your projects, or to .claude/skills/github-workflow in one project.

### Does GitHub workflow run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use GitHub workflow?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to GitHub workflow?

The closest alternatives to GitHub workflow are Git workflow, Implement, GitHub issues, Git and release ops edho ferdian and Make PR easy to review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Git workflow](https://ai-powered.com/skills/git-workflow-nabwinsaud): Git workflow is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kripu77): Implement is an open-source agent skill for developer tools.
- [GitHub issues](https://ai-powered.com/skills/github-issues): GitHub issues is an open-source agent skill for developer tools.
- [Git and release ops edho ferdian](https://ai-powered.com/skills/git-and-release-ops-edho-ferdian): Git and release ops edho ferdian is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Conventional branch](https://ai-powered.com/skills/conventional-branch): Conventional branch is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review is an open-source agent skill for developer tools.
- [Ecc workflow](https://ai-powered.com/skills/ecc-workflow): Ecc workflow is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/github-workflow
