Agent Skills
› fanfan-de/anybox
› sharepoint-site-discovery
sharepoint-site-discovery
GitHub用于在文件操作前定位正确的SharePoint站点、库和文件夹。支持通过关键词搜索或路径浏览发现上下文,验证站点信息,列出文档库,并保留精确URL以确保后续读写操作的准确性。
Trigger Scenarios
需要查找特定SharePoint站点或文件夹以进行文件分析
浏览已知站点的文档库结构
根据关键词在指定范围内搜索文件
Install
npx skills add fanfan-de/anybox --skill sharepoint-site-discovery -g -y
SKILL.md
Frontmatter
{
"name": "sharepoint-site-discovery",
"description": "Resolve the right SharePoint site, library, and folder before file work. Use when the user needs to find the right site context, browse a known site, inspect document libraries, or narrow the correct folder before fetching or editing a file."
}
SharePoint Site Discovery
Use this skill when the main job is locating the right SharePoint site, drive, or folder before file analysis or editing.
Start Here
- Treat SharePoint discovery as site-scoped, not user-recency-scoped.
- Use
search(query="...")for keyword search. - Use
search(query=None, hostname=..., site_path=..., folder_path=...)for browse mode. - Use
get_site(...)andlist_site_drives(...)when the user knows the site but not the right library.
Workflow
- If the user names a SharePoint hostname and site path, validate them with
get_site(...). - If the site is known but the right library is not, use
list_site_drives(...)to inspect the site-scoped document libraries. - If the user wants to browse a known folder or library, use
search(query=None, hostname=..., site_path=..., folder_path=...)and inspect the immediate children. - If the user wants to find a file by keyword, use
search(query="..."), then narrow withhostname,site_path, orfolder_pathwhen the scope is known. - Preserve the exact returned
url, site, drive, and folder context so laterfetch,update_file, orupload_filecalls use the resolved destination instead of a guessed path. - When multiple plausible sites or libraries exist, present the candidates and explain the distinguishing context instead of picking silently.
Output Conventions
- Name the exact site, library, and folder you resolved.
- Distinguish clearly between browse results and keyword-search results.
- When handing off to another SharePoint workflow, include the resolved
urlor the exact site and folder context that should be reused.
Example Requests
- "Find the right SharePoint site for the launch checklist and show me the available document libraries."
- "Browse the ops site and narrow me to the folder that contains the Q2 roadmap files."
- "Search SharePoint for the pricing workbook, but keep the search inside the finance site."
Version History
- 08dc189 Current 2026-07-05 19:06


