# Send Skill to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "m365-pnp-cli",
    "name": "Skill",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/thomyg/m365-pnp-cli",
    "canonicalUrl": "https://clawhub.ai/thomyg/m365-pnp-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/m365-pnp-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=m365-pnp-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "m365-pnp-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T05:40:53.225Z",
      "expiresAt": "2026-05-08T05:40:53.225Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=m365-pnp-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=m365-pnp-cli",
        "contentDisposition": "attachment; filename=\"m365-pnp-cli-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "m365-pnp-cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/m365-pnp-cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/m365-pnp-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/m365-pnp-cli",
    "agentUrl": "https://openagent3.xyz/skills/m365-pnp-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/m365-pnp-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/m365-pnp-cli/agent.md"
  }
}
```
## Documentation

### m365-pnp-cli Skill

This skill provides access to the CLI for Microsoft 365 – the official PnP (Patterns and Practices) tool for Microsoft 365 management.

### ⚠️ IMPORTANT FOR AGENTS

When in doubt, ALWAYS call m365 --help first to see all possibilities!

# Always call help when unsure!
m365 --help

# For specific commands:
m365 login --help
m365 spo --help
m365 teams --help

### Installation

The CLI must be installed:

npm install -g @pnp/cli-microsoft365

Or use npx (sandbox):

npx @pnp/cli-microsoft365 --help

### Source & Verification

NPM Package: https://www.npmjs.com/package/@pnp/cli-microsoft365
GitHub Repo: https://github.com/pnp/cli-microsoft365
Documentation: https://pnp.github.io/cli-microsoft365
Author: Microsoft PnP (Patterns and Practices Community)

### Supported Workloads

Microsoft Teams
SharePoint Online
OneDrive
Outlook
Microsoft To Do
Microsoft Planner
Power Automate
Power Apps
Microsoft Entra ID
Microsoft Purview
Bookings
And more...

### Authentication

Device Code (default)
Username/Password
Client Certificate
Client Secret
Azure Managed Identity
Federated Identity

### Login/Logout

m365 login                    # Device Code Login
m365 logout                  # Logout
m365 status                  # Check login status

### SharePoint Online (spo)

m365 spo site list           # List all sites
m365 spo site get --url <url>  # Get site details
m365 spo list list --webUrl <url>  # Lists in a site
m365 spo file list           # List files
m365 spo folder add          # Create folder

### Teams

m365 teams channel list       # List channels
m365 teams channel get       # Get channel details
m365 teams user list         # List team members
m365 teams chat list         # List chats
m365 teams meeting list      # List meetings

### OneDrive

m365 onedrive drive list    # OneDrive Drives
m365 onedrive file list     # List files
m365 onedrive file get      # Get file content

### Outlook

m365 outlook mail list       # List emails
m365 outlook calendar list   # List calendar events

### Planner

m365 planner task list       # Planner Tasks
m365 planner plan get        # Get plan details

### Azure AD / Entra ID

m365 entra user list         # List users
m365 entra group list        # List groups
m365 entra app list          # List apps

### ⚡ First Step: ALWAYS call help!

# When in doubt - call help first!
m365 --help

# For specific commands:
m365 spo --help
m365 teams --help
m365 login --help

### Basic Usage

# Login (Device Code Flow)
m365 login

# Check status
m365 status

# SharePoint: List sites
m365 spo site list

# SharePoint: Get specific site
m365 spo site get --url "https://contoso.sharepoint.com/sites/test"

# Teams: List channels
m365 teams channel list --teamId <team-id>

# OneDrive: Files
m365 onedrive file list

# Outlook: Emails
m365 outlook mail list --folder Inbox

# Planner: Tasks
m365 planner task list

### Output Options

# As JSON (default)
m365 spo site list

# As text
m365 spo site list --output text

# Filter with JMESPath
m365 spo site list --query "[?Template==\\\`GROUP#0\\\`].{Title:Title, Url:Url}"

### Authentication

The CLI uses Device Code Flow by default:

m365 login
# → You'll receive a code on another device
# → Use that code to authenticate with Microsoft

For automated scripts, you can also use:

Certificate (recommended for production)
Client Secret (less secure)
Username/Password (testing only)

### Important

WHEN IN DOUBT: call m365 --help!
Login required for most commands
JSON output is easiest to parse
JMESPath for efficient filtering
CLI requires Node.js >= 20
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: thomyg
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T05:40:53.225Z
- Expires at: 2026-05-08T05:40:53.225Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/m365-pnp-cli)
- [Send to Agent page](https://openagent3.xyz/skills/m365-pnp-cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/m365-pnp-cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/m365-pnp-cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/m365-pnp-cli)