analyze-document-library

analyze-document-library is a skill for Claude Code, Codex from pnp/sharepoint-skills. It costs 99 tokens per session (726 once invoked), scanned A, original, MIT.

A read-only analysis of a SharePoint document library, the shared storage area where files and folders are organized.

In plain words
What is it for?
It helps count files and folders, group files by type, review recent changes, identify naming issues, and suggest improvements.
Why use it?
It makes the library’s contents, recent activity, file types, naming problems, and organizational issues easier to understand without modifying anything.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps count files and folders, group files by type, review recent changes, identify naming issues, and suggest improvements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pnp/sharepoint-skills/analyze-document-library
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pnp/sharepoint-skills --skill analyze-document-library
Clone the repo
git clone --depth 1 https://github.com/pnp/sharepoint-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-document-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/pnp/sharepoint-skills/analyze-document-library.svg)](https://agentmods.dev/skills/pnp/sharepoint-skills/analyze-document-library)
Your own site
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/analyze-document-library"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/analyze-document-library.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.00726
Opus 5 $0.00049 $0.00363
Sonnet 5 $0.00020 $0.00145
Haiku 4.5 $0.00010 $0.00073

Measured 8d ago against content hash 0aafdf44c805, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

analyze-document-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/analyze-document-library/analyze-document-library/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 66 lines · 99 tokens per session scan A 0aafdf44c805

Subscribe to this mod's changes

analyze-document-library is a skill published in the GitHub repository pnp/sharepoint-skills (108 stars, last pushed yesterday), licensed MIT. It adds 99 tokens to every session and 726 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

html-ppt-obsidian-claude-gradient

OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.

nexu-io/open-design · 53 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

skill-deck

Generate slide deck presentations from briefs — use when you need slides, pitch decks, or visual summaries.

nyldn/claude-octopus · 23 tokens

speech-to-text

Transcribe audio to text using ElevenLabs Scribe v2. Use when converting audio/video to text, generating subtitles, transcribing meetings, or processing spoken content.

calesthio/OpenMontage · 37 tokens

msgraph-files

Read OneDrive and SharePoint files via the Microsoft 365 MCP server — list folder contents, fetch item metadata, inspect versions and sharing permissions. Use when locating a document in OneDrive/SharePoint, checking who a file is shared with, or reviewing file version history.

automateyournetwork/netclaw · 58 tokens

managedcode-markitdown

Use ManagedCode.MarkItDown when a .NET application needs deterministic document-to-Markdown conversion for ingestion, indexing, summarization, or content-processing workflows. USE FOR: ManagedCode.MarkItDown integration; document ingestion flows; Office or rich-text conversion to Markdown; indexing and summarization…

managedcode/dotnet-skills · 113 tokens