document-browser

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, a visible refresh control, reliable SharePoint open/download links, and a three-card desktop layout. Use when users request actions such as “create a document browser,” “make a live dashboard for this library,” or “ensure the dashboard is live-linked.”

Last repository push
GitHub Stars
169
Forks
67
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "document-browser" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-782c2c72dd44a8852475aaf2844dc35eaa6a63bbcd9347be1cbab40186fabe05. Verify the upstream source and version against https://github.com/pnp/sharepoint-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

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, a visible refresh control, reliable SharePoint open/download links, and a three-card desktop layout. Use when users request actions such as “create a document browser,” “make a live dashboard for this library,” or “ensure the dashboard is live-linked.”

0 Downloads

Introduction source: third_party · pnp · 0.0.1 Reference

SkillPi interpretation

Tasks
|-
Audience
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 and outputs
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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

  1. 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.
  2. Title and owner rules

    • Prefer Document Title for card titles. Match Document Title, documentTitle, and Document_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.
  3. Live-linked build

    • Use LiveData/list binding for supported library roots or list sources.
    • Include ka-livedata-manifest and runtime code that reads window.__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.
  4. 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)
  5. 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.
  6. Open and Download link rules — critical

    • In SharePoint HTML preview the dashboard runs inside about:srcdoc; do not use location.origin for Open or Download because it may resolve to null.
    • 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; then EncodedAbsUrl parsed to pathname; then FileDirRef + '/' + FileLeafRef.
    • Use safeDecode() repeatedly before encoding route parameters so Documents%2520Browser becomes Documents 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 serverRelativePath must be decoded first, then encoded exactly once in the sourcedoc route parameter.
    • Do not replace this with the direct file URL ?web=1&action=embedview unless it has been manually tested in the target dashboard after saving.
    • Do not use download.aspx?SourceUrl=...&transform=pdf for 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", and data-interception="off".
    • Never use PDF transform links for Open; never append download=1; validate no %2520, no null/sites, no href="#", and no absolute URL inside SourceUrl.
  7. 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=true pattern; confirm Download uses SITE, robust source-path fallback, and neither link renders #, null/sites, PDF transform, direct untested ?web=1&action=embedview, or double-encoded %2520.
  8. Save

    • Create or update an .html file 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.

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.

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 针对SharePoint文档库的专业仪表板工具,解决企业文档浏览的具体需求
  • 提供完整的元数据处理、搜索过滤、实时链接等专业功能
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含多种用户可能使用的表达方式
  • 边界清晰,专门针对文档浏览器和仪表板创建场景
Structure and Standards95/100

Highlights

  • 结构完整,包含详细的使用条件、输入输出、步骤说明和验证规则
  • 前端设计系统规范详细,包含完整的色彩、排版、布局要求
Execution Reliability75/100

Areas to improve

  • 平台特定功能依赖 Reported severity: Minor

    引用了'ka-livedata-manifest'和'window.__LD_RESULTS__'等可能不可用的平台特定功能

    Recommendation: 建议明确说明这些功能的可用性要求或提供替代方案

  • 复杂集成错误处理 Reported severity: Minor

    SharePoint集成涉及复杂的链接生成和路径解析,可能需要更多边缘情况处理

    Recommendation: 建议增加更多错误处理示例和故障排除指南

Highlights

  • 提供了详细的SharePoint链接生成模式和验证规则
  • 包含完整的预保存验证清单,确保输出质量
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • tenant.sharepoint.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.