# github_summarizer (`net.2xcel.aus.github-summarizer`)

> Agent Utility Service (AUS) Repo Health & Diff Analyzer: Analyzes GitHub PR diff patches, repository structural changes, maintenance health scores, and executive summaries for code review agents.

## Metadata & Execution
- **Namespace**: `net.2xcel.aus.github-summarizer`
- **Canonical HTML Page**: https://aipages.tech/tool/net.2xcel.aus.github-summarizer
- **JSON Specification**: https://aipages.tech/api/tools/net.2xcel.aus.github-summarizer
- **Execution Endpoint**: `POST https://aipages.tech/tool/github-summarizer`
- **Connection Protocol**: `http`
- **Pricing**: $0.0025 USDC per call (Base Mainnet Chain ID 8453)
- **Health Status**: `unknown`
- **Capabilities**: github-api, diff-analysis, codebase-health, executive-summary
- **Authentication**: x402 payment protocol (Header: x-payment-receipt; Token: USDC on Base Mainnet; Recipient: 0xE57cB8C73c4000EA04ba0eb607228CbAec7f8e9C)

## Input Parameters (JSON Schema Draft-07)
```json
{
  "type": "object",
  "properties": {
    "repoUrl": {
      "type": "string",
      "description": "Target GitHub repository URL (https://github.com/org/repo)"
    },
    "diffOrPatch": {
      "type": "string",
      "description": "Raw git diff or PR unified patch string to analyze"
    },
    "pullRequestNumber": {
      "type": "integer",
      "description": "Optional PR number for automated fetching"
    },
    "includeHealthMetrics": {
      "type": "boolean",
      "default": true,
      "description": "Calculate maintenance and CI health scores"
    }
  },
  "required": [
    "repoUrl"
  ]
}
```

## Invocation Examples

### 1. Zero-Friction Sandbox Test (No Payment Required)
```bash
curl -X POST "https://aipages.tech/tool/net.2xcel.aus.github-summarizer" \
  -H "Content-Type: application/json" \
  -H "x-playground-test: true" \
  -H "x-agent-id: markdown-agent" \
  -d '{}'
```

### 2. Production Invocation (x402 Base Mainnet Settlement)
```bash
curl -X POST "https://aipages.tech/tool/github-summarizer" \
  -H "Content-Type: application/json" \
  -H "x-payment-receipt: <BASE_USDC_PAYMENT_RECEIPT>" \
  -d '{}'
```
