How-to

How to write your first SharePoint AI Skill in under 30 minutes

Pick the right workflow, use a six-field prompt template, test on three files, ship it to the team. The exact steps for a production-ready first Skill.

Daniel Anderson7 min read

Writing your first SharePoint AI Skill should take you thirty minutes, not a week. The trick is choosing the right workflow to encode, using a prompt template that makes the agent do the hard work, and testing on three files before you share it with anyone.

This guide walks all five steps. By the end, you have one tested Skill saved in your site's Agent Assets library and a mental model for writing the second one faster.

If you have not read what SharePoint AI Skills are, start there. This piece assumes you know the definition and want to ship.

Before you start

You need three things.

If your tenant has not opted in yet, the Get started with AI in SharePoint docs walk through the opt-in flow.

Step 1. Pick a Skill worth writing first

The best first Skill is a workflow your team already does by hand, on the same type of file, on the same site, at least once a week. That narrow shape forces the Skill to be specific, which is where Skills shine.

Three candidates to consider.

Avoid these for your first Skill.

Those are not bad ideas. They just are not first-Skill ideas.

Step 2. Draft the prompt using the six-field template

This is the prompt I give the agent. Six fields. Every field you skip becomes a tuning round later.

Create a Skill named "<short, unique name>" for this site.

Purpose:
<One-sentence statement of what the Skill does and when.>

Trigger:
<The user prompt phrases that should run this Skill.
 Give two or three variations.>

Inputs:
<What the user provides. Selected files? A library path?
 A list name? A free-text parameter?>

Steps:
1. <First action. Include the rule, not just the action.>
2. <Second action.>
3. <Third action.>
...

Output:
<Exactly what the Skill returns. Chat message? File updated?
 List item created? Summary format?>

Rules:
- <Any constraint. Do not rename files.
   Never overwrite metadata. Flag and ask on ambiguity.>

Open the AI in SharePoint chat panel on your site. Paste the filled-in template. Ask the agent to create the Skill.

Practitioner note

Rules is the single highest-value field. Most teams skip it and pay for it later. Before you save, ask yourself "what would a careless person get wrong here?" and put the answer in Rules.

Step 3. Review the Markdown the agent produces

The agent drafts the Skill as a Markdown file and shows it in chat. Do not save it yet.

Read the Markdown with one question in mind: "does this tell a team member who has never seen my original prompt what to run, and what good looks like?" If the answer is yes, save. If the answer is no, ask the agent to adjust specific sections.

Common edits to make on the first review.

When the Markdown reads right, confirm save.

Step 4. Test on three files

The Skill saves to /Agent Assets/Skills/<skill-name>/SKILL.md in your site. You can review the file directly if you want to see what the agent wrote.

Run the Skill on three files, in this order.

  1. A typical file. The case the Skill was written for. Output should be clean.
  2. An edge case. A file that almost meets the rules but not quite. Output should flag it clearly.
  3. A broken input. A file missing required metadata, corrupted, or outside the Skill's scope. Output should refuse politely or flag the mismatch.

If any of the three produce confusing output, go back to the Markdown and tighten the relevant section. This usually means adding a Rule or refining a Step, not starting over.

Step 5. Ship it to the team

Any user with View permission on the site can run the Skill once it is saved. There is no separate approval step during preview.

Before you tell the team about the Skill, do three things.

The indicator card is the most useful debugging UI during preview. If it shows a different Skill, your trigger phrases are too close to another Skill on the site.

What to do if the Skill does not load

Two things are usually wrong when a Skill does not load on a user's prompt.

The trigger phrases in the Skill are too generic, and another Skill on the site is matching ahead of yours. Tighten both sets of triggers so they do not overlap.

Or the user's prompt is too different from any of the trigger phrases you captured. Add the new phrasing to the Skill's Trigger block and save.

The fast workaround while you tune: ask the user to name the Skill explicitly in their prompt. "Run contract review on this file." That forces the agent to load the Skill by name and ignores the trigger-matching step.

Where this fits in the wider Skill practice

Your first Skill is a proof that the pattern works in your tenant. The second and third are where teams see the shape of what Skills change for them.

Once you have three or four Skills on a site, governance starts to matter. Naming conventions, trigger distinctness, and permissions on the Agent Assets library all become questions worth a small amount of intentional thought. The pillar on extending SharePoint AI with Skills covers that next layer.

Pick the workflow. Fill in the six fields. Test on three files. Ship it. Thirty minutes the first time, ten minutes by the fifth.

Get the first wave of Skills when the directory opens.

Production-ready Skill Markdown files, tested in real client tenants. Free for the first wave of subscribers.

Frequently asked questions

Answers to the questions we hear most

How long does it take to write a first SharePoint AI Skill?

About thirty minutes if you use a prompt template, pick a small workflow, and test on three files. The second Skill is faster because you skip the template question and reuse the same six-field pattern.

What is the best first SharePoint Skill to write?

A workflow your team already does by hand at least once a week, on the same type of file, on the same site. Document review, metadata tagging, or library housekeeping are all strong candidates.

Do I need code to write a SharePoint AI Skill?

No. Skills are Markdown files authored through natural language in the AI in SharePoint chat panel. There is no code editor, no deployment pipeline, no install step.

Where does the Skill save once I create it?

The Skill saves to /Agent Assets/Skills/<skill-name>/SKILL.md on the site where you created it. Standard SharePoint permissions, versioning, and retention apply to the file.

What if I edit the SKILL.md file directly?

That is supported. If you know Markdown, you can skip the chat experience and edit the file in the browser or in Word on the web. Keep the structure intact so AI in SharePoint can interpret the Skill correctly.

How do I stop my Skill from conflicting with another Skill on the site?

Write Trigger phrases that are distinct from any other Skill on the site. Watch the Skill indicator card in the chat UI to confirm which Skill loaded on each run. If two Skills have overlapping triggers, the agent sometimes picks wrong silently.

Daniel Anderson

Founder, ShiftF5.ai · Microsoft Partner

Microsoft 365 consultant with twenty years in SharePoint, Copilot, and M365 AI enablement. Publisher of sharepointaiskills.com. I write about what actually ships in client tenants.

Connect on LinkedIn →