Agent skill

Code Snippet Images

by freekmurze in freekmurze/dotfiles

Generate beautiful code snippet images (PNG) for social media, tweets, LinkedIn, and documentation.

No licenceAuto-check: notesWriting & Content

Install Code Snippet Images

skills CLI
$ npx skills add freekmurze/dotfiles --skill code-snippet-images -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install freekmurze/dotfiles code-snippet-images --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/freekmurze/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/config/claude/skills/code-snippet-images .claude/skills/code-snippet-images && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-snippet-images
GitHub stars
1k
Token cost
~1.1k tokens
SKILL.md length
394 words
Files
4 (incl. scripts, assets)
Skills in repo
52
Repo updated
First seen
Licence
None found

At a glance

Generate beautiful code snippet images (PNG) for social media, tweets, LinkedIn, and documentation.

  • Works in 4 steps: Copy the template from… → Replace <!-- FILENAME --> with the title… → Replace <!-- CODE CONTENT --> with… → …
  • Asked to create code images
  • SKILL.md covers Quick Start, Design Specs, Syntax Highlighting and Example, plus 3 more sections
  • Runs Shell scripts from its folder

What it does

Code Snippet Images is an agent skill from freekmurze/dotfiles. Generate beautiful code snippet images (PNG) for social media, tweets, LinkedIn, and documentation. Creates light-themed, macOS-style window chrome screenshots from code using HTML templates and Chrome headless. Use when asked to create code images, tweet images, snippet screenshots, code cards, or visual code examples for sharing. Supports single snippets, multi-image sets, and 2x2 grid composites.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and assets (for example `scripts/render.sh`).

It sits in Writing & Content, covering Social media posts. It works with macOS, LinkedIn and X (Twitter).

When your agent uses it

  • Asked to create code images
  • Snippet screenshots
  • Visual code examples for sharing

Example prompts

  • “/code-snippet-images”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Copy the template from assets/template.html to a temp file
  2. Replace <!-- FILENAME --> with the title bar text (e.g., filename or description)
  3. Replace <!-- CODE CONTENT --> with syntax-highlighted HTML (see Syntax Highlighting below)
  4. Render with scripts/render.sh

What it can do on your machine

Read from SKILL.md and the folder at commit 8874280. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Snippet Images loads about 1.1k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 394 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~106
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:48
    | `.env-key` | green bold #22863a | `.env` keys |
  • NoteMentions a .env fileSKILL.md:49
    | `.env-val` | blue #032f62 | `.env` values |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 394 words (~1,101 tokens).

“Generate high-resolution code snippet PNGs using HTML templates rendered with Chrome headless at 2x scale.”

— opening of SKILL.md by freekmurze
name
code-snippet-images

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (scripts, assets) in config/claude/skills/code-snippet-images of freekmurze/dotfiles.

  • SKILL.md
  • assets/grid-2x2.html
  • assets/template.html
  • scripts/render.sh

Open the folder on GitHubat commit 8874280

Compare with similar skills

Code Snippet Images next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Snippet Images compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Snippet Images this skillfreekmurze/dotfiles1k—~1.1kAutomated safety check: NotesNone
Socialcoreyhaines31/marketingskills54k4 repos~4.5kAutomated safety check: PassMIT
Changelog Social RecapFlorianBruniaux/claude-code-ultimate-guide6.1k—~1.8kAutomated safety check: NotesCC-BY-SA-4.0
Content Writerchrispangg/deepagentsdk128—~3.3kAutomated safety check: PassMIT
X Reply Draftersergebulaev/x-skills1231 repos~1.6kAutomated safety check: PassMIT
Kortix Socialkortix-ai/suna20k—~1.8kAutomated safety check: PassCustom licence

