Skip to main content

Github Expert - Agentic tools for github

Project description

ge — GitHub Engineering for AI Agents

Tools and skills that let AI coding agents work on GitHub issues, PRs, and discussions intelligently.

pip install ge
ge install-skills   # register skills with Claude Code

Now, from any project, tell your AI agent "work on issue #42" — it will prepare full context, check freshness, download media, and proceed with informed decisions.

Install skills for Claude Code

ge ships Claude Code skills that teach the agent how to work on GitHub issues. After installing the package, register the skills globally:

ge install-skills

This creates symlinks in ~/.claude/skills/ pointing to the skills bundled with ge. From then on, when you ask Claude Code to work on a GitHub issue in any project, it will automatically:

  1. Verify the issue belongs to the current project
  2. Fetch the full issue context (body, comments, media, cross-references)
  3. Analyze freshness — is it stale? already fixed? has related merged PRs?
  4. Ask you before working on ambiguous or likely-resolved issues
  5. Request you paste images when visual context matters

Three skills are installed:

Skill Purpose
ge Full workflow — verify, prepare, analyze, work
ge-analyze Quick triage — check if an issue is worth working on
ge-context Context preparation — fetch and assemble structured documents

To remove the skills: ge uninstall-skills

What it does

ge fetches an issue or PR and assembles everything an agent needs:

  • Issue/PR body and all comments — with media URLs rewritten to local paths
  • Images downloaded — screenshots, mockups, error captures (with auto-detected extensions)
  • Video frames extracted — via ffmpeg scene detection; bare GitHub asset URLs are auto-detected as video/image from content
  • Freshness analysis — is this issue stale? already fixed? has related merged PRs?
  • Cross-references — commits and PRs that mention this issue
  • Code file checks — do the files mentioned in the issue still exist?

All via gh CLI, so private repos just work.

Quick start

# Install
pip install ge

# Prepare context for an issue
ge prepare owner/repo 42

# Or from a URL
ge prepare https://github.com/owner/repo/pull/7

# Just check freshness (no download)
ge analyze-issue owner/repo 42

Requirements

  • gh CLI — installed and authenticated (gh auth login)
  • ffmpeg — optional, for video frame extraction
  • Python 3.10+

Commands

ge prepare <repo> <N>              Full context (auto-detects issue/PR/discussion)
ge prepare-discussion <repo> <N>   Full context for a GitHub Discussion
ge analyze-issue <repo> <N>        Freshness analysis (JSON, no download)
ge analyze-pr <repo> <N>           PR review analysis with CI status (JSON)
ge fetch-issue <repo> <N>          Raw issue JSON
ge fetch-pr <repo> <N>             Raw PR JSON
ge fetch-discussion <repo> <N>     GitHub Discussion JSON
ge media <file.md>                 Download media from markdown
ge video-frames <video>            Extract frames (scene detection by default)
ge install-skills                  Register skills with Claude Code (~/.claude/skills/)
ge uninstall-skills                Remove ge skill symlinks

Project structure

ge/
├── __init__.py      # Facade: prepare(), install_skills(), etc.
├── __main__.py      # CLI via argh (SSOT: _cli_commands list)
├── github.py        # GitHub API via `gh` CLI subprocess
├── media.py         # Image download + video frame extraction (ffmpeg)
├── analysis.py      # Staleness/freshness/relevance analysis
├── context.py       # Assembles everything into context docs
├── util.py          # Internal helpers: gh wrapper, URL parsing, media extraction
└── data/skills/     # Claude Code skills (symlinked by install-skills)
    ├── ge/          # Full workflow skill
    ├── ge-analyze/  # Triage/staleness skill
    └── ge-context/  # Context preparation skill

Python API

import ge

ctx = ge.prepare_issue('owner/repo', 42)
ctx = ge.prepare_pr('owner/repo', 7)
ctx = ge.prepare_discussion('owner/repo', 5)

# Or from any GitHub URL (auto-detects type)
ctx = ge.prepare('https://github.com/owner/repo/issues/42')
ctx = ge.prepare('https://github.com/owner/repo/discussions/5')

# Just analysis
analysis = ge.analyze_issue('owner/repo', 42)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ge-0.1.3.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ge-0.1.3-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file ge-0.1.3.tar.gz.

File metadata

  • Download URL: ge-0.1.3.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 029bf7aa67a8939430ed59f8c668d663edd77b545f29d0c5ea72499c231b7d84
MD5 4406f3cd34a813016d4514e5caf5a20a
BLAKE2b-256 bc9e66d41b1dc3503ac6860e7a0a6d082d8b0d51ad3b09d4a1c64e7726f8f605

See more details on using hashes here.

File details

Details for the file ge-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ge-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 168fbcc0f9455b9ccb165c4657854735e19a18417d1762a2b02f7dd0b4feb35f
MD5 8bcbc3326f73d9102e9b6e5de8a5334a
BLAKE2b-256 618c2751bd6ef875bbd04b7242ef135f447f78b1ffe639d20918b26b89fcf1f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page