github-api

Transform GitHub URLs into plain-text diffs, patches, raw files, and feeds.

2|Updated Oct 2, 2025
One-click install
npx skills add https://github.com/franklinbaldo/egregora --skill github-api-franklinbaldo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-api
Source: https://github.com/franklinbaldo/egregora/tree/main/.claude/skills/github-api
Command: npx skills add https://github.com/franklinbaldo/egregora --skill github-api-franklinbaldo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the need for manual navigation or complex HTML parsing when analyzing GitHub content. It provides direct, plain-text access to diffs, patches, and raw files, saving you time and simplifying code review and analysis tasks.

Core Features & Use Cases

  • Direct Diff/Patch Access: Transform PR and commit URLs to get unified diffs or full patches for easy code review.
  • Raw File Content: Instantly fetch the raw text of any file on GitHub, perfect for configuration or script analysis.
  • Smart Fallback: Automatically attempts plain text access and falls back to HTML if necessary (e.g., for comments).
  • Use Case: When a colleague shares a GitHub PR link, use this Skill to immediately fetch the .diff and provide a concise code review summary, highlighting key changes without opening a browser.

Quick Start

Use the github-api skill to get the diff for this pull request: https://github.com/franklinbaldo/egregora/pull/600

Frequently Asked Questions about github-api

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

FAQPage Schema
How do I get a diff or patch from a GitHub pull request without opening a browser?

Transform the PR URL by appending `.diff` or `.patch` to fetch unified diffs or full patches as plain text. This Skill automates that transformation, letting you review code changes instantly in your terminal or analysis pipeline without HTML parsing.

Can I fetch raw file content directly from GitHub URLs?

Yes. This Skill converts GitHub file URLs to raw plain-text content, allowing you to instantly access configuration files, scripts, or source code for analysis or comparison without navigating the web interface.

What formats does GitHub API support for code review workflows?

GitHub URLs can be transformed into unified diffs (.diff), full patches (.patch), raw file content, and Atom feeds. This Skill handles all four formats, enabling flexible code review, monitoring, and content analysis without authentication or HTML parsing.

How do I extract diffs from commits and compare views on GitHub?

This Skill applies to commit URLs and compare pages, automatically fetching diffs or patches as plain text. It works across PRs, commits, files, compares, and gists, streamlining code review and change tracking.

Does this work when GitHub content requires fallback handling?

Yes. The Skill attempts plain-text formats first, then gracefully falls back to HTML when needed—for example, when fetching comments or content not available in standard diff or raw modes—ensuring reliable access without manual intervention.