mcpbeat Sign in

Sharepoint List Insight Report Generator Agent Skill

Use this skill whenever the user asks for an insights/reporting analysis of a SharePoint list from a connected SharePoint knowledge source; first validate the list exists, then generate and save a single-file interactive HTML report to a pre-approved SharePoint destination whose audience is no broader than the source list and items, and return its SharePoint URL.

3k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
51 d ago
last touched
this folder, not the whole repository

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/cat-agent-skills --skill sharepoint-list-insight-report-generator

What comes with it

5 173 bytes besides the instruction
README.md
metadata.json

The instruction itself

22 sections, as written by the author

Before starting, verify that configured SharePoint connector actions, agent flows, or equivalent tools can discover approved lists and their schemas, retrieve list items page by page, and invoke Create file to return the created file's URL or path. A SharePoint knowledge source alone does not guarantee these capabilities. If any capability is unavailable, stop and name the missing capability.

Step 1 – Identify the Target List

  • Read the user request and identify the requested SharePoint list name.
  • Inspect the selected SharePoint knowledge source.
  • Retrieve all available SharePoint lists.
  • Perform a case-insensitive exact match on list title (and any explicit aliases in list metadata).
  • Proceed only on an exact match or an explicit user selection; otherwise stop and prompt the user to choose from the available lists.

Validation Logic

Before performing any analysis, enumerate all SharePoint lists available in the selected knowledge source.

The requested data source must be explicitly mapped to an existing SharePoint list.

Allowed conditions to continue:

  • Exact list name match.
  • User explicitly selects a list from the available lists.
  • Alias defined in list metadata.

Forbidden behavior:

  • Do not infer lists from business terminology.
  • Do not infer lists from column names.
  • Do not infer lists from data values.
  • Do not infer lists from semantic similarity.
  • Do not select a list because it appears related.

Examples:

User request:

Create a report for Campaign

Available lists:

  • Campaign
  • Product Catalog

Result:

Proceed with Campaign.

User request:

Create a report for sales data

Available lists:

  • Campaign
  • Product Catalog

Result:

Stop.

Return available lists.

Ask the user to select one.

User request:

Create a report for quarterly revenue

Available lists:

  • Campaign
  • Product Catalog

Result:

Stop.

Do not select Campaign.

If the requested list does not exist:

  • Stop the process immediately.
  • Do not analyze data.
  • Do not generate a report.
  • Return all available SharePoint lists.
  • Return closest matching list names.

Proceed only if the requested list exists.

For example: if the user requests "sales" and only a "Product" list exists that happens to contain sales-related data, stop and ask the user to choose an existing list from the knowledge source.


Step 2 – Discover List Structure

Retrieve:

  • List title
  • Internal name
  • Item count
  • Created date
  • Last modified date
  • All columns
  • Column types
  • Required fields
  • Indexed fields
  • Lookup fields
  • Choice fields
  • Person fields
  • Managed metadata fields

Generate a schema summary.


Step 3 – Analyze Data

Analyze all accessible records within the confirmed scope, retrieving them page by page through the configured tool and following its continuation tokens. Before retrieving a detailed report, enforce the tool's row and report-size limits; when either limit is absent, also use a conservative cap of 1,000 rows. If the scope would exceed an applicable limit, ask the user to narrow it. Never silently truncate or sample records.

Generate:

General Statistics

  • Total records
  • Distinct values
  • Missing values
  • Data completeness score

Trend Analysis

  • Monthly trends
  • Annual trends
  • Growth trends

Category Analysis

  • Top categories
  • Frequency distribution
  • Ranking statistics

Ownership Analysis

  • Records by owner
  • Top contributors

Quality Analysis

  • Empty fields
  • Duplicate values
  • Potential anomalies

Step 4 – Generate Insights

Create business-oriented insights.

Examples:

  • Most used categories
  • Fastest growing areas
  • Data quality issues
  • Process bottlenecks
  • Trends and anomalies

Prioritize actionable recommendations.


Step 5 – Build Interactive HTML Report

Produce a single HTML file with all CSS and JavaScript embedded inline, except that Chart.js (version 4) may be loaded from an exact versioned CDN URL with matching SRI integrity metadata and crossorigin="anonymous" as the only permitted external dependency. If the exact version and matching SRI cannot be verified, do not load the CDN asset and use embedded browser APIs instead. Do not use external Bootstrap, DataTables, fonts, stylesheets, scripts, or other CDN resources. Implement table filtering, sorting, pagination, and responsive styling using embedded CSS and JavaScript.

Treat SharePoint field names and values as untrusted data. Use a real JSON serializer; before embedding serialized data in a <script type="application/json"> element, escape <, >, &, U+2028, and U+2029, then read it via textContent and parse it. Insert data-driven content using textContent, document.createElement, and other safe DOM APIs, never innerHTML. Render rich-text fields as plain text unless a trusted sanitizer is available.

Technologies

Use:

  • Chart.js

Use only libraries that can be used safely in a browser.

Executive Summary

Display:

  • List name
  • Record count
  • Column count
  • Last update date
  • Top insights

Interactive Filters

Provide filters for:

  • Text fields
  • Choice fields
  • Lookup fields
  • Person fields
  • Date fields

Filters must update charts, KPIs and tables dynamically.

Interactive Charts

Generate appropriate charts automatically.

Support:

  • Bar charts
  • Pie charts
  • Doughnut charts
  • Line charts

Provide hover tooltips and legend controls.

Data Table

