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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
Comments
- …
More skills from this repository
breakup-pr
6.2kHelps your agent split a large pull request into smaller, stacked slices that can be reviewed and merged one at a time.
lightdash-agent-slack-messaging
6.2kHelps your agent write clear, friendly maintenance and activity reports for Lightdash administrators, based only on the evidence it has.
developing-in-lightdash
6.2kHelps your agent read, create and edit Lightdash dashboards and charts as JSON, including each chart type's settings.
filter-expressions
6.2kHelps your agent write correct filter expressions for Lightdash metric queries, including filters on custom metrics.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.