AGENT SKILL

snapframe

Define an automated browser screenshot — Neko captures the URL when the `neko snap` command runs and stores the image. Use to keep screenshots in docs fresh without manual capture.

License 许可
MIT
所属仓库
curiosity-ai/neko
最近更新
2026-11-13
Stars
★ 2
Forks
0

01 前言 Front Matter

name
snapframe
description
Define an automated browser screenshot — Neko captures the URL when the `neko snap` command runs and stores the image. Use to keep screenshots in docs fresh without manual capture.

03 SKILL.md 正文

Snapframe

A snapframe block declares a screenshot recipe. Running neko snap walks every snapframe in the docs and writes a fresh PNG. The accompanying ![]() image reference then displays the latest capture.

Syntax

[!snapframe https://neko.curiosity.ai]
![Neko site](/assets/snap/neko-home.png)

The first line is the snap directive; the second is a normal image reference that points at where the snapshot will be written.

With chrome and background

[!snapframe https://neko.curiosity.ai --chrome macOS --bg GradientSunset]
![Neko homepage](/assets/snap/neko-home.png)

Supported chromes (varies by Neko version): macOS, windows, none. Supported backgrounds: gradient or solid presets, or --bg "#1f2937".

With interactions

[!snapframe https://example.com/app
click 'button.cookies-accept'
interact #email value='test@example.com'
wait 500
]
![Logged-in view](/assets/snap/example-app.png)

Each interaction line runs before the screenshot. Common verbs:

  • click 'selector' — click an element.
  • interact 'selector' value='…' — type into an input.
  • wait <ms> — pause before the next step.
  • scroll 'selector' — scroll an element into view.

Tips

  • Run neko snap only in CI or locally when you want updated screenshots.
  • neko watch --no-snapframe keeps the browser toolchain out of a watch session entirely — nothing is captured, and snapframe is never auto-installed.
  • Commit the generated PNGs so visitors see images even if a future snap fails.
  • Path-relative writes are resolved against the page's location; keep all snap PNGs under assets/snap/ for tidiness.

04 同仓库更多 Skills

curiosity-ai
curiosity-ai/neko

youtube

Embed a YouTube video by pasting its URL on its own line. Neko auto-detects watch/youtu.be/embed forms and honours timestamp, autoplay, loop, and mute parameters.

★ 2
curiosity-ai
curiosity-ai/neko

workflow

Render a workflow diagram from a node-and-arrows DSL — labelled boxes with icons and optional badges, auto-arranged in columns. Use for pipelines, data flows, sign-off chains, ETL diagrams.

★ 2
curiosity-ai
curiosity-ai/neko

video

Author a video as a single Markdown file (`video:` front matter) — scenes separated by horizontal rules, every block animating in on its own, video components (lockup, swap, typewriter, scramble, counter, stats, chart, code, terminal, browser/window/phone, cursor, lower-third, captions, quote, steps, checklist, grid/card, cta, logo, media), scene transitions and camera moves, and a synthesized voice-over (`--- {narration}` parts, `narration:` voice, `neko voiceover`) — preview it in the browser and render it to MP4 with `neko render` (Playwright + ffmpeg). Also covers the `[!video]` component that embeds the rendered file in a page. Use when asked for a video, an animated explainer, a product or release teaser, a changelog video, a motion graphic, a narrated walkthrough, or an MP4 from docs content.

★ 2
curiosity-ai
curiosity-ai/neko

update-documentation

Workflow for updating Neko documentation — base every page on the real source code, never invent APIs, warn loudly when the source isn't available, and check that the page (and any changed `tesserae` sample) renders correctly with Playwright / snapframe / a visual check. Use whenever you add or edit docs that describe code, APIs, components, or live samples.

★ 2
curiosity-ai
curiosity-ai/neko

tesserae

Render a live Tesserae C# UI block — Neko compiles and executes the C# at build time and shows both the code and a working preview side-by-side. Use only when the project documents Tesserae or runs live C# samples.

★ 2
curiosity-ai
curiosity-ai/neko

table

Render a Markdown table with alignment, compact mode, and no-wrap option. Use for any tabular comparison, reference matrix, option list.

★ 2