name: 文件處理服務 description: Atlas Docs MCP伺服器為AI助手提供庫和框架的技術文件,將官方文件處理為適合LLM使用的Markdown版本,適用於Cursor、Cline、Windsurf等MCP相容的LLM客戶端。 version: 1.0.0
Atlas Docs MCP伺服器為AI助手提供庫和框架的技術文件,將官方文件處理為適合LLM使用的Markdown版本,適用於Cursor、Cline、Windsurf等MCP相容的LLM客戶端。
此 Skill 必須配置 API 金鑰才能使用。
.env 中沒有 XBY_APIKEY,必須使用 AskUserQuestion 工具向用戶詢問 API 金鑰scripts.config.set_api_key(api_key) 儲存,然後繼續處理你(大模型)是路由層,負責理解使用者意圖、選擇工具、提取引數。程式碼只負責呼叫API。
使用者輸入 → 你選擇工具 → 提取該工具需要的引數 → 呼叫 scripts.tools 中的函式 → 返回結果給使用者
scripts.config.settings.api_key 為空,使用 AskUserQuestion 詢問使用者,拿到後呼叫 scripts.config.set_api_key(key) 儲存scripts.tools 中的函式,例如 scripts.tools.search_schools(score='520', province='北京', category='綜合')raw 資料整理後展示給使用者根據使用者意圖選擇對應的工具函式:
| 使用者意圖 | 工具函式 |
|---|---|
| Lists all available documentation libraries and frameworks. Use this as your first step to discover available documentation sets. Returns name, description and source url for each documentation set. Required before using other documentation tools since you need the docName. | scripts.tools.list_docs |
| Searches a documentation set for specific content. Use this to find pages containing particular keywords, concepts, or topics. Returns matching pages ranked by relevance with their paths and descriptions. Follow up with get_docs_page to get full content. | scripts.tools.search_docs |
| Retrieves a condensed, LLM-friendly index of the pages in a documentation set. Use this for initial exploration to understand what's covered and identify relevant pages. Returns a markdown page with a list of available pages. Follow up with get_docs_page to get full content. | scripts.tools.get_docs_index |
| Retrieves a specific documentation page's content using its relative path. Use this to get detailed information about a known topic, after identifying the relevant page through get_docs_index or search_docs. Returns the complete content of a single documentation page. | scripts.tools.get_docs_page |
| Retrieves the complete documentation content in a single consolidated file. Use this when you need comprehensive knowledge or need to analyze the full documentation context. Returns a large volume of text - consider using get_docs_page or search_docs for targeted information. | scripts.tools.get_docs_full |
如果引數不完整,使用 AskUserQuestion 向用戶詢問缺失的引數。
工具描述:Lists all available documentation libraries and frameworks. Use this as your first step to discover available documentation sets. Returns name, description and source url for each documentation set. Required before using other documentation tools since you need the docName.
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
工具描述:Searches a documentation set for specific content. Use this to find pages containing particular keywords, concepts, or topics. Returns matching pages ranked by relevance with their paths and descriptions. Follow up with get_docs_page to get full content.
7w4.net收錄了海量優質技能外掛。
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| docName | string | true | Name of the documentation set | |
| query | string | true | Search query to find relevant pages within the documentation set |
工具描述:Retrieves a condensed, LLM-friendly index of the pages in a documentation set. Use this for initial exploration to understand what's covered and identify relevant pages. Returns a markdown page with a list of available pages. Follow up with get_docs_page to get full content.
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| docName | string | true | Name of the documentation set |
工具描述:Retrieves a specific documentation page's content using its relative path. Use this to get detailed information about a known topic, after identifying the relevant page through get_docs_index or search_docs. Returns the complete content of a single documentation page.
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| docName | string | true | Name of the documentation set | |
| pagePath | string | true | The root-relative path of the specific documentation page (e.g., '/guides/getting-started', '/api/authentication') |
工具描述:Retrieves the complete documentation content in a single consolidated file. Use this when you need comprehensive knowledge or need to analyze the full documentation context. Returns a large volume of text - consider using get_docs_page or search_docs for targeted information.
| 引數名稱 | 引數型別 | 是否必填 | 預設值 | 描述 |
|---|---|---|---|---|
| docName | string | true | Name of the documentation set |
工具函式返回 dict 物件:
- result["raw"] - API 原始返回資料(JSON),直接將此資料整理後展示給使用者
- result["success"] - 是否成功(True/False)
- result["message"] - 狀態訊息
xiaobenyang_gaokao_skill/
├── scripts/
│ ├── __init__.py
│ ├── config.py # 配置管理 + set_api_key()
│ ├── call_api.py # API 客戶端 + call_api()
│ └── tools.py # 工具函式(直接呼叫)
├── requirements.txt
└── SKILL.md
這個Skill質量中等偏上,基本功能完整且可用。好的方面是文件說明詳細、程式碼結構清晰、使用流程明確。不足之處是存在一些細節問題:文件說明與實際功能有不一致的地方,配置檔案中的引數命名也存在混淆,可能會讓開發者在使用或二次開發時產生困惑。建議在釋出前統一命名規範並修正描述資訊。