Works with the AI Agents you already use

    GitHub CLI Workflow – AI Repository Automation

    by HalfSugarTea

    1

    Manage GitHub repositories from your AI agent using Git and GitHub CLI. Check repository state, commit and push changes, and open pull requests or releases.

    Free

    Security scanned

    GitHub CLI Workflow – AI Repository Automation

    Example session with this skill installed

    Check my GitHub auth status, then create a new private repo from this current directory called "api-gateway" and push the initial commit to main.

    • Read your context and instructions
    • Compiled the github cli workflow

    Illustrative example — no GitHub operation was executed

    I would first check GitHub CLI authentication, inspect the working tree, and verify the intended owner, repository name, and private visibility. I would also review which files are about to be staged and exclude credentials and local configuration. If authentication is missing, a person must approve the GitHub device sign-in before continuing.

    For a folder without Git history, initialize a main branch, stage the reviewed files, and create the initial commit. Then use GitHub CLI to create the private repository from the local checkout and push the initial branch. If the folder already has history or an origin remote, inspect that state before making changes.

    After the push, verify the remote URL, private visibility, and upstream branch before reporting success.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Manage GitHub repositories from an AI coding agent using local Git and GitHub CLI.

    What you can do

    • Check authentication, the current branch, working-tree changes, and remotes before acting.
    • Clone repositories or create public and private repositories from local files.
    • Commit and push changes, open pull requests, and create tagged releases.
    • Update renamed remotes and troubleshoot authentication, scopes, and branch protection.

    Frequently asked questions

    Do I need a browser? GitHub device sign-in requires human approval in a browser. Day-to-day repository operations use the terminal.

    What does it need access to? The agent needs a local shell and access to the selected repository files. Remote changes require a GitHub account with appropriate access. Keep credentials in your local credential store or secret manager.

    Which agents can use it? Use an agent that can load SKILL.md and run local Git and GitHub CLI commands. The package includes PowerShell and Bash preflight helpers.

    Requires manual human approval for the initial device login code. Host must have gh and git installed. Headless Linux environments without a keyring require specific secret manager integration.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Software
    GitNetwork AccessTerminal / ShelBrowserGitHub CLIPython

    GitHub device sign-in requires human approval in a browser. Remote operations require a GitHub account with access to the target repository. Updating GitHub Actions workflow files may require the workflow scope.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill eliminates the need for fragile browser automation or manual password entry by enabling your agent to interact directly with the GitHub CLI and local git via secure OS keyring authentication.

    Yes, while the skill automates ongoing operations, a one-time manual device authorization is required during setup to securely link your GitHub account to the host machine's keyring.

    The skill is compatible with any AI agent capable of executing shell commands, provided the host environment has Git and the GitHub CLI (`gh`) installed.

    Unlike generic prompts that might leak secrets in logs, this skill uses the `gh` credential helper to store tokens in native OS managers like macOS Keychain or Windows Credential Manager, ensuring tokens are never exposed in the agent's chat history.

    You receive the optimized logic and command structures for repository lifecycle management, branch control, and PR automation, along with documentation for initial environment configuration.

    The skill supports all standard repository tasks, including cloning, creating public/private repos, managing remotes, pushing commits, and generating releases with automated notes.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free