tw-nlp/deepagentforce/rag-query
Claude Code and agent skill by tw-nlp/deepagentforce
Trust tier 2
- community
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-querySKILL.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 | |
| 租户 UUID | system prompt 中的 当前租户 UUID 字段 | 6d3b9398-ca84-4db5-a38b-e88ce427918b | |
| 用户问题 | 用户输入的原始问题 | 公司桥梁工程相关资料 |
🚫 严禁执行find /、ls、cd来查找路径 —— 路径已由系统注入 system prompt,直接读取使用。
Execution
命令格式(严格遵循,不得修改任何参数)
参数说明
| 参数 | 类型 | 说明 | |
|---|---|---|---|
<PROJECT_ROOT> | 路径 | 从 system prompt 项目根路径 字段读取,禁止自行推断或 find | |
"<用户问题>" | 位置参数(positional) | 用户的原始问题,必须用双引号包裹 | |
--tenant-uuid <UUID> | 选项参数(flag) | 从 system prompt 当前租户 UUID 字段读取,不可省略 |
格式规则
Step-by-step 执行流程
Output Handling
脚本返回 JSON 格式结果,包含以下字段:
处理规则:
- 优先使用
answer字段内容作为回复主体 - 如存在
sources,以"参考来源"形式附在回复末尾 - 如
answer为空或置信度过低,告知用户知识库中暂无相关内容,建议联系管理员补充文档
Error Handling
| 错误信息 | 原因 | 处理方式 | |
|---|---|---|---|
No such file or directory | 路径错误 | 重新从 system prompt 读取 PROJECT_ROOT,确认路径正确 | |
ModuleNotFoundError | Python 环境问题 | 尝试用 python3 替代 python | |
tenant not found | UUID 错误或为空 | 检查 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
- SKILL.md in the repositoryCheckingsrc/services/skills/research/rag-query/SKILL.md
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
[](https://verified-skill.com/skills/tw-nlp/deepagentforce/rag-query)