本文へスキップ
Skillpedia
一般的なプログラミング6.2k · #14399

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル