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 jsom-modern-compatibilitygit 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/jsom-modern-compatibility)<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/jsom-modern-compatibility"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/jsom-modern-compatibility/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/jsom-modern-compatibility"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/jsom-modern-compatibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00141 | $0.04055 |
| Opus 5.5 | $0.00056 | $0.01622 |
| Sonnet 5.5 | $0.00028 | $0.00811 |
| Haiku 4.5 | $0.00014 | $0.00405 |
Grade A, and why
jsom-modern-compatibility 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 27d 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 — 465 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JSOM Modern Compatibility
Purpose
Generate ready-to-copy JavaScript that end users can paste directly into the browser developer console on SharePoint pages without manually handling JSOM dependency loading.
The generated script must work on:
- classic SharePoint pages;
- modern SharePoint pages;
- SharePoint 2013 classic pages.
Core principle
Compatibility first.
Classic pages often already have JSOM available. Modern pages usually do not. The generated script must always ensure the required SharePoint JavaScript libraries are available before any requested business logic runs.
Documentation preference
Prefer official SharePoint documentation and Microsoft Learn guidance when shaping JSOM patterns, dependency handling, and API usage. Use Microsoft Learn as the primary reference source before relying on informal examples.
Preferred references:
- Connect to SharePoint using the JavaScript Object Model (JSOM) | Microsoft Learn
- Complete basic operations using JavaScript library code in SharePoint | Microsoft Learn
When to use
Apply this skill to JSOM generation, troubleshooting, dependency loading, and SharePoint JSOM operations including lists/libraries, Search, Taxonomy, and User Profiles.
Output requirements
Every runnable answer must include:
- exactly one complete JavaScript code block;
- the compatibility loader plus the requested business logic;
- short run instructions outside the code block;
- the safety footer outside the code block.
Do not split one runnable script across multiple code blocks or place explanatory prose inside the code block.
Encoding and renderer-safe output
Runnable JavaScript must use raw JavaScript syntax and contain no HTML-encoded operators, quotes, comparison symbols, or arrow functions unless they came from the user's own content or instructions.
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.
- 27d ago First seen · 465 lines · 141 tokens per session scan A 5610970a6461
jsom-modern-compatibility is a skill published in the GitHub repository pnp/sharepoint-skills (171 stars, last pushed 2d ago), licensed MIT. It adds 141 tokens to every session and 4,055 once invoked, about $0.0006 per session on Opus 5.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-11-04.
jsom-modern-compatibility compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jsom-modern-compatibilitypnp/sharepoint-skills | Skill | 171 | 2d ago | MIT | A | 141 | Claude Code, Codex |
| bf-to-agents-sdk-typescript-migrationmicrosoft/Agents | Skill | 1.1k | 6d ago | MIT | A | 71 | Claude Code |
| octopus-architecturenyldn/claude-octopus | Skill | 4.5k | today | MIT | A | 19 | Claude Code |
| web-servicesjame581/GodotPrompter | Skill | 1.0k | yesterday | MIT | A | 64 | Claude Code |
| bfl-apicalesthio/OpenMontage | Skill | 84k | 15d ago | AGPL-3.0 | A | 38 | Claude Code, Codex |
| api-doc-generatorJackyST0/awesome-agent-skills | Skill | 672 | yesterday | CC0-1.0 | A | 23 | Claude Code, Codex |
| aspiremanagedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 145 | Claude Code, Codex |