broken-link-auditor
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "broken-link-auditor":https://skillpi.com/zh/skills/deepskill-a82cd2cc660815a42c659b0d66a652b284b40e96d8ed6280687fbf620f2654f3。安装前核对上游来源和版本:https://github.com/pnp/sharepoint-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
审核 SharePoint 页面、新闻帖子和超链接字段中的损坏或高风险链接,并将结果保存为一个独立的 HTML 链接健康报告到站点。该工具对内容只读,仅写入最终的报告文件。使用场景示例:用户请求“损坏链接审核”、“查找损坏链接”或“检查此站点上的死链接”时。
介绍来源: third_party · pnp · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: broken-link-auditor
description: |-
Audits SharePoint pages, news posts, and hyperlink fields for broken or risky links and
saves a self-contained HTML link-health report to the site. It is strictly read-only for
content and only writes the final report file.
Use when the user says:
- "broken link audit"
- "find broken links"
- "check dead links on this site"
- "audit links in this library"
- "scan pages for broken links"
- "which SharePoint links are broken"Broken Link Auditor
Purpose
Broken or stale links make SharePoint sites feel unreliable, especially after migrations, re-orgs, and content cleanups. This skill audits link health across SharePoint pages, news posts, libraries, lists, or selected items and saves a self-contained HTML report that teams can act on. It is strictly read-only for content: it never edits pages, files, metadata, or links. The only thing it writes is the final HTML report file.
Trigger Phrases
Activate this skill when the user says any of the following (or close variations):
- "broken link audit" / "dead link audit"
- "find broken links" / "check broken links"
- "check dead links on this site"
- "audit links in this library"
- "scan pages for broken links"
- "which SharePoint links are broken"
Inputs & Scope
Determine the reporting scope from the user's request and the current context, in this order:
- Selected items — if the user has pages, files, or folders selected or says "these/this", audit those items first.
- Named library, list, or Site Pages — if the user names one, resolve it on the current site.
- Current library or current Site Pages context — if the user is already in one, use it.
- Whole current site — if no narrower scope is clear, scan accessible Site Pages plus hyperlink-bearing items in accessible user-created lists and libraries.
- If no scope can be resolved, ask the user which library, page set, or site scope to audit. Do not guess.
Only inspect content the current user can already read. Never invent pages, items, targets, or HTTP outcomes.
What counts as a link
Audit the following when present:
- Links embedded in SharePoint page and news post content
- Hyperlink / URL columns on list items or library items
- Obvious SharePoint links stored in plain text fields when the user explicitly asks for a broader scan
Ignore the following unless the user explicitly asks:
- Mailto links
- Telephone links
- JavaScript pseudo-links
- Anchors that only jump within the same page and do not reference another resource
Steps
Step 1 — Resolve the scan targets
- Resolve the site, list/library, folder, page set, or selected items from the user's request and current SharePoint context.
- For whole-site audits, enumerate accessible user-created lists/libraries plus the Site Pages library.
- Record the resolved scope exactly as it exists. If resolution is partial, keep going with the resolvable part and note the limitation in the report.
Step 2 — Discover candidate fields and content
- For each list or library in scope, inspect the schema first and identify:
- hyperlink / URL columns,
- page or rich-text fields that can contain embedded links,
- label fields to identify each item in the report.
- For Site Pages and news posts, include the page title, URL/path, last modified date, editor, and the rich page content fields needed to extract links.
- Exclude system-only columns from the report unless they are needed to identify the source item.
Step 3 — Read items and extract links
- Page through every item in scope. Do not stop at the first page.
- For each source item, extract links and retain:
- source item title/name,
- source item URL/path,
- source type (page, news post, file, list item),
- field or content region where the link was found,
- the raw target URL.
- Normalize URLs before checking them:
- trim whitespace,
- decode obvious HTML-escaped forms,
- resolve relative SharePoint URLs against the current site,
- preserve the original value for reporting.
- Deduplicate exact duplicate checks so the same target is not revalidated unnecessarily, but still report every source occurrence.
Step 4 — Validate internal SharePoint links
For links that point to the current tenant or to relative SharePoint URLs:
- Try to resolve the target as a page, file, folder, list, or item using SharePoint discovery, path-based lookup, or item retrieval tools.
- Classify the result:
- Valid — target exists and is reachable in the available data.
- Broken — target is clearly missing, deleted, malformed, or resolves to a not-found outcome.
- Inconclusive — target may exist but cannot be confirmed because of permission limits or unavailable tooling.
- Do not label a permission-denied target as broken. Mark it Inconclusive (permission-limited) instead.
Step 5 — Validate external links carefully
For links outside SharePoint:
- Use safe read-only URL checks where available, preferring a lightweight
HEADrequest and falling back to a minimalGETonly when needed. - Follow normal redirects up to a small limit and record the final outcome.
- Use a short timeout and never let one slow domain block the whole scan.
- Classify the result:
- Valid — reachable 2xx response
- Redirected — target resolves after redirect
- Broken — 4xx/5xx, DNS failure, malformed URL, or unreachable after retry
- Inconclusive — timeout, bot protection, authentication wall, or network restriction
- Treat transient failures carefully. Retry once before calling an external link broken.
Step 6 — Score severity and prepare findings
Assign severity at the link-occurrence level:
- High — missing internal SharePoint target, malformed internal URL, or clearly broken navigation link from a page/news post
- Medium — broken external link, repeated redirect chain, or broken library/list hyperlink
- Low — redirected but reachable link, suspicious formatting, or other cautionary finding
- Info — valid result recorded only for rollups or when the user explicitly asks for a full inventory
Track:
- total links scanned,
- unique targets checked,
- broken count,
- valid count,
- redirected count,
- inconclusive count,
- internal vs external split,
- top affected source items,
- most common broken domains or missing SharePoint paths.
Step 7 — Build a self-contained HTML report
Draft a single self-contained HTML file:
- No scripts. No external CSS, fonts, images, or other resources. Inline CSS only.
- Include a summary band with: scope audited, total links scanned, broken count, internal / external counts, inconclusive checks, and unique targets checked.
- Include a severity summary showing High / Medium / Low findings.
- Include a top affected items section showing the pages or items with the most broken links.
- Include a findings table with one row per link occurrence:
- source item,
- source type,
- field/region,
- displayed or raw target URL,
- normalized target URL,
- internal/external,
- status,
- severity,
- detail / HTTP result / limitation note
- Highlight rows by severity and status:
- red for broken high-risk findings,
- amber for medium-risk or inconclusive findings,
- blue/gray for redirects and informational rows.
- Include a prioritized remediation list in plain English, for example:
- "Update 6 links on the Benefits page that still point to the old HR site."
- "Review 4 permission-limited links in the Executive library."
- "Replace 3 malformed relative URLs in the Policies list."
- Include a limitations section whenever data was partial, throttled, inaccessible, or not externally checkable.
Step 8 — Save the report
- Save the HTML file in a
Link Reportsfolder in an appropriate document library on the current site. - If the folder does not exist, create only that report folder and only when needed for saving the report.
- Use a clear filename:
Broken-Link-Report-<Scope>-YYYY-MM-DD-HHMM.html
Step 9 — Respond to the user
After saving, reply with a compact Markdown summary and the report link:
# Broken link audit complete
[Open the report](<link>)
- Scope: <site, library, pages set, or selected items>
- Links scanned: <n>
- Broken links: <n> (High <n> · Medium <n> · Low <n>)
- Inconclusive: <n>
- Top issue: <1 concise sentence about the highest-impact finding>
Example
User: "Run a broken link audit on Site Pages."
Agent response after processing:
I audited Site Pages and checked 184 links across 27 pages.
Metric Result Broken links 19 High / Medium / Low 7 / 9 / 3 Inconclusive 4 Top affected page Benefits Hub (5 broken links) I saved the report to
Link Reports/Broken-Link-Report-Site-Pages-2026-08-02-1615.html. Highest-impact issue: 7 page links still point to deleted legacy pages under/sites/hr-old/.
Constraints
- Strictly read-only for content. Never edit pages, replace links, update list items, rename
files, move content, or change site structure. The only write is the final HTML report file
(and, if needed, the
Link Reportsfolder that holds it). - Never invent HTTP results, target existence, or permissions. If a check cannot be completed, say so plainly.
- Do not classify a target as broken when the only evidence is lack of permission. Mark it Inconclusive (permission-limited) instead.
- Page through the full scope; if any read is partial or throttled, surface that in the report.
- Keep the HTML fully self-contained: no scripts, no external assets, inline CSS only.
- Prefer validating internal SharePoint links before external links so the most actionable site issues are always covered first.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决企业 SharePoint 内容治理中的高频痛点:迁移、重组后损坏链接的自动化审计
- 提供端到端只读扫描并生成可操作的 HTML 报告,显著提升内容可靠性维护效率
- 严格区分内部/外部链接状态,避免误判权限问题,确保结果可信
亮点
- 触发词覆盖全面,包含常见用户表达变体(如“损坏链接审核”、“查找损坏链接”等)
- 边界清晰,避免与其他内容管理 Skill 重叠
亮点
- 步骤划分清晰,从范围解析到报告生成共9个阶段,逻辑严密
- 包含完整端到端示例和约束说明,便于用户理解执行流程
- frontmatter 完整,单文件结构规范,易于维护
亮点
- 明确工具来源(SharePoint API)和参数处理逻辑
- 覆盖主要异常场景:权限限制、超时、重试、重定向处理
- 严格只读约束,仅写入最终报告文件,确保内容安全
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。