PR 与工件探索器
pr-artifact-explorer
在 Artifact Explorer 画布中打开、共享和检查 GitHub PR、issue、工作流运行(包括定时任务、手动触发及其他无 PR 的运行)、Actions 工件,以及本地或 HTTP(S) 网页预览,支持视口预设、缩放、截图和可恢复的下载任务。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 4.1w
- Forks
- 5.4k
01 前言 Front Matter
- name
- pr-artifact-explorer
- description
- Open, share, and inspect GitHub PRs, issues, workflow runs (including scheduled, manual and other runs with no PR), Actions artifacts, and local or HTTP(S) web previews in the Artifact Explorer canvas, with viewport presets, zoom, screenshots, and recoverable download jobs.
02 资源文件 2
- 参考文档agents/openai.yaml137 B
- 参考文档PHASE-BOUNDARIES.md4.1 KB
03 SKILL.md 正文
Artifact Explorer
Use the pr-artifact-explorer canvas to show a user pull requests, issues, workflow runs, Actions artifacts, and web pages.
How to drive the canvas
The action names below (open_target, share, ...) are canvas actions, not standalone tools. Always:
- Call
list_canvas_capabilities { canvasId: "pr-artifact-explorer" }to discover the actions and their schemas. - Call
open_canvas { canvasId: "pr-artifact-explorer", instanceId: "<handle you choose>" }to open or focus the panel. - Call
invoke_canvas_action { instanceId, actionName, input }with that sameinstanceId.
Open a target
invoke_canvas_action with open_target { input } (or the open input repository, pullNumber, runId, artifactId, url, route, view: "runs" with run filters, plus preset/width/height/zoom). input accepts:
- GitHub PR/issue URLs or
owner/repo#123; issues display details only - Actions links and requests that need no PR:
https://github.com/<owner>/<repo>/actions(also?query=event%3Aschedule,/actions/workflows/<file>.yml),https://github.com/<owner>/<repo>/actions/runs/<run>,owner/repo actions,owner/repo run 123,show scheduled runs in owner/repo - real artifact permalinks (
https://github.com/<owner>/<repo>/actions/runs/<run>/artifacts/<id>), an artifact ID with a repository, or a shared explorer link/route such as#/docs,#/artifact/owner%2Frepo/0/456?file=index.html,#/browser?v=... http(s)://andlocalhostURLs (browser preview)- bounded natural language:
open PR 123 in owner/repo,show localhost:3000 on mobile,go back,zoom 150%,tablet,1280x720,screenshot
Use share { input, preset?, zoom?, width?, height? } to produce a link, route, and text to give the user. Artifact shares keep repository/artifact/file identity (not preview ports); the recipient pastes it into the canvas or into open_target.
Workflow runs without a pull request
Many runs have no PR: schedule (cron), workflow_dispatch, push, release, workflow_run, and others. Use open_runs { repository, event?, status?, branch?, workflow?, excludePullRequests?, hasArtifacts? } to open the repository's Workflow runs list (for example event: "schedule" for cron runs; excludePullRequests and hasArtifacts default to true, so pass false to include PR runs or runs with no artifacts), and open_run { repository, runId } to open one run and its artifacts. The same artifact preview, Browser view, sharing and Re-run behavior applies; artifacts opened from a run keep a ?run=<id> route so breadcrumbs return to the run. Run rows show a lazily loaded artifact count; the branch filter autocompletes real branches. Routes use nopr=0 and artifacts=0 to turn those defaults off.
Artifacts
inspect_artifact { repository, artifactId } starts a background job. Downloads continue past soft limits; when one is reached the user is prompted for a larger value (set_limit { kind, value }; the value must be at least the live progress). Check job_status; use retry_job after an interrupted or failed job (a completed ZIP is reused) and cancel_job only when asked. Never execute artifact programs or build scripts: artifacts are only inspected or previewed as static sites and files.
Re-running the workflow that produced an artifact is a UI-only, user-confirmed action (the Re-run button on an artifact row or a run page). Never attempt it yourself or call its API; if the user wants a fresh artifact, tell them to use that button. It reuses the original commit, ref and actor, is limited to 30 days and 50 re-runs, and only requests a run, not a ready artifact.
Browser preview
navigate_browser { url, preset?, zoom? }opens an http(s) URL, including localhost.set_viewport { preset: native | mobile | tablet | desktop | custom, width?, height?, orientation? }sets the emulated page size.set_zoom { zoom, fit? }scales the view without changing the viewport.screenshot { mode?: "fresh" | "controlled", url?, preset?, width?, height?, fullPage? }takes a real Chromium PNG saved under the sessionfiles/artifact-explorer-screenshotsfolder.fresh(default) renders the URL anew and is labeledfresh-render;controlledcaptures the live isolated Chromium page (controlled-current).controlled_navigate { url, preset?, ... },controlled_back,controlled_forward,controlled_refresh,controlled_closedrive an isolated Chromium (in-memory profile, no login state) with real history; use it for sites that block iframes. Navigation failures are returned as errors, never as blank pages. If Playwright or Chromium is missing, relay the returned setup instructions to the user (including aplaywright_config_unsupportederror for the retiredPR_ARTIFACT_EXPLORER_PLAYWRIGHTvariable); never install silently.- Pages that forbid framing (X-Frame-Options / CSP) are reported and not bypassed.
Previewing files
- A contextual Browser view action appears in the preview toolbar only for static-site HTML artifacts; it is not a global nav item. Open URLs directly with
open_target/navigate_browseror a#/browser?v=...route. .webm,.mp4and.movuse native<video controls>with range seeking (the whole entry is CRC/size verified once, then reused). Codec support is browser-dependent (WebM VP8/VP9 is most reliable; H.264 MP4/MOV may not play), so a failure shows an explanation and a download fallback.- A compact Preview / Raw toggle sits beside Download for every file (
&view=rawin routes). Raw shows exact source for text and a bounded, labelled-partial hex+ASCII view for binary; unsafe/encrypted entries explain why and keep the ZIP download. - Browser chrome and owned artifact HTML follow the inherited canvas theme (initial and live changes); controlled Chromium and captures follow the current color scheme. External sites keep their own theme.
- Open in default browser (Sharing and help menu) launches the current http(s) target in the OS browser. Owned artifact sites are served by this canvas's loopback server and stop when it closes.
- JUnit XML (
testsuites/testsuiteroots) renders a native report with totals, status filters, search and failure/error/skipped/stdout/stderr details; the XML source and download stay available. Malformed reports fall back to source with an error; other XML uses the generic viewer.
Recovery
If the canvas misbehaves, call restart_canvas: it keeps the port, token, and running jobs. Use docs to open the built-in Docs tab, which also lists keyboard shortcuts (press ?).
04 同仓库更多 Skills
sap-cloud-integration
SAP Cloud Integration (CPI, part of SAP Integration Suite) runtime-specific guidance for building and troubleshooting iFlows. Use when writing or reviewing CPI Groovy scripts, choosing headers vs. exchange properties, designing exception subprocesses, JMS retry, idempotency or data store patterns, or diagnosing adapter errors (SFTP, HTTP/OAuth, SOAP, IDoc, OData, AS2, Cloud Connector) from Message Processing Log (MPL) text. Not for SAP PI/PO, ABAP development, or generic Java/Groovy outside CPI.
on-device-delegate
Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.
scout-issue
Use when a developer wants to find the best GitHub issues to contribute to in a repository. Invoke with /scout-issue or ask to find good first issues, beginner-friendly issues, or open source work. Asks about experience level, technical skills, time, and contribution type, then searches GitHub issues, scores them, and presents ranked recommendations with match analysis.
supabase-rls-policies
Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows. Use when creating or changing tables, policies, views, or security definer functions in a Supabase project, when reviewing a migration that touches RLS, or when asked to prove user isolation with pgTAP tests that sign in as two users.
skill-distribution-audit
Audit a skill collection before release or investigate installer omissions, archived/template leakage, duplicate identities, and manifest drift. Reconcile the intended public source set, distribution manifest, and actual discovery output for a specified consumer version. Includes a deterministic set-comparison helper.
logicapps-custom-code-net10-migration
Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project/package configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.