reading-source-code
Skill này làm gì
Skill này hướng dẫn agent đọc code từ một hoặc nhiều repository và báo cáo những gì tìm thấy bằng ngôn ngữ đơn giản. Skill dành cho người hỏi về một codebase và muốn có câu trả lời rõ ràng.
Khi nào nên dùng
- ✓Khi bạn hỏi một câu cần câu trả lời từ mã nguồn trong repository.
- ✓Khi một lần tìm kiếm sẽ bao gồm nhiều repository và bạn muốn chọn những repository cần đọc.
- ✓Khi tìm kiếm mã không có kết quả và bạn muốn agent thử các cách khác trước khi nói như vậy.
Liên kết skill
https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tìm mọi chỗ trong các repository của chúng tôi dùng kiểu OrderStatus, và giải thích bằng lời đơn giản mỗi chỗ làm gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Khi một tìm kiếm có thể bao gồm nhiều repository, skill hỏi bạn muốn tập trung vào repository nào. Sau đó skill đọc code, thử lại sau các lỗi nhỏ và báo cáo kết quả mà không mô tả các bước tìm kiếm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Skill có tìm trong tất cả repository cùng lúc không?
Không. Khi có thể phải tìm trong nhiều repository, skill hỏi bạn muốn tập trung vào repository nào trước.
Câu trả lời trông như thế nào?
Skill mô tả những gì đã tìm thấy bằng ngôn ngữ đơn giản, không mô tả các bước tìm kiếm.
Điều gì xảy ra sau một lỗi?
Skill tự sửa các lỗi nhỏ và thử lại trước khi nhắc đến một giới hạn.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 6.2k
- Vị trí xếp hạng
- #14399
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
breakup-pr
6.2kGiúp agent của bạn tách một pull request lớn thành các phần nhỏ, xếp chồng lên nhau, để có thể xem xét và gộp từng phần một.
lightdash-agent-slack-messaging
6.2kGiúp agent của bạn viết báo cáo bảo trì và hoạt động cho quản trị viên Lightdash rõ ràng, thân thiện, chỉ dựa trên bằng chứng có sẵn.
developing-in-lightdash
6.2kGiúp agent của bạn đọc, tạo và chỉnh sửa dashboard và biểu đồ Lightdash dưới dạng JSON, kèm cài đặt của từng loại biểu đồ.
filter-expressions
6.2kGiúp agent của bạn viết biểu thức lọc đúng cho truy vấn số liệu Lightdash, kể cả lọc trên các chỉ số tùy chỉnh.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.