Sharepoint site discovery

From fanfan-de/anybox · View interactive version

Sharepoint site discovery is an AI agent skill from the GitHub repository fanfan-de/anybox. 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.

How to use this skill

Skill 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

Workflow

  1. If the user names a SharePoint hostname and site path, validate them with get_site(...).
  2. If the site is known but the right library is not, use list_site_drives(...) to inspect the site-scoped document libraries.
  3. 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.
  4. If the user wants to find a file by keyword, use search(query="..."), then narrow with hostname, site_path, or folder_path when the scope is known.
  5. Preserve the exact returned url, site, drive, and folder context so later fetch, update_file, or upload_file calls use the resolved destination instead of a guessed path.
  6. When multiple plausible sites or libraries exist, present the candidates and explain the distinguishing context instead of picking silently.

Output Conventions

Example Requests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.