跳到正文
TakoAPI
返回技能列表

snipgrapher

由 mcollina 提供

Coding Agents & IDEs
350下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Configure and use snipgrapher to generate polished code snippet images.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install mcollina/snipgrapher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接