Add Rect

Add a rectangle to an existing SVG file

brxs Updated

File contents

Add Rectangle

Adds a rectangle to an existing SVG file.

Usage

node .claude/skills/add-rect/index.js <svg-file> <x> <y> <width> <height> <fill>

Parameters

  • svg-file - Path to the SVG file to modify
  • x - Top-left X coordinate
  • y - Top-left Y coordinate
  • width - Rectangle width
  • height - Rectangle height
  • fill - Fill color as hex (default: #1E88E5)

Example

node .claude/skills/add-rect/index.js output/art.svg 100 450 60 180 '#1E88E5'

brxs/claude_svg_skills/tree/main/.claude/skills/add-rect commit 5e2d57ea06

Frequently asked questions

npx skillmds@latest add brxs/add-rect