Similar skills

  • Social

    coreyhaines31/marketingskills

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, or Facebook, or wants to do social listening and engagement triage.

    54k GitHub starsUsed in 4 repos~4.5k tokens
    Writing & ContentAuto-check passed
  • Changelog Social Recap

    FlorianBruniaux/claude-code-ultimate-guide

    Turns CHANGELOG.md entries for a release or a week into LinkedIn, Twitter/X, newsletter and Slack posts in French and English.

    6.1k GitHub stars~1.8k tokensUpdated yesterday
    Writing & ContentAuto-check: notes
  • Content Writer

    chrispangg/deepagentsdk

    Writing content across different platforms and styles. An agent skill from chrispangg/deepagentsdk.

    128 GitHub stars~3.3k tokensUpdated 7 mo ago
    Writing & ContentAuto-check passed
  • X Reply Drafter

    sergebulaev/x-skills

    Draft a reply or a value-add quote tweet for a specific X (Twitter) tweet from its URL.

    123 GitHub starsUsed in 1 repo~1.6k tokens
    Writing & ContentAuto-check passed
  • Kortix Social

    kortix-ai/suna

    Recipe: write platform-native social content for Kortix (LinkedIn posts, X threads, carousels, Instagram, TikTok, Reels and Shorts video scripts, content calendars) and repurpose one long-form piece…

    20k GitHub stars~1.8k tokensUpdated today
    Writing & ContentAuto-check passed
  • Outlier Post Finder

    ScrapeCreators/social-media-research-skills

    A skill your agent uses when the user wants to find posts, videos, reels, shorts, tweets, or social content that overperformed versus a creator, brand, or competitor baseline.

    3.4k GitHub stars~1.5k tokensUpdated 1 mo ago
    Writing & ContentAuto-check: notes

More from freekmurze/dotfiles

All 52 skills in this repo
  • Social Content

    freekmurze/dotfiles

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms.

    1k GitHub starsUsed in 23 repos~2.1k tokens
    Auto-check passed
  • Email Sequence

    freekmurze/dotfiles

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    1k GitHub starsUsed in 19 repos~2k tokens
    Auto-check passed
  • Referral Program

    freekmurze/dotfiles

    When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy.

    1k GitHub starsUsed in 17 repos~1.8k tokens
    Auto-check passed
  • Onboarding Cro

    freekmurze/dotfiles

    When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value.

    1k GitHub starsUsed in 16 repos~1.6k tokens
    Auto-check passed
  • Typefully

    freekmurze/dotfiles

    Create, schedule, and manage social media posts via Typefully.

    1k GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check: notes
  • Paywall Upgrade Cro

    freekmurze/dotfiles

    When the user wants to create or optimize in-app paywalls, upgrade screens, upsell modals, or feature gates.

    1k GitHub starsUsed in 15 repos~1.4k tokens
    Auto-check passed

Questions about Code Snippet Images

What does Code Snippet Images do?

Generate beautiful code snippet images (PNG) for social media, tweets, LinkedIn, and documentation. Code Snippet Images is an agent skill from freekmurze/dotfiles. Generate beautiful code snippet images (PNG) for social media, tweets, LinkedIn, and documentation.

When should I use Code Snippet Images?

Code Snippet Images fits situations like: asked to create code images; snippet screenshots; visual code examples for sharing.

How do I install Code Snippet Images in Claude Code?

Run `npx skills add freekmurze/dotfiles --skill code-snippet-images -a claude-code`. Or copy the skill folder (config/claude/skills/code-snippet-images in freekmurze/dotfiles) into .claude/skills/code-snippet-images in your project. Claude Code loads it when a task matches its description.

How do I install Code Snippet Images in Codex?

Run `npx skills add freekmurze/dotfiles --skill code-snippet-images -a codex`. Or copy the skill folder (config/claude/skills/code-snippet-images in freekmurze/dotfiles) into .agents/skills/code-snippet-images in your project. Codex loads it when a task matches its description.

Can I use Code Snippet Images in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add freekmurze/dotfiles --skill code-snippet-images -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-snippet-images, .gemini/skills/code-snippet-images, .github/skills/code-snippet-images and .opencode/skills/code-snippet-images in your project.

What does Code Snippet Images need to run?

Going by SKILL.md and its folder, Code Snippet Images needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Code Snippet Images access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Snippet Images safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Code Snippet Images use?

No licence was found for Code Snippet Images or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Code Snippet Images use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Snippet Images?

Skills that share tags, products or a category with Code Snippet Images: Social (coreyhaines31/marketingskills, 54k stars), Changelog Social Recap (FlorianBruniaux/claude-code-ultimate-guide, 6.1k stars), Content Writer (chrispangg/deepagentsdk, 128 stars) and X Reply Drafter (sergebulaev/x-skills, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Snippet Images?

freekmurze (a GitHub user) maintains it in freekmurze/dotfiles, which has 1,013 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 8, 2026.

Source: freekmurze/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.