From code-apps-preview
Adds OneDrive for Business connector to Power Apps code apps for file listing, uploading, downloading, and management.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-apps-preview:add-onedrivesonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Check for memory-bank.md per shared-instructions.md.
First, find the connection ID (see connector-reference.md):
Run the /list-connections skill. Find the OneDrive for Business connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections → + New connection → search for the connector → Create.
pwsh -NoProfile -Command "pac code add-data-source -a onedriveforbusiness -c <connection-id>"
Ask the user what file operations they need (list files, upload, download, create folder, etc.).
Common operations:
// List files in a folder
const files = await OneDriveForBusinessService.ListFolder({
id: "root" // or folder ID
});
// Get file metadata
const metadata = await OneDriveForBusinessService.GetFileMetadata({
id: "file-id"
});
// Get file content
const content = await OneDriveForBusinessService.GetFileContent({
id: "file-id"
});
// Create file
await OneDriveForBusinessService.CreateFile({
folderPath: "/Documents",
name: "report.txt",
body: "File content here"
});
Key points:
ListFolder or ListRootFolderfolderPath for creating files by path, id for accessing existing filesUse Grep to find specific methods in src/generated/services/OneDriveForBusinessService.ts (generated files can be very large -- see connector-reference.md).
npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Update memory-bank.md with: connector added, configured operations, build status.
npx claudepluginhub microsoft/power-platform-skills --plugin code-apps-previewAdds Excel Online (Business) connector to Power Apps code apps via CLI for reading/writing Excel tables from OneDrive or SharePoint.
Automates OneDrive file operations (search, upload, download, share, permissions) via Rube MCP/Composio. Always calls RUBE_SEARCH_TOOLS first for current schemas.
Automates OneDrive file search, uploads/downloads, sharing, permissions, and folder ops via Composio toolkit and Rube MCP tools. Requires active connection and tool schema search first.