github-code-search

github-code-search is a skill for Claude Code from dryvist/claude-code-plugins. It costs 60 tokens per session (1,233 once invoked), scanned A, original, Apache-2.0.

A search tool for finding exact code patterns across about one million public GitHub repositories, using grep.app, a public code-search service.

In plain words
What is it for?
Use it to look up real API usage, configuration keys, error messages, stack frames, and prior implementations in public code.
Why use it?
It helps you find existing examples and common approaches before writing custom code, while keeping private or sensitive searches out of the service.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the github-workflows plugin — 18 skills shipped together

Good fit Use it to look up real API usage, configuration keys, error messages, stack frames, and prior implementations in public code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/github-code-search
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dryvist/claude-code-plugins --skill github-code-search
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install github-workflows, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/github-code-search/github.svg)](https://agentmods.dev/skills/dryvist/claude-code-plugins/github-code-search)
Your own site
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/github-code-search"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/github-code-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/github-code-search"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/github-code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,233 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01233
Opus 5.5 $0.00024 $0.00493
Sonnet 5.5 $0.00012 $0.00247
Haiku 4.5 $0.00006 $0.00123

Measured 2mo ago against content hash 130c9324bbbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-code-search scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST https://mcp.grep.app \
github-workflows/skills/github-code-search/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Code Search (grep.app)

Literal code search across roughly a million public GitHub repositories. This is the fastest way to answer "has someone already done this?" — which is the question that has to be answered before any custom code gets written.

When to reach for it

  • Before writing anything custom. native-first says find the existing solution first; this is how you look. A pattern with thousands of hits is idiomatic; a pattern with three is probably a mistake.
  • Real usage of an API, flag, or config key the docs mention but do not show.
  • Prior art for a design decision — how five projects structured the same thing.
  • Error strings and stack frames — searching the literal message often lands on the upstream source that emits it.

Not for: searching this repo (use Grep), private code, or anything where the query itself is sensitive. The query string leaves the machine. Never put a hostname, credential, internal path, or customer name in a search.

How it searches

grep.app matches literal code, not keywords. It is grep over a corpus, not a search engine — there is no stemming, no synonyms, no ranking by intent. Search the exact characters you expect to be in the file.

good:  useOptimistic(          bad:  react optimistic update hook
good:  ANSIBLE_HOST_KEY_CHECKING       bad:  how to disable ansible host key checking

Primary path — the grep MCP server

The tool mcp__grep__searchGitHub is available on-demand only — the server is held out of every session's always-on profile to save tokens (measured usage: 117 calls across 1,651 transcripts). To use it, attach the server with:

claude --mcp-config ~/.claude/mcp-available/grep.json
Param Type Notes
query string required — the literal code to find
language string[] e.g. ["TypeScript","TSX"], ["Nix"], ["YAML"]
repo string partial match — vercel/ matches the whole org
path string partial match — /flake.nix, /.github/workflows/
useRegexp bool default false; prefix (?s) for multi-line patterns
matchCase bool default false
matchWholeWords bool default false — set it when a short identifier is a substring of everything

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -16 tokens per session 130c9324bbbf
  2. 2mo ago Changed · +18 lines d36bb1c219b8
  3. 3mo ago First seen · 96 lines · 76 tokens per session scan A 8dc143c9398b

Subscribe to this mod's changes

github-code-search is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 14d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,233 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

github-code-search compared with skills from other repositories

github-code-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-code-searchdryvist/claude-code-pluginsSkill314d agoApache-2.0A60Claude Code
detect-github-urlidan-yaron/claude-cowork-skills-toolkitSkill57mo agoMITA107Claude Code
example-feature-generatorqf-studio/navigatorSkill35814d agoMITA33Claude Code
content-repurposertravisjneuman/.claudeSkill115yesterdayMITA43Claude Code
electron-desktoptravisjneuman/.claudeSkill115yesterdayMITA38Claude Code
impact-report-writertravisjneuman/.claudeSkill115yesterdayMITA43Claude Code
investment-memo-generatortravisjneuman/.claudeSkill115yesterdayMITA37Claude Code