feat(ai): Add SharePoint Embedded agent skills for autonomous setup#216
feat(ai): Add SharePoint Embedded agent skills for autonomous setup#216
Conversation
Adds an Agent Skills package (agentskills.io spec) that enables AI coding agents to set up a complete SharePoint Embedded environment autonomously. What it does (Steps 1-5): 1. Azure CLI login (interactive browser) 2. Entra app registration with SPE permissions (public client, no secrets) 3. SPE token via interactive browser login (auth code + PKCE, device code fallback) 4. Container type creation + tenant registration 5. Container creation, activation, proof file upload, preview link Security: - Interactive auth (auth code + PKCE) as primary flow, not device code - BYO App validates public client before auth - Read-Host confirmation before all delete operations - ExecutionPolicy consent check before running - v1.0 Graph API endpoints where available (beta-only endpoints documented) Usage: Give an AI agent: 'Read AI/skills/full-setup/SKILL.md and set up SPE on my tenant' Or run manually: cd AI/skills/full-setup && .\spe-setup.ps1 Prerequisites: Azure CLI, PowerShell 5.1+, tenant admin access
|
|
||
| for ($attempt = 1; $attempt -le $MaxRetries; $attempt++) { | ||
| try { | ||
| return Invoke-RestMethod @params |
There was a problem hiding this comment.
Can we set, for example, a User-Agent header here that would give us an idea of which requests are coming from this skill?
| | [container-management/](container-management/SKILL.md) | Day-2 container operations (list, inspect, archive, delete, permissions) | | ||
| | [content-operations/](content-operations/SKILL.md) | File and folder operations inside containers | | ||
| | [billing-setup/](billing-setup/SKILL.md) | Production billing configuration | |
There was a problem hiding this comment.
These files don't exist.
| Give an agent this prompt: | ||
|
|
||
| ``` | ||
| Read Skills/full-setup/SKILL.md and run the SPE setup scripts to set up SharePoint Embedded on my tenant. |
There was a problem hiding this comment.
Casing of Skills doesn't match the skills folder name
| Or run it yourself: | ||
|
|
||
| ```powershell | ||
| cd Skills/full-setup |
There was a problem hiding this comment.
Casing of Skills doesn't match the skills folder name
|
|
||
| - Azure CLI (`az --version`) | ||
| - PowerShell 5.1+ or 7+ | ||
| - Tenant admin access (Global Admin or Application Admin) |
There was a problem hiding this comment.
By the way this is worded, it seems that an Application Admin is sufficient for this process. Is that true?
|
|
||
| Present **every line** from the RESULT block as a markdown table. Do not drop URL lines. | ||
|
|
||
| ## Step-specific notes |
There was a problem hiding this comment.
The term "Step" for this skill is overloaded. Internally there are 9 steps, but the files are named in a way that they seem to represent the steps too.
Perhaps call the higher level ones Stages or relabel inner steps as substeps (that is, instead of 02 script containing steps 2 and 3, it has just step 2 but has sub-steps 2.1 and 2.2)
Summary
Agent Skills package (agentskills.io spec) for autonomous SharePoint Embedded setup. Two user interactions (az login + browser sign-in), zero portal visits, zero secrets.
What it does
Usage
Agent:
Manual:
Prerequisites
Azure CLI, PowerShell 5.1+, tenant admin access