add-sharepoint
Skill961 starsChanged 2 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Shayanrs31/pa-code-apps-claude-plugintheir own version, first seen Aug 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Shayanrs31/pa-code-apps-claude-plugin★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository125 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugins/canvas-apps/AGENTS.mdAGENTS.md
- plugins/code-apps/AGENTS.mdAGENTS.md
- plugins/mobile-apps/AGENTS.mdAGENTS.md
- plugins/model-apps/AGENTS.mdAGENTS.md
- plugins/power-apps-mobile-extension/AGENTS.mdAGENTS.md
- plugins/power-automate/AGENTS.mdAGENTS.md
- plugins/power-pages/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- plugins/canvas-apps/CLAUDE.mdCLAUDE.md
- plugins/model-apps/CLAUDE.mdCLAUDE.md
- plugins/power-automate/CLAUDE.mdCLAUDE.md
- plugins/power-pages/CLAUDE.mdCLAUDE.md
- add-data-sourceSkill
- canvas-appSkill
- configure-canvas-mcpSkill
- report-issueSkill
- add-azuredevopsSkill
- add-connectorSkill
- add-datasourceSkill
- add-dataverseSkill
- add-excelSkill
- add-mcscopilotSkill
- add-office365Skill
- add-onedriveSkill
- add-sharepointSkill
- add-teamsSkill
- add-workiqSkill
- create-code-appSkill
- deploySkill
- list-connectionsSkill
- report-issueSkill
- generate-codeful-mcp-toolSkill
- generate-mcp-app-uiSkill
- report-issueSkill
- add-connectorSkill
- add-datasourceSkill
- add-dataverseSkill
- add-cameraSkill
- add-geolocationSkill
- add-pdf-reportSkill
- add-pdf-viewerSkill
- add-pen-inputSkill
- add-nativeSkill
- add-sample-dataSkill
- add-table-to-offline-profileSkill
- assign-offline-profileSkill
- check-updatesSkill
- create-mobile-appSkill
- debug-appSkill
- deploySkill
- design-systemSkill
- edit-appSkill
- edit-offline-profileSkill
- enable-tables-offlineSkill
- list-connectionsSkill
- open-wrap-urlSkill
- preview-offline-scopeSkill
- preview-screensSkill
- report-issueSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Check Memory Bank → 2. Plan → 3.
- Very specific: line 32
Check for memory-bank.md per shared-instructions.md.
- Distinctive: line 47
Do the lists already exist on their site, or do they need to create new ones?
- Distinctive: line 53
Ask about the data they need and design an appropriate schema
- Very specific: line 109
Use shared_sharepointonline as the apiId and capture connectionId from the output.
- Very specific: line 111
If create-connection cannot complete because browser-based connection creation is disabled or the connector needs interactive auth, direct …
- Distinctive: line 156
Run once per list or document library.
- Very specific: line 162
Use Grep to find methods in src/generated/services/SharePointOnlineService.ts (generated files can be very large — see …
- Very specific: line 212
Update memory-bank.md with: connector added, site URL, lists/libraries connected (or created), type-check status.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Plugin check: Run
node "${PLUGIN_ROOT}/scripts/check-version.js"- if it outputs a message, show it to the user before proceeding.
📋 Shared instructions: shared-instructions.md — read first.
References:
- sharepoint-reference.md — Column encoding, choice fields, lookups, API patterns (CRITICAL)
- api-authentication-reference.md — Graph API auth, token, site ID
- list-management-reference.md — Query, create, extend lists and columns
Add SharePoint
Two paths: existing lists (skip to Step 6) or new lists (full workflow).
Workflow
- 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
Step 1: Check Memory Bank
Check for memory-bank.md per shared-instructions.md.
Also confirm this is a mobile app:
test -f power.config.json && test -f app.config.js && echo "OK" || echo "ERROR: not a mobile app"Step 2: Plan
Telemetry checkpoint: plan_sharepoint_data_source
Ask the user:
- Which SharePoint list(s) do they need?
- Do the lists already exist on their site, or do they need to create new ones?
If lists already exist: Skip to Step 6.
If creating new lists:
- Ask about the data they need and design an appropriate schema
- Reuse existing lists when possible (don't duplicate)
- Enter plan mode with
EnterPlanMode, present the list designs with columns and types - Get approval with
ExitPlanMode
Step 3: Setup Graph API Auth (if creating lists)
See api-authentication-reference.md for full details.
az account show # Verify Azure CLI logged in
$api = Initialize-SharePointGraphApi -SiteUrl "https://<tenant>.sharepoint.com/sites/<site-name>"
$headers = $api.Headers
$siteId = $api.SiteIdRequires Sites.Manage.All permission.
Step 4: Review Existing Lists (if creating lists)
Always query existing lists first before creating:
$existingLists = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/sites/$siteId/lists?`$select=id,displayName,description,list&`$filter=list/hidden eq false" -Headers $headersSee list-management-reference.md for Find-SimilarLists, Compare-ListSchemas, and Get-ListSchema functions.
Present findings to user with AskUserQuestion:
- Lists that can be reused (already exist with matching columns)
- Lists that need extension (exist but missing columns)
- Lists that must be created (no match found)
Step 5: Create Lists (if creating lists)
Telemetry checkpoint: create_sharepoint_lists
Print before starting:
"→ Creating SharePoint lists via Graph API (sequential per list, columns added after list exists)…"
Get explicit confirmation before creating. Use safe functions from list-management-reference.md:
New-SharePointListIfNotExistsAdd-SharePointColumnIfNotExistsAdd-SharePointLookupColumn(for cross-list references)
Step 6: Get Connection ID
Get the SharePoint Online connection ID (see connector-reference.md):
npx power-apps create-connection --api-id shared_sharepointonline --jsonUse shared_sharepointonline as the apiId and capture connectionId from the output. Use these exact values in the commands below.
If create-connection cannot complete because browser-based connection creation is disabled or the connector needs interactive auth, direct the user to create one:
Open
https://make.powerapps.com/environments/<environment-id>/connections→ + New connection → search "SharePoint" → Create. Then provide the connection ID or rerun/list-connections shared_sharepointonline.
Step 7: Discover Sites
Print before starting:
"→ Discovering SharePoint sites accessible to this connection…"
npx power-apps list-datasets --api-id <apiId-from-list> --connection-id <connection-id> --jsonPresent the sites to the user and ask which one(s) they want to connect to. If the user already specified a site URL, confirm it appears in the list.
If npx power-apps list-datasets fails or returns no results:
- Auth, wrong user, or multiple accounts: follow shared-instructions command-failure handling and retry once.
- 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.
Step 8: Discover Tables
Print before starting:
"→ Discovering lists/document libraries on each selected site…"
For each selected site:
npx power-apps list-tables --api-id <apiId-from-list> --connection-id <connection-id> --dataset '<site-url>' --jsonPresent 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.
Step 9: Add Connector
Telemetry checkpoint: generate_sharepoint_data_source
Print before starting:
"→ Running
npx power-apps add-data-sourceper list (sequential, ~10–20 seconds each)."
SharePoint is a tabular datasource — requires --connection-id, --dataset, and --resource-name:
npx power-apps add-data-source --api-id <apiId-from-list> --connection-id <connectionId-from-list> --dataset '<site-url>' --resource-name '<table-name>'Run once per list or document library.
Step 10: Configure
Read sharepoint-reference.md before writing any SharePoint code — column encoding, choice fields, and lookups have critical gotchas.
Use Grep to find methods in src/generated/services/SharePointOnlineService.ts (generated files can be very large — see connector-reference.md).
Sample usage:
import { SharePointOnlineService } from '../../src/generated/services/SharePointOnlineService';
// Read items
const result = await SharePointOnlineService.GetItems({
dataset: 'https://contoso.sharepoint.com/sites/projects',
table: 'Project Milestones',
});
const items = result.value ?? [];
// Create item
await SharePointOnlineService.PostItem({
dataset: 'https://contoso.sharepoint.com/sites/projects',
table: 'Project Milestones',
item: { Title: 'Launch review', Status: 'Not Started' },
});
// Update item (SharePoint IDs are integers, not GUIDs)
await SharePointOnlineService.PatchItem({
dataset: 'https://contoso.sharepoint.com/sites/projects',
table: 'Project Milestones',
id: 42,
item: { Status: 'Done' },
});Step 11: Type-check
Telemetry checkpoint: validate_sharepoint_integration
Print before starting:
"→ Regenerating connector schemas + running tsc to verify SharePoint services compile (~15–30 seconds)."
Native diff:
npx tsc --noEmitinstead ofnpm run build. Do NOT run platform-specific native build commands here.
npx power-apps add-data-source wrote new files into .power/schemas/sharepointonline/. Regenerate connectorSchemas.ts before type-checking so the new list is wired into the runtime schema map:
npm run generate-schemas
npx tsc --noEmitFix TypeScript errors before proceeding.
Step 12: Update Memory Bank
Update memory-bank.md with: connector added, site URL, lists/libraries connected (or created), type-check status.
Note: No manual executor wiring needed.
PowerAppsProviderinapp/_layout.tsxhandles SharePoint connector routing, connection resolution, and OAuth consent automatically at runtime.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

