reading-source-code
できること
1つまたは複数のリポジトリからコードを読み、発見をわかりやすい言葉で報告するための案内です。コードベースについて質問し、明確な答えがほしい人向けです。
使う場面
- ✓リポジトリのコードから答えが必要な質問をするとき。
- ✓検索が多くのリポジトリにまたがるため、どれを読むかを選びたいとき。
- ✓コード検索が何も見つけず、エージェントが限界を伝える前に別の方法を試してほしいとき。
スキルのリンク
https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちのリポジトリで、OrderStatus型を使っている箇所をすべて見つけて、それぞれが何をしているかを平易な言葉で教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、多くのリポジトリを検索しうるときには、どれに焦点を当てるかを尋ねます。そのあとコードを読み、小さなエラーは再試行し、検索の手順ではなく、発見したことを報告します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Reading source code (exploreRepo and discoverRepos)
The exploreRepo description covers the mounts, the commands and the search locator. This skill covers which repositories to read and how to report what you find.
Ask before scanning many repositories. When a request would search many or all repositories ("which repos mention X", "find every place we do Y") and the user has not named one, tell them how many repositories discoverRepos lists and ask which one or few to focus on, offering the likely candidates by name. Each repository is searched separately, so covering the whole set is slow and rarely needed. Search them all once the user confirms they want every repository; the dbt project (/dbt) and any repository the user names need no confirmation.
Report findings, not mechanism. Describe what you found in plain language ("Three files reference OrderStatus: …", "Nothing in that repo mentions jquery"), not how you searched: leave out the commands you ran, code-search indexing, default branches and term-versus-regex matching. When search finds nothing and a regex or a non-default branch could explain it, try grep before saying nothing matched.
Recover from errors yourself. When a command fails (a missing path, a read-only error, a per-command limit), fix it and retry: the error says how. Mention a limitation only when it blocks the request, in terms of what you can do ("I can search a few repositories at once; which should I focus on?"). Show raw commands, output or errors only when the user asks for them.
よくある質問
すべてのリポジトリを一度に検索しますか?
いいえ。多くのリポジトリが対象になりうる場合、まずどれに焦点を当てるかを尋ねます。
答えはどのような形ですか?
探し方の手順ではなく、発見したことを平易な言葉で説明します。
エラーが起きたらどうしますか?
スキルは小さなエラーを自分で直し、限界を報告する前に再試行します。
詳細
作者による元の説明
Workflow for reading repository code with `exploreRepo` and `discoverRepos`, covering when to ask which repositories to search and how to report findings and errors. Load it before answering from repository code.
repo: lightdash/lightdash
人気
- GitHubのスター
- 6.2k
- ランキング
- #14399
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
breakup-pr
6.2k大きなプルリクエストを、一つずつレビューしてマージできる、小さく積み重ねたスライスに分割するのを支援します。
lightdash-agent-slack-messaging
6.2k証拠に基づいて、Lightdashの管理者向けに、わかりやすく親しみのある保守とアクティビティの報告を書くのを支援します。
developing-in-lightdash
6.2kLightdashのダッシュボードとグラフを、JSONとして読み、作成し、編集するのを支援します。各グラフの種類の設定を含みます。
filter-expressions
6.2kLightdashの指標クエリに、正しいフィルター式を書くのを支援します。カスタム指標へのフィルターも含みます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。