mobile-agent: Skill for Windsurf

.windsurf/skills/auto-screenshot/SKILL.md

auto-screenshot is a skill for Windsurf from congwa/mobile-agent. It costs 35 tokens per session (746 once invoked), scanned A, original, Apache-2.0.

An automated screenshot guide for a web application's main pages. It uses Playwright, a browser-testing tool, to capture pages such as the landing page, chat, administration screens, and support workbench.

In plain words
What is it for?
Use it to start the frontend if needed, install Playwright and its browser, capture the listed routes, and save the images and screenshot index under the documentation folder.
Why use it?
It records the current user interface in a consistent way for documentation and feature demonstrations. The instructions also identify the required running service, browser setup, and output location.

Skill for Windsurf

Written for Windsurf: installed under .windsurf/.

This is congwa/mobile-agent's own configuration. It tells Windsurf how to work on mobile-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mobile-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to congwa/mobile-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/congwa/mobile-agent/master/.windsurf/skills/auto-screenshot/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/congwa/mobile-agent

Made for: Windsurf.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auto-screenshot

README.md
[![agentmods](https://agentmods.dev/badge/skills/congwa/mobile-agent/auto-screenshot/github.svg)](https://agentmods.dev/skills/congwa/mobile-agent/auto-screenshot)
Your own site
<a href="https://agentmods.dev/skills/congwa/mobile-agent/auto-screenshot"><img src="https://agentmods.dev/badge/skills/congwa/mobile-agent/auto-screenshot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auto-screenshot

Your own site · 80×15
<a href="https://agentmods.dev/skills/congwa/mobile-agent/auto-screenshot"><img src="https://agentmods.dev/badge/skills/congwa/mobile-agent/auto-screenshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00746
Opus 5.5 $0.00014 $0.00298
Sonnet 5.5 $0.00007 $0.00149
Haiku 4.5 $0.00003 $0.00075

Measured 1mo ago against content hash d5d24bf62d04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

auto-screenshot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.windsurf/skills/auto-screenshot/SKILL.md · 98 lines

What it actually says

自动截屏 Skill

自动运行项目并对主要功能页面进行全屏截屏,保存到 /docs/screenshots 目录。

前置条件

  1. 前端服务已启动(http://localhost:3000)
  2. 安装 Playwright(首次使用需安装)

执行流程

步骤 1:检查前端服务

# 如果前端服务未启动,先启动
cd frontend && pnpm dev

步骤 2:安装依赖(首次使用,在 frontend 目录)

cd frontend

# 安装 Playwright(如果尚未安装)
pnpm add -D playwright

# 安装浏览器(首次使用)
npx playwright install chromium

步骤 3:运行截屏脚本(在 frontend 目录)

cd frontend
npx tsx scripts/screenshot.ts

截屏页面列表

路径 文件名 描述
/ landing-page.png 产品落地页
/chat chat-interface.png 用户聊天界面
/admin admin-dashboard.png 管理后台仪表盘
/admin/quick-setup quick-setup.png 快速配置向导
/admin/agents agent-list.png Agent 列表
/admin/single single-mode.png 单 Agent 模式配置
/admin/multi multi-mode.png 编排模式配置
/admin/settings settings.png 系统设置
/admin/settings/mode mode-settings.png 模式设置
/admin/skills skills-list.png 技能列表
/support support-workbench.png 客服工作台

输出文件

docs/
├── screenshots/
│   ├── landing-page.png
│   ├── chat-interface.png
│   ├── admin-dashboard.png
│   └── ...
└── SCREENSHOTS.md          # 截图索引文件

配置选项

可在 scripts/screenshot.ts 中修改:

const CONFIG = {
  baseUrl: 'http://localhost:3000',  // 服务地址
  outputDir: './docs/screenshots',    // 输出目录
  viewport: { width: 1920, height: 1080 },  // 视口大小
  timeout: 30000,  // 超时时间
};

添加新页面

在 PAGES 数组中添加:

{ path: '/admin/new-page', name: 'new-page', description: '新页面描述' },

注意事项

  1. 需要登录的页面:脚本目前不处理登录状态,如需截取需要登录的页面,需要修改脚本添加登录逻辑
  2. 动态内容:脚本会等待页面加载完成,但动态加载的数据可能显示为空
  3. 深色模式:默认使用系统主题,如需指定可在脚本中添加主题切换逻辑
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 35 tokens per session scan A d5d24bf62d04

Subscribe to this mod's changes

auto-screenshot is a skill published in the GitHub repository congwa/mobile-agent (51 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 746 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

interactive-login

Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

open-design-browser

Inspect and exercise local HTML design artifacts and library prototype previews with the existing agent-browser CLI, including screenshots, interaction checks, and rendered DOM snapshots. Use when rendered evidence helps author or review a design; excludes browser installation, remote services, and unrelated browser…

compozy/compozy · 56 tokens