AGENT SKILL

query-read

High-precision query-based text search, markdown chunking, and directory tree inspector. Solves EISDIR errors and locates code contexts with BM25 ranking.

License 许可
MIT
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
query-read
description
High-precision query-based text search, markdown chunking, and directory tree inspector. Solves EISDIR errors and locates code contexts with BM25 ranking.

03 SKILL.md 正文

Query Reader Skill (query-read)

Bộ kỹ năng tìm kiếm và đọc file thông minh dựa trên giải thuật BM25 Ranking và Semantic Chunking Markdown, giải quyết triệt để lỗi EISDIR khi agent duyệt thư mục.


1. When to Use

  • Khi Agent cần xem cấu trúc thư mục mà không làm tràn context.
  • Khi cần tìm kiếm đoạn code, spec hoặc tài liệu API theo từ khóa / câu hỏi tự nhiên.
  • Khi không chắc chắn tên file chính xác (tránh đoán mò tên file).

2. Quick Commands Reference

A. Xem cây thư mục an toàn:

python3 tools/query_reader.py <folder_path>

B. Tìm kiếm ngữ cảnh / giải pháp kỹ thuật theo câu hỏi:

python3 tools/query_reader.py <target_path> "<câu hỏi hoặc từ khóa>"

C. Xuất kết quả dạng JSON cho Agent xử lý tiếp:

python3 tools/query_reader.py <target_path> "<query>" -j

04 同仓库更多 Skills