Requirements:

  • Sort on every column
  • Ascending and descending sorting
  • Search box with placeholder:

Quick search in table...

  • Pagination
  • Column visibility controls
  • Export buttons:
  • CSV (Excel-compatible)
  • Copy

For CSV export, neutralize spreadsheet formulas by prefixing an apostrophe when a cell's first non-whitespace or control character is =, +, -, or @.

Detail Modal Popup

Selecting a row must open a modal displaying:

  • All list fields
  • Display names
  • Internal names
  • Values

Use a responsive two-column layout.

Open SharePoint Item Button

Inside the modal popup provide:

Open SharePoint Item

Requirements:

  • Open in a new browser tab
  • Use only the trusted SharePoint item URL returned by the configured connector or tool
  • Permit the link only when it uses HTTPS and its origin matches the selected SharePoint site's origin; otherwise omit it
  • Use target="_blank" and rel="noopener noreferrer"

Step 6 – Save Report

After generating the HTML report:

  • Generate a unique name using a sanitized list name: retain [A-Za-z0-9_-], replace other runs with _, trim leading and trailing separators, cap the sanitized list-name portion at 80 characters, and use SharePointList if empty.

Report_<SanitizedListName>_<yyyyMMdd_HHmmss>.html

  • Verify that the configured destination's audience is no broader than the source list and included items. If this cannot be verified, do not upload the report.
  • Invoke the configured SharePoint Create file action or flow to save the report in the pre-approved SharePoint destination whose audience is no broader than the source list and included items.
  • Capture the URL or path returned by Create file and use it in the response. If file creation fails or returns no URL or path, report the failure honestly and never guess a URL.

Output Requirements

Return:

  • Report summary.
  • SharePoint URL of the generated report.
  • Report file name.
  • List schema summary.
  • Insights summary.
  • Storage location within the configured SharePoint destination.

Success Criteria

A successful execution must:

  • Detect the requested SharePoint list.
  • Validate its existence.
  • Suggest available lists when not found.
  • Discover schema.
  • Analyze data.
  • Generate insights.
  • Create an interactive HTML report.
  • Save the report in the pre-approved SharePoint destination whose audience is no broader than the source list and included items.
  • Return the direct SharePoint URL of the report.
  • Provide sortable tables.
  • Provide pagination.
  • Provide quick search.
  • Provide modal detail view.
  • Provide Open SharePoint Item action.
  • Generate a unique report name.
  • Support responsive user experience.

Other skills for the same job

different authors, same section of the catalogue
Scientific Visualization
by christophacham
×3

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

26k tokens scripts
Caam
by Dicklesworthstone
×2

Coding Agent Account Manager - Sub-100ms account switching for AI coding CLIs with fixed-cost subscriptions. Vault profiles, isolated profiles for parallel sessions, smart rotation with health scoring, cooldown tracking, automatic failover, TUI dashboard. Go CLI.

4k tokens
Cloud Claw
by internet-court
×1

Use this umbrella skill when the request spans multiple Cloud Claw user-facing domains, especially launching a new AltClaw or OpenClaw VM and then managing lifecycle, logs, renewal, or dashboard access through the local altllm cloud-claw-* commands in this repository.

896 tokens
Claude D3js Skill
by ComeOnOliver
×1

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visua...

23k tokens
Reporting Issues
by ComeOnOliver
×1

Use this skill when you need to report on a troubleshooting session

2k tokens
Accessing Mlflow
by NVIDIA
vendor

Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics across models, fetch artifacts (configs, logs, results), or set up the MLflow MCP server. ALWAYS triggers on mentions of MLflow, experiment results, run comparison, invocation IDs in the context of results, or MLflow MCP setup.

1k tokens
Grow App
by wondelai

Guided journey from an app people sign up for and then quietly abandon to a sealed retention engine with a habit loop, an activated first run, and one metric the whole team trusts. Orchestrates eight skills phase by phase - hooked-ux, improve-retention, continuous-discovery, lean-ux, inspired-product, lean-analytics, microinteractions, drive-motivation - asking the user questions at every decision point and recording results in the project docs/ folder (PRODUCT.md, METRICS.md, GROW-APP-PLAN.md) so the journey resumes across sessions. Use when the user wants to lift activation and retention, design a habit loop, fix a leaky onboarding funnel, or says ''users sign up then disappear''. Do not use to fix broken UX or performance that no engagement mechanic can paper over - run improve-app first; if there is no app yet, use create-app. For one framework in isolation, invoke that skill directly.

6k tokens
Improve Business
by wondelai

Guided journey from a stalled, plateaued business to one with an honest diagnosis, a working operating rhythm, and offers repriced to real value. Orchestrates eight skills phase by phase - good-strategy-bad-strategy, traction-eos, high-output-management, team-topologies, drive-motivation, lean-analytics, negotiation, monetizing-innovation - asking the user questions at every decision point and recording results in the project docs/ folder (STRATEGY.md, OPERATIONS.md, METRICS.md, IMPROVE-BUSINESS-PLAN.md) so the journey resumes across sessions. Use when the user wants to fix a business that has plateaued, diagnose why growth stalled, tighten strategy and execution, re-motivate a team, or says ''revenue is flat and I do not know why''. Starting from scratch with no customers: use create-business. Once the fundamentals work and the goal is expansion: use grow-business. When the product itself drags the business down: use improve-app. For one framework in isolation, invoke that skill directly.

6k tokens

How to use it

Copy the folder

Take microsoft/sharepoint-list-insight-report-generator from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.