Walkthrough

How I built a contract gaps analysis Skill in SharePoint

I built a SharePoint AI Skill that compares a base contract with a returned client copy and outputs a priority-ordered gaps analysis. Here is the prompt and the output.

Daniel Anderson7 min read

A contract goes out to a client. They send it back with changes. Someone on your team has to read both copies, find every difference, weigh the impact, and decide what to push back on. Next week the same task lands on someone else and the output looks different, because the process lives in the reviewer's head.

I built a SharePoint AI Skill that runs the gaps analysis end to end. The Skill loads the base contract automatically. The user selects the client's returned copy. The output is a traffic-light table of every change, priority-ranked by business impact, with an executive summary and a recommended action plan. Anyone on the site with View permission can run it.

This is the build walkthrough. You can apply the same pattern to any review task your team runs by hand every week.

If you have not read what SharePoint AI Skills are, start there. This piece assumes you know the basics and want to see a real one shipped.

The problem this Skill solves

Contract review by hand has three failure modes. It is slow. It is inconsistent across people. And it usually drops the prioritisation step entirely when the reviewer is rushed.

Every contract review done by hand goes the same way. Read the base. Read the returned copy. Spot the changes. Try to remember which ones matter most. Write up a summary. Decide which clauses to push back on. Repeat next week with someone else, who does it slightly differently.

Skills replace the human-memory layer with a saved instruction. Once the Skill is written, the same logic runs every time, regardless of who invokes it.

What the Skill does in plain English

The Skill loads the base contract automatically from the site's documents library. The user selects the client's returned copy. The Skill performs a clause-by-clause comparison and presents the result in a single table.

For each change it captures the original clause, the client's modified version, the business impact, and a priority ranking for negotiation. The table uses traffic-light colours so the highest-impact changes stand out at a glance.

Below the table the Skill writes an executive summary of the overall risk, a list of top business and legal impacts, and a priority action plan. All in one run, all from one prompt.

Setup: enable the Agent Assets feature

Skills live in a system library called Agent Assets. The library is created when you activate a site collection feature with the same name.

To turn it on:

  1. Open Site information on the site.
  2. Click View all site settings.
  3. Open Site collection features.
  4. Find Agent Assets at the top of the list and activate it.

The library appears immediately. Inside it you will find two folders: Skills and Plans. The contract Skill lives in the Skills folder. For the full mechanics see Microsoft Learn on extending AI in SharePoint with Skills.

Writing the prompt that builds the Skill

I do not write Skills by hand. I describe what I want in chat and let AI in SharePoint draft the Markdown. The prompt I used for this one.

I want to create a Skill that performs a gaps analysis on contracts.

We have a base contract stored in the documents library called
"Base Contract.docx". I want this contract loaded automatically
every time the Skill runs.

Users send this contract to clients. Clients return it with changes,
amendments, or deletions. We need to find every change and assess
the impact on our business.

Output:
- A traffic-light table of every change.
- An impact analysis covering legal, business, and reputational risk.
- A priority ranking for negotiation, highest impact first.

The agent drafts the Skill, asks two clarifying questions (does the user select the client file, and do I want a recommended negotiation response per item), and writes the Markdown to /Agent Assets/Skills/Contract Gaps Analysis/SKILL.md once I confirm.

Running the Skill on a real contract

After saving, anyone with View permission can run the Skill. They open the documents library, select the client's returned contract, and prompt AI in SharePoint with something as simple as "run a contract analysis".

The Skill loads (the chat shows a Skill indicator card to confirm). It fetches the base contract from the library. It runs the clause-by-clause comparison. It produces the output.

On my first real test, the Skill flagged 24 distinct changes. The top of the table held the highest-impact ones: payment terms, liability, indemnity. The bottom held minor wording tweaks. Everything in between was ordered by business impact, which is what I asked for in the prompt.

The output you should expect

The output is one structured response in chat. Top to bottom:

The same structure runs every time. If a junior team member runs the Skill while I am away, the output lands the same way it would if I had done it myself.

Why this matters more than it looks

The Skill is not the productivity gain. The standardisation is.

Before the Skill, the gaps analysis varied by reviewer. One person might miss the priority ordering. Another might write a tight summary but skip the impact analysis. The output depended on the reviewer's mood, time pressure, and memory of the playbook.

With the Skill, the output is the same shape every time, by every reviewer. The expert writes the SOP once. The team inherits it. That is the quiet shift Skills make in any review workflow that runs every week.

Where to take this next

Pick the review task your team runs every week by hand. Document review, contract review, RFP scoring, proposal QA. Write the prompt the way I wrote it above. Test on three real files. Save it.

You will have a Skill shipped before lunch. The second one is faster than the first.

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

What does the contract gaps analysis Skill do?

It loads a base contract from the site's documents library, compares it to a client-returned copy you select, and outputs a traffic-light table of every change with priority ranking. It also produces an executive summary, an impact analysis, and a priority action plan in the same response.

Do I need to write Markdown to create this Skill?

No. You describe the workflow in plain language in the AI in SharePoint chat panel. The agent drafts the SKILL.md file for you and asks clarifying questions before saving.

Where does the Skill save once I create it?

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

Can a junior team member run this Skill?

Yes. Anyone with View permission on the site can run it. They select a client contract and prompt AI in SharePoint to run the gaps analysis. The output is the same shape every time, regardless of who triggers it.

Can I adapt this for other review workflows?

Yes. The same pattern works for proposal review, RFP scoring, document QA, or any clause-by-clause comparison. Change the prompt, change the inputs, save a new Skill. The structure is reusable.

How do I enable the Agent Assets feature?

On the site, open Site information, click View all site settings, open Site collection features, find Agent Assets in the list, and activate it. The Agent Assets library appears immediately with Skills and Plans folders inside.

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 →