Skip to content
Back to skills

Recolor

ASecurity

Change colors in an SVG file. Map old colors to new colors. Triggers on: recolor svg, change svg color, replace color in svg, swap colors.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 23, 2026
ai-agentsapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned October 23, 2026

npx -y skills add svgnew/plugin --skill recolor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recolor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recolor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/svgnew-recolor/badge)](https://www.skillsdirectory.com/skills/svgnew-recolor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: recolor
description: "Change colors in an SVG file. Map old colors to new colors. Triggers on: recolor svg, change svg color, replace color in svg, swap colors."
---

# Recolor SVG

Replace colors in an SVG by mapping old colors to new ones.

## Before you start

Use the svg.new MCP tools from this plugin (named `mcp__plugin_svg-vectorizer_svg-new__*`, or `mcp__svgnew__*` if the user connected the server directly). They sign in with the user's svg.new account, so no API key is involved. If the tools are missing or say sign-in is needed, ask the user to run `/mcp`, pick the svg.new server and choose **Authenticate**.

## Steps

1. Read the SVG named in the request or `$ARGUMENTS`.
2. Work out which colors to replace. Ask the user if they didn't say.
3. Build a color map such as `{ "#ff0000": "#0000ff" }`.
4. Call `recolor_svg` with `color_map` and the SVG, either as `svg` (the file's text) or as `svg_url` (a public link, such as a download link from an earlier result).
5. Write the result back to the file, or to a new file if the user prefers. If it came back as a download link, save it with `curl -sL -o <file> "<link>"`.

## Notes

- Free: no credits are used.
- Colors match case-insensitively. Hex (#RGB, #RRGGBB), named colors and rgb() values all work.
- Fill colors change; strokes are left alone.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.