Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

screenshot截图工具

Agent Skill

screenshot 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

360

周安装

15

GitHub Stars

公开资料未说明

下载量

120
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:screenshot(截图工具)
来源仓库:https://github.com/pentaxis93/aiandi
仓库路径:skills/screenshot
安装命令:
npx skills add pentaxis93/aiandi --skill "screenshot"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add pentaxis93/aiandi --skill "screenshot"

简介

发现并安装 AI 代理的技能。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 通过 npx 命令扩展截图与视觉分析能力。
  • 安装命令:npx skills add pentaxis93/aiandi --skill "screenshot"。
  • 建议测试截图精度与延迟表现。screenshot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
screenshot
description
Capture screenshots of aiandi.dev for visual verification. Puppeteer-based, outputs to /tmp. Foundation for the design-loop skill.

Screenshot Skill

Purpose: Capture screenshots of the blog for visual verification, documentation, or as part of the design-loop refinement process.


When to Use

  • Standalone: Quick visual verification before commit
  • With design-loop: Iterative design refinement (see design-loop skill)
  • Documentation: Capturing UI states for discussion
  • Debugging: Layout or styling issues

Quick Start

# 1. Ensure dev server is running
bun run dev --host 0.0.0.0 &
sleep 5

# 2. Capture screenshot
cat << 'EOF' | bun run -
import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({
  headless: true,
  args: ['--no-sandbox', '--disable-setuid-sandbox']
});

const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });

// Note: Check server output for actual port (4321 or 4322)
await page.goto('http://localhost:4321/', { waitUntil: 'networkidle0' });

const path = `/tmp/aiandi-${Date.now()}.png`;
await page.screenshot({ path, fullPage: false });

await browser.close();
console.log(path);
EOF

# 3. IMMEDIATELY read the image with Read tool (don't wait for human)
# The Read tool can display images - call it right after capturing
# Read /tmp/aiandi-TIMESTAMP.png

Configuration

Viewport Sizes

DeviceWidthHeightUse Case
Monitor19201080Realistic desktop (recommended)
Desktop1280800Smaller screens
Tablet7681024Responsive testing
Mobile375667Mobile-first verification

Important: Use 1920x1080 to verify centering and layout on realistic monitors. Smaller viewports may hide centering issues.

Screenshot Options

// Full page (scrolls entire content)
await page.screenshot({ path, fullPage: true });

// Specific element
const element = await page.$('.hero');
await element.screenshot({ path });

// With transparency
await page.screenshot({ path, omitBackground: true });

// After hover state
await page.hover('.button');
await page.screenshot({ path });

// After waiting for animation
await page.waitForTimeout(300);
await page.screenshot({ path });

Common Pages

PagePath
Home/
Blog index/blog
About/about
Blog post/blog/[slug]

Multiple Screenshots

const browser = await puppeteer.launch({
  headless: true,
  args: ['--no-sandbox', '--disable-setuid-sandbox']
});

const page = await browser.newPage();
const ts = Date.now();

const routes = [
  { path: '/', name: 'home' },
  { path: '/blog', name: 'blog' },
  { path: '/about', name: 'about' }
];

for (const { path, name } of routes) {
  await page.setViewport({ width: 1280, height: 800 });
  await page.goto(`http://localhost:4321${path}`, { waitUntil: 'networkidle0' });
  await page.screenshot({ path: `/tmp/aiandi-${name}-${ts}.png` });
  console.log(`Captured: ${name}`);
}

await browser.close();

Cleanup

Screenshots in /tmp auto-clean on system restart. For immediate cleanup:

rm /tmp/aiandi-*.png

Troubleshooting

IssueSolution
Port in useCheck server output for actual port (4321 or 4322)
Blank screenshotIncrease sleep time or use waitUntil: 'networkidle0'
Browser launch failsEnsure --no-sandbox flag is included
Element not foundUse await page.waitForSelector('.element')
Stale contentAdd await page.reload() before capture

Important Notes

  • Always use /tmp - Never save screenshots in the repo
  • Never commit screenshots - They're for verification only
  • Check the port - Server may use 4321 or 4322
  • Kill server when done - pkill -f "astro dev" if needed
  • Read immediately - After capturing, call Read /tmp/path.png in the same response to avoid human gate
  • Use 1920x1080 - Realistic monitor size catches centering/layout issues

Related Skills

SkillRelationship
design-loopUses screenshot as part of iterative refinement
web-designProvides the design system for what you're capturing

*Visual verification catches what code review misses.*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

mcpjam

27.38%
按下载量换算33

Claude Code

22.64%
按下载量换算27

windsurf

18.59%
按下载量换算22

zencoder

12.26%
按下载量换算15

crush

6.81%
按下载量换算8

cline

3.27%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills