geometric-elements

Generate decorative geometric elements (corners, lines, arcs, frames) with precise control over colors, gradients, and transparency. Use when creating design assets, slide decorations, or any vector-like graphics programmatically. Can also analyze reference images and recreate geometric patterns.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "geometric-elements" with this command: npx skills add thepexcel/agent-skills/thepexcel-agent-skills-geometric-elements

Geometric Elements Generator

Create decorative geometric elements with code using Pixie-python.

Quick Start

# Install dependency (first time only)
pip install pixie-python

# Generate element (ask user for brand color or check their brand guidelines)
python .claude/skills/geometric-elements/scripts/generate.py corner-accent \
  --color "#HEX_COLOR" \
  --size 200 \
  --output media/output/corner.png

Important: Always ask user for brand colors or check their brand guidelines skill (e.g., /thepexcel-brand-guidelines) before generating.

Available Elements

ElementCommandDescription
Basic Shapesshapecircle, star, heart, hexagon, arrow, etc.
Corner Accentcorner-accentL-shaped corner decoration
Line Dividerline-dividerHorizontal divider with gradient
Arc Accentarc-accentCurved arc
Frame Borderframe-border4-corner bracket frame
PatternpatternRepeating dots/crosses/diamonds
MandalamandalaSacred geometry / complex patterns

Common Options

OptionDescriptionDefault
--colorPrimary color (hex)#D4A84B
--color2Secondary color for gradientNone
--sizeElement size in pixels200
--widthCanvas width400
--heightCanvas height400
--strokeStroke width4
--outputOutput file pathoutput.png
--gradientlinear or radialNone
--opacity0.0-1.01.0
--fillFill shape (vs stroke)False

Examples

Basic Shapes

# Circle (stroke)
python scripts/generate.py shape --style circle --color "#HEX" --size 100 --stroke 3

# Star (filled)
python scripts/generate.py shape --style star --color "#HEX" --size 100 --sides 5 --fill

# Available: circle, ellipse, rectangle, square, rounded-rect, triangle,
#   polygon, star, diamond, ring, cross, arrow, heart, hexagon, octagon, crescent

Corner Accent

python scripts/generate.py corner-accent --color "#HEX" --size 150 --stroke 4

Gradient Line Divider

python scripts/generate.py line-divider --color "#HEX" --color2 "#FFFFFF" --gradient linear --width 800

Mandala (Sacred Geometry)

python scripts/generate.py mandala --color "#CCC" --bg "#0A0A0A" --size 400 --rings 8 --layers 4 --stroke 1.5

→ More examples: references/element-catalog.md

Custom Elements (On-the-fly)

For complex patterns not in predefined commands, write Python directly:

import pixie
import math

image = pixie.Image(400, 400)
paint = pixie.Paint(pixie.SOLID_PAINT)
paint.color = pixie.Color(0.83, 0.66, 0.29, 1.0)  # RGB 0-1 range

ctx = image.new_context()
ctx.stroke_style = paint
ctx.line_width = 2
ctx.stroke_segment(50, 50, 350, 350)

image.write_file("output.png")

→ Full API: references/pixie-api.md

From Reference Image

User can send reference images for Claude to analyze and recreate:

  1. User sends image — screenshot, design reference, pattern
  2. Claude analyzes — identifies shapes, colors, proportions
  3. Claude writes code — using pixie-python API
  4. Output — PNG ready to use

Tips for good reference: Clear image, geometric patterns (not photos), specify hex colors if needed.

Tips

  1. Transparent bg — All outputs have transparent background by default
  2. High DPI — Use --size 2x for retina displays
  3. Gradients — Combine --gradient linear with --color and --color2
  4. Brand colors — Always confirm with user or their brand guidelines first

Related Skills

  • /graphic-designer — Use elements in graphic designs
  • /thepexcel-brand-guidelines — Brand colors for elements
  • /pptx — Decorative elements for presentations

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

graphic-designer

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

power-query-coaching

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

manage-business-strategy

No summary provided by upstream source.

Repository SourceNeeds Review