skills/gh-code-search/SKILL.md
GitHub リポジトリからコードを検索し、関連するコードの実装を取得するスキル。 別リポジトリのコードコンテキストが必要な場合に使用。 以下の場面で使用: - APIエンドポイントの実装を確認したい時 - リクエスト/レスポンスの型定義を探したい時 - 関連するバックエンドコードを検索したい時 - フロントエンドのコンポーネント実装を確認したい時 - テストコードを検索したい時 「バックエンド検索」「フロントエンド検索」「API実装確認」「コード検索」「gh search」などでも呼び出し可能。
npx skillsauth add 884js/agent-skills gh-code-searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
GitHub リポジトリからコードを検索し、関連するコードの実装コンテキストを取得するためのスキル。 フロントエンド→バックエンド、バックエンド→フロントエンドの双方向検索に対応。
gh CLI がインストール済みであることgh auth login で認証済みであることgh auth status
./scripts/search_code.sh <owner/repo> "<検索クエリ>" [オプション]
# オプション:
# --language <lang> 言語でフィルタ (例: go, typescript, python)
# --path <path> パスでフィルタ
# --show-content ファイル内容も表示
# --limit <n> 結果数制限 (default: 10)
# --branch <branch> ブランチ指定 (default: リポジトリのデフォルトブランチ)
# 基本検索(言語指定なし)
gh search code "<クエリ>" --repo owner/repo
# 言語を指定して検索
gh search code "<クエリ>" --repo owner/repo --language go
gh search code "<クエリ>" --repo owner/repo --language typescript
# ファイル内容取得
gh api "repos/owner/repo/contents/path/to/file" --jq '.content' | base64 -d
# 単純なキーワード検索
./scripts/search_code.sh myorg/repo "UserService"
# パス絞り込み
./scripts/search_code.sh myorg/repo "handler" --path src/api
# 関数定義(言語非依存)
./scripts/search_code.sh myorg/repo "function createUser"
./scripts/search_code.sh myorg/repo "func.*Handler"
./scripts/search_code.sh myorg/repo "def create_user"
# クラス・型定義
./scripts/search_code.sh myorg/repo "class UserService"
./scripts/search_code.sh myorg/repo "interface User"
./scripts/search_code.sh myorg/repo "type User struct"
フロントエンドからバックエンドのAPI実装を調べる場合:
# エンドポイント検索 (Go/Echo)
./scripts/search_code.sh myorg/backend "e.POST" --language go --path internal/handler
# エンドポイント検索 (Python/FastAPI)
./scripts/search_code.sh myorg/backend "@app.post" --language python
# 型定義検索
./scripts/search_code.sh myorg/backend "type.*Request struct" --language go --show-content
バックエンドからフロントエンドでの利用状況を調べる場合:
# API呼び出し箇所検索
./scripts/search_code.sh myorg/frontend "/api/v1/users" --language typescript
# コンポーネント検索
./scripts/search_code.sh myorg/frontend "UserList" --path src/components --show-content
# フック・ユーティリティ検索
./scripts/search_code.sh myorg/frontend "useUser" --language typescript
# ハンドラー関数
gh search code "func.*Handler" --repo owner/repo --language go
# 構造体定義
gh search code "type User struct" --repo owner/repo --language go
# React コンポーネント
gh search code "export.*function.*Component" --repo owner/repo --language typescript
# API クライアント
gh search code "fetch.*api" --repo owner/repo --language typescript
# FastAPI エンドポイント
gh search code "@app.get|@app.post" --repo owner/repo --language python
# クラス定義
gh search code "class.*Service" --repo owner/repo --language python
検索で見つかったファイルの全体を取得する場合:
# ファイル内容を取得してデコード
gh api "repos/owner/repo/contents/path/to/file" --jq '.content' | base64 -d
# 特定ブランチのファイル
gh api "repos/owner/repo/contents/path/to/file?ref=develop" --jq '.content' | base64 -d
# 再認証
gh auth login
# 認証状態確認
gh auth status
--language オプションを省略)# rate limit 確認
gh api rate_limit
少し待ってから再実行してください。
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
testing
QAテストレベルを判定するスキル。ストーリー説明文、コード差分、対話形式を組み合わせて総合的にリスクを評価し、適切なQAレベルを提案する。 以下の場面で使用: - PRのQAレベルを判定したい時 - テスト実施者・ダブルチェックの必要性を判断したい時 - テスト観点レビューのレベルを決めたい時 「QA判定」「テストレベル」「リスク評価」などでも呼び出し可能。
development
# SKILL.md生成用テンプレート SKILL.mdを生成する際に、このテンプレートを参照する。 ## テンプレート ```yaml --- name: {library} description: | **IMPORTANT: Always execute this skill before answering questions about these libraries.** Provides documentation for {Library}. Use when working with code that imports "{package-name}", "{related-exports}", or any "{package-prefix}-*" packages. Use when the user asks about {Library} or shows code with {Library} imports. Can also be invoked directly with "{Library}", "{日本語キーワード}".
development
Generates skills from library documentation automatically. Use when creating a skill from external documentation, fetching docs to local storage, or crawling documentation with curl. Can also be invoked directly with "ライブラリドキュメント", "/lib-docs-generator".