Token导航 LogoToken导航

Agent Skill · 研究检索

generate-release-screenshots(生成发布屏幕截图)

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

generate-release-screenshots 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 63,254。

总安装 318周安装 13GitHub Stars 163下载 102核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oocx/tfplan2md --skill generate-release-screenshots

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,支持快速定位候选结果。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景使用。通过 GitHub 安装,使用 npx skills add 命令添加技能。需确认权限范围和维护状态,注意是否触发联网或命令执行。

generate-release-screenshots 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/generate-release-screenshots

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/oocx/tfplan2md --skill generate-release-screen…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

generate-release-screenshots 怎么安装?

在终端执行 npx skills add https://github.com/oocx/tfplan2md --skill generate-release-screenshots。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

generate-release-screenshots 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

generate-release-screenshots 需要什么权限?

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

generate-release-screenshots 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

generate-release-screenshots 用的人多吗?

公开数据是累计安装 318 次,近一周安装 13 次,下载 102 次,GitHub 163 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

generate-release-screenshots 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
generate-release-screenshots

生成发布屏幕截图 · 本页

318163操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill Instructions

Purpose

Provide clear, actionable guidance for generating actual PNG screenshot files for release notes and documentation, preventing common mistakes like creating markdown links to source files or referencing non-existent images.

Hard Rules

Must

  • Install Playwright before generating screenshots: Build the ScreenshotGenerator project (dotnet build src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/), then install the browser via pwsh src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/bin/Debug/net10.0/playwright.ps1 install chromium --with-deps. Do NOT use npx playwright install — the npm version differs from the.NET package version.
  • Generate actual PNG files, NOT markdown links to source files or empty image references.
  • Use scripts/generate-release-screenshots.sh for release note screenshots (includes retry logic and error reporting).
  • Use scripts/generate-screenshot.sh for individual screenshots with full control (light/dark themes, DPI, crops).
  • Verify generated PNG files exist at expected paths before adding markdown references.
  • Verify screenshots show the intended content (not blank pages or errors) — visually inspect each screenshot.
  • Use focused, small screenshots for release notes: max 580×400 pixels.
  • Use only *-crop*.png files in release notes, or generate single screenshots using the release wrapper.
  • Use absolute raw.githubusercontent.com URLs in release notes — relative paths like ./image.png do NOT work in GitHub Release pages. Use format: https://raw.githubusercontent.com/oocx/tfplan2md/v{VERSION}/docs/{path}/image.png where {VERSION} is the release tag.
  • Choose selectors that capture the visual change: Match the selector to what the feature/fix actually changes (see Selector Guide below).
  • Generate the report with --details open so resource details blocks are expanded in screenshots — unless you specifically want to capture a collapsed resource.

Must Not

  • Add ![Screenshot](path/to/image.png) syntax to markdown before verifying the PNG file exists.
  • Replace actual screenshots with markdown links to source files (e.g., [View in file.md (lines X-Y)]).
  • Use text descriptions or placeholders instead of actual PNG files.
  • Proceed with release if screenshot generation fails due to timeouts or tooling issues.
  • Use relative paths (e.g., ./image.png) in release notes — they break in GitHub Release pages.
  • Reference filenames that don't exist — always verify the actual generated filename matches the markdown reference.

Golden Example

For Release Notes (Preferred Method)

# Generate focused screenshots for release notes
scripts/generate-release-screenshots.sh \
  --plan examples/comprehensive-demo/plan.json \
  --output-prefix feature-name \
  --output-dir docs/features/NNN-feature-slug/ \
  --selector "details:has(summary:has-text('resource_name'))"

# This script:
# - Includes retry logic (3 attempts with 5-second delays)
# - Provides detailed error reporting and troubleshooting guidance
# - Generates focused crop screenshots suitable for release notes

Alternative Methods

Using Markdown File as Input
scripts/generate-release-screenshots.sh \
  --markdown-file artifacts/comprehensive-demo.md \
  --output-prefix demo-screenshot \
  --output-dir docs/features/NNN-feature-slug/ \
  --target-resource-id "azurerm_firewall_network_rule_collection"
For Individual Screenshots with Full Control
# Generate with light/dark themes, DPI options, and custom crops
scripts/generate-screenshot.sh \
  --plan examples/comprehensive-demo/plan.json \
  --output-prefix feature-name \
  --selector "details:has(summary:has-text('resource_name'))" \
  --thumbnail-width 580 --thumbnail-height 400 \
  --lightbox-width 1200 --lightbox-height 900 \
  --render-target azdo \
  --open-details-selector "details"

