Agent skill

Analyze Document Library

by pnp in pnp/sharepoint-skills

Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations.

MITAuto-check passedDocuments & Office

Install Analyze Document Library

skills CLI
$ npx skills add pnp/sharepoint-skills --skill analyze-document-library -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pnp/sharepoint-skills analyze-document-library --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pnp/sharepoint-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills/analyze-document-library/analyze-document-library .claude/skills/analyze-document-library && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
analyze-document-library
GitHub stars
131
Token cost
~899 tokens
SKILL.md length
398 words
Files
1
Skills in repo
51
Repo updated
First seen
Licence
MIT

At a glance

Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations.

  • Works in 6 steps: Identify the current SharePoint document… → Retrieve library contents in read-only… → Analyze the library contents → …
  • The user says: - analyze this document library - summarize the contents of this library - review this library organization - show me files
  • SKILL.md covers When to use, Inputs, Steps and Output format
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Analyze Document Library is an agent skill from pnp/sharepoint-skills. Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations. Use when the user says: - "analyze this document library" - "summarize the contents of this library" - "review this library organization" - "show me files, folders, file types, and recent activity" - "find documents without meaningful names"

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Cloud office suites. It works with Microsoft SharePoint and Microsoft Word. The repository describes itself as: Skills for Copilot in SharePoint. The licence is MIT.

When your agent uses it

  • The user says: - analyze this document library - summarize the contents of this library - review this library organization - show me files
  • Recent activity - find documents without meaningful names

Example prompts

  • “analyze this document library”
  • “summarize the contents of this library”
  • “review this library organization”
  • “/analyze-document-library”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Identify the current SharePoint document library from the active SharePoint context. Use the current library name and path when available.
  2. Retrieve library contents in read-only mode using SharePoint listing/search tools. Include files and folders. If the tool fails or returns…
  3. Analyze the library contents
  4. Produce observations about recent activity, such as active folders, frequently changed file types, stale areas if visible, or…
  5. Provide practical organization recommendations. Base recommendations only on the observed library contents. Examples include creating…
  6. Keep the skill read-only at all times

What it can do on your machine

Read from SKILL.md and the folder at commit aa9eb14. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Analyze Document Library loads about 899 tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 398 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~899

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pnp/sharepoint-skills at commit aa9eb14, republished under its MIT licence (© pnp). 398 words, ~899 tokens.

Download SKILL.mdSave it as .claude/skills/analyze-document-library/SKILL.md (or your agent's skills folder).
name
analyze-document-library
description
Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations. Use when the user says: - "analyze this document library" - "summarize the contents of this library" - "review this library organization" - "show me files, folders, file types, and recent activity" - "find documents without meaningful names"

Analyze Document Library

When to use

Use this skill when the user wants a read-only analysis of the current SharePoint document library, including its contents, structure, recent changes, naming quality, and recommendations for improving organization.

Do not use this skill for requests to modify the library, rename files, delete content, move files, change permissions, or create/update metadata. If the user asks for changes, explain that this skill is read-only and only provides analysis and recommendations.

Inputs

  • Current SharePoint site context.
  • Current SharePoint document library context.
  • Optional user constraints, such as a folder scope, time window for recent activity, or specific naming pattern to review.

Steps

  1. Identify the current SharePoint document library from the active SharePoint context. Use the current library name and path when available.
  2. Retrieve library contents in read-only mode using SharePoint listing/search tools. Include files and folders. If the tool fails or returns empty, say so plainly and do not invent content.
  3. Analyze the library contents:
    • Count the total number of files.
    • Count the total number of folders.
    • Group files by file extension or file type, such as Word, Excel, PowerPoint, PDF, image, archive, or other.
    • Identify recently modified documents by sorting or filtering on modified date. Prefer the most recent 5–10 documents unless the user requests a different number.
    • Identify documents without meaningful names. Treat names as potentially non-meaningful when they are generic, vague, system-generated, overly short, duplicated with numeric suffixes, or mostly dates/numbers/random characters. Examples include Document.docx, New Microsoft Word Document.docx, Untitled.xlsx, Scan001.pdf, IMG_1234.jpg, Copy of ..., or names with no clear subject.
  4. Produce observations about recent activity, such as active folders, frequently changed file types, stale areas if visible, or concentration of recent edits.
  5. Provide practical organization recommendations. Base recommendations only on the observed library contents. Examples include creating clearer folder groupings, adding metadata columns, standardizing file naming, archiving stale content, creating filtered views, or separating working files from final deliverables.
  6. Keep the skill read-only at all times:
    • Do not modify files.
    • Do not rename files.
    • Do not delete content.
    • Do not move content.
    • Do not change permissions.
    • Do not create or update columns, views, rules, workflows, or approvals.
Show full SKILL.md (39 more words)Show less

Output format

Use this exact structure:

markdown
Document Library Summary

Library:
[Name]

Overview:
- Total files: [number]
- Total folders: [number]
- File types: [type counts]

Recent Activity:
[List observations]

Recommendations:
[List recommendations]

If data is incomplete, include a brief note in the relevant section, such as Unable to determine from available library data. Keep the response concise and avoid more detail than the user requested.

© pnp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in Skills/analyze-document-library/analyze-document-library of pnp/sharepoint-skills.

Open the folder on GitHubat commit aa9eb14

Compare with similar skills

Analyze Document Library next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Analyze Document Library compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analyze Document Library this skillpnp/sharepoint-skills131—~899Automated safety check: PassMIT
Colleague DistillationZhixiangLuo/10xProductivity478—~2.1kAutomated safety check: NotesMIT
Msgraphcodemie-ai/codemie-code294—~4.1kAutomated safety check: PassApache-2.0
aai-cli Microsoft 365aai-labs/agent-barn109—~1.2kAutomated safety check: PassApache-2.0
Workiqmicrosoft/work-iq1k—~15kAutomated safety check: PassCustom licence
Workiq Previewmicrosoft/work-iq1k—~3.3kAutomated safety check: PassCustom licence

Similar skills

  • Colleague Distillation

    ZhixiangLuo/10xProductivity

    Distill a colleague into a reusable AI skill (work + persona) using tool connections — Slack, Slack AI, Jira, GHE, Bitbucket, Confluence, SharePoint, Teams, Outlook, Notion, Linear, Google Docs, and…

    478 GitHub stars~2.1k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes
  • Msgraph

    codemie-ai/codemie-code

    Work with Microsoft 365 services via the Graph API — emails, calendar events, SharePoint sites (read and write), Teams chats and channel messages, OneDrive files, OneNote notebooks, Planner task…

    294 GitHub stars~4.1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • aai-cli Microsoft 365

    aai-labs/agent-barn

    Guides work with Outlook, OneDrive, SharePoint, Teams, Excel, To Do and Planner through aai-cli's Microsoft Graph commands, starting from which service owns the data.

    109 GitHub stars~1.2k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Workiq

    microsoft/work-iq

    Official

    WorkIQ tools for Microsoft 365 workplace data and actions. An agent skill from microsoft/work-iq.

    1k GitHub stars~15k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Workiq Preview

    microsoft/work-iq

    Official

    WorkIQ tools for Microsoft 365 workplace data and actions. An agent skill from microsoft/work-iq.

    1k GitHub stars~3.3k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Learn

    iurykrieger/claude-bedrock

    Ingests an external data source into the Second Brain. An agent skill from iurykrieger/claude-bedrock.

    105 GitHub stars~6.5k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check: notes

More from pnp/sharepoint-skills

All 51 skills in this repo
  • Scorecard Matrix

    pnp/sharepoint-skills

    Generates a polished, self-contained HTML heatmap scorecard — a weighted comparison matrix where entities (rows) are scored across dimensions (columns), with computed totals, rank badges, and a…

    131 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Broken Link Auditor

    pnp/sharepoint-skills

    Audits SharePoint pages, news posts, and hyperlink fields for broken or risky links and saves a self-contained HTML link-health report to the site.

    131 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Custom Image Tagger

    pnp/sharepoint-skills

    Analyze selected construction images, create missing object metadata columns, and write concise visual metadata back to SharePoint columns using explicit image-analysis, list-schema, list-update…

    131 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Dossier

    pnp/sharepoint-skills

    Renders a polished, self-contained HTML briefing from any data source — SharePoint lists, uploaded documents, or a verbal description.

    131 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Exec Report

    pnp/sharepoint-skills

    Generates a polished, self-contained HTML executive report or dashboard from any data source — SharePoint lists, CSV exports, or a user description.

    131 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • File Classifier

    pnp/sharepoint-skills

    Classifies files in a SharePoint document library by reading their content and matching them to known content types (Contracts, Invoices, Purchase Orders).

    131 GitHub stars~4.1k tokensUpdated 2 days ago
    Auto-check passed

Questions about Analyze Document Library

What does Analyze Document Library do?

Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations. Analyze Document Library is an agent skill from pnp/sharepoint-skills. Analyze the current SharePoint document library in read-only mode and produce a structured summary of files, folders, file types, recent activity, naming issues, and organization recommendations.

When should I use Analyze Document Library?

Analyze Document Library fits situations like: the user says: - analyze this document library - summarize the contents of this library - review this library organization - show me files; recent activity - find documents without meaningful names.

How do I install Analyze Document Library in Claude Code?

Run `npx skills add pnp/sharepoint-skills --skill analyze-document-library -a claude-code`. Or copy the skill folder (Skills/analyze-document-library/analyze-document-library in pnp/sharepoint-skills) into .claude/skills/analyze-document-library in your project. Claude Code loads it when a task matches its description.

How do I install Analyze Document Library in Codex?

Run `npx skills add pnp/sharepoint-skills --skill analyze-document-library -a codex`. Or copy the skill folder (Skills/analyze-document-library/analyze-document-library in pnp/sharepoint-skills) into .agents/skills/analyze-document-library in your project. Codex loads it when a task matches its description.

Can I use Analyze Document Library in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pnp/sharepoint-skills --skill analyze-document-library -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analyze-document-library, .gemini/skills/analyze-document-library, .github/skills/analyze-document-library and .opencode/skills/analyze-document-library in your project.

What does Analyze Document Library need to run?

SKILL.md names no scripts, command-line tools or credentials: Analyze Document Library is instructions for the agent only.

Does Analyze Document Library access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Analyze Document Library safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Analyze Document Library use?

Analyze Document Library is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Analyze Document Library use?

About 899 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Analyze Document Library?

Skills that share tags, products or a category with Analyze Document Library: Colleague Distillation (ZhixiangLuo/10xProductivity, 478 stars), Msgraph (codemie-ai/codemie-code, 294 stars), aai-cli Microsoft 365 (aai-labs/agent-barn, 109 stars) and Workiq (microsoft/work-iq, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analyze Document Library?

pnp (a GitHub organization) maintains it in pnp/sharepoint-skills, which has 131 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on October 6, 2026.

Source: pnp/sharepoint-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.