Proofshot 浏览器验证
- 作者仓库星标 820
- 许可证 MIT
- 作者仓库 proofshot
ProofShot — Visual Verification Workflow
ProofShot is an open-source, agent-agnostic CLI that lets you verify your own work in a real browser — video proof, screenshots, and error reports, no vendor lock-in.
When to use
Use ProofShot after:
- Building a new UI feature or page
- Modifying existing UI components
- Fixing a visual bug
- Any change that affects what the user sees
The workflow (always follow these 3 steps)
Step 1: Start the session
proofshot start --run "your-dev-command" --port PORT --description "what you are about to verify"
This opens a browser and begins recording. If the port is already in use, proofshot will kill the existing process automatically.
Always use --run to let proofshot start and capture your dev server output (server logs appear in the proof report).
Only omit --run if the server was explicitly started by the user or another process — without it, no server logs are captured.
If a previous session was not stopped cleanly, add --force to override it.
Step 2: Drive the browser and test
Use proofshot exec to navigate, interact, and verify:
proofshot exec snapshot -i # See interactive elements
proofshot exec open http://localhost:PORT/page # Navigate to a page
proofshot exec click @e3 # Click a button
proofshot exec fill @e2 "test@example.com" # Fill a form field
proofshot exec screenshot step-NAME.png # Capture key moments
Take screenshots at important moments — these become the visual proof. Verify what you expect to see by reading the snapshot output.
Step 3: Stop and bundle the proof
proofshot stop
This stops recording, collects console + server errors, and generates a SUMMARY.md with video, screenshots, and error report.
Step 4 (optional): Post proof to the PR
proofshot pr # Auto-detect PR from current branch
proofshot pr 42 # Target a specific PR number
This uploads screenshots and video to GitHub and posts a formatted comment on the PR. By default it uses the official GitHub contents API on a proofshot-artifacts branch. Use --upload-provider github-web-attachments if you specifically want GitHub attachment URLs.
Tips
- Always include a meaningful --description so the human knows what was tested
- Take screenshots before AND after key actions (e.g., before form submit, after redirect)
- If you find errors during verification, fix them and re-run the workflow
- Use
proofshot prafter stopping to attach proof directly to the pull request
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @AmElmo · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 The workflow (always follow these 3 steps)
This opens a browser and begins recording. If the port is already in use, proofshot will kill the existing process automatically. Always use --run to let proofshot start and capture your dev server output (server logs appear in the proof report).
Use proofshot exec to navigate, interact, and verify: Take screenshots at important moments — these become the visual proof. Verify what you expect to see by reading the snapshot output.
This stops recording, collects console + server errors, and generates a SUMMARY.md with video, screenshots, and error report.
This uploads screenshots and video to GitHub and posts a formatted comment on the PR. By default it uses the official GitHub contents API on a proofshot-artifacts branch. Use --upload-provider github-web-attachments if you specifically want GitHub attachment…
# ProofShot — Visual Verification Workflow
ProofShot is an open-source, agent-agnostic CLI that lets you verify your own work in a real browser — video proof, screenshots, and error reports, no vendor lock-in.
## When to use
Use ProofShot after:
- Building a new UI feature or page
- Modifying existing UI components
- Fixing a visual bug
- Any change that affects what the user sees
## The workflow (always follow these 3 steps)
### Step 1: Start the session
```bash
proofshot start --run "your-dev-command" --port PORT --description "what you are about to verify"
```
This opens a browser and begins recording. If the port is already in use, proofshot will kill the existing process automatically.
**Always use `--run`** to let proofshot start and capture your dev server output (server logs appear in the proof report).
Only omit `--run` if the server was explicitly started by the user or another process — without it, no server logs are captured.
If a previous session was not stopped cleanly, add `--force` to override it.
### Step 2: Drive the browser and test
Use proofshot exec to navigate, interact, and verify:
```bash
proofshot exec snapshot -i # See interactive elements
proofshot exec open http://localhost:PORT/page # Navigate to a page
proofshot exec click @e3 # Click a button
proofshot exec fill @e2 "test@example.com" # Fill a form field
proofshot exec screenshot step-NAME.png # Capture key moments
```
Take screenshots at important moments — these become the visual proof.
Verify what you expect to see by reading the snapshot output.
### Step 3: Stop and bundle the proof
```bash
proofshot stop
```
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to use → The workflow (always follow these 3 steps) → Step 1: Start the session → Step 2: Drive the browser and test → Step 3: Stop and bundle the proof → Step 4 (optional): Post proof to the PR
要点 -> Always use --run · This opens a browser and begins recording. · Always use --run to let proofshot start and capture your dev server output (server logs appear in the proof report). · If a previous session was not stopped cleanly, add --force to override it. · Take screenshots at important moments — these become the visual proof. · This stops recording, collects console + server errors, and generates a SUMMARY.md with video, screenshots, and error report. · This uploads screenshots and video to GitHub and posts a formatted comment on the PR.
文件/命令 -> --run · --force · proofshot-artifacts · --upload-provider github-web-attachments · proofshot pr
内容 SHA-256 -> cce034d21656
方法与流程
适用与边界
原文中的明确线索
--run、--force、proofshot-artifacts、--upload-provider github-web-attachments、proofshot pr