Analyze Document Library logo

Analyze Document Library

Organization
pnp
analyze-document-library

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"

Overview

Publisherpnp
Repositorysharepoint-skills
Skill nameanalyze-document-library
Stars
141
Forks
60
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by pnp on GitHub. Read the source before you install it.

Installation

Install the Analyze Document Library AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/pnp/sharepoint-skills/tree/main/Skills/analyze-document-library/analyze-document-library
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/sharepoint-skills.git /tmp/sharepoint-skills
mkdir -p .claude/skills
cp -r /tmp/sharepoint-skills/Skills/analyze-document-library/analyze-document-library .claude/skills/analyze-document-library
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Analyze Document Library in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Analyze Document Library on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Analyze Document Library is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

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.

Frequently asked questions

What does the Analyze Document Library AI skill 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. 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"

Why use Analyze Document Library on TypingMind?

Because you install it once and use it with any model. Analyze Document Library is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Analyze Document Library in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/pnp/sharepoint-skills/tree/main/Skills/analyze-document-library/analyze-document-library. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Analyze Document Library?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Analyze Document Library?

As many as you like. As long as a model supports skills, you can use Analyze Document Library with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Analyze Document Library AI skill free?

Yes. It is published on GitHub by pnp under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