Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

snipgrapher

bởi mcollina

Coding Agents & IDEs
350Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Configure and use snipgrapher to generate polished code snippet images.

Mô tả

Kỹ năng này làm gì

snipgrapher converts source code files into rendered images in SVG, PNG, or WebP formats via a CLI. It supports named profiles and project-level config for reproducible output, and can process batches of snippets in a single run.

Named profiles and a persistent project config let you render consistent images repeatedly without re-specifying options each time, unlike ad-hoc screenshot tools.

Khi nào nên dùng

  • Generating code images for README files
  • Creating snippet assets for social media posts
  • Producing visuals for changelogs or release notes
  • Batch-exporting highlighted code for documentation sites
  • Automating snippet rendering in a build pipeline

Quy trình ví dụ

ĐẦU VÀO

User asks: render my auth.ts snippet as a PNG for a blog post

AGENT
  1. 1

    Run snipgrapher init to create a project config if one does not exist

  2. 2

    Define a profile in the config with the desired theme, font, and output format set to PNG

  3. 3

    Run the snipgrapher CLI targeting auth.ts with the named profile

  4. 4

    Confirm the output file is written to the specified output path

ĐẦU RA

A PNG image of the auth.ts code snippet rendered with the configured profile settings

Cài đặt

clawhub install mcollina/snipgrapher

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết