跳到正文
Skillpedia
图片与图标48k · #5687

screenshots

它能做什么

这个工具可以为你的网页应用拍摄高质量截图,用于营销推广,帮你制作精美的图片来宣传产品。

适用场景

  • ✓当你需要在 Product Hunt 等平台上发布产品时使用截图。
  • ✓当你需要制作吸引眼球的社交媒体帖子时。
  • ✓当你在搭建网站的落地页时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/screenshots/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/screenshots/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为我的应用拍摄截图,用于 Product Hunt 发布。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会使用一个名为 Playwright 的程序打开你的网页应用并截取画面。它能确保图片具有高分辨率,接近 Retina 屏幕的显示质量。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Screenshots

Generate marketing-quality screenshots of your app using Playwright directly. Screenshots are captured at true HiDPI (2x retina) resolution using deviceScaleFactor: 2.

When to Use This Skill

Use this skill when:

  • User wants to create screenshots for Product Hunt
  • Creating screenshots for social media
  • Generating images for landing pages
  • Creating documentation screenshots
  • User requests marketing-quality app screenshots

Prerequisites

Playwright must be available. Check for it:

npx playwright --version 2>/dev/null || npm ls playwright 2>/dev/null | grep playwright

If not found, inform the user:

Playwright is required. Install it with: npm install -D playwright or npm install -D @playwright/test

Step 1: Determine App URL

If $1 is provided, use it as the app URL.

If no URL is provided:

  1. Check if a dev server is likely running by looking for package.json scripts
  2. Use AskUserQuestion to ask the user for the URL or offer to help start the dev server

Common default URLs to suggest:

  • http://localhost:3000 (Next.js, Create React App, Rails)
  • http://localhost:5173 (Vite)
  • http://localhost:4000 (Phoenix)
  • http://localhost:8080 (Vue CLI, generic)

Step 2: Gather Requirements

Use AskUserQuestion with the following questions:

Question 1: Screenshot count

  • Header: "Count"
  • Question: "How many screenshots do you need?"
  • Options:
    • "3-5" - Quick set of key features
    • "5-10" - Comprehensive feature coverage
    • "10+" - Full marketing suite

Question 2: Purpose

  • Header: "Purpose"
  • Question: "What will these screenshots be used for?"
  • Options:
    • "Product Hunt" - Hero shots and feature highlights
    • "Social media" - Eye-catching feature demos
    • "Landing page" - Marketing sections and benefits
    • "Documentation" - UI reference and tutorials

Question 3: Authentication

  • Header: "Auth"
  • Question: "Does the app require login to access the features you want to screenshot?"
  • Options:
    • "No login needed" - Public pages only
    • "Yes, I'll provide credentials" - Need to log in first

If user selects "Yes, I'll provide credentials", ask follow-up questions:

  • "What is the login page URL?" (e.g., /login, /sign-in)
  • "What is the email/username?"
  • "What is the password?"

The script will automatically detect login form fields using Playwright's smart locators.

Step 3: Analyze Codebase for Features

Thoroughly explore the codebase to understand the app and identify screenshot opportunities.

3.1: Read Documentation First

Always start by reading these files to understand what the app does:

  1. README.md (and any README files in subdirectories) - Read the full README to understand:

    • What the app is and what problem it solves
    • Key features and capabilities
    • Screenshots or feature descriptions already documented
  2. CHANGELOG.md or HISTORY.md - Recent features worth highlighting

  3. docs/ directory - Any additional documentation about features

3.2: Analyze Routes to Find Pages

Read the routing configuration to discover all available pages:

Framework File to Read What to Look For
Next.js App Router app/ directory structure Each folder with page.tsx is a route
Next.js Pages Router pages/ directory Each file is a route
Rails config/routes.rb Read the entire file for all routes
React Router Search for createBrowserRouter or <Route Route definitions with paths
Vue Router src/router/index.js or router.js Routes array with path definitions
SvelteKit src/routes/ directory Each folder with +page.svelte is a route
Remix app/routes/ directory File-based routing
Laravel routes/web.php Route definitions
Django urls.py files URL patterns
Express Search for app.get, router.get Route handlers

Important: Actually read these files, don't just check if they exist. The route definitions tell you what pages are available for screenshots.

3.3: Identify Key Components

Look for components that represent screenshottable features:

  • Dashboard components
  • Feature sections with distinct UI
  • Forms and interactive inputs
  • Data visualizations (charts, graphs, tables)
  • Modals and dialogs
  • Navigation and sidebars
  • Settings panels
  • User profile sections

3.4: Check for Marketing Assets

…

常见问题

需要安装什么软件吗?

需要。你得先安装 Playwright。如果没有安装,工具会提示你,并告诉你如何安装。

工具怎么知道应该截取应用的哪些部分?

它会通过阅读文档(比如 README 文件)并分析可访问的页面来理解你的应用。然后,它会推荐最重要的部分,供你挑选。

如果我的应用需要登录怎么办?

工具可以请你提供登录凭据(邮箱和密码),以便登录后对需要权限的页面进行截图。

详情

作者的原始描述

Generate marketing screenshots of your app using Playwright. Use when the user wants to create screenshots for Product Hunt, social media, landing pages, or documentation.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5687
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能