{
  "schemaVersion": "1.0",
  "item": {
    "slug": "m365-mailbox",
    "name": "M365 Mailbox (Graph)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tradmangh/m365-mailbox",
    "canonicalUrl": "https://clawhub.ai/tradmangh/m365-mailbox",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/m365-mailbox",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=m365-mailbox",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "package-lock.json",
      "package.json",
      "scripts/_graph.mjs",
      "scripts/_lib.mjs",
      "scripts/_policy.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/m365-mailbox"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/m365-mailbox",
    "agentPageUrl": "https://openagent3.xyz/skills/m365-mailbox/agent",
    "manifestUrl": "https://openagent3.xyz/skills/m365-mailbox/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/m365-mailbox/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Installation / runtime requirements",
        "body": "Requires Node.js (scripts are Node ESM).\nThis skill declares its npm dependency in package.json.\nAfter installing/updating the skill, install deps:\n\ncd skills/m365-mailbox\nnpm install"
      },
      {
        "title": "Security / boundaries",
        "body": "Never commit or share token caches.\nDefault secret location (per machine): ~/.openclaw/secrets/m365-mailbox/"
      },
      {
        "title": "Setup philosophy (permission-aware)",
        "body": "During setup, the user chooses:\n\nWhat Graph permissions to request (minimal vs broad)\nWhat OpenClaw is allowed to do autonomously vs what must ask for confirmation\n\nTwo modes:\n\nMinimal-consent mode (more secure): request only the scopes required for the chosen feature set.\nBroad-consent mode (more flexible): request a superset of scopes, but enforce an autonomy policy locally."
      },
      {
        "title": "0) First question: connect M365 Business or M365 Home/Consumer?",
        "body": "Home/Consumer = hotmail.com, outlook.com, live.com\nBusiness = Work/School account (Exchange Online)"
      },
      {
        "title": "1) Privacy / keys",
        "body": "No third-party API key required.\nAuth is done via your own Microsoft login (device code flow).\nTokens are stored locally per profile on the OpenClaw machine."
      },
      {
        "title": "2) One-command setup (interactive)",
        "body": "node skills/m365-mailbox/scripts/setup.mjs --profile home --tenant consumers --email you@outlook.com --clientId <YOUR_APP_CLIENT_ID> --tz Europe/Vienna\nnode skills/m365-mailbox/scripts/setup.mjs --profile business --tenant organizations --email you@company.com --clientId <IT_PROVIDED_CLIENT_ID> --tz Europe/Vienna"
      },
      {
        "title": "3) Use (examples)",
        "body": "node skills/m365-mailbox/scripts/list-unread.mjs --profile home --top 20\nnode skills/m365-mailbox/scripts/search.mjs --profile home --query \"invoice\" --top 20\nnode skills/m365-mailbox/scripts/get-message.mjs --profile home --id <MSG_ID>\nnode skills/m365-mailbox/scripts/create-draft.mjs --profile home --to you@example.com --subject \"Hi\" --body \"...\"\nnode skills/m365-mailbox/scripts/send-draft.mjs --profile home --id <DRAFT_ID>"
      },
      {
        "title": "Business note (users without IT admin rights)",
        "body": "Many tenants block:\n\ncreating app registrations as a normal user\nuser consent to new apps\nMail.Send or Mail.ReadWrite without admin consent\n\nIn that case this skill can still work for Business accounts, but only if your IT/SysAdmin provides a clientId for an app registration configured with:\n\nDelegated Microsoft Graph permissions (depending on your chosen feature set): Mail.Read, Mail.ReadWrite, Mail.Send, (optional) offline_access\nPublic client flows enabled (Device Code)\n(Often required) Admin consent granted\n\nIf you don’t get such a clientId/consent from IT, you can still use the skill with a Consumer account."
      }
    ],
    "body": "M365 Mailbox (Microsoft Graph)\nInstallation / runtime requirements\nRequires Node.js (scripts are Node ESM).\nThis skill declares its npm dependency in package.json.\nAfter installing/updating the skill, install deps:\ncd skills/m365-mailbox\nnpm install\n\nSecurity / boundaries\nNever commit or share token caches.\nDefault secret location (per machine): ~/.openclaw/secrets/m365-mailbox/\nSetup philosophy (permission-aware)\n\nDuring setup, the user chooses:\n\nWhat Graph permissions to request (minimal vs broad)\nWhat OpenClaw is allowed to do autonomously vs what must ask for confirmation\n\nTwo modes:\n\nMinimal-consent mode (more secure): request only the scopes required for the chosen feature set.\nBroad-consent mode (more flexible): request a superset of scopes, but enforce an autonomy policy locally.\nQuick start\n0) First question: connect M365 Business or M365 Home/Consumer?\nHome/Consumer = hotmail.com, outlook.com, live.com\nBusiness = Work/School account (Exchange Online)\n1) Privacy / keys\nNo third-party API key required.\nAuth is done via your own Microsoft login (device code flow).\nTokens are stored locally per profile on the OpenClaw machine.\n2) One-command setup (interactive)\nnode skills/m365-mailbox/scripts/setup.mjs --profile home --tenant consumers --email you@outlook.com --clientId <YOUR_APP_CLIENT_ID> --tz Europe/Vienna\nnode skills/m365-mailbox/scripts/setup.mjs --profile business --tenant organizations --email you@company.com --clientId <IT_PROVIDED_CLIENT_ID> --tz Europe/Vienna\n\n3) Use (examples)\nnode skills/m365-mailbox/scripts/list-unread.mjs --profile home --top 20\nnode skills/m365-mailbox/scripts/search.mjs --profile home --query \"invoice\" --top 20\nnode skills/m365-mailbox/scripts/get-message.mjs --profile home --id <MSG_ID>\nnode skills/m365-mailbox/scripts/create-draft.mjs --profile home --to you@example.com --subject \"Hi\" --body \"...\"\nnode skills/m365-mailbox/scripts/send-draft.mjs --profile home --id <DRAFT_ID>\n\nBusiness note (users without IT admin rights)\n\nMany tenants block:\n\ncreating app registrations as a normal user\nuser consent to new apps\nMail.Send or Mail.ReadWrite without admin consent\n\nIn that case this skill can still work for Business accounts, but only if your IT/SysAdmin provides a clientId for an app registration configured with:\n\nDelegated Microsoft Graph permissions (depending on your chosen feature set): Mail.Read, Mail.ReadWrite, Mail.Send, (optional) offline_access\nPublic client flows enabled (Device Code)\n(Often required) Admin consent granted\n\nIf you don’t get such a clientId/consent from IT, you can still use the skill with a Consumer account."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tradmangh/m365-mailbox",
    "publisherUrl": "https://clawhub.ai/tradmangh/m365-mailbox",
    "owner": "tradmangh",
    "version": "0.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/m365-mailbox",
    "downloadUrl": "https://openagent3.xyz/downloads/m365-mailbox",
    "agentUrl": "https://openagent3.xyz/skills/m365-mailbox/agent",
    "manifestUrl": "https://openagent3.xyz/skills/m365-mailbox/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/m365-mailbox/agent.md"
  }
}