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.
npx skills add pnp/sharepoint-skills --skill site-storage-heatmapgit clone --depth 1 https://github.com/pnp/sharepoint-skillsWrote 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.
[](https://agentmods.dev/skills/pnp/sharepoint-skills/site-storage-heatmap)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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_listswithfilterType="all"andincludeHidden=falseto 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, andserverRelativeUrl.
3. Collect File-Level Data from Each Non-Empty Library
- For every document library (templateType 101) with itemCount > 0, call
list_itemswith:viewFields: ["FileLeafRef", "File_x0020_Size", "File_x0020_Type", "Modified"]itemType: "files",recursive: true,rowLimitset to the library'sitemCount
- 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_itemscalls. After each batch, aggregate the results into the running totals viaexecute_codewithoutputDataRef: trueso 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 giantrowLimit. 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 asPartial data — throttledand 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).
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.
- 12d ago First seen · 134 lines · 86 tokens per session scan A 3e604d58f84a
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.
Other skills, from other repositories
html-ppt-hermes-cyber-terminal
OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.
skill-doc-delivery
Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.
skill-writing-plans
Create zero-context implementation plans with bite-sized tasks — use for multi-step feature planning.
skill-copilot-provider
GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode.
bf-to-agents-sdk-dotnet-migration
Use when migrating a Bot Framework .NET SDK bot to Microsoft 365 Agents SDK. Triggered by projects that depend on packages: Microsoft.Bot.Builder or Microsoft.Bot.Builder.Integration.AspNet.Core that want to migrate to Agents SDK.
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.