gather-git-context

Collect Git branch, repository URL, tickets, and log into structured JSON.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/qmu/workaholic --skill gather-git-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gather-git-context
Source: https://github.com/qmu/workaholic/tree/main/plugins/core/skills/gather-git-context
Command: npx skills add https://github.com/qmu/workaholic --skill gather-git-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill gathers all essential git context needed for documentation subagents in a single shell script call, reducing manual gathering and context-switching.

Core Features & Use Cases

  • Git context at a glance: reports current branch, base branch, remote URL, and recent history needed for docs and tickets.
  • Ticket-aware context: includes archived tickets for the active branch to help trace changes and decisions.
  • Deterministic data for AI agents: outputs a machine-readable JSON with key fields to feed documentation tasks.

Quick Start

Use the skill's script to gather context: bash .claude/skills/gather-git-context/sh/gather.sh

Frequently Asked Questions about gather-git-context

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

FAQPage Schema
How do I gather git context and branch data in a single call?

You gather git context in a single call by running a bash script that retrieves the current branch, base branch, repo url, archived tickets, and git log, outputting structured JSON.

What is the best way to automate git context collection for AI documentation?

Automating git context collection for AI documentation uses a shell script to extract branch, base branch, repo url, archived tickets, and git log, returning deterministic JSON for subagents.

Does the git context script require any dependencies to run?

The git context script requires no dependencies, relying purely on standard bash tooling to collect repository data and output the structured JSON payload.

Can I use standard bash tooling to retrieve archived tickets for my active branch?

Yes, standard bash tooling retrieves archived tickets for your active branch, including ticket-aware context within the JSON output to help trace changes and decisions.

What fields are included in the structured JSON output for git context?

The structured JSON output for git context includes the keys branch, base_branch, repo_url, archived_tickets, and git_log, consolidating essential repository data into one payload.