OneDrive Automation via Rube MCP
Overview
This public intake copy packages plugins/antigravity-awesome-skills/skills/one-drive-automation from https://github.com/sickn33/antigravity-awesome-skills into the native Omni Skills editorial shape without hiding its origin.
Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.
This intake keeps the copied upstream files intact and uses the external_source block in metadata.json plus ORIGIN.md as the provenance anchor for review.
OneDrive Automation via Rube MCP Automate OneDrive operations including file upload/download, search, folder management, sharing links, permissions management, and drive browsing through Composio's OneDrive toolkit.
Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Prerequisites, Common Patterns, Known Pitfalls, Limitations.
When to Use This Skill
Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.
- This skill is applicable to execute the workflow or actions described in the overview.
- Use when the request clearly matches the imported source intent: Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.
- Use when the operator should preserve upstream workflow detail instead of rewriting the process from scratch.
- Use when provenance needs to stay visible in the answer, PR, or review packet.
- Use when copied upstream references, examples, or scripts materially improve the answer.
- Use when the workflow should remain reviewable in the public intake repo before the private enhancer takes over.
Operating Table
| Situation |
Start here |
Why it matters |
| First-time use |
metadata.json |
Confirms repository, branch, commit, and imported path through the external_source block before touching the copied workflow |
| Provenance review |
ORIGIN.md |
Gives reviewers a plain-language audit trail for the imported source |
| Workflow execution |
SKILL.md |
Starts with the smallest copied file that materially changes execution |
| Supporting context |
SKILL.md |
Adds the next most relevant copied source file without loading the entire package |
| Handoff decision |
## Related Skills |
Helps the operator switch to a stronger native skill when the task drifts |
Workflow
This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.
- Verify Rube MCP is available by confirming RUBESEARCHTOOLS responds
- Call RUBEMANAGECONNECTIONS with toolkit one_drive
- If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
- Confirm connection status shows ACTIVE before running any workflows
- ONEDRIVEGET_DRIVE - Verify drive access and get drive details [Prerequisite]
- ONEDRIVESEARCH_ITEMS - Keyword search across filenames, metadata, and content [Required]
- ONEDRIVEONEDRIVELISTITEMS - List all items in the root of a drive [Optional]
Imported Workflow Notes
Imported: Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit one_drive
- If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth
- Confirm connection status shows ACTIVE before running any workflows
Imported: Core Workflows
1. Search and Browse Files
When to use: User wants to find files or browse folder contents in OneDrive
Tool sequence:
ONE_DRIVE_GET_DRIVE - Verify drive access and get drive details [Prerequisite]
ONE_DRIVE_SEARCH_ITEMS - Keyword search across filenames, metadata, and content [Required]
ONE_DRIVE_ONEDRIVE_LIST_ITEMS - List all items in the root of a drive [Optional]
ONE_DRIVE_GET_ITEM - Get detailed metadata for a specific item, expand children [Optional]
ONE_DRIVE_ONEDRIVE_FIND_FILE - Find a specific file by exact name in a folder [Optional]
ONE_DRIVE_ONEDRIVE_FIND_FOLDER - Find a specific folder by name [Optional]
ONE_DRIVE_LIST_DRIVES - List all accessible drives [Optional]
Key parameters:
q: Search query (plain keywords only, NOT KQL syntax)
search_scope: "root" (folder hierarchy) or "drive" (includes shared items)
top: Max items per page (default 200)
skip_token: Pagination token from @odata.nextLink
select: Comma-separated fields to return (e.g., "id,name,webUrl,size")
orderby: Sort order (e.g., "name asc", "name desc")
item_id: Item ID for GET_ITEM
expand_relations: Array like ["children"] or ["thumbnails"] for GET_ITEM
user_id: "me" (default) or specific user ID/email
Pitfalls:
ONE_DRIVE_SEARCH_ITEMS does NOT support KQL operators (folder:, file:, filetype:, path:); these are treated as literal text
- Wildcard characters (
*, ?) are NOT supported and are auto-removed; use file extension keywords instead (e.g., "pdf" not "*.pdf")
ONE_DRIVE_ONEDRIVE_LIST_ITEMS returns only root-level contents; use recursive ONE_DRIVE_GET_ITEM with expand_relations: ["children"] for deeper levels
- Large folders paginate; always follow
skip_token / @odata.nextLink until exhausted
- Some drive ID formats may return "ObjectHandle is Invalid" errors due to Microsoft Graph API limitations
2. Upload and Download Files
When to use: User wants to upload files to OneDrive or download files from it
Tool sequence:
ONE_DRIVE_ONEDRIVE_FIND_FOLDER - Locate the target folder [Prerequisite]
ONE_DRIVE_ONEDRIVE_UPLOAD_FILE - Upload a file to a specified folder [Required for upload]
ONE_DRIVE_DOWNLOAD_FILE - Download a file by item ID [Required for download]
ONE_DRIVE_GET_ITEM - Get file details before download [Optional]
Key parameters:
file: FileUploadable object with s3key, mimetype, and name for uploads
folder: Destination path (e.g., "/Documents/Reports") or folder ID for uploads
item_id: File's unique identifier for downloads
file_name: Desired filename with extension for downloads
drive_id: Specific drive ID (for SharePoint or OneDrive for Business)
user_id: "me" (default) or specific user identifier
Pitfalls:
- Upload automatically renames on conflict (no overwrite option by default)
- Large files are automatically handled via chunking
drive_id overrides user_id when both are provided
- Item IDs vary by platform: OneDrive for Business uses
01... prefix, OneDrive Personal uses HASH!NUMBER format
- Item IDs are case-sensitive; use exactly as returned from API
3. Share Files and Manage Permissions
When to use: User wants to share files/folders or manage who has access
Tool sequence:
ONE_DRIVE_ONEDRIVE_FIND_FILE or ONE_DRIVE_ONEDRIVE_FIND_FOLDER - Locate the item [Prerequisite]
ONE_DRIVE_GET_ITEM_PERMISSIONS - Check current permissions [Prerequisite]
ONE_DRIVE_INVITE_USER_TO_DRIVE_ITEM - Grant access to specific users [Required]
ONE_DRIVE_CREATE_LINK - Create a shareable link [Optional]
ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA - Update item metadata [Optional]
Key parameters:
item_id: The file or folder to share
recipients: Array of objects with email or object_id
roles: Array with "read" or "write"
send_invitation: true to send notification email, false for silent permission grant
require_sign_in: true to require authentication to access
message: Custom message for invitation (max 2000 characters)
expiration_date_time: ISO 8601 date for permission expiry
retain_inherited_permissions: true (default) to keep existing inherited permissions
Pitfalls:
- Using wrong
item_id with INVITE_USER_TO_DRIVE_ITEM changes permissions on unintended items; always verify first
- Write or higher roles are impactful; get explicit user confirmation before granting
GET_ITEM_PERMISSIONS returns inherited and owner entries; do not assume response only reflects recent changes
permissions cannot be expanded via ONE_DRIVE_GET_ITEM; use the separate permissions endpoint
- At least one of
require_sign_in or send_invitation must be true
4. Manage Folders (Create, Move, Delete, Copy)
When to use: User wants to create, move, rename, delete, or copy files and folders
Tool sequence:
ONE_DRIVE_ONEDRIVE_FIND_FOLDER - Locate source and destination folders [Prerequisite]
ONE_DRIVE_ONEDRIVE_CREATE_FOLDER - Create a new folder [Required for create]
ONE_DRIVE_MOVE_ITEM - Move a file or folder to a new location [Required for move]
ONE_DRIVE_COPY_ITEM - Copy a file or folder (async operation) [Required for copy]
ONE_DRIVE_DELETE_ITEM - Move item to recycle bin [Required for delete]
ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA - Rename or update item properties [Optional]
Key parameters:
name: Folder name for creation or new name for rename/copy
parent_folder: Path (e.g., "/Documents/Reports") or folder ID for creation
itemId: Item to move
parentReference: Object with id (destination folder ID) for moves: {"id": "folder_id"}
item_id: Item to copy or delete
parent_reference: Object with id and optional driveId for copy destination
@microsoft.graph.conflictBehavior: "fail", "replace", or "rename" for copies
if_match: ETag for optimistic concurrency on deletes
Pitfalls:
ONE_DRIVE_MOVE_ITEM does NOT support cross-drive moves; use ONE_DRIVE_COPY_ITEM for cross-drive transfers
parentReference for moves requires folder ID (not folder name); resolve with ONEDRIVE_FIND_FOLDER first
ONE_DRIVE_COPY_ITEM is asynchronous; response provides a URL to monitor progress
ONE_DRIVE_DELETE_ITEM moves to recycle bin, not permanent deletion
- Folder creation auto-renames on conflict (e.g., "New Folder" becomes "New Folder 1")
- Provide either
name or parent_reference (or both) for ONE_DRIVE_COPY_ITEM
5. Track Changes and Drive Information
When to use: User wants to monitor changes or get drive/quota information
Tool sequence:
ONE_DRIVE_GET_DRIVE - Get drive properties and metadata [Required]
ONE_DRIVE_GET_QUOTA - Check storage quota (total, used, remaining) [Optional]
ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA - Track changes in SharePoint site drives [Optional]
ONE_DRIVE_GET_ITEM_VERSIONS - Get version history of a file [Optional]
Key parameters:
drive_id: Drive identifier (or "me" for personal drive)
site_id: SharePoint site identifier for delta tracking
token: Delta token ("latest" for current state, URL for next page, or timestamp)
item_id: File ID for version history
Pitfalls:
- Delta queries are only available for SharePoint site drives via
ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA
- Token
"latest" returns current delta token without items (useful as starting point)
- Deep or large drives can take several minutes to crawl; use batching and resume logic
Imported: Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active OneDrive connection via
RUBE_MANAGE_CONNECTIONS with toolkit one_drive
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Examples
Example 1: Ask for the upstream workflow directly
Use @one-drive-automation-v2 to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.
Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.
Example 2: Ask for a provenance-grounded review
Review @one-drive-automation-v2 against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.
Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.
Example 3: Narrow the copied support files before execution
Use @one-drive-automation-v2 for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.
Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.
Example 4: Build a reviewer packet
Review @one-drive-automation-v2 using the copied upstream files plus provenance, then summarize any gaps before merge.
Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.
Best Practices
Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.
- Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support.
- Prefer the smallest useful set of support files so the workflow stays auditable and fast to review.
- Keep provenance, source commit, and imported file paths visible in notes and PR descriptions.
- Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate.
- Treat generated examples as scaffolding; adapt them to the concrete task before execution.
- Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant.
Troubleshooting
Problem: The operator skipped the imported context and answered too generically
Symptoms: The result ignores the upstream workflow in plugins/antigravity-awesome-skills/skills/one-drive-automation, fails to mention provenance, or does not use any copied source files at all.
Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Check the external_source block first, then restate the provenance before continuing.
Problem: The imported workflow feels incomplete during review
Symptoms: Reviewers can see the generated SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.
Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.
Problem: The task drifted into a different specialization
Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better.
Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.
Related Skills
@00-andruia-consultant - Use when the work is better handled by that native specialization after this imported skill establishes context.
@00-andruia-consultant-v2 - Use when the work is better handled by that native specialization after this imported skill establishes context.
@10-andruia-skill-smith - Use when the work is better handled by that native specialization after this imported skill establishes context.
@10-andruia-skill-smith-v2 - Use when the work is better handled by that native specialization after this imported skill establishes context.
Additional Resources
Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.
| Resource family |
What it gives the reviewer |
Example path |
references |
copied reference notes, guides, or background material from upstream |
references/n/a |
examples |
worked examples or reusable prompts copied from upstream |
examples/n/a |
scripts |
upstream helper scripts that change execution or validation |
scripts/n/a |
agents |
routing or delegation notes that are genuinely part of the imported package |
agents/n/a |
assets |
supporting assets or schemas copied from the source package |
assets/n/a |
Imported Reference Notes
Imported: Quick Reference
| Task |
Tool Slug |
Key Params |
| Search files |
ONE_DRIVE_SEARCH_ITEMS |
q, search_scope, top |
| List root items |
ONE_DRIVE_ONEDRIVE_LIST_ITEMS |
user_id, select, top |
| Get item details |
ONE_DRIVE_GET_ITEM |
item_id, expand_relations |
| Find file by name |
ONE_DRIVE_ONEDRIVE_FIND_FILE |
name, folder |
| Find folder by name |
ONE_DRIVE_ONEDRIVE_FIND_FOLDER |
name, folder |
| Upload file |
ONE_DRIVE_ONEDRIVE_UPLOAD_FILE |
file, folder |
| Download file |
ONE_DRIVE_DOWNLOAD_FILE |
item_id, file_name |
| Create folder |
ONE_DRIVE_ONEDRIVE_CREATE_FOLDER |
name, parent_folder |
| Move item |
ONE_DRIVE_MOVE_ITEM |
itemId, parentReference |
| Copy item |
ONE_DRIVE_COPY_ITEM |
item_id, parent_reference, name |
| Delete item |
ONE_DRIVE_DELETE_ITEM |
item_id |
| Share with users |
ONE_DRIVE_INVITE_USER_TO_DRIVE_ITEM |
item_id, recipients, roles |
| Create share link |
ONE_DRIVE_CREATE_LINK |
item_id, link type |
| Get permissions |
ONE_DRIVE_GET_ITEM_PERMISSIONS |
item_id |
| Update metadata |
ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA |
item_id, fields |
| Get drive info |
ONE_DRIVE_GET_DRIVE |
drive_id |
| List drives |
ONE_DRIVE_LIST_DRIVES |
user/group/site scope |
| Get quota |
ONE_DRIVE_GET_QUOTA |
(none) |
| Track changes |
ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA |
site_id, token |
| Version history |
ONE_DRIVE_GET_ITEM_VERSIONS |
item_id |
Imported: Common Patterns
ID Resolution
- User: Use
"me" for authenticated user or specific user email/GUID
- Item ID from find: Use
ONE_DRIVE_ONEDRIVE_FIND_FILE or ONE_DRIVE_ONEDRIVE_FIND_FOLDER to get item IDs
- Item ID from search: Extract from
ONE_DRIVE_SEARCH_ITEMS results
- Drive ID: Use
ONE_DRIVE_LIST_DRIVES or ONE_DRIVE_GET_DRIVE to discover drives
- Folder path to ID: Use
ONE_DRIVE_ONEDRIVE_FIND_FOLDER with path, then extract ID from response
ID formats vary by platform:
- OneDrive for Business/SharePoint:
01NKDM7HMOJTVYMDOSXFDK2QJDXCDI3WUK
- OneDrive Personal:
D4648F06C91D9D3D!54927
Pagination
OneDrive uses token-based pagination:
- Follow
@odata.nextLink or skip_token until no more pages
- Set
top for page size (varies by endpoint)
ONE_DRIVE_ONEDRIVE_LIST_ITEMS auto-handles pagination internally
- Aggressive parallel requests can trigger HTTP 429; honor
Retry-After headers
Path vs ID
Most OneDrive tools accept either paths or IDs:
- Paths: Start with
/ (e.g., "/Documents/Reports")
- IDs: Use unique item identifiers from API responses
- Item paths for permissions: Use
:/path/to/item:/ format
Imported: Known Pitfalls
ID Formats
- Item IDs are case-sensitive and platform-specific
- Never use web URLs, sharing links, or manually constructed identifiers as item IDs
- Always use IDs exactly as returned from Microsoft Graph API
Rate Limits
- Aggressive parallel
ONE_DRIVE_GET_ITEM calls can trigger HTTP 429 Too Many Requests
- Honor
Retry-After headers and implement throttling
- Deep drive crawls should use batching with delays
Search Limitations
- No KQL support; use plain keywords only
- No wildcard characters; use extension keywords (e.g.,
"pdf" not "*.pdf")
- No path-based filtering in search; use folder listing instead
q='*' wildcard-only queries return HTTP 400 invalidRequest
Parameter Quirks
drive_id overrides user_id when both are provided
permissions cannot be expanded via GET_ITEM; use dedicated permissions endpoint
- Move operations require folder IDs in
parentReference, not folder names
- Copy operations are asynchronous; response provides monitoring URL
Imported: Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: one-drive-automation-v23description: OneDrive Automation via Rube MCP workflow skill. Use this skill when the user needs Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio). Always search tools first for current schemas and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.4---56# OneDrive Automation via Rube MCP78## Overview910This public intake copy packages `plugins/antigravity-awesome-skills/skills/one-drive-automation` from `https://github.com/sickn33/antigravity-awesome-skills` into the native Omni Skills editorial shape without hiding its origin.1112Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.1314This intake keeps the copied upstream files intact and uses the `external_source` block in `metadata.json` plus `ORIGIN.md` as the provenance anchor for review.1516# OneDrive Automation via Rube MCP Automate OneDrive operations including file upload/download, search, folder management, sharing links, permissions management, and drive browsing through Composio's OneDrive toolkit.1718Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Prerequisites, Common Patterns, Known Pitfalls, Limitations.1920## When to Use This Skill2122Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.2324- This skill is applicable to execute the workflow or actions described in the overview.25- Use when the request clearly matches the imported source intent: Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.26- Use when the operator should preserve upstream workflow detail instead of rewriting the process from scratch.27- Use when provenance needs to stay visible in the answer, PR, or review packet.28- Use when copied upstream references, examples, or scripts materially improve the answer.29- Use when the workflow should remain reviewable in the public intake repo before the private enhancer takes over.3031## Operating Table3233| Situation | Start here | Why it matters |34| --- | --- | --- |35| First-time use | `metadata.json` | Confirms repository, branch, commit, and imported path through the `external_source` block before touching the copied workflow |36| Provenance review | `ORIGIN.md` | Gives reviewers a plain-language audit trail for the imported source |37| Workflow execution | `SKILL.md` | Starts with the smallest copied file that materially changes execution |38| Supporting context | `SKILL.md` | Adds the next most relevant copied source file without loading the entire package |39| Handoff decision | `## Related Skills` | Helps the operator switch to a stronger native skill when the task drifts |4041## Workflow4243This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.44451. Verify Rube MCP is available by confirming RUBESEARCHTOOLS responds462. Call RUBEMANAGECONNECTIONS with toolkit one_drive473. If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth484. Confirm connection status shows ACTIVE before running any workflows495. ONEDRIVEGET_DRIVE - Verify drive access and get drive details [Prerequisite]506. ONEDRIVESEARCH_ITEMS - Keyword search across filenames, metadata, and content [Required]517. ONEDRIVEONEDRIVELISTITEMS - List all items in the root of a drive [Optional]5253### Imported Workflow Notes5455#### Imported: Setup5657**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.58591. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds602. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `one_drive`613. If connection is not ACTIVE, follow the returned auth link to complete Microsoft OAuth624. Confirm connection status shows ACTIVE before running any workflows6364#### Imported: Core Workflows6566### 1. Search and Browse Files6768**When to use**: User wants to find files or browse folder contents in OneDrive6970**Tool sequence**:711. `ONE_DRIVE_GET_DRIVE` - Verify drive access and get drive details [Prerequisite]722. `ONE_DRIVE_SEARCH_ITEMS` - Keyword search across filenames, metadata, and content [Required]733. `ONE_DRIVE_ONEDRIVE_LIST_ITEMS` - List all items in the root of a drive [Optional]744. `ONE_DRIVE_GET_ITEM` - Get detailed metadata for a specific item, expand children [Optional]755. `ONE_DRIVE_ONEDRIVE_FIND_FILE` - Find a specific file by exact name in a folder [Optional]766. `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` - Find a specific folder by name [Optional]777. `ONE_DRIVE_LIST_DRIVES` - List all accessible drives [Optional]7879**Key parameters**:80- `q`: Search query (plain keywords only, NOT KQL syntax)81- `search_scope`: `"root"` (folder hierarchy) or `"drive"` (includes shared items)82- `top`: Max items per page (default 200)83- `skip_token`: Pagination token from `@odata.nextLink`84- `select`: Comma-separated fields to return (e.g., `"id,name,webUrl,size"`)85- `orderby`: Sort order (e.g., `"name asc"`, `"name desc"`)86- `item_id`: Item ID for `GET_ITEM`87- `expand_relations`: Array like `["children"]` or `["thumbnails"]` for `GET_ITEM`88- `user_id`: `"me"` (default) or specific user ID/email8990**Pitfalls**:91- `ONE_DRIVE_SEARCH_ITEMS` does NOT support KQL operators (`folder:`, `file:`, `filetype:`, `path:`); these are treated as literal text92- Wildcard characters (`*`, `?`) are NOT supported and are auto-removed; use file extension keywords instead (e.g., `"pdf"` not `"*.pdf"`)93- `ONE_DRIVE_ONEDRIVE_LIST_ITEMS` returns only root-level contents; use recursive `ONE_DRIVE_GET_ITEM` with `expand_relations: ["children"]` for deeper levels94- Large folders paginate; always follow `skip_token` / `@odata.nextLink` until exhausted95- Some drive ID formats may return "ObjectHandle is Invalid" errors due to Microsoft Graph API limitations9697### 2. Upload and Download Files9899**When to use**: User wants to upload files to OneDrive or download files from it100101**Tool sequence**:1021. `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` - Locate the target folder [Prerequisite]1032. `ONE_DRIVE_ONEDRIVE_UPLOAD_FILE` - Upload a file to a specified folder [Required for upload]1043. `ONE_DRIVE_DOWNLOAD_FILE` - Download a file by item ID [Required for download]1054. `ONE_DRIVE_GET_ITEM` - Get file details before download [Optional]106107**Key parameters**:108- `file`: FileUploadable object with `s3key`, `mimetype`, and `name` for uploads109- `folder`: Destination path (e.g., `"/Documents/Reports"`) or folder ID for uploads110- `item_id`: File's unique identifier for downloads111- `file_name`: Desired filename with extension for downloads112- `drive_id`: Specific drive ID (for SharePoint or OneDrive for Business)113- `user_id`: `"me"` (default) or specific user identifier114115**Pitfalls**:116- Upload automatically renames on conflict (no overwrite option by default)117- Large files are automatically handled via chunking118- `drive_id` overrides `user_id` when both are provided119- Item IDs vary by platform: OneDrive for Business uses `01...` prefix, OneDrive Personal uses `HASH!NUMBER` format120- Item IDs are case-sensitive; use exactly as returned from API121122### 3. Share Files and Manage Permissions123124**When to use**: User wants to share files/folders or manage who has access125126**Tool sequence**:1271. `ONE_DRIVE_ONEDRIVE_FIND_FILE` or `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` - Locate the item [Prerequisite]1282. `ONE_DRIVE_GET_ITEM_PERMISSIONS` - Check current permissions [Prerequisite]1293. `ONE_DRIVE_INVITE_USER_TO_DRIVE_ITEM` - Grant access to specific users [Required]1304. `ONE_DRIVE_CREATE_LINK` - Create a shareable link [Optional]1315. `ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA` - Update item metadata [Optional]132133**Key parameters**:134- `item_id`: The file or folder to share135- `recipients`: Array of objects with `email` or `object_id`136- `roles`: Array with `"read"` or `"write"`137- `send_invitation`: `true` to send notification email, `false` for silent permission grant138- `require_sign_in`: `true` to require authentication to access139- `message`: Custom message for invitation (max 2000 characters)140- `expiration_date_time`: ISO 8601 date for permission expiry141- `retain_inherited_permissions`: `true` (default) to keep existing inherited permissions142143**Pitfalls**:144- Using wrong `item_id` with `INVITE_USER_TO_DRIVE_ITEM` changes permissions on unintended items; always verify first145- Write or higher roles are impactful; get explicit user confirmation before granting146- `GET_ITEM_PERMISSIONS` returns inherited and owner entries; do not assume response only reflects recent changes147- `permissions` cannot be expanded via `ONE_DRIVE_GET_ITEM`; use the separate permissions endpoint148- At least one of `require_sign_in` or `send_invitation` must be `true`149150### 4. Manage Folders (Create, Move, Delete, Copy)151152**When to use**: User wants to create, move, rename, delete, or copy files and folders153154**Tool sequence**:1551. `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` - Locate source and destination folders [Prerequisite]1562. `ONE_DRIVE_ONEDRIVE_CREATE_FOLDER` - Create a new folder [Required for create]1573. `ONE_DRIVE_MOVE_ITEM` - Move a file or folder to a new location [Required for move]1584. `ONE_DRIVE_COPY_ITEM` - Copy a file or folder (async operation) [Required for copy]1595. `ONE_DRIVE_DELETE_ITEM` - Move item to recycle bin [Required for delete]1606. `ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA` - Rename or update item properties [Optional]161162**Key parameters**:163- `name`: Folder name for creation or new name for rename/copy164- `parent_folder`: Path (e.g., `"/Documents/Reports"`) or folder ID for creation165- `itemId`: Item to move166- `parentReference`: Object with `id` (destination folder ID) for moves: `{"id": "folder_id"}`167- `item_id`: Item to copy or delete168- `parent_reference`: Object with `id` and optional `driveId` for copy destination169- `@microsoft.graph.conflictBehavior`: `"fail"`, `"replace"`, or `"rename"` for copies170- `if_match`: ETag for optimistic concurrency on deletes171172**Pitfalls**:173- `ONE_DRIVE_MOVE_ITEM` does NOT support cross-drive moves; use `ONE_DRIVE_COPY_ITEM` for cross-drive transfers174- `parentReference` for moves requires folder ID (not folder name); resolve with `ONEDRIVE_FIND_FOLDER` first175- `ONE_DRIVE_COPY_ITEM` is asynchronous; response provides a URL to monitor progress176- `ONE_DRIVE_DELETE_ITEM` moves to recycle bin, not permanent deletion177- Folder creation auto-renames on conflict (e.g., "New Folder" becomes "New Folder 1")178- Provide either `name` or `parent_reference` (or both) for `ONE_DRIVE_COPY_ITEM`179180### 5. Track Changes and Drive Information181182**When to use**: User wants to monitor changes or get drive/quota information183184**Tool sequence**:1851. `ONE_DRIVE_GET_DRIVE` - Get drive properties and metadata [Required]1862. `ONE_DRIVE_GET_QUOTA` - Check storage quota (total, used, remaining) [Optional]1873. `ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA` - Track changes in SharePoint site drives [Optional]1884. `ONE_DRIVE_GET_ITEM_VERSIONS` - Get version history of a file [Optional]189190**Key parameters**:191- `drive_id`: Drive identifier (or `"me"` for personal drive)192- `site_id`: SharePoint site identifier for delta tracking193- `token`: Delta token (`"latest"` for current state, URL for next page, or timestamp)194- `item_id`: File ID for version history195196**Pitfalls**:197- Delta queries are only available for SharePoint site drives via `ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA`198- Token `"latest"` returns current delta token without items (useful as starting point)199- Deep or large drives can take several minutes to crawl; use batching and resume logic200201#### Imported: Prerequisites202203- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)204- Active OneDrive connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `one_drive`205- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas206207## Examples208209### Example 1: Ask for the upstream workflow directly210211```text212Use @one-drive-automation-v2 to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.213```214215**Explanation:** This is the safest starting point when the operator needs the imported workflow, but not the entire repository.216217### Example 2: Ask for a provenance-grounded review218219```text220Review @one-drive-automation-v2 against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.221```222223**Explanation:** Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.224225### Example 3: Narrow the copied support files before execution226227```text228Use @one-drive-automation-v2 for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.229```230231**Explanation:** This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.232233### Example 4: Build a reviewer packet234235```text236Review @one-drive-automation-v2 using the copied upstream files plus provenance, then summarize any gaps before merge.237```238239**Explanation:** This is useful when the PR is waiting for human review and you want a repeatable audit packet.240241242243## Best Practices244245Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.246247- Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support.248- Prefer the smallest useful set of support files so the workflow stays auditable and fast to review.249- Keep provenance, source commit, and imported file paths visible in notes and PR descriptions.250- Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate.251- Treat generated examples as scaffolding; adapt them to the concrete task before execution.252- Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant.253254255256## Troubleshooting257258### Problem: The operator skipped the imported context and answered too generically259260**Symptoms:** The result ignores the upstream workflow in `plugins/antigravity-awesome-skills/skills/one-drive-automation`, fails to mention provenance, or does not use any copied source files at all.261**Solution:** Re-open `metadata.json`, `ORIGIN.md`, and the most relevant copied upstream files. Check the `external_source` block first, then restate the provenance before continuing.262263### Problem: The imported workflow feels incomplete during review264265**Symptoms:** Reviewers can see the generated `SKILL.md`, but they cannot quickly tell which references, examples, or scripts matter for the current task.266**Solution:** Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.267268### Problem: The task drifted into a different specialization269270**Symptoms:** The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better.271**Solution:** Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.272273274275## Related Skills276277- `@00-andruia-consultant` - Use when the work is better handled by that native specialization after this imported skill establishes context.278- `@00-andruia-consultant-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context.279- `@10-andruia-skill-smith` - Use when the work is better handled by that native specialization after this imported skill establishes context.280- `@10-andruia-skill-smith-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context.281282## Additional Resources283284Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.285286| Resource family | What it gives the reviewer | Example path |287| --- | --- | --- |288| `references` | copied reference notes, guides, or background material from upstream | `references/n/a` |289| `examples` | worked examples or reusable prompts copied from upstream | `examples/n/a` |290| `scripts` | upstream helper scripts that change execution or validation | `scripts/n/a` |291| `agents` | routing or delegation notes that are genuinely part of the imported package | `agents/n/a` |292| `assets` | supporting assets or schemas copied from the source package | `assets/n/a` |293294295296### Imported Reference Notes297298#### Imported: Quick Reference299300| Task | Tool Slug | Key Params |301|------|-----------|------------|302| Search files | `ONE_DRIVE_SEARCH_ITEMS` | `q`, `search_scope`, `top` |303| List root items | `ONE_DRIVE_ONEDRIVE_LIST_ITEMS` | `user_id`, `select`, `top` |304| Get item details | `ONE_DRIVE_GET_ITEM` | `item_id`, `expand_relations` |305| Find file by name | `ONE_DRIVE_ONEDRIVE_FIND_FILE` | `name`, `folder` |306| Find folder by name | `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` | `name`, `folder` |307| Upload file | `ONE_DRIVE_ONEDRIVE_UPLOAD_FILE` | `file`, `folder` |308| Download file | `ONE_DRIVE_DOWNLOAD_FILE` | `item_id`, `file_name` |309| Create folder | `ONE_DRIVE_ONEDRIVE_CREATE_FOLDER` | `name`, `parent_folder` |310| Move item | `ONE_DRIVE_MOVE_ITEM` | `itemId`, `parentReference` |311| Copy item | `ONE_DRIVE_COPY_ITEM` | `item_id`, `parent_reference`, `name` |312| Delete item | `ONE_DRIVE_DELETE_ITEM` | `item_id` |313| Share with users | `ONE_DRIVE_INVITE_USER_TO_DRIVE_ITEM` | `item_id`, `recipients`, `roles` |314| Create share link | `ONE_DRIVE_CREATE_LINK` | `item_id`, link type |315| Get permissions | `ONE_DRIVE_GET_ITEM_PERMISSIONS` | `item_id` |316| Update metadata | `ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATA` | `item_id`, fields |317| Get drive info | `ONE_DRIVE_GET_DRIVE` | `drive_id` |318| List drives | `ONE_DRIVE_LIST_DRIVES` | user/group/site scope |319| Get quota | `ONE_DRIVE_GET_QUOTA` | (none) |320| Track changes | `ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTA` | `site_id`, `token` |321| Version history | `ONE_DRIVE_GET_ITEM_VERSIONS` | `item_id` |322323#### Imported: Common Patterns324325### ID Resolution326- **User**: Use `"me"` for authenticated user or specific user email/GUID327- **Item ID from find**: Use `ONE_DRIVE_ONEDRIVE_FIND_FILE` or `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` to get item IDs328- **Item ID from search**: Extract from `ONE_DRIVE_SEARCH_ITEMS` results329- **Drive ID**: Use `ONE_DRIVE_LIST_DRIVES` or `ONE_DRIVE_GET_DRIVE` to discover drives330- **Folder path to ID**: Use `ONE_DRIVE_ONEDRIVE_FIND_FOLDER` with path, then extract ID from response331332ID formats vary by platform:333- OneDrive for Business/SharePoint: `01NKDM7HMOJTVYMDOSXFDK2QJDXCDI3WUK`334- OneDrive Personal: `D4648F06C91D9D3D!54927`335336### Pagination337OneDrive uses token-based pagination:338- Follow `@odata.nextLink` or `skip_token` until no more pages339- Set `top` for page size (varies by endpoint)340- `ONE_DRIVE_ONEDRIVE_LIST_ITEMS` auto-handles pagination internally341- Aggressive parallel requests can trigger HTTP 429; honor `Retry-After` headers342343### Path vs ID344Most OneDrive tools accept either paths or IDs:345- **Paths**: Start with `/` (e.g., `"/Documents/Reports"`)346- **IDs**: Use unique item identifiers from API responses347- **Item paths for permissions**: Use `:/path/to/item:/` format348349#### Imported: Known Pitfalls350351### ID Formats352- Item IDs are case-sensitive and platform-specific353- Never use web URLs, sharing links, or manually constructed identifiers as item IDs354- Always use IDs exactly as returned from Microsoft Graph API355356### Rate Limits357- Aggressive parallel `ONE_DRIVE_GET_ITEM` calls can trigger HTTP 429 Too Many Requests358- Honor `Retry-After` headers and implement throttling359- Deep drive crawls should use batching with delays360361### Search Limitations362- No KQL support; use plain keywords only363- No wildcard characters; use extension keywords (e.g., `"pdf"` not `"*.pdf"`)364- No path-based filtering in search; use folder listing instead365- `q='*'` wildcard-only queries return HTTP 400 invalidRequest366367### Parameter Quirks368- `drive_id` overrides `user_id` when both are provided369- `permissions` cannot be expanded via `GET_ITEM`; use dedicated permissions endpoint370- Move operations require folder IDs in `parentReference`, not folder names371- Copy operations are asynchronous; response provides monitoring URL372373#### Imported: Limitations374375- Use this skill only when the task clearly matches the scope described above.376- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.377- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.