# This generates 12 variants:
# - Thumbnail and lightbox crops
# - Light and dark themes
# - 1x and 2x DPI versions

Actions

0. Install Playwright (PREREQUISITE — REQUIRED)

Before any screenshot generation, ensure the correct Chromium browser is installed for the.NET Playwright package:

# 1. Build the ScreenshotGenerator project first
dotnet build src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/

# 2. Install Chromium using the .NET project's Playwright script
pwsh src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/bin/Debug/net10.0/playwright.ps1 install chromium --with-deps

⚠️ Do NOT use npx playwright install — the npm Playwright version differs from the.NET Microsoft.Playwright NuGet package version, causing browser version mismatches (e.g., the.NET package expects chromium_headless_shell-1200 but npm installs chromium_headless_shell-1208). Always use the.NET project's playwright.ps1 script to ensure version compatibility.

1. Understand What Screenshots Are Needed

Clarify with the user:

  • What content should the screenshots show?
  • Are they for release notes (small, focused) or documentation (detailed)?
  • What resources or sections should be highlighted?

2. Choose the Appropriate Script

For release notes: Use scripts/generate-release-screenshots.sh

  • Includes retry logic and error handling
  • Generates focused, appropriately-sized screenshots
  • Best for user-facing release documentation

For full control: Use scripts/generate-screenshot.sh

  • Supports light/dark themes
  • Supports multiple DPI levels (1x, 2x)
  • Supports custom crop sizes
  • Best for website and detailed documentation

3. Generate the Screenshots

Run the chosen script with appropriate parameters:

  • Specify input source (--plan or --markdown-file)
  • Set output prefix and directory
  • Use selectors to focus on specific content
  • For release notes, ensure max 580×400 pixel size
  • Generate the report with --details open so resource attribute tables are visible in the screenshot — unless you specifically want to capture a collapsed resource

4. Verify Generation Success

Before proceeding:

  • Check that PNG files exist at the expected paths
  • Open or view the screenshots to confirm they show correct content
  • Verify no blank pages or error messages in screenshots
  • Confirm file sizes are appropriate for release notes

5. Add Markdown References

Only after verification, use absolute URLs for release notes:

![Feature demonstration](https://raw.githubusercontent.com/oocx/tfplan2md/v{VERSION}/docs/features/NNN-feature-slug/feature-name.png)

Never use relative paths in release notes — they break in GitHub Release pages.

6. Handle Failures

If screenshot generation fails:

  • DO NOT proceed with release or commit broken image references
  • Report the failure to the Maintainer with full error details
  • Document the specific error (timeout, CDN failure, tooling issue)
  • Wait for tooling fix or Maintainer guidance

Selector Guide — Choosing What to Capture

The selector determines which part of the rendered HTML page is captured. Choosing the wrong selector is a common mistake that results in screenshots showing irrelevant content.

How selectors work

  • --selector captures the bounding box of all matching elements
  • --target-terraform-resource-id finds the <details> block for a specific Terraform resource and captures its full content (attribute tables, body changes, etc.)

Matching selector to visual change type

What changedWhat to showRecommended selector
Summary line (emoji, spacing, icons in collapsed view)The <summary> element showing the change--selector "summary:has-text('resource_type.resource_name')"
Resource details (attribute rendering, body layout)The expanded <details> block--target-terraform-resource-id "resource_type.resource_name"
Section header (module icons, heading format)The heading element--selector "h3:has-text('Module:')" or --selector "h4:has-text('Section Name')"
Tags renderingThe tags section within a resource--selector "p:has-text('Tags:')"
Table formattingA specific table--selector "table:near(summary:has-text('resource'))"
Multiple elements (before/after, several fixes)Wider section containing all changes--selector "article" or use a parent container

❌ Common mistake: Using --target-terraform-resource-id for summary-line changes

If a fix only changes the collapsed <summary> line (e.g., emoji spacing like 2 🔧), do NOT use --target-terraform-resource-id — this captures the entire expanded resource details block, which shows attribute tables instead of the summary where the fix is visible.

✅ Correct: Use a targeted CSS selector

# To capture wrench icon spacing fix in summary:
--selector "summary:has-text('azurerm_network_security_group')"

# To capture tags emoji addition:
--selector "p:has-text('🏷️ Tags:')"

# To capture module icon fix:
--selector "h3:has-text('📦 Module:')"

Image URLs for Release Notes

❌ Wrong: Relative paths (break in GitHub Release pages)

![Screenshot](./screenshot.png)
![Screenshot](docs/features/NNN/screenshot.png)

Relative paths work when browsing the file in the GitHub repository, but GitHub Release pages render the markdown body without a file context, so relative paths produce broken images.

✅ Correct: Absolute raw.githubusercontent.com URLs

![Screenshot](https://raw.githubusercontent.com/oocx/tfplan2md/v1.20.0/docs/issues/086/screenshot.png)

Use the release tag (e.g., v1.20.0) in the URL. Since the release notes are committed before the tag exists, use the tag that will be created by the release pipeline. The format is:

https://raw.githubusercontent.com/oocx/tfplan2md/v{VERSION}/docs/{work-item-folder}/{filename}.png

Important: The release notes file is committed to main before the tag is created. The release workflow copies release-notes.md as the GitHub Release body. Since the tag is created by Versionize on the same commit, the file will be accessible at the tag URL.

Common Mistakes to Avoid

❌ Wrong: Adding references before generating files

# Release notes created first
![Screenshot](docs/features/072/screenshot.png)

# Then trying to generate the screenshot
# Result: Broken link if generation fails

✅ Correct: Generate first, then reference

# 1. Generate the screenshot
scripts/generate-release-screenshots.sh --plan ... --output-prefix feature-name

# 2. Verify it exists
ls -lh docs/features/NNN/feature-name-crop-light-1x.png

# 3. Then add the markdown reference
echo '![Feature](docs/features/NNN/feature-name-crop-light-1x.png)' >> release-notes.md

❌ Wrong: Using markdown links instead of screenshots

See the changes in [comprehensive-demo.md (lines 45-67)](comprehensive-demo.md#L45-L67)

✅ Correct: Using actual PNG screenshots

![Network security rules demonstration](https://raw.githubusercontent.com/oocx/tfplan2md/v1.20.0/docs/features/072/nsg-rules.png)

❌ Wrong: Referencing filenames that don't exist

![Before](https://raw.githubusercontent.com/oocx/tfplan2md/abc123/docs/features/072/before-screenshot.png)
# But the actual file is named "nsg-rules.png", not "before-screenshot.png"

✅ Correct: Verify actual filenames before referencing

# 1. Generate screenshots
scripts/generate-release-screenshots.sh --plan ... --output-prefix nsg-rules --output-dir docs/features/072/

# 2. List actual generated files
ls docs/features/072/*.png

# 3. Use the exact filename in markdown
# Output: docs/features/072/nsg-rules.png

❌ Wrong: Skipping Playwright installation or using npx

# Wrong: Skipping installation entirely
scripts/generate-release-screenshots.sh --plan ... --output-prefix feature ...
# Result: "Browser not found" error

# Wrong: Using npx (version mismatch with .NET Playwright package)
npx playwright install chromium --with-deps
scripts/generate-release-screenshots.sh --plan ... --output-prefix feature ...
# Result: "Executable doesn't exist at chromium_headless_shell-1200" (npm installed -1208)

✅ Correct: Install via.NET Playwright script

dotnet build src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/
pwsh src/tools/Oocx.TfPlan2Md.ScreenshotGenerator/bin/Debug/net10.0/playwright.ps1 install chromium --with-deps
scripts/generate-release-screenshots.sh --plan ... --output-prefix feature ...

Technical Details

How Screenshot Generation Works

  1. Markdown → HTML: src/tools/Oocx.TfPlan2Md.HtmlRenderer renders markdown to HTML
  2. HTML → PNG: src/tools/Oocx.TfPlan2Md.ScreenshotGenerator (Playwright) captures PNG screenshots
  3. Repository scripts wrap these tools with:

- Retry logic for network failures - Error reporting and troubleshooting guidance - Batch generation for multiple variants

For Website Screenshots

Use the website-visual-assets skill (.github/skills/website-visual-assets/SKILL.md) for:

  • Website-specific screenshot workflows
  • Screenshot inventory management (website/_memory/screenshots.md)
  • Website asset organization (website/assets/screenshots/)

References

  • Scripts: scripts/generate-release-screenshots.sh, scripts/generate-screenshot.sh
  • Tools: src/tools/Oocx.TfPlan2Md.HtmlRenderer, src/tools/Oocx.TfPlan2Md.ScreenshotGenerator
  • Related skill: .github/skills/website-visual-assets/SKILL.md (for website screenshots)

平台分布

Codex

32.09%
按下载量换算33

Claude

30.16%
按下载量换算31

Cursor

19.53%
按下载量换算20

Gemini CLI

9.62%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills