Skip to content
Skillpedia
General coding6.2k · #14399

reading-source-code

What it does

This skill guides an agent to read code from one or more repositories and report what it found in plain language. It is for people who ask questions about a codebase and want clear answers.

When to use it

  • ✓When you ask a question that needs an answer from repository code.
  • ✓When a search would cover many repositories and you want to choose which ones to read.
  • ✓When a code search finds nothing and you want the agent to try other options before saying so.

Skill link

https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Find every place in our repositories that uses the OrderStatus type, and tell me in plain words what each one does.”

5 new skills a week. 1 minute to read.

How it works

The skill asks which repositories to focus on when a search would cover many of them. It then reads the code, retries after small errors, and reports the findings without describing its search steps.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

Will it search all repositories at once?

No, when many repositories could be searched, it asks you which ones to focus on first.

What does the answer look like?

It describes what was found in plain language, not the steps used to search.

What happens after an error?

The skill fixes small errors itself and retries before mentioning a limitation.

Details

Original description by the author

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

Popularity

GitHub stars
6.2k
Ranking position
#14399
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills