SkillsGrove
SkillsGrove/문서 작업/pnp/sharepoint-skills/analyze-document-library

analyze-document-library

설치

$npx skills add https://github.com/pnp/sharepoint-skills --skill analyze-document-library
$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
이 Agent Skill을 설치해 주세요: https://github.com/pnp/sharepoint-skills/tree/b96ba41bf7ad9d8d0e9fa0843c843ae2b7e8706e/Skills/analyze-document-library/analyze-document-library — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITAnalyze 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"
아래 SKILL.md는 pnp/sharepoint-skills(커밋 b96ba41)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2021 Microsoft 365 Community. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

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.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2021 Microsoft 365 Community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.