auto-screenshot

auto-screenshot is a skill for Claude Code, Codex 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 Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/congwa/mobile-agent/auto-screenshot
Any agent
npx skills add congwa/mobile-agent --skill auto-screenshot
Clone the repo
git clone --depth 1 https://github.com/congwa/mobile-agent

Made for: Claude Code, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00035 $0.00746
Opus 5 $0.00017 $0.00373
Sonnet 5 $0.00007 $0.00149
Haiku 4.5 $0.00003 $0.00075

Measured 5d ago against content hash d5d24bf62d04, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 (44 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 746 once invoked, about $0.0002 per session on Opus 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

v8-jit

V8 JIT optimization patterns for writing high-performance JavaScript in Next.js server internals. Use when writing or reviewing hot-path code in app-render, stream-utils, routing, caching, or any per-request code path. Covers hidden classes / shapes, monomorphic call sites, inline caches, megamorphic deopt, closure…

vercel/next.js · 88 tokens

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

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

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

every-app/open-seo · 35 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens