Логотип Unpublished Content Report

Unpublished Content Report

Організація
pnp
unpublished-content-report

Create a live HTML governance report of unpublished or draft documents and site pages that haven't been edited for a specified number of days, sorted with the stalest items first, and save it in a SharePoint report library. Use when the user says: - "Create a report of unpublished documents and pages" - "Show stale draft content on this site" - "Find content not published and not edited for 14 days" - "Generate an unpublished content report" - "Save a report of old drafts in the Reports library"

Огляд

Видавецьpnp
Репозиторійsharepoint-skills
Назва навичкиunpublished-content-report
Зірки
141
Форки
60
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: pnp. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Unpublished Content Report у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/pnp/sharepoint-skills/tree/main/Skills/unpublished-content-report/unpublished-content-report
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/sharepoint-skills.git /tmp/sharepoint-skills
mkdir -p .claude/skills
cp -r /tmp/sharepoint-skills/Skills/unpublished-content-report/unpublished-content-report .claude/skills/unpublished-content-report
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Unpublished Content Report в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Unpublished Content Report, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Unpublished Content Report не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Output format

Return a concise completion message containing:

  • A markdown link to the created HTML report.
  • The threshold and destination library.
  • A note that the report refreshes when opened if LiveData was used; otherwise state that it's a point-in-time report.
  • Any libraries skipped because publication state couldn't be determined reliably.

The HTML report must contain:

  1. Title: Unpublished content inactive for <days>+ days
  2. Site and criteria statement
  3. KPI cards: Total items, Documents, Pages
  4. Table columns: Item, Type, Library, Publication state, Version, Last edited, Edited by, Days since edit
  5. Rows sorted by Days since edit descending

Example request: Create a HTML report showing documents and pages that aren't published and haven't been edited for 30 days. Save it in Governance Reports.

Поширені запитання

Що робить навичка ШІ Unpublished Content Report?

Create a live HTML governance report of unpublished or draft documents and site pages that haven't been edited for a specified number of days, sorted with the stalest items first, and save it in a SharePoint report library. Use when the user says: - "Create a report of unpublished documents and pages" - "Show stale draft content on this site" - "Find content not published and not edited for 14 days" - "Generate an unpublished content report" - "Save a report of old drafts in the Reports library"

Навіщо використовувати Unpublished Content Report у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Unpublished Content Report — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Unpublished Content Report у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/pnp/sharepoint-skills/tree/main/Skills/unpublished-content-report/unpublished-content-report. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Unpublished Content Report?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Unpublished Content Report?

Зі скількома забажаєте. У TypingMind ви можете використовувати Unpublished Content Report із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Unpublished Content Report?

Так. На GitHub цю навичку публікує pnp за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