flux-kontext

flux-kontext is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 73 tokens per session (2,108 once invoked), scanned A, a copy of flux-kontext, MIT.

An image-generation and editing tool that uses Flux Kontext through fal.ai. It can change parts of an image, replace backgrounds, transfer styles, and keep a person or object consistent across edits.

In plain words
What is it for?
Use it for local image edits, background replacement, style changes, product or social-media visuals, concept sketches, and image variations.
Why use it?
It helps when you need precise changes without losing the identity or appearance of the original subject.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for local image edits, background replacement, style changes, product or social-media visuals, concept sketches, and image variations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/flux-kontext
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 sutchan/Agent-Skills-Hub --skill flux-kontext
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

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 flux-kontext

README.md
[![agentmods](https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flux-kontext/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/flux-kontext)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/flux-kontext"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flux-kontext/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 flux-kontext

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/flux-kontext"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flux-kontext.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,108 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 97% copy Near-identical to another mod 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.00073 $0.02108
Opus 5.5 $0.00029 $0.00843
Sonnet 5.5 $0.00015 $0.00422
Haiku 4.5 $0.00007 $0.00211

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

Security

Grade A, and why

flux-kontext 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.

Origin

This is a copy

97% identical to flux-kontext — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/flux-kontext/SKILL.md · 160 lines

How it starts

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

Flux Kontext Pro — Pro Pack on RunComfy

runcomfy.com · Model page · GitHub

Black Forest Labs' Flux 1 Kontext Pro — single-reference precise local image edit — hosted on the RunComfy Model API. Strong prompt control, consistent outputs, high fidelity.

npx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g

When to pick this model (vs siblings)

You want Use
Single-image precise local edit ("she's now holding X") Flux Kontext
High-fidelity preservation of source identity Flux Kontext
Batch edits across 1–20 images Nano Banana Edit
Edit multilingual / embedded text in image GPT Image 2 edit
Generate from scratch, no source image Flux 2 Klein

If the user said "Flux Kontext" / "kontext" / "BFL Kontext" explicitly, route here regardless.

Prerequisites

  1. RunComfy CLI — npm i -g @runcomfy/cli
  2. RunComfy account — runcomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

blackforestlabs/flux-1-kontext/pro/edit

Field Type Required Default Notes
prompt string yes — Single declarative edit instruction.
image string yes — Single source image URL (publicly fetchable HTTPS).
aspect_ratio enum no (input) Pick from supported W:H options on the model page.
seed int no — Reuse for variant comparisons.

The schema is intentionally minimal — Kontext leans on prompt + single ref. For multi-image or web-grounded edits, route to Nano Banana Edit.

How to invoke

Default — local edit, preserve everything else:

Read the full file on GitHub · 160 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 Changed · +73 tokens per session 98c12b923233
  2. 2mo ago First seen · 160 lines · 0 tokens per session scan A 6a2c7c041da9

Subscribe to this mod's changes

flux-kontext is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (2 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 2,108 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to flux-kontext, differing in 20 lines, and is treated as a copy.

Related

flux-kontext compared with skills from other repositories

flux-kontext next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flux-kontextsutchan/Agent-Skills-HubSkill2yesterdayMITA73Claude Code, Codex
writing-skillsobra/superpowersSkill314k4d agoMITA20Claude Code
writing-plansobra/superpowersSkill314k4d agoMITA21Claude Code
skill-authoringmateaix/mateclawSkill1.2k3d agoApache-2.0A18Claude Code, Codex
skill-creatorluongnv89/asmSkill9662d agoMITA60Claude Code
iflytek-hyper-ttsiflytek/iFly-SkillsSkill2144d agoApache-2.0A92Claude Code, Codex
iflytek-pdf-image-ocriflytek/iFly-SkillsSkill2144d agoApache-2.0A81Claude Code, Codex