analyze-document-library

Analyzes the current SharePoint document library in read-only mode and produces a structured summary about files, folders, file types, recent activity, naming issues, and organization suggestions. Intended for user requests to analyze or summarize the library, review its organization, display files/folders/file types and recent activity, or find poorly named documents.

Last repository push
GitHub Stars
169
Forks
67
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "analyze-document-library" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-39e62c24d4ab492f509137947515d3f75792ade5cb1317bc39b1f47f97ceb07a. Verify the upstream source and version against https://github.com/pnp/sharepoint-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Analyzes the current SharePoint document library in read-only mode and produces a structured summary about files, folders, file types, recent activity, naming issues, and organization suggestions. Intended for user requests to analyze or summarize the library, review its organization, display files/folders/file types and recent activity, or find poorly named documents.

0 Downloads

Introduction source: third_party · pnp · 0.0.1 Reference

SkillPi interpretation

Tasks
|-
Audience
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 and outputs
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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.

Output format

Use this exact structure:

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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 面向企业用户高频刚需场景,直接解决文档管理核心痛点
  • 提供结构化分析(文件/文件夹/类型/活动/命名问题/组织建议)显著提升效率
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含多种自然语言变体
  • 边界清晰,明确排除修改类操作
Structure and Standards93/100

Highlights

  • 六步流程清晰完整,包含输入/步骤/输出格式
  • frontmatter 规范,输出格式标准化
Execution Reliability94/100

Highlights

  • 明确声明只读模式,杜绝误操作风险
  • 异常处理完善(工具失败时明确说明,不虚构内容)
Evidence Verifiability (mean of the first four)94/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.