Agent skill

Site Storage Heatmap

by pnp in pnp/sharepoint-skills

Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages.

MITAuto-check passedFrontend & Design

Install Site Storage Heatmap

skills CLI
$ npx skills add pnp/sharepoint-skills --skill site-storage-heatmap -a claude-code

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

GitHub CLI
$ gh skill install pnp/sharepoint-skills site-storage-heatmap --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/site-storage-heatmap/site-storage-heatmap .claude/skills/site-storage-heatmap && 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
site-storage-heatmap
GitHub stars
133
Token cost
~2.2k tokens
SKILL.md length
1,146 words
Files
1
Skills in repo
52
Repo updated
First seen
Licence
MIT

At a glance

Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages.

  • Works in 8 steps: Get the Current User's First Name → Discover All Containers → Collect File-Level Data from Each… → …
  • Tasks that involve HTML artifacts
  • SKILL.md covers Steps, Example and Constraints
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Site Storage Heatmap is an agent skill from pnp/sharepoint-skills. Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages. Includes site-wide summary stacked bars and per-library click-through drill-downs. Saves the file as {FirstName}-Site-Storage-Heatmap.html in the "storage heatmap" folder inside the site's document library, then navigates the user to it.

Its SKILL.md is about 2.2k 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 Frontend & Design, covering HTML artifacts and Cloud office suites. It works with Microsoft SharePoint. The repository describes itself as: Skills for Copilot in SharePoint. The licence is MIT.

When your agent uses it

  • Tasks that involve HTML artifacts
  • Tasks that involve Cloud office suites

Example prompts

  • “storage heatmap”
  • “Use the site-storage-heatmap skill to generate an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all…”
  • “/site-storage-heatmap”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Get the Current User's First Name
  2. Discover All Containers
  3. Collect File-Level Data from Each Non-Empty Library
  4. Aggregate Per-Library Stats
  5. Compute Site-Wide Rollup
  6. Generate the Interactive HTML
  7. Save the HTML File
  8. Navigate the User

What it can do on your machine

Read from SKILL.md and the folder at commit 69712d2. 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.

    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

Site Storage Heatmap loads about 2.2k tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 1,146 words of instructions outside code blocks.

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

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 69712d2, republished under its MIT licence (© pnp). 1,146 words, ~2,192 tokens.

Download SKILL.mdSave it as .claude/skills/site-storage-heatmap/SKILL.md (or your agent's skills folder).
name
site-storage-heatmap
description
Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages. Includes site-wide summary stacked bars and per-library click-through drill-downs. Saves the file as {FirstName}-Site-Storage-Heatmap.html in the "storage heatmap" folder inside the site's document library, then navigates the user to it.

Site Storage Heatmap

Generate an interactive HTML site map with storage sizes and hot/cold activity heatmaps for a SharePoint site, then navigate the user to the output.

Steps

1. Get the Current User's First Name
  • Call get_user_info(query="@currentUser") to resolve the current user.
  • Extract the first name from the resolved display name (e.g., "Adam Harmetz" → "Adam").
  • The output filename will be: {FirstName}-Site-Storage-Heatmap.html
2. Discover All Containers
  • Call discover_sharepoint_lists with filterType="all" and includeHidden=false to get every list, library, and page library on the site.
  • Categorize each container:
    • Document Libraries: templateType 101
    • Lists: templateType 100
    • Site Pages: templateType 119
    • Calendar: templateType 106
  • Record each container's id, title, itemCount, and serverRelativeUrl.
3. Collect File-Level Data from Each Non-Empty Library
  • For every document library (templateType 101) with itemCount > 0, call list_items with:
    • viewFields: ["FileLeafRef", "File_x0020_Size", "File_x0020_Type", "Modified"]
    • itemType: "files", recursive: true, rowLimit set to the library's itemCount
  • For Site Pages (templateType 119), also query with viewFields: ["FileLeafRef", "Modified"] to get page modification dates.
  • Parallelize all independent list_items calls.
Large sites (≥ 100 libraries or any library with ≥ 5,000 items)

Naïvely parallelising every list_items call against a large site will hit throttling (HTTP 429) and balloon memory because every file row sits in the model state.

  • Batch the parallel fan-out at no more than ~10 concurrent list_items calls. After each batch, aggregate the results into the running totals via execute_code with outputDataRef: true so the raw rows are released from model state. Never hold all libraries' file rows in memory at once.
  • Per-library paging. If a library reports itemCount > 5,000, fetch it in pages of 5,000 (the SharePoint list view threshold) rather than one giant rowLimit. Aggregate per-page into running totals — do not retain the per-page raw arrays after they are summed.
  • On 429 / throttling: back off, retry the affected library once with a smaller rowLimit, and continue. If retry fails, record the library as Partial data — throttled and surface it explicitly in the HTML output (a yellow badge on that library card) so the consumer knows the totals are an undercount, not zero.
  • Progress reporting. Every 10 libraries processed, post a short progress line (Processed 30 of 142 libraries…) so a multi-minute run doesn't look frozen.
  • Never silently drop a library. Every container from Step 2 must appear in the final HTML output, even if its row is annotated (no data) or (throttled).
4. Aggregate Per-Library Stats

For each library, compute:

  • Total size (sum of File_x0020_Size in bytes)
  • File count
  • File type breakdown: group by File_x0020_Type → { ext: { count, size } }
  • Recency buckets based on Modified date relative to today:
    • Hot: modified ≤ HOT_DAYS ago (default 7)
    • Warm: modified ≤ WARM_DAYS ago (default 30)
    • Cool: modified ≤ COOL_DAYS ago (default 90)
    • Cold: modified > COOL_DAYS ago
  • Track both file count AND storage per recency bucket.
Configurable bucket thresholds

The 7 / 30 / 90 day defaults are conventional but not always right — a fast-moving project site may want 1 / 7 / 30, a records archive may want 30 / 180 / 365.

  • Honour explicit overrides in the user's prompt. Examples that must work:
    • "heatmap with hot=1 day, warm=7, cool=30"
    • "use 30/90/365 buckets"
    • "only consider files older than a year as cold"
  • Validate: HOT_DAYS < WARM_DAYS < COOL_DAYS, all positive integers. If the user gives invalid values, ask once for correction; do not silently re-order.
  • Always render the thresholds used in the HTML output — a small legend line under the heatmap such as Hot ≤ 7d · Warm ≤ 30d · Cool ≤ 90d · Cold > 90d — so the consumer can tell at a glance what "hot" means in this report.

For lists (no file sizes), classify each list as hot/warm/cool/cold based on the list's lastModified date from the discovery response. Count list items per recency bucket.

5. Compute Site-Wide Rollup

Sum across ALL containers (libraries + lists + pages):

  • Grand total items (files + list items + pages)
  • Total storage (libraries only)
  • Aggregate recency: total hot / warm / cool / cold counts
  • Separate recency breakdowns for: Document Libraries, Lists, Site Pages
6. Generate the Interactive HTML

Build a self-contained HTML file with embedded CSS and JavaScript containing:

Root Banner
  • Site name, total item count, container count, page count
  • "Total Library Storage: X" badge
Show full SKILL.md (474 more words)Show less
Site-Wide Heatmap Panel (below root, above branches)
  • 3-column grid: one for Document Libraries, one for Lists, one for Site Pages
  • Each column has a stacked horizontal bar (hot=red #E74856, warm=orange #FF8C00, cool=blue #50E6FF, cold=grey #A0AEC0) showing file/item counts per recency tier
  • Below each bar: storage per tier (for libraries) or counts (for lists/pages)
  • Bottom legend row: grand totals per tier across the entire site
3-Column Site Map (below heatmap)
  • Column 1 (wider): Document Libraries — all libraries merged together (including expense libraries), sorted by total size descending. Each leaf card shows: name, size badge, file count badge. Clickable.
  • Column 2: Lists — each list with item count badge. Not clickable.
  • Column 3: Site Pages — each page name. Not clickable.
  • Empty containers grayed out.
Click-Through Modal (JavaScript)

When a library leaf is clicked, show a modal overlay with:

  • Summary cards: File count, Total size, File type count
  • Activity Heatmap: 4 horizontal bars (hot/warm/cool/cold) showing file counts + storage per tier
  • Storage by File Type: horizontal bars per extension showing % of total, file count, and size
  • Close on Escape, click outside, or ✕ button
Styling
  • Use Segoe UI font, #f5f5f5 background
  • Branch headers: blue gradient for doc libs, green for lists, purple for pages
  • Responsive grid that stacks on mobile
  • Hover effects on clickable leaves (translateX + shadow)
  • Modal with backdrop blur
7. Save the HTML File
  • Save as {FirstName}-Site-Storage-Heatmap.html
  • Target location: the site's document library, inside a folder called "storage heatmap"
    • Use create_text_file with relativeFolderPath="storage heatmap"
    • If the folder doesn't exist, create it first with create_folder
8. Navigate the User
  • After saving, call navigate_to_url to take the user to the document library where the file was saved.
  • Provide the direct file URL so the user can open it.
  • Remind the user: "Download and open in your browser for full interactivity — SharePoint strips JavaScript from inline HTML previews."

Example

User: "Generate a storage heatmap for this site"

Result: File saved as Adam-Site-Storage-Heatmap.html in the "storage heatmap" folder, user navigated to the library, with a note to download for JS interactivity.

Constraints

  • Always get the current user's first name — never hardcode.
  • Always get the current date via get_datetime_info before computing recency buckets — never assume today's date.
  • Parallelize list_items calls for all non-empty libraries to minimize latency. For large sites, follow the batching/throttling rules in Step 3 → Large sites — never fan out unbounded.
  • Use execute_code with outputDataRef: true for all large intermediate data so raw rows are released from model state after aggregation.
  • Keep the HTML fully self-contained (no external dependencies).
  • File type colors: use a rotating palette of Fluent-style colors.
  • Recency colors are fixed: hot=#E74856, warm=#FF8C00, cool=#50E6FF, cold=#A0AEC0.
  • Recency thresholds are configurable per run (see Step 4 → Configurable bucket thresholds) but must be rendered in the HTML so the report is self-explanatory.
  • Every container discovered in Step 2 must appear in the final HTML, including throttled or empty ones — never silently drop.

© 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/site-storage-heatmap/site-storage-heatmap of pnp/sharepoint-skills.

Open the folder on GitHubat commit 69712d2

Compare with similar skills

Site Storage Heatmap 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.

Site Storage Heatmap compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Site Storage Heatmap this skillpnp/sharepoint-skills133—~2.2kAutomated safety check: PassMIT
Openkb Deck NeonVectifyAI/OpenKB4.8k1 repos~4.3kAutomated safety check: PassApache-2.0
Paper2htmlQuZhan51496/paper2anything450—~3.3kAutomated safety check: NotesApache-2.0
Spur Cluster StatusAMD-AGI/Primus131—~2.7kAutomated safety check: PassCustom licence
Visualizedisplay-dev/visualize138—~7.4kAutomated safety check: PassMIT
Here Now Internalahmetb/dotfiles139—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Openkb Deck Neon

    VectifyAI/OpenKB

    A skill your agent uses when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow /…

    4.8k GitHub starsUsed in 1 repo~4.3k tokens
    Frontend & DesignAuto-check passed
  • Paper2html

    QuZhan51496/paper2anything

    Convert an academic paper PDF into a publish-ready, self-contained single-page project homepage (a self-contained index.html) — the kind of paper landing page researchers host on GitHub Pages.

    450 GitHub stars~3.3k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check: notes
  • Spur Cluster Status

    AMD-AGI/Primus

    Inspect the current Spur (AMD SLURM-compatible) cluster node-allocation state and produce a Markdown report (optionally rendered to a standalone HTML page) covering the caller's account/QoS…

    131 GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Visualize

    display-dev/visualize

    Generate beautiful, on-brand HTML artifacts — reports, diagrams, diff reviews, slide decks, plans, recaps, dashboards.

    138 GitHub stars~7.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Here Now Internal

    ahmetb/dotfiles

    Upload and share files on here.now (https://here-now.chimera-logarithm.ts.net), Baseten's internal artifact-sharing service.

    139 GitHub stars~1.1k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Pretty Page

    alexknowshtml/claude-skills

    Convert markdown to a beautifully styled, shareable HTML page and upload to S3-compatible storage

    149 GitHub stars~2.2k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check: notes

More from pnp/sharepoint-skills

All 52 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…

    133 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Analyze Document Library

    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.

    133 GitHub stars~899 tokensUpdated today
    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.

    133 GitHub stars~2.5k tokensUpdated today
    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…

    133 GitHub stars~1.2k tokensUpdated today
    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.

    133 GitHub stars~1.9k tokensUpdated today
    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.

    133 GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Site Storage Heatmap

What does Site Storage Heatmap do?

Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages. Site Storage Heatmap is an agent skill from pnp/sharepoint-skills. Generates an interactive HTML site map showing storage breakdown and hot/cold activity heatmap across all document libraries, lists, and site pages.

When should I use Site Storage Heatmap?

Site Storage Heatmap fits situations like: tasks that involve HTML artifacts; tasks that involve Cloud office suites.

How do I install Site Storage Heatmap in Claude Code?

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

How do I install Site Storage Heatmap in Codex?

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

Can I use Site Storage Heatmap 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 site-storage-heatmap -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/site-storage-heatmap, .gemini/skills/site-storage-heatmap, .github/skills/site-storage-heatmap and .opencode/skills/site-storage-heatmap in your project.

What does Site Storage Heatmap need to run?

SKILL.md names no scripts, command-line tools or credentials: Site Storage Heatmap is instructions for the agent only.

Does Site Storage Heatmap 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 Site Storage Heatmap 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 Site Storage Heatmap use?

Site Storage Heatmap 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 Site Storage Heatmap use?

About 2.2k tokens (SKILL.md is roughly 8.8k 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 Site Storage Heatmap?

Skills that share tags, products or a category with Site Storage Heatmap: Openkb Deck Neon (VectifyAI/OpenKB, 4.8k stars), Paper2html (QuZhan51496/paper2anything, 450 stars), Spur Cluster Status (AMD-AGI/Primus, 131 stars) and Visualize (display-dev/visualize, 138 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Site Storage Heatmap?

pnp (a GitHub organization) maintains it in pnp/sharepoint-skills, which has 133 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 9, 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.