unpublished-content-report
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "unpublished-content-report":https://skillpi.com/zh/skills/deepskill-048804a0c8af96882a12074eae2a76afb3b2f1281cd0a07797bcbb8a6c0ca2e9。安装前核对上游来源和版本:https://github.com/pnp/sharepoint-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
创建实时 HTML 治理报告,列出指定天数内未编辑的未发布或草稿文档及网站页面,按最陈旧的项目优先排序,并将报告保存到 SharePoint 报告库。用于生成未发布或陈旧草稿的清单并存档到报告库。
介绍来源: third_party · pnp · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: unpublished-content-report
description: |-
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
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
Reportsonly 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
AgentAssetslibraries unless the user includes them.
Steps
- Get the current date/time before calculating relative ages.
- Discover the site's lists and libraries, including the Site Pages library. Identify user-facing document libraries and exclude system libraries.
- Verify the destination library exists. If it doesn't, create it as a document library with a clear report-oriented description.
- Retrieve schemas before querying items. Identify these internal fields where available:
FileLeafRef,FileRef,Modified,Editor,_ModerationStatus,_UIVersionString,CheckoutUser, and page fields such asTitle,FirstPublishedDate, andPromotedState. - 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.
- Determine publication state from SharePoint metadata rather than filenames:
- In moderated libraries, treat
_ModerationStatusvalues equivalent to Approved/Published as published. Pending, Draft, Rejected, or other non-approved values are unpublished. - In versioned libraries, a version ending in
.0is 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.
- In moderated libraries, treat
- Calculate whole days since
Modified. Keep items whose age is greater than or equal to the requested threshold. - Normalize each match with item name and link, type, library, publication state, version, last edited date/time, editor, and days since last edit.
- Sort by days since last edit descending, then item name ascending as a stable tie-breaker.
- Build the HTML using
Report.htmland, when practical,LiveData.htmlso 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. - 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.
- Route generated HTML through an output data reference, then create the
.htmlfile in the destination library using that reference. Don't reconstruct content from a truncated preview. - 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:
- Title:
Unpublished content inactive for <days>+ days - Site and criteria statement
- KPI cards: Total items, Documents, Pages
- Table columns: Item, Type, Library, Publication state, Version, Last edited, Edited by, Days since edit
- 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.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决 SharePoint 内容治理中的实际痛点,具有明确的企业级实用价值
- 功能定位清晰,针对未发布/草稿内容的自动化报告生成
亮点
- 触发词覆盖全面,包含多种用户表达变体
- 边界定义清晰,减少误触风险
待提升项
-
When to Use 章节标题格式 原报告严重程度:轻微
文档中存在 When to Use 相关内容,但未使用标准二级标题格式
改进建议:建议将 'When to Use' 改为标准二级标题 '## When to Use' 以保持格式统一
亮点
- 文档结构完整,包含完整的使用说明和执行步骤
- 提供了清晰的输入输出说明和端到端示例
亮点
- 详细定义了 SharePoint 字段识别和状态判断逻辑
- 包含异常处理机制(如目标库不存在时自动创建)
- 强调数据完整性校验和错误处理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。