tw-nlp/deepagentforce/rag-query

Claude Code and agent skill by tw-nlp/deepagentforce

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill to query the internal corporate knowledge base via RAG. Trigger when the user asks about company policies, HR regulations, reimbursement rules, internal project specs, attendance systems, organizational procedures, or any proprietary enterprise knowledge. Do NOT use for general public knowledge or web searches.

Install

npx vskill@latest install tw-nlp/deepagentforce/rag-query

SKILL.md

Skill: Internal Knowledge Query (RAG)

Query the company's private knowledge graph and document repository for accurate, tenant-scoped answers on internal topics.

Applicable topics:

  • HR & admin: attendance, reimbursement, leave policies, onboarding procedures
  • Projects: internal specs, architecture docs, meeting summaries
  • Organization: department structures, role definitions, workflows

⚠️ Pre-execution Checklist(执行前必读)

在执行任何命令前,确认以下三项均已就绪:

项目来源示例
项目根路径system prompt 中的 项目根路径 字段/Users/tianwei/paper/DeepAgentForce
租户 UUIDsystem prompt 中的 当前租户 UUID 字段6d3b9398-ca84-4db5-a38b-e88ce427918b
用户问题用户输入的原始问题公司桥梁工程相关资料
🚫 严禁执行 find /、ls、cd 来查找路径 —— 路径已由系统注入 system prompt,直接读取使用。

Execution

命令格式(严格遵循,不得修改任何参数)
bash
python <PROJECT_ROOT>/src/services/skills/research/rag-query/scripts/query.py "<用户问题>" --tenant-uuid <UUID>
参数说明
参数类型说明
<PROJECT_ROOT>路径从 system prompt 项目根路径 字段读取,禁止自行推断或 find
"<用户问题>"位置参数(positional)用户的原始问题,必须用双引号包裹
--tenant-uuid <UUID>选项参数(flag)从 system prompt 当前租户 UUID 字段读取,不可省略
格式规则
✅ 正确格式:
python /Users/tianwei/paper/DeepAgentForce/src/services/skills/research/rag-query/scripts/query.py "公司考勤制度是什么" --tenant-uuid 6d3b9398-ca84-4db5-a38b-e88ce427918b
❌ 错误 - JSON 数组格式:
["python /path/query.py \"公司考勤制度\" --tenant-uuid xxx"]
❌ 错误 - 相对路径:
python src/services/skills/research/rag-query/scripts/query.py "问题" --tenant-uuid xxx
❌ 错误 - 使用 --question flag:
python /path/query.py --question "公司考勤制度" --tenant-uuid xxx
❌ 错误 - 缺少 --tenant-uuid:
python /path/query.py "公司考勤制度"
❌ 错误 - 先执行 find 查路径:
find / -type d -name "DeepAgentForce"

Step-by-step 执行流程

Step 1. 从 system prompt 读取 项目根路径,记为 PROJECT_ROOT
Step 2. 从 system prompt 读取 当前租户 UUID,记为 UUID
Step 3. 将用户问题用双引号包裹,记为 QUESTION
Step 4. 拼接完整命令:
python {PROJECT_ROOT}/src/services/skills/research/rag-query/scripts/query.py "{QUESTION}" --tenant-uuid {UUID}
Step 5. 通过 shell 工具以纯文本字符串形式执行(不加任何 JSON 包装)
Step 6. 将脚本输出结果整理后返回给用户

Output Handling

脚本返回 JSON 格式结果,包含以下字段:

json
{
"answer": "RAG 检索到的答案文本",
"sources": ["来源文档1", "来源文档2"],
"confidence": 0.95
}

处理规则:

  • 优先使用 answer 字段内容作为回复主体
  • 如存在 sources,以"参考来源"形式附在回复末尾
  • 如 answer 为空或置信度过低,告知用户知识库中暂无相关内容,建议联系管理员补充文档

Error Handling

错误信息原因处理方式
No such file or directory路径错误重新从 system prompt 读取 PROJECT_ROOT,确认路径正确
ModuleNotFoundErrorPython 环境问题尝试用 python3 替代 python
tenant not foundUUID 错误或为空检查 system prompt 中的 UUID 是否完整
返回空结果知识库无相关内容告知用户并建议补充文档,不要重复查询
脚本超时网络或向量库问题提示用户稍后重试,不要无限重试
🚫 遇到任何错误,禁止通过修改路径格式、添加 find 命令来自行"修复"——应直接报告错误信息。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tw-nlp/deepagentforce/rag-query/badge)](https://verified-skill.com/skills/tw-nlp/deepagentforce/rag-query)

Something wrong with this skill or its page? Tell us.