github-code-search — community github-code-search, dotfiles-nix, community, ide skills

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]
Updated: 3/23/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

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

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
9/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 などの特定の言語またはフレームワークのコード構造、ツール構成、および問題解決パターンの実世界の例を提供します。

おすすめ

GitHub のコードベースの包括的な検索機能を必要とするコード分析エージェントに最適です。

実現可能なユースケース for github-code-search

特定言語またはフレームワークの参考実装を発見する
ツール(flake.nix など)の構成パターンを学ぶ
特定の Nix パッケージまたは関数の例を探す

! セキュリティと制限

  • gh CLI のインストールと構成が必要
  • GitHub のコード検索機能とインデックスに依存する

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs 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 & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is 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.

How do I install github-code-search?

Run the command: npx killer-skills add not-matthias/dotfiles-nix/github-code-search. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for github-code-search?

Key use cases include: 特定言語またはフレームワークの参考実装を発見する, ツール(flake.nix など)の構成パターンを学ぶ, 特定の Nix パッケージまたは関数の例を探す.

Which IDEs are compatible with github-code-search?

This skill is compatible with 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. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for github-code-search?

gh CLI のインストールと構成が必要. GitHub のコード検索機能とインデックスに依存する.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add not-matthias/dotfiles-nix/github-code-search. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use github-code-search immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

github-code-search

Install github-code-search, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
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

関連スキル

Looking for an alternative to github-code-search or another community skill for your workflow? Explore these related open-source skills.

すべて表示

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
開発者