semble
Skill này làm gì
Skill giải thích cách dùng công cụ tìm kiếm semble để định vị mã, tài liệu và thiết lập theo ý nghĩa, và tìm mã tương tự với một vị trí đã biết. Dành cho lập trình viên khám phá một mã nguồn chưa quen.
Khi nào nên dùng
- ✓Khi lập trình viên cần tìm nơi một tính năng được triển khai trong dự án.
- ✓Khi lập trình viên muốn tìm tài liệu hoặc cấu hình giải thích một thiết lập.
- ✓Khi lập trình viên muốn xem mã tương tự với một hàm đã biết.
Liên kết skill
https://github.com/MinishLab/semble/blob/main/src/semble/agents/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 nơi dự án này xử lý đăng nhập của người dùng, và cho tôi xem mã tương tự gần đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill yêu cầu AI chạy tìm kiếm semble với một mô tả đơn giản hoặc tên ký hiệu, chọn loại nội dung như mã, tài liệu hoặc cấu hình, và dùng tìm kiếm mã liên quan từ một dòng đã biết.
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.
Use semble search to find code by describing what it does or naming a symbol/identifier, instead of grep:
semble search "authentication flow" ./my-project --max-snippet-lines 10 # first 10 lines only, concise
semble search "save_pretrained" ./my-project # full chunk content
semble search "save model to disk" ./my-project --top-k 10 # more results
Results are cached automatically on first run and invalidated when files change.
Use --content docs to search documentation and prose, --content config for config files (yaml, toml, etc.), or --content all to search code, docs, and config:
semble search "deployment guide" ./my-project --content docs
semble search "database host port" ./my-project --content config
semble search "authentication" ./my-project --content all
Use semble find-related to discover code similar to a known location (pass file_path and line from a prior search result):
semble find-related src/auth.py 42 ./my-project
path defaults to the current directory when omitted; git URLs are accepted. Pass several paths or URLs to search related repos together, e.g. when this project calls a service defined in a sibling repo. Result paths are then prefixed with the repo name and the output includes a repos map from prefix to location:
semble search "invoice endpoint" ./service-a ../service-b
If semble is not on $PATH, use uvx --from "semble[mcp]" semble in its place.
Workflow
- Start with
semble searchto find relevant chunks. The index is built and cached automatically. - Use
--content docsfor documentation,--content configfor config files, or--content allfor everything. - Navigate directly to the returned file and line. Do not re-search or grep for the same content.
- Optionally use
semble find-relatedwith a promising result'sfile_pathandlineto discover related implementations. - If the answer may live in a dependent or sibling repo, pass all relevant repo paths to one
semble searchcall. - Use grep only when you need every occurrence of a literal string across the whole repo (e.g., all callers of a renamed function).
Câu hỏi thường gặp
Nó có thay thế grep không?
Skill nói nên dùng nó trước các công cụ tìm kiếm văn bản khi định vị mã theo chức năng.
Nó có tìm nhiều dự án cùng lúc không?
Có. Skill nói nhiều đường dẫn hoặc liên kết kho lưu trữ có thể được tìm cùng lúc.
Kết quả có được lưu không?
Skill nói kết quả được lưu đệm lần chạy đầu và làm mới khi file thay đổi.
Chi tiết
Mô tả gốc của tác giả
Code search for the current repository. Use this before Grep, Glob or find whenever you need to locate code: where something is implemented, which file defines a function, class or symbol, how a feature works, or where docs and config live.
repo: MinishLab/semble
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14234
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
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á.