unpublished-content-report

unpublished-content-report is a skill for Claude Code, Codex from pnp/sharepoint-skills. It costs 115 tokens per session (1,019 once invoked), scanned A, original, MIT.

A skill that creates an HTML governance report of unpublished or draft SharePoint documents and intranet pages. It lists items that have not been edited for a chosen period, with the oldest first.

In plain words
What is it for?
Use it to monitor stale drafts, pending content, checked-out pages, and unpublished changes across user-facing SharePoint libraries.
Why use it?
It helps teams find content that may be stuck, forgotten, rejected, or awaiting publication. The report is saved to a SharePoint document library for review.

Skill for Claude CodeCodex

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

Good fit Use it to monitor stale drafts, pending content, checked-out pages, and unpublished changes across user-facing SharePoint libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pnp/sharepoint-skills/unpublished-content-report
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 unpublished-content-report
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 unpublished-content-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/pnp/sharepoint-skills/unpublished-content-report/github.svg)](https://agentmods.dev/skills/pnp/sharepoint-skills/unpublished-content-report)
Your own site
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/unpublished-content-report"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/unpublished-content-report/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 unpublished-content-report

Your own site · 80×15
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/unpublished-content-report"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/unpublished-content-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,019 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.00115 $0.01019
Opus 5 $0.00057 $0.00509
Sonnet 5 $0.00023 $0.00204
Haiku 4.5 $0.00012 $0.00102

Measured 8d ago against content hash 4992296cabbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

unpublished-content-report 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 8d 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/unpublished-content-report/unpublished-content-report/SKILL.md · 58 lines

How it starts

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

Unpublished content report

When to use

Use this skill when the user wants an HTML governance report covering SharePoint documents and site pages that aren't published and haven't been edited for a specified period. Use it for stale drafts, pending/rejected content, checked-out pages, or unpublished changes. The report must sort by days since last edit in descending order and be saved in a document library.

Inputs

  • Current SharePoint site URL and context.
  • Inactivity threshold in days. Default to 14 only when the user doesn't provide one.
  • Destination document library. Default to Reports only when the user doesn't provide one.
  • Optional report filename. Otherwise use Unpublished-content-inactive-<days>-days.html.
  • Scope is documents in user-facing document libraries plus pages in the site's Site Pages library. Exclude system, asset, style, preservation, template, report, and AgentAssets libraries unless the user includes them.

Steps

  1. Get the current date/time before calculating relative ages.
  2. Discover the site's lists and libraries, including the Site Pages library. Identify user-facing document libraries and exclude system libraries.
  3. Verify the destination library exists. If it doesn't, create it as a document library with a clear report-oriented description.
  4. Retrieve schemas before querying items. Identify these internal fields where available: FileLeafRef, FileRef, Modified, Editor, _ModerationStatus, _UIVersionString, CheckoutUser, and page fields such as Title, FirstPublishedDate, and PromotedState.
  5. Query all files recursively with a row limit equal to the known item count, or 50,000 when unknown. Retrieve the complete dataset before filtering.
  6. Determine publication state from SharePoint metadata rather than filenames:
    • In moderated libraries, treat _ModerationStatus values equivalent to Approved/Published as published. Pending, Draft, Rejected, or other non-approved values are unpublished.
    • In versioned libraries, a version ending in .0 is a published major version. A version ending in a non-zero minor number indicates draft or unpublished changes.
    • Treat checkout-only pages, never-published pages, and pages with draft changes as unpublished.
    • Don't classify an item as unpublished solely because the library doesn't use moderation or minor versions. If no reliable publication-state signal exists, omit the item and note the skipped library in the report.
  7. Calculate whole days since Modified. Keep items whose age is greater than or equal to the requested threshold.
  8. Normalize each match with item name and link, type, library, publication state, version, last edited date/time, editor, and days since last edit.
  9. Sort by days since last edit descending, then item name ascending as a stable tie-breaker.
  10. Build the HTML using Report.html and, when practical, LiveData.html so results refresh from source libraries when opened. Pass every source list identity to the live-data tool; don't hand-write REST or Graph calls.
  11. Include summary cards for total items, documents, and pages; a concise criteria note; and a table containing all matching items. Escape user-controlled values before inserting them into raw HTML.
  12. Route generated HTML through an output data reference, then create the .html file in the destination library using that reference. Don't reconstruct content from a truncated preview.
  13. Verify the file was created and return a link. If any tool fails or data is incomplete, say so plainly and don't invent results.

Read the full file on GitHub · 58 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. 8d ago First seen · 58 lines · 115 tokens per session scan A 4992296cabbe

Subscribe to this mod's changes

unpublished-content-report is a skill published in the GitHub repository pnp/sharepoint-skills (118 stars, last pushed 3d ago), licensed MIT. It adds 115 tokens to every session and 1,019 once invoked, about $0.0006 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-09-03.