# GitHub Repository Snapshot Tool (Alf/MAD)

> GitHub Repository Snapshot Tool (Alf/MAD) is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns a quick-glance summary of a GitHub repository including stars, forks, open issues, last commit, latest release, license, languages, contributors, and archived status.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/github_repo?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-snapshot-tool-alf-mad-4a4640f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W6rR5H359-q-GGop40GeO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability github-repository-snapshot-tool-alf-mad-4a4640f7 -d '<json body>'
```

Example prompt: Can you pull up a snapshot of the facebook/react GitHub repo — stars, forks, open issues, last commit, license, and whether it's still actively maintained?

## When to prefer this

Use this endpoint when you need a fast, structured at-a-glance summary of a GitHub repository's health and activity without parsing raw GitHub API responses yourself. Prefer it over manual GitHub browsing or raw API calls when you want a pre-digested trustworthiness snapshot — especially useful when evaluating dependencies, vetting open source projects, or comparing multiple repos quickly. Best for agents that need to make decisions based on repo activity signals.

## Known failure modes

- Invalid or non-existent repo identifier returns an error
- Private repositories may return access-denied or not-found errors
- Rate limiting on the underlying GitHub API could cause failures
- Malformed owner/name format (e.g. missing slash) may cause a parsing error
- Very new repositories with no releases or commits may return partial data

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a structured summary of the GitHub repository including: star count, fork count, number of open issues, date of last commit, latest release tag, license type, languages used, number of contributors, and whether the repo is archived — all in a single fast response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "repo"
 ],
 "properties": {
  "repo": {
   "type": "string",
   "description": "owner/name or a github.com URL"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "A GitHub repository at a glance: stars, forks, open issues, last commit, latest release, license, languages, contributors, archived — is it alive and trustworthy?"
 },
 "tool": "github_repo",
 "billing": {
  "usd": 0.002,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-snapshot-tool-alf-mad-4a4640f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
