Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Code Card

    1

    Render code into Carbon-style high-res code card PNGs; single snippet or Markdown batch; offline-capable with embedded highlight.js.

    Free

    Security scanned
    Code Card

    Code Card

    Example session with this skill installed

    Convert the code blocks in this README.md to images using the nord theme.

    • Read your context and instructions
    • Compiled the code card

    I have processed README.md and converted the detected code blocks into Carbon-style images using the Nord theme.

    The original code blocks have been replaced with image references in a new file, and ASCII box-art diagrams were preserved as text.

    Render Summary

    TypeCountAction
    Code Blocks3Rendered to PNG
    ASCII Art1Preserved as text
    Output File1README-cards.md
    Image Path-./README-code-images/

    Generated References in README-cards.md

    
    # Project Overview
    
    Check out our main logic:
    
    ![code-1-python-a1b2c3d4](./README-code-images/code-1-python-a1b2c3d4.png)
    
    And the configuration setup:
    
    ![code-2-yaml-e5f6g7h8](./README-code-images/code-2-yaml-e5f6g7h8.png)
    

    Next steps

    1. Review README-cards.md to ensure the image placement is correct.
    2. Run mv README-cards.md README.md if you want to overwrite the original file.
    3. Upload the ./README-code-images/ folder alongside your Markdown file when publishing.
    Generated References in README-cards.md

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Sharing raw code blocks in documentation or articles often looks unpolished and lacks visual impact. This skill converts plain text code into high-definition, Carbon-style images with macOS window decorations and syntax highlighting.

    What it does

    • Carbon-style rendering: Generates high-definition (3x Retina) PNG images featuring macOS window controls and line numbers.
    • Batch processing: Parses Markdown files to detect code blocks, renders them as images, and replaces the text blocks with image references automatically.
    • Language auto-detection: Uses highlight.js to infer languages from file extensions or Markdown tags for accurate syntax coloring.
    • Idempotent output: Uses content hashing for filenames to prevent duplicate image generation on repeated runs.
    • ASCII preservation: Intelligently skips ASCII box-art diagrams to keep architectural drawings as editable text.
    • Theme support: Includes 6 built-in themes like Dracula and Nord, plus support for custom JSON theme definitions.

    How it works

    1. Identify: Point the agent to a .md file for batch conversion or any source code file for a single snippet render.
    2. Render: The skill uses a local playwright instance to capture the code in a headless browser environment.
    3. Replace: For Markdown files, it generates a new -cards.md file with image links while preserving the original structure.
    4. Finalize: Images are saved to a local directory for deployment or manual sharing.

    Frameworks & tools

    Built with Node.js and Playwright. It uses a local copy of highlight.js for offline syntax highlighting and supports system-installed Chrome/Edge to avoid heavy binary downloads.

    Why this beats prompting it yourself

    Generic LLMs cannot generate actual PNG files or handle the layout logic of window borders and retina scaling. This tool automates the multi-step process of rendering, file management, and Markdown reference updating that would otherwise require manual screenshotting and editing.

    Use cases

    • Technical blogging: Convert README code snippets into social-media-ready images for platforms like WeChat or X.
    • Documentation: Standardize the look of code examples across a large Markdown-based documentation site.
    • Social sharing: Quickly turn a local Python or Rust file into a polished "Carbon" image for sharing.
    • Presentation slides: Generate consistent, high-contrast code visuals for talks and demos.

    Known limitations

    Requires Node.js and the Playwright npm package in the execution environment. High-quality Chinese font rendering depends on the host system having those fonts installed.

    Requires Node.js and Playwright. Best results on systems with Chrome/Edge installed. Chinese characters require system fonts. Skip logic for Mermaid/PlantUML blocks.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 11 days ago

    • Free with an Agensi account

    Requires

    playwright
    Node.js

    Permissions

    Terminal / Shell
    Browser
    Network Access
    Read Files
    Write Files
    Listed11 days ago

    What's inside

    Frequently Asked Questions

    The skill is designed for AI agents with file system access, such as those running on local environments or developer-focused platforms that support Node.js and browser-based rendering via Playwright.

    Yes, it intelligently parses Markdown files to detect multiple code blocks, renders each one into a unique high-definition image, and generates a new version of your file with the images already linked.

    The skill includes 6 popular built-in themes like Dracula and Nord, and it also supports custom JSON definitions if you need to match your specific brand or site aesthetics.

    It uses content hashing to name files, meaning the skill won't waste resources re-generating an image if the code snippet hasn't changed between runs.

    While the skill uses Playwright to capture the render, it is configured to use your system's existing Chrome or Edge browser to keep the installation lightweight and avoid large binary downloads.

    You receive the full skill logic for code-to-image conversion, batch Markdown processing capabilities, and the pre-configured theme set, all ready to be integrated into your AI agent workflow.

    New in Image & Video