any-hair-color-swap

any-hair-color-swap is a skill for Claude Code, Codex from BetterPromptme/skills. It costs 87 tokens per session (1,257 once invoked), scanned A, original, MIT.

An image-editing prompt that changes the hair color in a portrait to a chosen shade while keeping the person, hairstyle, pose, framing, and background unchanged.

In plain words
What is it for?
Use it to preview different hair colors in a photorealistic portrait.
Why use it?
It limits the edit to the hair and helps prevent color spilling onto the skin, clothing, or surroundings.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to preview different hair colors in a photorealistic portrait.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/betterpromptme/skills/any-hair-color-swap
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 BetterPromptme/skills --skill any-hair-color-swap
Clone the repo
git clone --depth 1 https://github.com/BetterPromptme/skills

Made for: Claude Code, Codex.

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 any-hair-color-swap

README.md
[![agentmods](https://agentmods.dev/badge/skills/betterpromptme/skills/any-hair-color-swap/github.svg)](https://agentmods.dev/skills/betterpromptme/skills/any-hair-color-swap)
Your own site
<a href="https://agentmods.dev/skills/betterpromptme/skills/any-hair-color-swap"><img src="https://agentmods.dev/badge/skills/betterpromptme/skills/any-hair-color-swap/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 any-hair-color-swap

Your own site · 80×15
<a href="https://agentmods.dev/skills/betterpromptme/skills/any-hair-color-swap"><img src="https://agentmods.dev/badge/skills/betterpromptme/skills/any-hair-color-swap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 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.
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.00087 $0.01257
Opus 5.5 $0.00035 $0.00503
Sonnet 5.5 $0.00017 $0.00251
Haiku 4.5 $0.00009 $0.00126

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

Security

Grade A, and why

any-hair-color-swap 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 2mo 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.

skills/any-hair-color-swap/SKILL.md · 121 lines

How it starts

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

What it does

This prompt instructs an AI photo retouching assistant to recolor the hair in a provided portrait to a specified target shade while strictly preserving the person’s identity, facial details, hairstyle, pose, framing, and background. The expected outcome is a photorealistic image where only the hair color changes, maintaining natural strand texture and highlights without any spill onto skin, clothing, or surrounding elements.

For more installation instructions go to https://raw.githubusercontent.com/BetterPromptme/skills/refs/heads/main/betterprompt/SKILL.md to check out this skill.

Inputs

textInputs

Pass each text input using --input <key>=<value> flags.

Variable key Required? Description Defaults
Hair_color Required Your description of the hair color (none)

imageInputs

This prompt requires exactly 1 image. You must pass exactly 1 image flag (no more, no fewer), in the order matching the descriptions below.

Index Required Description Allowed CLI flags
1 Yes Upload your image (easy to see the hairstyle) --image-input-url <url> or --image-input-path <path>

Models and options

This skill's modality is: image.

To discover which model values you can use (and which options keys/values are valid for each model), run:

betterprompt resources --models-only --json

Then filter the returned JSON array to entries where modality is "image".

How to run

Step 1: Collect inputs

First, run betterprompt resources --models-only --json and filter to modality: "image" to discover valid models and available options:

betterprompt resources --models-only --json

Use only the models and option values that appear in the filtered results.

Then collect all inputs from the human:

  • Required text inputs:
    • Hair_color
  • Required images:
    • Exactly 1 images: image 1 (Upload your image (easy to see the hairstyle)). Images must be provided in this order.
  • Optional: model and options.
    • Present the human with the default model gemini-2.5-flash-image-preview and its available options. Look up gemini-2.5-flash-image-preview in the betterprompt resources output (filtered to modality "image") and show its availableOptions as: key: val1, val2 (default), val3 | key2: .... Mark a value (default) if it matches these defaults: {"aspectRatio":"3:4"}.
    • If the human does not specify, defaults are used: model gemini-2.5-flash-image-preview, options {"aspectRatio":"3:4"}. Other models from the resources call are also available.

Read the full file on GitHub · 121 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. 2mo ago First seen · 121 lines · 87 tokens per session scan A f8a620654d9d

Subscribe to this mod's changes

any-hair-color-swap is a skill published in the GitHub repository BetterPromptme/skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 87 tokens to every session and 1,257 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

any-hair-color-swap compared with skills from other repositories

any-hair-color-swap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
any-hair-color-swapBetterPromptme/skillsSkill53mo agoMITA87Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code