site-storage-heatmap

site-storage-heatmap is a skill for Claude Code, Codex from pnp/sharepoint-skills. It costs 86 tokens per session (2,200 once invoked), scanned A, original, MIT.

A tool for creating an interactive HTML report of how storage and recent activity are distributed across a SharePoint site. SharePoint is Microsoft's platform for storing and collaborating on documents, lists, and pages.

In plain words
What is it for?
Use it to review document-library storage, compare activity across site areas, and open more detailed views for individual libraries.
Why use it?
It helps reveal which libraries, lists, and pages use the most space and which areas are more or less active, instead of checking each one separately.

Skill for Claude CodeCodex

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

Good fit Use it to review document-library storage, compare activity across site areas, and open more detailed views for individual libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pnp/sharepoint-skills/site-storage-heatmap
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 site-storage-heatmap
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 site-storage-heatmap

README.md
[![agentmods](https://agentmods.dev/badge/skills/pnp/sharepoint-skills/site-storage-heatmap/github.svg)](https://agentmods.dev/skills/pnp/sharepoint-skills/site-storage-heatmap)
Your own site
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/site-storage-heatmap"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/site-storage-heatmap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for site-storage-heatmap

Your own site · 80×15
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/site-storage-heatmap"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/site-storage-heatmap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,200 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.00086 $0.02200
Opus 5 $0.00043 $0.01100
Sonnet 5 $0.00017 $0.00440
Haiku 4.5 $0.00009 $0.00220

Measured 12d ago against content hash 3e604d58f84a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

site-storage-heatmap 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 12d 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/site-storage-heatmap/site-storage-heatmap/SKILL.md · 134 lines

How it starts

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

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).

Read the full file on GitHub · 134 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. 12d ago First seen · 134 lines · 86 tokens per session scan A 3e604d58f84a

Subscribe to this mod's changes

site-storage-heatmap is a skill published in the GitHub repository pnp/sharepoint-skills (118 stars, last pushed 3d ago), licensed MIT. It adds 86 tokens to every session and 2,200 once invoked, about $0.0004 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.