Chuyển đến nội dung
Skillpedia
Lập trình chung6.2k · #14399

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/reading-source-code/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự