[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699N6J3KS2YW5D01KS30JHM":3,"skill-same:01M699N6J3KS2YW5D01KS30JHM":133},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":69},"01M699N6J3KS2YW5D01KS30JHM","add-sharepoint",null,"Use when the user wants to read or write SharePoint lists, manage documents in a SharePoint document library, or create a new SharePoint list from a Power Apps mobile app.","microsoft\u002Fpower-platform-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699JVYJFB75D9JM70BN4H0Q",1149,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"add sharepoint","sharepoint","add","new","power apps","when","true","sonnet","apps","app","manage","mobile","power","list","edit","write","read","Bash","library","create","documents","2026-11-10 10:12:30",false,"---\nname: add-sharepoint\ndescription: Use when the user wants to read or write SharePoint lists, manage documents in a SharePoint document library, or create a new SharePoint list from a Power Apps mobile app.\nuser-invocable: true\nallowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMode, ExitPlanMode, Skill\nmodel: sonnet\n---\n\n> **Plugin check**: Run `node \"${PLUGIN_ROOT}\u002Fscripts\u002Fcheck-version.js\"` - if it outputs a message, show it to the user before proceeding.\n\n**? Shared instructions: [shared-instructions.md](${PLUGIN_ROOT}\u002Fshared\u002Fshared-instructions.md)** — read first.\n\n**References:**\n\n- [sharepoint-reference.md](.\u002Freferences\u002Fsharepoint-reference.md) — Column encoding, choice fields, lookups, API patterns (CRITICAL)\n- [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) — Graph API auth, token, site ID\n- [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md) — Query, create, extend lists and columns\n\n# Add SharePoint\n\n**App root:** before any project read or command, execute\n[app-working-directory.md](${PLUGIN_ROOT}\u002Fshared\u002Freferences\u002Fapp-working-directory.md).\nUse its resolved absolute `working_dir` for every shell call and file tool,\nincluding referenced commands and delegated skills; never inherit a prior `cd`.\n\n**Entry routing:** use the shared [App feature entry points](..\u002F..\u002Fshared\u002Fshared-instructions.md#app-feature-entry-points)\npreflight before the workflow below.\n\n**Invocation scope:** follow [Data-source invocation scope](..\u002F..\u002Fshared\u002Fshared-instructions.md#data-source-invocation-scope)\nbefore the workflow below. Standalone calls approve only their SharePoint\nschema\u002Fbinding delta and verify it here; they do not start a full-app workflow.\n\nKeep SharePoint list\u002Flibrary schemas in Connectors, not the Dataverse\nData Model. Forward supplied site\u002Flist\u002Fconnection choices and ask only for missing\nvalues; return scope changes to the current owner, or ask the standalone user,\nbefore mutation. Reuse supplied approval only for the exact current data delta.\n\n**Removal branch:** after resolving invocation scope, `--remove` or an approved list\u002Flibrary\nbinding removal executes\n[data-source-removal.md](..\u002F..\u002Fshared\u002Freferences\u002Fdata-source-removal.md) and\nreturns. Do not create a connection\u002Flist or run Steps 1-12 for removal; the\nSharePoint list\u002Flibrary and its contents remain on the server.\n\n**Refresh branch:** after resolving invocation scope, `--refresh` or an approved retained-list\nservice refresh executes [Refresh a retained source](..\u002F..\u002Fshared\u002Freferences\u002Fdata-source-removal.md#refresh-a-retained-source)\nand returns before Steps 1-12. Preserve the exact `--data-source-name` and approved\nbinding identity; do not create a list\u002Fconnection or run `add-data-source`.\n\nTwo paths: **existing lists** (skip to Step 6) or **new lists** (full workflow).\n\n## Workflow\n\n1. Check Memory Bank → 2. Plan → 3. Setup Graph API Auth → 4. Review Existing Lists → 5. Create Lists → 6. Get Connection ID → 7. Discover Sites → 8. Discover Tables → 9. Add Connector → 10. Configure → 11. Type-check → 12. Update Memory Bank\n\n\n---\n\n### Step 1: Check Memory Bank\n\nCheck for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}\u002Fshared\u002Fshared-instructions.md).\n\nAlso confirm this is a mobile app:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\nif [ ! -f power.config.json ] || [ ! -f app.config.js ]; then\n  echo \"BLOCKED: working_dir is not an initialized app\" >&2\n  exit 1\nfi\n```\n\n### Step 2: Plan\n\n**Telemetry checkpoint: `plan_sharepoint_data_source`**\n\nReuse the supplied site\u002Flist and existing-vs-new decisions. Ask only for missing\nvalues:\n\n1. Which SharePoint list(s) do they need?\n2. Do the lists **already exist** on their site, or do they need to **create new** ones?\n\nFor `--plan-only` or a planning-phase handoff, present the proposed site\u002Flist\nbindings, any schema changes, and unresolved choices, then STOP before\nimplementation. Do not create connections\u002Flists, generate services, or update\nthe app plan or memory-bank. Missing discovery access is not permission to\ncreate a connection.\n\n**If lists already exist:** Skip to Step 6.\n\n**If creating new lists:**\n\n- Ask about the data they need and design an appropriate schema\n- Reuse existing lists when possible (don't duplicate)\n- Enter plan mode with `EnterPlanMode`, present the list designs with columns and types\n- Get approval with `ExitPlanMode`, unless the exact list\u002Fschema delta already\n  has current owner approval. Read-only discovery that changes that delta must\n  return for approval before Step 5.\n\n### Step 3: Setup Graph API Auth (if creating lists)\n\nSee [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) for full details.\n\n```powershell\nSet-Location -LiteralPath '\u003Cworking_dir>' -ErrorAction Stop\naz account show   # Verify Azure CLI logged in\n\n$api = Initialize-SharePointGraphApi -SiteUrl \"https:\u002F\u002F\u003Ctenant>.sharepoint.com\u002Fsites\u002F\u003Csite-name>\"\n$headers = $api.Headers\n$siteId = $api.SiteId\n```\n\nRequires **Sites.Manage.All** permission.\n\n### Step 4: Review Existing Lists (if creating lists)\n\n**Always query existing lists first before creating:**\n\n```powershell\nSet-Location -LiteralPath '\u003Cworking_dir>' -ErrorAction Stop\n$existingLists = Invoke-RestMethod -Uri \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fsites\u002F$siteId\u002Flists?`$select=id,displayName,description,list&`$filter=list\u002Fhidden eq false\" -Headers $headers\n```\n\nSee [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md) for `Find-SimilarLists`, `Compare-ListSchemas`, and `Get-ListSchema` functions.\n\nPresent findings to user with `AskUserQuestion`:\n\n- Lists that can be **reused** (already exist with matching columns)\n- Lists that need **extension** (exist but missing columns)\n- Lists that must be **created** (no match found)\n\n### Step 5: Create Lists (if creating lists)\n\n**Telemetry checkpoint: `create_sharepoint_lists`**\n\n**Print before starting:**\n> \"→ Creating SharePoint lists via Graph API (sequential per list, columns added after list exists)…\"\n\nRequire explicit current approval for the exact create\u002Fextend operations before\nwriting; reuse matching owner approval rather than prompting twice. Use safe\nfunctions from [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md):\n\n- `New-SharePointListIfNotExists`\n- `Add-SharePointColumnIfNotExists`\n- `Add-SharePointLookupColumn` (for cross-list references)\n\n### Step 6: Get Connection ID\n\nApply [connector-reference.md](..\u002F..\u002Fshared\u002Fconnector-reference.md#step-1--get-a-connection)\nbefore any lookup or creation. Use **`shared_sharepointonline`** as `apiId`.\n\n- Supplied `--connection-id` or approved `connectionId`: reuse the exact ID;\n  skip `create-connection` and `\u002Flist-connections`.\n- Supplied `--connection-ref` or approved `connectionRef`: retain the exact\n  reference for Step 9; skip `create-connection` and `\u002Flist-connections`.\n- Missing binding only: use the approved solution-reference lookup when\n  solution-aware, or obtain explicit approval to create a connection with the\n  command below. Conflicting,\n  blank, or wrong-environment supplied bindings must be clarified, not replaced.\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection create --connector shared_sharepointonline --json\n```\n\nOnly on the creation path, capture the returned `connectionId`. The following\npicker examples use the ID path. With a reference, skip pickers when site\u002Flist\nvalues are supplied; otherwise obtain the backing ID for that same reference or\nask for the missing choices. Do not create another connection for discovery.\n\nIf `pa connection create` cannot complete because browser-based connection creation is disabled or the connector needs interactive auth, direct the user to create one:\n\n> Open `https:\u002F\u002Fmake.powerapps.com\u002Fenvironments\u002F\u003Cenvironment-id>\u002Fconnections` → **+ New connection** → search \"SharePoint\" → Create. Then provide the connection ID or rerun `\u002Flist-connections shared_sharepointonline`.\n\n### Step 7: Discover Sites\n\nSkip this picker when the approved site URL is already supplied.\n\n**Print before starting:**\n> \"→ Discovering SharePoint sites accessible to this connection…\"\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection list-datasets --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --json\n```\n\nPresent the discovered sites only when a site choice is missing.\n\n**If `pa connection list-datasets` fails or returns no results:**\n- Auth, wrong user, or multiple accounts: follow shared-instructions command-failure handling and retry once.\n- Empty list: Confirm the connection ID is for a SharePoint Online connection and the user has access to at least one site. STOP if the list is empty after confirming.\n\n### Step 8: Discover Tables\n\nSkip this picker for supplied list\u002Flibrary identities; reuse the approved values.\n\n**Print before starting:**\n> \"→ Discovering lists\u002Fdocument libraries on each selected site…\"\n\nFor each selected site:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection list-tables --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --dataset '\u003Csite-url>' --json\n```\n\nPresent the tables to the user and ask which ones they want to add. Suggest tables that look relevant to their use case. If lists were created in Step 5, they should appear here.\n\n### Step 9: Add Connector\n\n**Telemetry checkpoint: `generate_sharepoint_data_source`**\n\n**Print before starting:**\n> \"→ Running `pa app add data-source` per list (sequential, ~10–20 seconds each).\"\n\nSharePoint is tabular: use `--dataset` and `--table` with the exact\nbinding selected in Step 6. Confirm approval covers this environment, connection\nID\u002Freference, site, and list\u002Flibrary before registration. Ask the standalone\nuser to approve any newly resolved binding; return a changed child scope to its\nowner. A picker selection alone is not execution approval.\nRun only the applicable command:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n# Supplied\u002Fresolved connection ID\n$PA app add data-source --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --dataset '\u003Csite-url>' --table '\u003Ctable-name>'\n\n# Supplied\u002Fresolved connection reference\n$PA app add data-source --connector shared_sharepointonline --connection-ref '\u003CconnectionRef>' --dataset '\u003Csite-url>' --table '\u003Ctable-name>'\n```\n\nRun once per list or document library.\n\n### Step 10: Configure\n\nInspect and return service signatures and usage guidance to the user or current\nowner. Do not independently edit screens or launch another app workflow;\nexplicitly report that this data-source operation did not wire screens.\n\n**Read [sharepoint-reference.md](.\u002Freferences\u002Fsharepoint-reference.md) before writing any SharePoint code** — column encoding, choice fields, and lookups have critical gotchas.\n\nUse `Grep` to find methods in `\u003Cworking_dir>\u002Fsrc\u002Fgenerated\u002Fservices\u002FSharePointOnlineService.ts` (generated files can be very large — see [connector-reference.md](${PLUGIN_ROOT}\u002Fshared\u002Fconnector-reference.md#inspecting-large-generated-files)).\n\nSample usage:\n\n```typescript\nimport { SharePointOnlineService } from '..\u002F..\u002Fsrc\u002Fgenerated\u002Fservices\u002FSharePointOnlineService';\n\n\u002F\u002F Read items\nconst result = await SharePointOnlineService.GetItems({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n});\nconst items = result.value ?? [];\n\n\u002F\u002F Create item\nawait SharePointOnlineService.PostItem({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n  item: { Title: 'Launch review', Status: 'Not Started' },\n});\n\n\u002F\u002F Update item (SharePoint IDs are integers, not GUIDs)\nawait SharePointOnlineService.PatchItem({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n  id: 42,\n  item: { Status: 'Done' },\n});\n```\n\n### Step 11: Type-check\n\n**Telemetry checkpoint: `validate_sharepoint_integration`**\n\n**Print before starting:**\n> \"→ Regenerating connector schemas + running tsc to verify SharePoint services compile (~15–30 seconds).\"\n\n> **Native diff:** `npx --no-install tsc --noEmit` instead of `npm run build`. Do NOT run platform-specific native build commands here.\n\n`pa app add data-source` wrote new files into `.power\u002Fschemas\u002Fsharepointonline\u002F`. Regenerate `connectorSchemas.ts` before type-checking so the new list is wired into the runtime schema map:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\nnpm run generate-schemas\nnpx --no-install tsc --noEmit\n```\n\nFix TypeScript errors before proceeding.\n\n### Step 12: Update Memory Bank\n\nUpdate `memory-bank.md` with: connector added, site URL, lists\u002Flibraries connected (or created), type-check status.\n\n> **Note:** No manual executor wiring needed. `PowerAppsProvider` in `app\u002F_layout.tsx` handles SharePoint connector routing, connection resolution, and OAuth consent automatically at runtime.\n","> **Plugin check**: Run `node \"${PLUGIN_ROOT}\u002Fscripts\u002Fcheck-version.js\"` - if it outputs a message, show it to the user before proceeding.\n\n**? Shared instructions: [shared-instructions.md](${PLUGIN_ROOT}\u002Fshared\u002Fshared-instructions.md)** — read first.\n\n**References:**\n\n- [sharepoint-reference.md](.\u002Freferences\u002Fsharepoint-reference.md) — Column encoding, choice fields, lookups, API patterns (CRITICAL)\n- [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) — Graph API auth, token, site ID\n- [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md) — Query, create, extend lists and columns\n\n# Add SharePoint\n\n**App root:** before any project read or command, execute\n[app-working-directory.md](${PLUGIN_ROOT}\u002Fshared\u002Freferences\u002Fapp-working-directory.md).\nUse its resolved absolute `working_dir` for every shell call and file tool,\nincluding referenced commands and delegated skills; never inherit a prior `cd`.\n\n**Entry routing:** use the shared [App feature entry points](..\u002F..\u002Fshared\u002Fshared-instructions.md#app-feature-entry-points)\npreflight before the workflow below.\n\n**Invocation scope:** follow [Data-source invocation scope](..\u002F..\u002Fshared\u002Fshared-instructions.md#data-source-invocation-scope)\nbefore the workflow below. Standalone calls approve only their SharePoint\nschema\u002Fbinding delta and verify it here; they do not start a full-app workflow.\n\nKeep SharePoint list\u002Flibrary schemas in Connectors, not the Dataverse\nData Model. Forward supplied site\u002Flist\u002Fconnection choices and ask only for missing\nvalues; return scope changes to the current owner, or ask the standalone user,\nbefore mutation. Reuse supplied approval only for the exact current data delta.\n\n**Removal branch:** after resolving invocation scope, `--remove` or an approved list\u002Flibrary\nbinding removal executes\n[data-source-removal.md](..\u002F..\u002Fshared\u002Freferences\u002Fdata-source-removal.md) and\nreturns. Do not create a connection\u002Flist or run Steps 1-12 for removal; the\nSharePoint list\u002Flibrary and its contents remain on the server.\n\n**Refresh branch:** after resolving invocation scope, `--refresh` or an approved retained-list\nservice refresh executes [Refresh a retained source](..\u002F..\u002Fshared\u002Freferences\u002Fdata-source-removal.md#refresh-a-retained-source)\nand returns before Steps 1-12. Preserve the exact `--data-source-name` and approved\nbinding identity; do not create a list\u002Fconnection or run `add-data-source`.\n\nTwo paths: **existing lists** (skip to Step 6) or **new lists** (full workflow).\n\n## Workflow\n\n1. Check Memory Bank → 2. Plan → 3. Setup Graph API Auth → 4. Review Existing Lists → 5. Create Lists → 6. Get Connection ID → 7. Discover Sites → 8. Discover Tables → 9. Add Connector → 10. Configure → 11. Type-check → 12. Update Memory Bank\n\n\n---\n\n### Step 1: Check Memory Bank\n\nCheck for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}\u002Fshared\u002Fshared-instructions.md).\n\nAlso confirm this is a mobile app:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\nif [ ! -f power.config.json ] || [ ! -f app.config.js ]; then\n  echo \"BLOCKED: working_dir is not an initialized app\" >&2\n  exit 1\nfi\n```\n\n### Step 2: Plan\n\n**Telemetry checkpoint: `plan_sharepoint_data_source`**\n\nReuse the supplied site\u002Flist and existing-vs-new decisions. Ask only for missing\nvalues:\n\n1. Which SharePoint list(s) do they need?\n2. Do the lists **already exist** on their site, or do they need to **create new** ones?\n\nFor `--plan-only` or a planning-phase handoff, present the proposed site\u002Flist\nbindings, any schema changes, and unresolved choices, then STOP before\nimplementation. Do not create connections\u002Flists, generate services, or update\nthe app plan or memory-bank. Missing discovery access is not permission to\ncreate a connection.\n\n**If lists already exist:** Skip to Step 6.\n\n**If creating new lists:**\n\n- Ask about the data they need and design an appropriate schema\n- Reuse existing lists when possible (don't duplicate)\n- Enter plan mode with `EnterPlanMode`, present the list designs with columns and types\n- Get approval with `ExitPlanMode`, unless the exact list\u002Fschema delta already\n  has current owner approval. Read-only discovery that changes that delta must\n  return for approval before Step 5.\n\n### Step 3: Setup Graph API Auth (if creating lists)\n\nSee [api-authentication-reference.md](.\u002Freferences\u002Fapi-authentication-reference.md) for full details.\n\n```powershell\nSet-Location -LiteralPath '\u003Cworking_dir>' -ErrorAction Stop\naz account show   # Verify Azure CLI logged in\n\n$api = Initialize-SharePointGraphApi -SiteUrl \"https:\u002F\u002F\u003Ctenant>.sharepoint.com\u002Fsites\u002F\u003Csite-name>\"\n$headers = $api.Headers\n$siteId = $api.SiteId\n```\n\nRequires **Sites.Manage.All** permission.\n\n### Step 4: Review Existing Lists (if creating lists)\n\n**Always query existing lists first before creating:**\n\n```powershell\nSet-Location -LiteralPath '\u003Cworking_dir>' -ErrorAction Stop\n$existingLists = Invoke-RestMethod -Uri \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fsites\u002F$siteId\u002Flists?`$select=id,displayName,description,list&`$filter=list\u002Fhidden eq false\" -Headers $headers\n```\n\nSee [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md) for `Find-SimilarLists`, `Compare-ListSchemas`, and `Get-ListSchema` functions.\n\nPresent findings to user with `AskUserQuestion`:\n\n- Lists that can be **reused** (already exist with matching columns)\n- Lists that need **extension** (exist but missing columns)\n- Lists that must be **created** (no match found)\n\n### Step 5: Create Lists (if creating lists)\n\n**Telemetry checkpoint: `create_sharepoint_lists`**\n\n**Print before starting:**\n> \"→ Creating SharePoint lists via Graph API (sequential per list, columns added after list exists)…\"\n\nRequire explicit current approval for the exact create\u002Fextend operations before\nwriting; reuse matching owner approval rather than prompting twice. Use safe\nfunctions from [list-management-reference.md](.\u002Freferences\u002Flist-management-reference.md):\n\n- `New-SharePointListIfNotExists`\n- `Add-SharePointColumnIfNotExists`\n- `Add-SharePointLookupColumn` (for cross-list references)\n\n### Step 6: Get Connection ID\n\nApply [connector-reference.md](..\u002F..\u002Fshared\u002Fconnector-reference.md#step-1--get-a-connection)\nbefore any lookup or creation. Use **`shared_sharepointonline`** as `apiId`.\n\n- Supplied `--connection-id` or approved `connectionId`: reuse the exact ID;\n  skip `create-connection` and `\u002Flist-connections`.\n- Supplied `--connection-ref` or approved `connectionRef`: retain the exact\n  reference for Step 9; skip `create-connection` and `\u002Flist-connections`.\n- Missing binding only: use the approved solution-reference lookup when\n  solution-aware, or obtain explicit approval to create a connection with the\n  command below. Conflicting,\n  blank, or wrong-environment supplied bindings must be clarified, not replaced.\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection create --connector shared_sharepointonline --json\n```\n\nOnly on the creation path, capture the returned `connectionId`. The following\npicker examples use the ID path. With a reference, skip pickers when site\u002Flist\nvalues are supplied; otherwise obtain the backing ID for that same reference or\nask for the missing choices. Do not create another connection for discovery.\n\nIf `pa connection create` cannot complete because browser-based connection creation is disabled or the connector needs interactive auth, direct the user to create one:\n\n> Open `https:\u002F\u002Fmake.powerapps.com\u002Fenvironments\u002F\u003Cenvironment-id>\u002Fconnections` → **+ New connection** → search \"SharePoint\" → Create. Then provide the connection ID or rerun `\u002Flist-connections shared_sharepointonline`.\n\n### Step 7: Discover Sites\n\nSkip this picker when the approved site URL is already supplied.\n\n**Print before starting:**\n> \"→ Discovering SharePoint sites accessible to this connection…\"\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection list-datasets --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --json\n```\n\nPresent the discovered sites only when a site choice is missing.\n\n**If `pa connection list-datasets` fails or returns no results:**\n- Auth, wrong user, or multiple accounts: follow shared-instructions command-failure handling and retry once.\n- Empty list: Confirm the connection ID is for a SharePoint Online connection and the user has access to at least one site. STOP if the list is empty after confirming.\n\n### Step 8: Discover Tables\n\nSkip this picker for supplied list\u002Flibrary identities; reuse the approved values.\n\n**Print before starting:**\n> \"→ Discovering lists\u002Fdocument libraries on each selected site…\"\n\nFor each selected site:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n$PA connection list-tables --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --dataset '\u003Csite-url>' --json\n```\n\nPresent the tables to the user and ask which ones they want to add. Suggest tables that look relevant to their use case. If lists were created in Step 5, they should appear here.\n\n### Step 9: Add Connector\n\n**Telemetry checkpoint: `generate_sharepoint_data_source`**\n\n**Print before starting:**\n> \"→ Running `pa app add data-source` per list (sequential, ~10–20 seconds each).\"\n\nSharePoint is tabular: use `--dataset` and `--table` with the exact\nbinding selected in Step 6. Confirm approval covers this environment, connection\nID\u002Freference, site, and list\u002Flibrary before registration. Ask the standalone\nuser to approve any newly resolved binding; return a changed child scope to its\nowner. A picker selection alone is not execution approval.\nRun only the applicable command:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\n# Supplied\u002Fresolved connection ID\n$PA app add data-source --connector shared_sharepointonline --connection-id '\u003CconnectionId>' --dataset '\u003Csite-url>' --table '\u003Ctable-name>'\n\n# Supplied\u002Fresolved connection reference\n$PA app add data-source --connector shared_sharepointonline --connection-ref '\u003CconnectionRef>' --dataset '\u003Csite-url>' --table '\u003Ctable-name>'\n```\n\nRun once per list or document library.\n\n### Step 10: Configure\n\nInspect and return service signatures and usage guidance to the user or current\nowner. Do not independently edit screens or launch another app workflow;\nexplicitly report that this data-source operation did not wire screens.\n\n**Read [sharepoint-reference.md](.\u002Freferences\u002Fsharepoint-reference.md) before writing any SharePoint code** — column encoding, choice fields, and lookups have critical gotchas.\n\nUse `Grep` to find methods in `\u003Cworking_dir>\u002Fsrc\u002Fgenerated\u002Fservices\u002FSharePointOnlineService.ts` (generated files can be very large — see [connector-reference.md](${PLUGIN_ROOT}\u002Fshared\u002Fconnector-reference.md#inspecting-large-generated-files)).\n\nSample usage:\n\n```typescript\nimport { SharePointOnlineService } from '..\u002F..\u002Fsrc\u002Fgenerated\u002Fservices\u002FSharePointOnlineService';\n\n\u002F\u002F Read items\nconst result = await SharePointOnlineService.GetItems({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n});\nconst items = result.value ?? [];\n\n\u002F\u002F Create item\nawait SharePointOnlineService.PostItem({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n  item: { Title: 'Launch review', Status: 'Not Started' },\n});\n\n\u002F\u002F Update item (SharePoint IDs are integers, not GUIDs)\nawait SharePointOnlineService.PatchItem({\n  dataset: 'https:\u002F\u002Fcontoso.sharepoint.com\u002Fsites\u002Fprojects',\n  table: 'Project Milestones',\n  id: 42,\n  item: { Status: 'Done' },\n});\n```\n\n### Step 11: Type-check\n\n**Telemetry checkpoint: `validate_sharepoint_integration`**\n\n**Print before starting:**\n> \"→ Regenerating connector schemas + running tsc to verify SharePoint services compile (~15–30 seconds).\"\n\n> **Native diff:** `npx --no-install tsc --noEmit` instead of `npm run build`. Do NOT run platform-specific native build commands here.\n\n`pa app add data-source` wrote new files into `.power\u002Fschemas\u002Fsharepointonline\u002F`. Regenerate `connectorSchemas.ts` before type-checking so the new list is wired into the runtime schema map:\n\n```bash\ncd -- '\u003Cworking_dir>' || { echo \"BLOCKED: cannot enter working_dir\" >&2; exit 1; }\nnpm run generate-schemas\nnpx --no-install tsc --noEmit\n```\n\nFix TypeScript errors before proceeding.\n\n### Step 12: Update Memory Bank\n\nUpdate `memory-bank.md` with: connector added, site URL, lists\u002Flibraries connected (or created), type-check status.\n\n> **Note:** No manual executor wiring needed. `PowerAppsProvider` in `app\u002F_layout.tsx` handles SharePoint connector routing, connection resolution, and OAuth consent automatically at runtime.\n",{"name":5,"model":26,"description":7,"allowed-tools":45,"user-invocable":46},"Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMode, ExitPlanMode, Skill",true,"main","0a55a88fa2855404029d1e5450faf92878baf763","plugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint",232,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills","https:\u002F\u002Fmicrosoft.github.io\u002Fpower-platform-skills\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 21:46:39",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":46},[59,62,65],{"tool":60,"command":61},"npx","npx skills add microsoft\u002Fpower-platform-skills --skill add-sharepoint",{"tool":63,"command":64},"bunx","bunx skills add microsoft\u002Fpower-platform-skills --skill add-sharepoint",{"tool":66,"command":67},"pnpm","pnpm dlx skills add microsoft\u002Fpower-platform-skills --skill add-sharepoint","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint\u002FSKILL.md",[70,76,80,83,86,90,93,99,103,107,111,115,119,123,129],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"assets\u002Fcomponent_template\u002FCMakeLists.txt","ASSET","资产文件",100,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fcomponent_template\u002FCMakeLists.txt",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"assets\u002Fcomponent_template\u002Finclude\u002F.keep",0,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fcomponent_template\u002Finclude\u002F.keep",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":82},"assets\u002Fcomponent_template\u002Fsrc\u002F.keep","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fcomponent_template\u002Fsrc\u002F.keep",{"path":84,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":85},"assets\u002Fplatformio_template\u002Finclude\u002F.keep","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fplatformio_template\u002Finclude\u002F.keep",{"path":87,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":88,"sourceHtmlUrl":89},"assets\u002Fplatformio_template\u002Fplatformio.ini",415,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fplatformio_template\u002Fplatformio.ini",{"path":91,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":92},"assets\u002Fplatformio_template\u002Fsrc\u002F.keep","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fassets\u002Fplatformio_template\u002Fsrc\u002F.keep",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fapi-authentication-reference.md","REFERENCE","参考文档",4208,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint\u002Freferences\u002Fapi-authentication-reference.md",{"path":100,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Ffreertos_patterns.md",14965,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Freferences\u002Ffreertos_patterns.md",{"path":104,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Flist-management-reference.md",10497,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint\u002Freferences\u002Flist-management-reference.md",{"path":108,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fpower_optimization.md",13064,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Freferences\u002Fpower_optimization.md",{"path":112,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fsharepoint-reference.md",8444,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmobile-apps\u002Fskills\u002Fadd-sharepoint\u002Freferences\u002Fsharepoint-reference.md",{"path":116,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Ft_embed_hardware.md",11793,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Freferences\u002Ft_embed_hardware.md",{"path":120,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fwifi_ble_advanced.md",11976,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Freferences\u002Fwifi_ble_advanced.md",{"path":124,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fexecutable_literal_create_component.sh","SCRIPT","脚本",5852,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fscripts\u002Fexecutable_literal_create_component.sh",{"path":130,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fexecutable_partition_calculator.py",7859,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002F_collections\u002Fdot_claude\u002Fskills\u002Fesp32-embedded-dev\u002Fscripts\u002Fexecutable_partition_calculator.py",[134,142,161,184,202,216],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":141},"01M78JN2BFRRV1J54Q6WKZQ08D","compare-site-configurations","Compare Power Pages site configurations between two environments, such as dev, test and production, or between a local download and the live site, and explain which differences change site behavior. Use when a site works in one environment but not another (for example, works in dev but fails in test), to check configuration drift before promoting or deploying, or to see what changed between two sites. Produces a shareable HTML report and a JSON file that VS Code can import.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpower-pages\u002Fskills\u002Fcompare-site-configurations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":40},"01M699WVHX0XN59EPBTTPEKYPG","setup","Use when Process Intelligence needs building, explicit cloud\u002Faccount\u002Fenvironment configuration, sign-in, connection diagnostics, or recovery from an authentication error.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fsetup\u002FSKILL.md",[],[144,149,150,151,152,153,24,154,155,156,36,157,158,159,35,160],"configuration","diagnostics","error","environment","cloud","connection","authentication","use","recovery","process","sign","intelligence",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":172,"publishedAt":40},"01M699WSR9EX55YY1WD9J22FEG","report-issue","Use when the user wants a Process Intelligence bug-report draft or support summary for a failed operation.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Freport-issue\u002FSKILL.md",[167],{"categoryNo":168,"categoryName":169,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[173,174,175,176,156,24,177,178,158,179,160,180,181,182,183],"issue","report","report issue","bug-report","operation","draft","bug","summary","user","for","support",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":40},"01M699WR26YQ9Q21KE6MJF5B2G","investigate-process","Use when a broad Process Mining business question, observed pattern or competing explanation needs investigation across analytical perspectives.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Finvestigate-process\u002FSKILL.md",[],[191,158,192,193,156,194,195,24,196,197,198,35,199,200,201],"investigate","investigate process","question","process mining","business","across","perspectives","mining","pattern","investigation","analytical",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":40},"01M699WP9SDG5ZR12P8VYNXKTN","derive-metric","Use when a requested measure is missing, a saved custom metric needs reuse, or an ephemeral formula or derived scalar is needed.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fderive-metric\u002FSKILL.md",[],[209,210,211,212,213,214,156,24,215,35],"metric","derive metric","missing","formula","custom","reuse","saved",{"skillNo":217,"name":218,"nameZh":6,"description":219,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":220,"categories":221,"keywords":222,"publishedAt":40},"01M699WMG5R8P6SMTDAS1TKF9E","compare-cohorts","Use when comparing process cohorts, departments, periods or before-and-after results under matched definitions.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpower-platform-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprocess-intelligence\u002Fskills\u002Fcompare-cohorts\u002FSKILL.md",[],[223,224,156,24,225,158,35],"compare","compare cohorts","results"]