create-2d-composition

create-2d-composition is a skill for Claude Code from pjt222/agent-almanac. It costs 77 tokens per session (2,954 once invoked), scanned A, original, MIT.

A toolkit for creating two-dimensional graphics with code, including SVG vector drawings, image compositing, diagrams, charts, and infographics.

In plain words
What is it for?
Use it to generate diagrams, scientific figures, badges, icons, charts, templates, or batches of visual variations.
Why use it?
It helps produce repeatable graphics and automate work that would otherwise require manual drawing and editing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-almanac plugin — 122 skills, 77 agents shipped together

Good fit Use it to generate diagrams, scientific figures, badges, icons, charts, templates, or batches of visual variations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pjt222/agent-almanac/create-2d-composition
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pjt222/agent-almanac --skill create-2d-composition
Clone the repo
git clone --depth 1 https://github.com/pjt222/agent-almanac

Made for: Claude Code.

Or install agent-almanac, the plugin that ships this one along with the rest of its 122 skills, 77 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-2d-composition

README.md
[![agentmods](https://agentmods.dev/badge/skills/pjt222/agent-almanac/create-2d-composition/github.svg)](https://agentmods.dev/skills/pjt222/agent-almanac/create-2d-composition)
Your own site
<a href="https://agentmods.dev/skills/pjt222/agent-almanac/create-2d-composition"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/create-2d-composition/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-2d-composition

Your own site · 80×15
<a href="https://agentmods.dev/skills/pjt222/agent-almanac/create-2d-composition"><img src="https://agentmods.dev/badge/skills/pjt222/agent-almanac/create-2d-composition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.02954
Opus 5.5 $0.00031 $0.01182
Sonnet 5.5 $0.00015 $0.00591
Haiku 4.5 $0.00008 $0.00295

Measured 1mo ago against content hash cd51dcf871cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-2d-composition scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

i18n/caveman-lite/skills/create-2d-composition/SKILL.md · 418 lines

How it starts

The opening of the file, as written. The whole thing — 418 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create 2D Composition

Generate 2D graphics programmatically using SVG construction, diagram layout algorithms, image compositing, and batch processing workflows. Covers vector graphics generation, raster image manipulation, typography, and automated production of charts, diagrams, and infographics.

When to Use

  • Generating diagrams, flowcharts, or infographics programmatically
  • Creating reproducible scientific figures or publication graphics
  • Automating production of badges, icons, or visual assets
  • Compositing multiple images or data visualizations
  • Building custom chart types not available in standard libraries
  • Batch generating graphics with parameter variations
  • Creating SVG templates for web or print applications

Inputs

Input Type Description Example
Layout specification Configuration Dimensions, margins, grid layout Canvas 800x600px, 20px margins
Visual elements Data/Assets Shapes, text, images, data points Rectangle coordinates, labels, icons
Style parameters CSS/Attributes Colors, fonts, stroke widths, opacity fill="#3366cc", stroke-width="2"
Data sources Files/Arrays Values to visualize or annotate CSV data, JSON configuration
Output format String SVG, PNG, PDF, composite formats output.svg, 300 DPI PNG

Procedure

1. Set Up Python Environment

Install required libraries for 2D composition:

# Core libraries
pip install svgwrite pillow cairosvg

# Optional: advanced features
pip install drawsvg reportlab pycairo

# For data-driven graphics
pip install matplotlib numpy pandas

Got: Libraries installed successfully If fail: Check Python version (3.7+), use virtual environment to avoid conflicts

2. Create Basic SVG Graphics

Generate SVG using svgwrite:

import svgwrite
from svgwrite import cm, mm

def create_basic_svg(output_path):
    """Create a simple SVG graphic."""
    # Initialize drawing (use mm for precise dimensions)
    dwg = svgwrite.Drawing(output_path, size=('180mm', '120mm'), profile='full')

    # Add background rectangle
    dwg.add(dwg.rect(
        insert=(0, 0),
        size=('100%', '100%'),
        fill='white'
    ))

    # Add shapes
    dwg.add(dwg.circle(
        center=(90*mm, 60*mm),
        r=30*mm,
        fill='lightblue',
        stroke='navy',
        stroke_width=2
    ))

    dwg.add(dwg.rect(
        insert=(30*mm, 30*mm),
        size=(60*mm, 40*mm),
        fill='lightgreen',
        stroke='darkgreen',
        stroke_width=2,
        rx=5,  # Rounded corners
        ry=5
    ))

    # Add text
    dwg.add(dwg.text(
        'Example Graphic',
        insert=(90*mm, 20*mm),
        text_anchor='middle',
        font_size='18pt',
        font_family='Arial',
        fill='black'
    ))

    dwg.save()
    print(f"Saved: {output_path}")

Read the full file on GitHub · 418 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 418 lines · 77 tokens per session scan A cd51dcf871cc

Subscribe to this mod's changes

create-2d-composition is a skill published in the GitHub repository pjt222/agent-almanac (42 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 2,954 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review-a11y

Internal accessibility review pass of the agentic-workflow review pack — composed in-turn by review-change and product-audit; not a menu entry. Checks the changed user-facing surface for accessibility: semantics, keyboard, focus, contrast, and ARIA correctness — applies only to user-facing surfaces. Findings only…

gtrabanco/agentic-workflow · 70 tokens

review-design

Internal UI/UX design review pass of the agentic-workflow review pack — composed in-turn by review-change and product-audit; not a menu entry. Checks the changed UI against the project's design doc: consistency, states, responsiveness, and reuse — applies only when the project has a UI and the change touches it.…

gtrabanco/agentic-workflow · 75 tokens

eval-graphics

Turn an eval study's numbers into on-brand, publish-ready figures using the Newsjack chart room (the eval design system), then validate them with Playwright. For producing the charts in a published eval/data study.

elvisun/newsjack · 47 tokens

cocosketch

Generate visual draw.io diagrams from CocoPlus artifacts via a deterministic seven-step pipeline.

Snowflake-Labs/cocoplus · 20 tokens

aws-drawio-architecture-diagrams

Creates professional AWS architecture diagrams in draw.io XML format (.drawio files) using official AWS Architecture Icons (aws4 library). Use when the user asks for AWS diagrams, VPC layouts, multi-tier architectures, serverless designs, network topology, or draw.io exports involving Lambda, EC2, RDS, or other AWS…

giuseppe-trisciuoglio/developer-kit · 76 tokens

shadcn-ui

Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like…

giuseppe-trisciuoglio/developer-kit · 74 tokens