gitagenthq/git-agent-cli/using-git-agent
Claude Code and agent skill by gitagenthq/git-agent-cli
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install gitagenthq/git-agent-cli/using-git-agentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Git Agent CLI
AI-powered Git CLI for atomic AI commits. It is online and LLM-backed, so every install configures its own endpoint: base_url and model, plus an api_key for a hosted provider.
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:
- 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.
- Assemble the intent: condense that context into one concise sentence
describing what changed and why — never a raw file list or diff dump.
- Commit with the assembled intent:
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:
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.gitignorewhile 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. There is no built-in endpoint: setbase_urlandmodel, plus anapi_keyfor a hosted endpoint orcloudflare_ai_gateway_idto route through your own AI Gateway. Agent-session env vars (PI_MODEL,CLAUDE_CODE_MODEL,CODEX_MODEL) never set the inference model — it resolves only from flag / local git config / user config; the session model is read separately forCo-Authored-Byattribution - Structured output:
-o jsonon every read command for scripting
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/using-git-agent/SKILL.md
Popularity
- Repository stars
- 80
- Repository forks
- 5
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gitagenthq/git-agent-cli/using-git-agent)