document-browser
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "document-browser":https://skillpi.com/zh/skills/deepskill-782c2c72dd44a8852475aaf2844dc35eaa6a63bbcd9347be1cbab40186fabe05。安装前核对上游来源和版本:https://github.com/pnp/sharepoint-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
创建或更新一个专业的实时链接文档浏览器仪表板,用于 SharePoint 文档库,使用真实元数据字段,采用简洁的海军蓝与黄色设计系统,具有可见的刷新功能、可靠的 SharePoint 打开/下载链接和三卡片桌面布局。适用场景示例:用户请求“创建一个文档浏览器”、“为这个文档库制作一个实时仪表板”或“确保仪表板是实时链接的”时。
介绍来源: third_party · pnp · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: document-browser
description: |-
Create or update a professional live-linked document browser dashboard for a SharePoint document library, using real metadata fields, a clean navy-and-yellow design system, visible refresh, reliable SharePoint Open/Download links, and a 3-card desktop layout.
Use when the user says:
- "create a document browser"
- "make a live dashboard for this document library"
- "build a document library dashboard"
- "use the document browser skill on this library"
- "make sure the dashboard is live linked"Document Browser
When to use
Use this skill when the user wants a professional document browser dashboard for a SharePoint document library or folder. The dashboard must browse documents using real metadata, search, filters, cards, read-only Open links, Download links, and live-linked data whenever supported.
Inputs
- Target SharePoint document library URL, list ID, or selected/current library.
- Optional folder path inside the library.
- Optional approval rule, default: show approved documents only when content approval is enabled.
- Optional dashboard file name and destination folder.
- Optional requested filters.
Steps
-
Resolve and inspect
- Resolve the target library ID and web URL.
- Retrieve the full schema and use internal field names only.
- Identify approval status, Document Title, name/path fields, description/abstract, metadata filters, Document Owner, contacts, author/editor, created/modified dates.
-
Title and owner rules
- Prefer Document Title for card titles. Match
Document Title,documentTitle, andDocument_x0020_Title. - Fall back to
Title, then file name. - Show Document Owner name directly below the card title. Match
documentOwner/Document Owner; fall back to Author only if no owner exists.
- Prefer Document Title for card titles. Match
-
Live-linked build
- Use LiveData/list binding for supported library roots or list sources.
- Include
ka-livedata-manifestand runtime code that readswindow.__LD_RESULTS__. - Include a visible Refresh live data button wired to
refresh(). - Don't claim live-linked unless newly added/updated source documents appear after refresh without regenerating HTML.
-
Design requirements Use this exact visual system:
Color palette
- Navy:
#03274A - Blue:
#164C80 - Yellow accent:
#FFD633 - Pale blue:
#CAD8E5 - Line / border:
#D7E2EC - Sand background:
#F7F5F3 - Text:
#161616 - Muted text:
#5A5A57
Typography
- Primary font stack: Aptos, "Segoe UI", Arial, sans-serif
Hero header
- Large rounded navy (or navy-to-blue gradient) hero banner
- Soft yellow translucent circle accent in the upper-right
- Short uppercase kicker in yellow with letter-spacing
- Large white title
- Pale lead text under the title
- Optional simple flat-vector illustration on the right side of the hero
Layout & cards
- Exactly 3 document cards per desktop row (
grid-template-columns: repeat(3, minmax(0, 1fr))), collapsing to 2 then 1 on smaller screens - White cards with subtle border (
#D7E2EC), soft shadow, and large border-radius (~20–22px) - Left yellow accent bar on the card header area
- Document title in navy, bold
- Document Owner / contacts shown directly under the title in muted text
- Abstract preview with hover/focus popup
- Metadata shown as small rounded pills
- Pill-shaped action buttons (primary = solid blue, secondary = outlined)
Overall feel
- Clean, modern, professional knowledge-browser aesthetic
- Generous white space, soft shadows, clear hierarchy
- Card-first design (avoid dense tables)
- Navy:
-
Dashboard features
- Search across Document Title/title, filename, abstract/description, metadata, Document Owner, contacts, author/editor.
- Filter using real fields. Prefer Practice, Service Area, Industry Sectors, Market, Regions, Lead Office, Document Type, Year created when present.
- Cards include title, Document Owner below title, abstract preview with hover/focus popup, metadata pills, dates, Open and Download actions.
-
Open and Download link rules — critical
- In SharePoint HTML preview the dashboard runs inside
about:srcdoc; do not uselocation.originfor Open or Download because it may resolve tonull. - Define a constant site URL from the resolved web URL, e.g.
var SITE='https://tenant.sharepoint.com/sites/site';. - Do not render
href="#". If no path is available, render a disabled text control instead. - Build links from a decoded server-relative SharePoint path.
- Resolve path in this order:
FileRef/File_x0020_Ref/ServerRelativeUrl/Path; thenEncodedAbsUrlparsed topathname; thenFileDirRef + '/' + FileLeafRef. - Use
safeDecode()repeatedly before encoding route parameters soDocuments%2520BrowserbecomesDocuments Browser, then re-encodes only once. - Verified working Open pattern:
SITE + '/_layouts/15/Doc.aspx?sourcedoc=' + encodeURIComponent(serverRelativePath) + '&file=' + encodeURIComponent(fileName) + '&action=embedview&mobileredirect=true'. - The
serverRelativePathmust be decoded first, then encoded exactly once in thesourcedocroute parameter. - Do not replace this with the direct file URL
?web=1&action=embedviewunless it has been manually tested in the target dashboard after saving. - Do not use
download.aspx?SourceUrl=...&transform=pdffor Open; it can fail with File Not Found when spaces are double-encoded. - Download:
SITE + '/_layouts/15/download.aspx?SourceUrl=' + encodeURIComponent(serverRelativePath). - Add
target="_blank",rel="noopener", anddata-interception="off". - Never use PDF transform links for Open; never append
download=1; validate no%2520, nonull/sites, nohref="#", and no absolute URL insideSourceUrl.
- In SharePoint HTML preview the dashboard runs inside
-
Validate before saving
- Confirm live manifest/source exists.
- Confirm visible refresh control exists and is wired.
- Confirm 3-column desktop grid exists.
- Confirm Document Title is first title source and Document Owner appears below title.
- Confirm the navy / yellow / sand design system and hero structure are present.
- Confirm Open uses the verified
Doc.aspx?sourcedoc=...&file=...&action=embedview&mobileredirect=truepattern; confirm Download usesSITE, robust source-path fallback, and neither link renders#,null/sites, PDF transform, direct untested?web=1&action=embedview, or double-encoded%2520.
-
Save
- Create or update an
.htmlfile in the requested destination. - Prefer saving HTML dashboards to a Reports library or the location requested by the user unless updating an explicitly selected existing file.
- Provide the file link.
- Create or update an
Output format
Respond with:
- Link to the dashboard.
- Whether it is fully live-linked.
- Note that it uses 3 desktop columns, Document Title, Document Owner below title, the navy-and-yellow design system, visible refresh, and robust decoded server-relative Open/Download links.
- Any limitation or workaround.
Honesty
If live binding can't target the requested folder or view, say so and offer a workaround. Don't invent working links or data.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对SharePoint文档库的专业仪表板工具,解决企业文档浏览的具体需求
- 提供完整的元数据处理、搜索过滤、实时链接等专业功能
亮点
- 触发词覆盖全面,包含多种用户可能使用的表达方式
- 边界清晰,专门针对文档浏览器和仪表板创建场景
亮点
- 结构完整,包含详细的使用条件、输入输出、步骤说明和验证规则
- 前端设计系统规范详细,包含完整的色彩、排版、布局要求
待提升项
-
平台特定功能依赖 原报告严重程度:轻微
引用了'ka-livedata-manifest'和'window.__LD_RESULTS__'等可能不可用的平台特定功能
改进建议:建议明确说明这些功能的可用性要求或提供替代方案
-
复杂集成错误处理 原报告严重程度:轻微
SharePoint集成涉及复杂的链接生成和路径解析,可能需要更多边缘情况处理
改进建议:建议增加更多错误处理示例和故障排除指南
亮点
- 提供了详细的SharePoint链接生成模式和验证规则
- 包含完整的预保存验证清单,确保输出质量
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- tenant.sharepoint.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。