360 Secure SkillHub
360 安全技能中心

文件RAG

面向本地工作区的文件检索 Skill(基础版),通过 Node 脚本对 JS/TS、Python、C++、Go、Markdown、PDF、DOCX、XLSX 等文件建立本地索引,按关键词查询返回骨架、元数据与聚类代码片段;约束为仅索引小于 20MB 的文件并使用单线程顺序索引。

wjreliable
wjreliable
热度 16.68
最近更新 2026-09-22 02:57:10
分类:搜索依赖:代码执行 / 读写文件应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add local-file-rag-basic
Metadata
name
local-file-rag-basic
version
1.0.0
author
wjreliable
description
High-performance local File RAG suite (Basic Edition).

Skill: Local File RAG Search (Basic Edition)

Description

This is the Basic Edition of the high-performance local RAG suite, providing efficient code and document retrieval within constraints.

  • Constraints:
    • Only indexes files under 20MB.
    • Uses single-threaded (sequential) indexing for lower resource usage.
  • Support: JS/TS, Python, C++, Go, Markdown, PDF, DOCX, XLSX, etc.

Tools

local_file_rag_search

Efficiently searches the local workspace.

Parameters:

  • query (string, required): Search terms or function names.
  • targetFile (string, optional): Specific file path to restrict the search.
  • rootDir (string, optional): Root directory to scan.

Output Protocol: Returns a structured result with Skeletons, Metadata, and Clustered Code Snippets.