gitagenthq/git-agent-cli · Archived

using-git-agent

Use git-agent by default for coding-agent Git work. The bare git-agent command is the normal autonomous workflow; use subcommands only for specific cases. Do not install or configure git-agent automatically.

First seen Jul 2, 2026

Installation

$ npx skills add gitagenthq/git-agent-cli --skill using-git-agent

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gitagenthq/git-agent-cli.

npx skills add gitagenthq/git-agent-cli

Browse all from gitagenthq/git-agent-cli

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 79
License MIT
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,988 B
  • docs SUMMARY.md 230 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 15 installs

SKILL.md

Git Agent CLI

AI-powered Git CLI for atomic AI commits. It is online and LLM-backed; official releases provide a shared gateway, so no personal API key is required.

Start here

Use the bare command by default. Every commit is two steps — gather context first, then assemble and pass the intent. Never build the intent from memory alone:

  1. Gather context: use the harness session-context tool (session_context

in pi) to collect the user's requests and decisions since the last commit; if no such tool exists, fall back to reading the diff yourself.

  1. Assemble the intent: condense that context into one concise sentence

describing what changed and why — never a raw file list or diff dump.

  1. Commit with the assembled intent:
git-agent --intent "<one-sentence intent assembled from the gathered context>"

The bare command is the autonomous agent entry point introduced by the recent CLI workflow. It inspects the repository and runs the commit workflow. Do not default to git-agent commit; use that subcommand only for an explicit commit case.

This file is a discovery stub, not the usage guide. Before running any git-agent command, load the actual workflow content from the CLI:

git-agent skills get core

The CLI serves skill content that always matches the installed version, so instructions never go stale.

Available documents

Document Command
Main usage guide (triggers, workflows, flags, exit codes) git-agent skills get core
Full command reference (all flags, subcommands, config scopes, hook types) git-agent skills get cli
All available documents git-agent skills list

Why git-agent

  • Autonomous workflow: the bare command inspects the repository and runs the commit workflow
  • Atomic commits: splits changes into up to 5 logically distinct commits, each hook-validated
  • Auto-scope: generates commit scopes from git history automatically
  • Scope & .gitignore optimization: regenerates scopes from latest history (init --scope --force) and re-derives .gitignore while preserving custom rules (init --gitignore)
  • Hook validation: conventional-commit validation built in; custom hooks via shell scripts
  • Config precedence: CLI flag > git config --local > ~/.config/git-agent/config.yml > free shared-gateway default; --free forces the gateway and ignores the rest. Agent-session env vars (PIMODEL, CLAUDECODEMODEL, CODEXMODEL) never set the inference model — it resolves only from flag / local git config / user config; the session model is read separately for Co-Authored-By attribution
  • Structured output: -o json on every read command for scripting