add-onedrive — скилл для Claude Code: подключает OneDrive
Скилл add-onedrive добавляет коннектор OneDrive for Business в Power Apps code app и настраивает операции с файлами.
MIT ★ 1 167 обновлён 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install code-apps-preview@power-platform-skillsЧто делает add-onedrive
Скилл проверяет наличие подключения OneDrive в окружении, добавляет коннектор командой pa app add data-source, генерирует TypeScript-сервис с методами ListFolder, CreateFile, GetFileContent и другими. Для запуска нужны Power Platform CLI (pa) и активное окружение с ID в power.config.json. Если подключения нет, скилл даёт ссылку на создание в формате https://make.powerapps.com/environments/<environment-id>/connections.
После конфигурации запускает npm run build и проверяет TypeScript-ошибки. Обновляет memory-bank.md с информацией о добавленном коннекторе и настроенных операциях. Сгенерированный файл OneDriveForBusinessService.ts может быть большим, скилл использует Grep для поиска методов.
Какие задачи решает
- добавить коннектор OneDrive for Business в Power Apps code app
- настроить загрузку и скачивание файлов из OneDrive
- получить список файлов в папке OneDrive через TypeScript
- создать файл в OneDrive из кода приложения
- сгенерировать TypeScript-сервис для работы с OneDrive API
Примеры запросов агенту
- Добавь коннектор OneDrive for Business в приложение
- Настрой загрузку файлов в OneDrive из папки
/Documents - Сгенерируй код для получения списка файлов из корневой папки OneDrive
Как установить add-onedrive
1Через маркетплейс плагинов
/plugin marketplace add microsoft/power-platform-skills/plugin install code-apps-preview@power-platform-skillsКоманда ставит плагин code-apps-preview целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-onedrive -a claude-code3Вручную: положить файлы
~/.claude/skills/add-onedrive/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/add-onedrive/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-onedrive -a codex2Вручную: положить файлы
.agents/skills/add-onedrive/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-onedrive -a cursor2Вручную: положить файлы
.cursor/skills/add-onedrive/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/power-platform-skills plugins/code-apps/skills/add-onedrive2Вручную: положить файлы
.github/skills/add-onedrive/SKILL.md1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-onedrive -a gemini-cli2Командой платформы
gemini skills install https://github.com/microsoft/power-platform-skills --path plugins/code-apps/skills/add-onedriveВручную: положить файлы
.devin/skills/add-onedrive/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об add-onedrive
Как установить add-onedrive в Claude Code?
Выполни /plugin marketplace add microsoft/power-platform-skills, затем /plugin install code-apps-preview@power-platform-skills, затем npx skills add microsoft/power-platform-skills --skill add-onedrive -a claude-code. Файл скилла окажется в ~/.claude/skills/add-onedrive/SKILL.md.
Что делает add-onedrive?
Добавляет коннектор OneDrive for Business в Power Apps code app, генерирует TypeScript-сервис с методами для работы с файлами и настраивает операции загрузки, скачивания, создания папок по запросу пользователя.
Что нужно для работы add-onedrive?
Power Platform CLI (pa), активное окружение с ID в power.config.json и существующее подключение OneDrive for Business в этом окружении. Если подключения нет, скилл направит на создание через веб-интерфейс Power Apps.
Исходный текст
SKILL.md · MIT
---
name: add-onedrive
description: Adds OneDrive for Business connector to a Power Apps code app. Use when uploading, downloading, listing, or managing files in OneDrive.
user-invocable: true
allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, Skill
model: sonnet
---
**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
# Add OneDrive for Business
## Workflow
1. Check Memory Bank → 2. Add Connector → 3. Configure → 4. Build → 5. Update Memory Bank
---
### Step 1: Check Memory Bank
Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).
### Step 2: Add Connector
**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/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.
```bash
pa app add data-source --connector onedriveforbusiness -c <connection-id>
```
### Step 3: Configure
Ask the user what file operations they need (list files, upload, download, create folder, etc.).
**Common operations:**
```typescript
// 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:**
- File and folder IDs can be obtained from `ListFolder` or `ListRootFolder`
- Use `folderPath` for creating files by path, `id` for accessing existing files
- Binary file content may need base64 encoding/decoding depending on the operation
Use `Grep` to find specific methods in `src/generated/services/OneDriveForBusinessService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).
### Step 4: Build
```bash
npm run build
```
Fix TypeScript errors before proceeding. Do NOT deploy yet.
### Step 5: Update Memory Bank
Update `memory-bank.md` with: connector added, configured operations, build status.
© Microsoft · MIT · microsoft/power-platform-skills