browser-render-visualization SKILL.md skillB
browser-render-visualization from black-yt/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add black-yt/skills/browser-render-visualization@git:20260605.e763408Pins git:20260605.e763408 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- black-yt/skills
- Path
browser-render-visualization/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260605.e763408, committed Jun 5, 2026
- First version recorded
- Jun 3, 2026
- Size
- 7,283 bytes
- Repository stars
- 16
- License
- none declared
当需要用 Playwright 渲染网页前端、GitHub Pages、本地静态页面、Canvas 或 Three.js 页面并保存桌面/移动端截图、检查空白渲染、布局溢出和浏览器报错时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 浏览器渲染可视化
## 核心原则
- 用真实浏览器渲染页面,而不是只看源码或静态 HTML。
- 静态页面也优先通过本地 HTTP server 打开,不要直接用 `file://`。
- 桌面端和移动端都要截图检查。
- Canvas、Three.js、动画页面不能只检查页面打开,还要确认画面不是空白。
- 截图、临时脚本和缓存放在明确目录;如果临时放到 `/tmp`,用后清理。
- 如果缺 Node.js、Playwright 或浏览器依赖,安装前先确认当前环境允许安装。
## 适用场景
- GitHub Pages 或 docs 静态页面验收。
- React、Vue、Vite 或普通 HTML/CSS/JS 页面截图。
- Canvas、Three.js、WebGL、动态图形是否真实渲染。
- 移动端布局是否溢出、文字是否重叠、按钮是否可点击。
- 页面资源路径、字体、图片、CDN、import map、module import 是否正常。
## 环境准备
检查 Node.js:
```bash
node -v
npm -v
```
安装 Playwright:
```bash
npm install -D playwright
npx playwright install chromium
```
Linux 如果缺浏览器系统依赖:
```bash
npx playwright install-deps chromium
```
如果 npm 或 Playwright 缓存权限有问题,可以指定临时缓存;任务结束后清理:
```bash
env npm_config_cache=/tmp/.npm \
PLAYWRIGHT_BROWSERS_PATH=/tmp/pw-browsers \
npx playwright install chromium
```
## Playwright 源码追溯
- Playwright 行为以当前 npm 包和浏览器版本为准;截图、locator、等待条件或 console 捕获异常时,先确认版本和包路径。
- `require.resolve('playwright')` 可定位 Node 包入口。
- `npm view playwright version` 可查看 registry 最新版本;不要因此自动升级,升级前先确认。
- 源码只用于阅读和定位问题,不要改源码,不要直接改 `node_modules`;需要改测试脚本时改项目脚本,需要改依赖时先征得用户同意。
```bash
node - <<'JS'
const pw = require('playwright');
…Read the whole file at its exact version.
How to install
mdr add black-yt/skills/browser-render-visualization@sha256:e78dfbb3041fc4c9The line at the top of this page pins the label git:20260605.e763408, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_3bxynhokobuom52b)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jun 3, 2026 and Jun 5, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260605.e763408 latest | 2026-06-05 | e763408 | 7,283 B | B | view · diff |
| git:20260603.562edde | 2026-06-03 | 562edde | 6,491 B | B | view |
Audit of the latest version
- fail: No link to a raw IP address (matched: http://127.0.0.1:8000)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7283 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
black-yt/skills · 16 stars · license none declared · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3bxynhokobuom52b GET https://markdownregistry.com/api/v1/resolve?ref=black-yt/skills/browser-render-visualization GET https://markdownregistry.com/api/v1/blob/e78dfbb3041fc4c9a2eea02e4b9e8a25d7a07a5c128e048e7adee9810a571cbe
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.