analyze-document-library

Analyzes a SharePoint document library and summarizes files, folders, file types, and recent activity.

128|50|Updated May 4, 2026
One-click install
npx skills add https://github.com/pnp/sharepoint-skills --skill analyze-document-library-pnp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: analyze-document-library
Source: https://github.com/pnp/sharepoint-skills/tree/main/Skills/analyze-document-library/analyze-document-library
Command: npx skills add https://github.com/pnp/sharepoint-skills --skill analyze-document-library-pnp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Understanding what is inside a large SharePoint document library is time-consuming when done manually. This Skill performs a read-only analysis of the current library and produces a structured summary covering file and folder counts, file type distribution, recent activity, naming quality issues, and organization recommendations. ## Core Features & Use Cases - Library Inventory: Counts total files and folders and groups files by type such as Word, Excel, PowerPoint, PDF, image, or archive. - Recent Activity Review: Identifies the most recently modified documents and highlights active folders or stale areas. - Naming Quality Detection: Flags documents with generic or non-meaningful names like Document.docx, Untitled.xlsx, Scan001.pdf, or IMG_1234.jpg. - Use Case: A site owner preparing for a content cleanup asks Copilot to review a library and receives a concise summary with recommendations for folder groupings, metadata columns, and naming standards. ## Quick Start Ask Copilot in SharePoint to analyze this document library and summarize its files, folders, file types, and recent activity.

Frequently Asked Questions about analyze-document-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a SharePoint document library with Copilot?▼

Install the skill into your site's Agent Assets library, then ask Copilot in SharePoint to analyze the document library. It returns a structured summary with file and folder counts, file types, recent activity, and recommendations.

What does the document library analysis report include?▼

The report includes total file and folder counts, file type distribution, the most recently modified documents, observations about active or stale areas, and practical organization recommendations based only on observed contents.

Can this skill rename or reorganize files in SharePoint?▼

No, the skill is strictly read-only. It does not modify, rename, delete, or move files, change permissions, or create columns, views, or workflows. It only provides analysis and recommendations.

How does the skill detect documents without meaningful names?▼

It flags names that are generic, vague, system-generated, overly short, duplicated with numeric suffixes, or mostly dates and random characters, such as Document.docx, Untitled.xlsx, Scan001.pdf, or IMG_1234.jpg.

What permissions are needed to run a SharePoint skill?▼

You need View permission on the site to run a skill and Edit permission to add one. Copilot in SharePoint must be available on the site with an active Microsoft Copilot license.