用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RainyGao-GitHub/DocSys --skill rag-chat命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | rag_chat |
| description | Chat with AI using relevant documents as context (RAG) |
| category | ai |
| version | 1.1.0 |
| author | DocSys Team |
| permissions | ["read"] |
| tags | ["ai","rag","retrieval","document-qa","context","knowledge-base"] |
Chat with AI using relevant documents as context (Retrieval-Augmented Generation). Ideal for questions about specific documents or repositories.
RAG chat, chat with docs, 基于文档问答, 文档问答, 文档对话, rag, 问文档, ask about docs, question about document, 文档智能问答, 读取文档内容回答, RAG 问答, summarize doc, compare documents
docsys rag <query> [model][DocID]. ✓ Safe to show."⚠️ No document citations found. Answer may be based on general knowledge or hallucination. Verify key claims against source documents before relying on this answer.""⚠️ Answer confidence is low. Consider rephrasing the question or searching with different keywords."docsys search <keywords>.[DocID] format. Never omit citations warning.docsys rag <query> [model]
docsys ask <query> [model]
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Question about documents |
| model | string | no | AI model to use (default: configured model) |
User: "what does the Q4 report say about revenue?"
Skill triggers → calls: docsys rag what does the Q4 report say about revenue?
Output: AI answer with document citations
User: "这份文档的主要观点是什么"
Skill triggers → calls: docsys rag 这份文档的主要观点是什么
Output: 基于文档内容回答
User: "summarize the key points from the architecture doc"
Skill triggers → calls: docsys rag summarize the key points from the architecture doc
Output: AI response with citations
User: "what is the deployment policy in repo 2"
Skill triggers → Step 1: query="deployment policy" → Step 2: vid=2 → calls: docsys rag deployment policy 2
Output: AI answer with citations from documents in repo 2
| Field | Type | Description |
|---|---|---|
| answer | string | AI response text |
| citations | string[] | Array of cited DocIDs, e.g. [doc_123] |
| model | string | Model used (if specified) |
| lang | string | Response language matches input (zh/en) |
Success with citations (EN): {answer}\n📎 Sources: {citations.join(", ")}
Success with citations (中文): {answer}\n📎 来源:{citations.join(", ")}
⚠️ No citations (EN): ⚠️ No document citations found. Answer may be based on general knowledge or hallucination. Verify key claims against source documents before relying on this answer.
⚠️ No citations (中文): ⚠️ 未找到文档引用。回答可能基于通用知识或虚构内容。请核实关键结论。
⚠️ Low confidence (EN): ⚠️ Answer confidence is low. Consider rephrasing the question or using different keywords.
⚠️ Low confidence (中文): ⚠️ 回答置信度较低。请尝试换一种表述方式或使用不同关键词。
No documents found (EN): ⚠️ No relevant documents found in repo {vid}. Try: broadening keywords, removing filters, or run 'docsys search <query> {vid}' first.
No documents found (中文): ⚠️ 在仓库 {vid} 中未找到相关文档。请尝试:扩大关键词范围、移除过滤器,或先运行 'docsys search <关键词> {vid}' 进行搜索。
Error (EN): ❌ {error_message}
Error (中文): ❌ {错误信息}
| Error | Cause |
|---|---|
| Query is required | Empty query |
| No relevant documents found | Query doesn't match docs |
| AI service unavailable | LLM service down |
| Model not found | Invalid model |
See references/ for related skills and API docs.