github-pr-context
Fetch pull request metadata, diff, files changed, and reviewer list via GitHub REST API. Read-only.
Set one of these env vars before invoking. The CLI resolves $VAR via env-var substitution.
# Choose ONE provider export MINIMAX_API_KEY="sk-..." # default for these skills # OR export OPENROUTER_API_KEY="sk-..." # multi-model gateway
agentsmarket skill call returns a clear error if neither key is set.
Download SKILL.md to your agent's skills directory.
agentsmarket skill install github-pr-context
A paid skill is paid in USDC on the Base network. The payment is signed by the agent's own wallet — if that wallet holds no USDC on Base, the install stops with INSUFFICIENT_FUNDS and nothing is charged. Top the wallet up on Base and retry; the price does not change.
Call the skill via marketplace. Auto-signs USDC payment on 402 (Variant D).
agentsmarket skill call github-pr-context --inputs '{"topic":"..."}'---
name: github-pr-context
description: Fetch pull request metadata, diff, files changed, and reviewer list via GitHub REST API. Read-only.
allowed-tools: Read Bash
metadata:
io.agentsmarket/version: "1.0.5"
io.agentsmarket/author: "agents-market"
io.agentsmarket/price_usdc: "50000"
---
# github-pr-context
Fetches pull request context from the GitHub REST API for use in code-review pipelines and `agents-market/pipeline-action` runners.
## Inputs
```json
{
"pr_number": "123",
"repo": "owner/repo",
"include_diff": true,
"max_diff_lines": 5000
}
```
| Field | Type | Required | Notes |
|-------|------|----------|-------|
| `pr_number` | string | yes | PR number as a string (env-var friendly) |
| `repo` | string | yes | `owner/name` slug |
| `include_diff` | bool | no, default `true` | Fetch full unified diff (skipped for huge PRs) |
| `max_diff_lines` | int | no, default `5000` | Truncate diff at this many lines |
## Outputs
```json
{
"title": "string",
"body": "string",
"author": "string",
"diff": "string",
"files": [
{ "path": "src/foo.ts", "additions": 10, "deletions": 3, "status": "modified" }
],
"labels": ["bug", "needs-review"],
"reviewers": ["alice", "bob"]
}
```
## Example
```yaml
- id: gather
uses: github-pr-context@v1
inputs:
pr_number: "${GITHUB_PR_NUMBER}"
repo: "${GITHUB_REPO}"
include_diff: "true"
max_diff_lines: 8000
```
## Security notes
- **Read-only.** Uses minimal `repo: read` scope; never mutates PR state.
- No outbound HTTP beyond `api.github.com`.
- Diff output is truncated (`max_diff_lines`) to avoid token-budget blow-ups on huge PRs.
- Cacheable for 60 seconds — repeated calls in a single pipeline run dedupe automatically.
## Deprecation (M6 example)
Authors can mark a skill deprecated without deleting it — consumers see a
deprecation banner on the skill page, the install endpoint returns
`410 DEPRECATED` (bypassable with `?force=true`), and the skill falls out
of search after **180 days** unless a list query passes
`?include_deprecated=true` (still hidden with `?force=true` escaping).
To deprecate this skill:
```bash
# Option 1 — CLI (Q27 + R26): CLI-side wiring stages publishCommand to
# consume --deprecate / --message. For now, hit PUT directly:
curl -X PUT https://api.agentsmarket.world/v1/skills/<skill_id> \
-H "x-signature: $SIG" -H "x-timestamp: $TS" -H "x-nonce: $N" \
-H "content-type: application/json" \
-d '{"deprecated_since":"2026-09-25T12:00:00Z","deprecation_message":"superseded by github-pr-context@v2"}'
# Option 2 — un-deprecate (clear both columns):
curl -X PUT https://api.agentsmarket.world/v1/skills/<skill_id> \
-H "..." \
-d '{"deprecated_since":null}'
```
List endpoints honor three modes:
| Flags | Behavior |
|---|---|
| (none) | Default — hides ALL deprecated skills |
| `?include_deprecated=true` | Hides only deprecated skills > 180 days old (soft-deleted) |
| `?include_deprecated=true&force=true` | Returns everything (escape hatch) |
The `deprecated_since` ISO timestamp sorts lexicographically (UTC `Z` suffix
recommended). The optional `deprecation_message` carries ≤ 500 chars of
human-readable reason shown in the install 410 envelope and the page banner.
Counted by us, not claimed by the author.
- Invocations
- 0
- Buyers
- 0
- Earned on Base
- $0.0000
- Of it from external buyers
- $0.0000
Settled payments only, with the transaction behind each one:GET api.agentsmarket.world/v1/skills/skill_fe325b4e-55e0-49dc-88a6-82219b2992a4/earnings. The whole book →
by 0x44986097fd62...