# GitHub Archive Search

Search GitHub issues and PRs in a local archive and find duplicate clusters.

- Repository: https://github.com/openclaw/openclaw (393636 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add openclaw/openclaw --skill gitcrawl -g -a claude-code -y`
Codex: `npx skills add openclaw/openclaw --skill gitcrawl -g -a codex -y`
Cursor: `npx skills add openclaw/openclaw --skill gitcrawl -g -a cursor -y`
Gemini CLI: `npx skills add openclaw/openclaw --skill gitcrawl -g -a gemini-cli -y`

## Description

GitHub archive: issue/PR search, sync freshness, duplicate clusters, current GitHub handoff, and Gitcrawl repo work.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Gitcrawl

Use local GitHub archives for discovery; verify current GitHub state before a
maintainer decision or public mutation. Check freshness and configured database
paths with `gitcrawl doctor --json`.

```bash
gitcrawl threads owner/repo --numbers <number> --include-closed --json
gitcrawl neighbors owner/repo --number <number> --limit 12 --json
gitcrawl search issues "query" -R owner/repo --state open --json number,title,url
gitcrawl clusters owner/repo --sort size --min-size 5
gitcrawl cluster-detail owner/repo --id <cluster-id>
```

For stale results, use a bounded `--sync-if-stale 5m` search or targeted
`gitcrawl sync owner/repo --numbers 123,456 --with pr-details`. The latter
hydrates local PR files, commits, checks, workflow runs, and review-thread
resolution; it does not populate the separate GitHub CLI cache.

## Current GitHub State

Use bare PATH `gh` and narrow native JSON fields:

```bash
gh pr view <number> -R owner/repo --json number,title,state,url,isDraft,headRefName,headRefOid
gh pr checks <number> -R owner/repo --json name,state,bucket,link
gh issue view <number> -R owner/repo --json number,title,state,closedAt,url
```

`gitcrawl gh` was removed. Its exit 2 is a migration notice, not an auth failure.
Do not pass its `--live`/`--cached` flags or old field names to `gh`, restore an
old Gitcrawl, bypass the existing Octopool shim, or change auth/PATH/config to
repair that removed command. Octopool owns the shared `gh` cache; Gitcrawl owns
the local archive. See the [upstream migration guide](https://github.com/openclaw/gitcrawl/blob/main/docs/gh-shim.md)
when setting up or diagnosing that handoff.

## Archive Boundaries

The rest: https://github.com/openclaw/openclaw/blob/HEAD/.agents/skills/gitcrawl/SKILL.md
