github-code-search — community github-code-search, dotfiles-nix, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

关于此技能

非常适合需要全面 GitHub 代码库搜索功能的代码分析代理。 Search GitHub code using gh code-search command. Use when looking for reference implementations, code examples, or specific patterns across GitHub repositories. Particularly useful for Nix configurations, language-specific patterns, or learning how others solved similar problems.

not-matthias not-matthias
[0]
[0]
更新于: 3/23/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 6/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
6/11
Quality Score
52
Canonical Locale
en
Detected Body Locale
en

非常适合需要全面 GitHub 代码库搜索功能的代码分析代理。 Search GitHub code using gh code-search command. Use when looking for reference implementations, code examples, or specific patterns across GitHub repositories. Particularly useful for Nix configurations, language-specific patterns, or learning how others solved similar problems.

核心价值

使代理能够使用 gh 代码搜索命令在 GitHub 的整个代码库中搜索,提供特定语言或框架(如 Nix)中代码结构、工具配置和问题解决模式的现实世界示例。

适用 Agent 类型

非常适合需要全面 GitHub 代码库搜索功能的代码分析代理。

赋予的主要能力 · github-code-search

发现特定语言或框架的参考实现
学习配置工具(如 flake.nix)模式
查找特定 Nix 包或函数的示例

! 使用限制与门槛

  • 需要 gh CLI 安装和配置
  • 依赖于 GitHub 的代码搜索功能和索引

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The page lacks a strong recommendation layer.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

github-code-search 是什么?

非常适合需要全面 GitHub 代码库搜索功能的代码分析代理。 Search GitHub code using gh code-search command. Use when looking for reference implementations, code examples, or specific patterns across GitHub repositories. Particularly useful for Nix configurations, language-specific patterns, or learning how others solved similar problems.

如何安装 github-code-search?

运行命令:npx killer-skills add not-matthias/dotfiles-nix/github-code-search。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

github-code-search 适用于哪些场景?

典型场景包括:发现特定语言或框架的参考实现、学习配置工具(如 flake.nix)模式、查找特定 Nix 包或函数的示例。

github-code-search 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

github-code-search 有哪些限制?

需要 gh CLI 安装和配置;依赖于 GitHub 的代码搜索功能和索引。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add not-matthias/dotfiles-nix/github-code-search。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    github-code-search 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

github-code-search

安装 github-code-search,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

GitHub Code Search via gh CLI

Search across GitHub's entire codebase using the gh code-search command. This is faster than browsing and helps you find real-world examples of how to structure code, configure tools, or solve problems.

When to Use

  • Finding reference implementations (e.g., how others structure flake.nix)
  • Learning patterns for specific languages or frameworks
  • Discovering how popular projects configure tools
  • Finding examples of specific Nix packages or functions
  • Researching best practices for code organization

Prerequisites

  • gh CLI installed and authenticated (gh auth login)
  • Understanding basic GitHub search syntax

Workflow

Step 1: Construct Your Search Query

Use operators and filters to narrow results:

Basic syntax:

bash
1gh code-search [query] [flags]

Common operators:

  • language:nix - Search only in Nix files
  • language:python - Search in Python files
  • repo:owner/repo - Limit to specific repository
  • filename:flake.nix - Search only in files named flake.nix
  • org:nixos - Search within an organization
  • stars:>100 - Limit to popular repos (helps avoid noise)

Combining operators:

bash
1gh code-search 'stdenv.mkDerivation' language:nix repo:nixos/nixpkgs stars:>50

Run the search and review results:

bash
1gh code-search 'search query' language:nix --limit 10

Flags:

  • --limit N - Show first N results (default 30, max 100)
  • --json - Output as JSON for processing
  • --match <field> - Match against: path, symbol, or content (default: content)

Step 3: Navigate Results

Each result shows:

  • Repository name
  • File path
  • Repository description
  • URL to view on GitHub

Click or copy the URL to examine the full context in your browser.

Examples

Find Nix Package Examples

Search for how others define packages:

bash
1# Look for fetchFromGitHub usage 2gh code-search 'fetchFromGitHub' language:nix stars:>50 --limit 10 3 4# Find similar packages (e.g., Rust tools) 5gh code-search 'rustPlatform.buildRustPackage' language:nix --limit 20 6 7# Find AppImage packaging examples 8gh code-search 'appimageTools' language:nix --limit 5

Find Nix Service Configurations

bash
1# Systemd service examples 2gh code-search 'systemd.services' language:nix org:nixos --limit 10 3 4# Home Manager module examples 5gh code-search 'home.packages' language:nix stars:>100 --limit 15

Find flake.nix Patterns

bash
1# Browse flakes with specific input patterns 2gh code-search 'inputs.nixpkgs' filename:flake.nix stars:>50 --limit 20 3 4# Find flake outputs patterns 5gh code-search 'outputs = {' filename:flake.nix --limit 10

Non-Nix Examples

bash
1# Python package examples 2gh code-search 'def setup(' language:python filename:setup.py stars:>100 3 4# Rust build patterns 5gh code-search 'cargo.toml' language:toml stars:>50 6 7# Shell script patterns 8gh code-search '#!/bin/bash' language:shell --limit 10

Advanced Patterns

Exclude Noise

Add negative filters to exclude test files or templates:

bash
1gh code-search 'pattern' language:nix -filename:test.nix

Search Organization

Find patterns within the NixOS organization (most authoritative):

bash
1gh code-search 'stdenv.mkDerivation' language:nix org:nixos --limit 50

Combine With Local Processing

Export to JSON and process locally:

bash
1gh code-search 'query' language:nix --json | jq '.[] | .url' > results.txt

Common Issues

Issue: Too many irrelevant results

  • Solution: Add filters like stars:>100 to focus on popular, well-maintained repos. Add org:nixos for authoritative NixOS examples.

Issue: Results seem outdated

  • Solution: Focus on recent changes by searching for specific patterns in active projects. Check the repository's last update date on GitHub.

Issue: Can't find specific syntax

  • Solution: Try variations of the syntax (e.g., stdenv.mkDerivation vs mkDerivation). Search for similar projects that use the same tool/library.

Tips

  • Start broad, narrow down: Begin with simple queries, then add filters based on results
  • Use stars for quality: stars:>50 helps surface well-maintained examples
  • Check multiple examples: Different people solve problems differently—see 3-5 implementations to find patterns
  • Use filename filters: filename:flake.nix is faster than searching content for specific file types
  • Bookmark useful repos: When you find a good reference, star it or note the URL for future reference
  • Cross-reference: Use multiple searches to find complementary examples

See Also

相关技能

寻找 github-code-search 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具