agentleFS
ttalkkaklabttalkkaklab/social-flow/skills/branding/SKILL.md

branding

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Generates and refines a channel profile image until an adversarial reviewer passes it. Use when the user asks to "프로필 이미지 만들어", "채널 로고 만들어", "브랜딩 이미지 생성", "make a channel profile image", "generate a channel logo", or right after /social-flow:channel add on a channel with no logo. Collects an image brief through AskUserQuestion, generates 4 candidates in distinct style directions with gpt_image, opens a contact sheet for the human to pick a direction, then refines the pick through the brand-reviewer loop until it scores 95 or above with zero P0 defects, and installs the master plus platform resizes under data/[slug]/assets/branding/ with profile.md updated. Boundary — this makes the still profile image; the intro skill makes the moving opening.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call portal_channel_sync with action: "pull" before reading profile.md.

    line 19
  2. Very specific:

    Read data/<slug>/profile.md — if missing, stop and point to /social-flow:channel add.

    line 49
  3. Distinctive:

    Default directions (swap per the brief):

    line 80
  4. Distinctive:

    If the same finding repeats 2 rounds in a row, change strategy: mask-inpaint just the problem area, or flip the prompt to remove the …

    line 124
  5. Distinctive:

    Update the logo asset line in profile.md §1 to the master path (add it if missing).

    line 143

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Channel profile image — data/[channel]/assets/branding/

Call portal_channel_sync with action: "pull" before reading profile.md. A 409 conflict stops the run. A missing key, network error, 401 or 5xx gets one warning line, then continue with the local files. After the accepted branding files and profile path are installed, call it with action: "push" so the portal keeps the shared channel copy.

Produces the channel's profile image (logo/avatar) in this order: brief collection → 4 candidate generation → HITL direction pick (browser) → adversarial convergence (score 95). The final image is the brand master used on every platform account profile of the channel, so completion is declared only by the brand-reviewer agent's verdict, never by self-scoring.

Deliverables (path contract)

data/<slug>/assets/branding/
├── .work/                          # candidates, iterations, selection page (not committed)
│   ├── brief.md                    # collected brief + the 4 direction prompts
│   ├── candidate-{a,b,c,d}.png     # 4 direction candidates (1024×1024)
│   ├── selection.html              # browser selection page
│   └── iter-{0..5}.png / -192.png  # convergence-loop iterations + review resizes
├── <slug>-logo-master-1024.png     # final master
├── <slug>-logo-youtube-800.png     # per-platform resizes (sips-derived)
├── <slug>-logo-instagram-320.png
└── <slug>-logo-192.png

Procedure

1. Load the profile

Read data/<slug>/profile.md — if missing, stop and point to /social-flow:channel add. Take §1 identity, §3 THEME (accent/accent2/ink), and the banned subjects as fixed constraints of the brief. If a logo already exists, always confirm first — the new one will diverge from the profile already uploaded to platform accounts, and replacing it means re-uploading on every platform.

2. Collect the brief (AskUserQuestion — up to 4 questions; never re-ask what's already given)

  • Subject: mascot character (animal/object personification) | human-style character | abstract symbol | typography-led
  • Text in the image: none (recommended — letters smear at small avatar sizes) | 2–4 letter initials | channel name
  • Background: solid THEME ink | ink→accent gradient | scene-style (mini scene with props)
  • Required motifs: objects, actions, expressions that must appear (free input — suggest candidates from the channel identity, accept Other)

Record the answers in .work/brief.md — it's the baseline document for the convergence loop and re-runs.

3. Generate the 4 candidates

Generate 4 distinct style directions with gpt_image_text2img (size "1024x1024") and save them as .work/candidate-{a,b,c,d}.png. Branding is an exception to the local-first default path (image_local_generate) — this master becomes the channel's face, so it falls under the quality clause, and gpt-side rendering is also safer against brand-reviewer's broken-glyph P0. Under Codex or Grok the host image_gen makes the four instead (1:1, the same prompts, image.host in the ledger) — the quality clause is about glyphs, and the host tools render them as well as the API (owner directive 2026-09-07). Default directions (swap per the brief):

  • A flat-mascot — flat vector mascot, thick outlines, simple shapes
  • B render-3d — soft 3D character render, studio lighting
  • C emblem — minimal symbol/emblem, geometric shapes, negative space
  • D illust — painterly illustration, texture and lighting mood

Shared prompt skeleton (identical across all 4; only the style wording changes):

  • subject/motifs (from the brief) + explicit THEME hex ("dominant background #<ink>, key accent #<accent>") + "square 1:1 social media avatar, subject centered within the central 70% safe area for circular crop"
  • negative prompt: "no watermark, no signature, no photo frame, no stock-photo look"
    • "no text, no letters" when text is excluded + the profile's banned subjects

4. HITL direction pick (browser)

  1. Copy references/selection-template.html to .work/selection.html and sed-substitute the tokens ({{CHANNEL}}, {{IMG_A}}–{{IMG_D}}, {{LABEL_*}}, {{DESC_*}}) — the images sit in the same directory, so bare file names work.
  2. Open it in the default browser with open .work/selection.html — each candidate shows the original plus circular crop previews (large/small), the shape platforms actually display.
  3. Get the A–D pick via AskUserQuestion. Other can carry a blend ("B, but with A's expression") or a full-regeneration request — for either, fold the adjustment into §3 and repeat (selection rounds have no cap).

5. Adversarial convergence loop (brand-reviewer, target score ≥95 AND p0 = 0)

Copy the pick to .work/iter-0.png and iterate (hard cap 5 rounds):

  1. Make the small review copy: sips -z 192 192 iter-N.png --out iter-N-192.png.
  2. Delegate to the brand-reviewer agent (Agent) — pass the paths of iter-N.png, iter-N-192.png, profile.md, .work/brief.md, plus any unresolved findings from the previous round. Parse the verdict tail BRANDING_REVIEW: score=NN p0=N verdict=PASS|FAIL.
  3. PASS (score ≥95 and p0 = 0) → §6.
  4. FAIL → turn the findings into correction directives and revise with gpt_image_img2img.
    • Reference = the highest-scoring image so far (not the previous iteration — prevents regressions)
    • Prompt = the §3 direction prompt plus the correction directives only. No full rewrites — direction drift voids the HITL decision the user made.
    • If the same finding repeats 2 rounds in a row, change strategy: mask-inpaint just the problem area, or flip the prompt to remove the element entirely.
  5. At the hard cap, report the highest-scoring version + unresolved findings to the user as-is and ask: accept / keep looping / change direction (back to §4). Never dress up a score to pass.

6. Finalize, install, report

BR="data/<slug>/assets/branding"
cp "$BR/.work/iter-<final>.png" "$BR/<slug>-logo-master-1024.png"
sips -z 800 800 "$BR/<slug>-logo-master-1024.png" --out "$BR/<slug>-logo-youtube-800.png"
sips -z 320 320 "$BR/<slug>-logo-master-1024.png" --out "$BR/<slug>-logo-instagram-320.png"
sips -z 192 192 "$BR/<slug>-logo-master-1024.png" --out "$BR/<slug>-logo-192.png"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/channel/references/resolve-asset.py \
  --ensure data/<slug> logo master "branding/<slug>-logo-master-1024.png" "profile logo"

Update the logo asset line in profile.md §1 to the master path (add it if missing). Report: final score, iteration count, P0 history, deliverable path table + next steps — the channel intro video /social-flow:intro <channel> (an intro acted by the finalized character — optional), and the main content /social-flow:storyboard <channel> <topic>. State that uploading to each platform account profile is manual work (the platform APIs don't support profile-image replacement).

Rules

  • Verdict authority belongs to brand-reviewer alone — the skill runner never ends the loop by eyeballing the image as "looks good enough". No score manipulation, no self-scored completion.
  • Candidates and iterations live in .work/ (gitignored) — only the 4 final files go into assets/branding/.
  • Text in the image is excluded by default — 2–4 letter initials only when the user explicitly asks.
  • No likenesses of real people or existing characters — inherited from the README safety contract. Always include the profile's banned subjects in the negative prompt.
  • The direction (style) picked at the §4 HITL step never changes inside the convergence loop — if it must change, stop the loop and return to §4 for a fresh pick.

Additional Resources

Reference Files

  • references/selection-template.html — browser selection page for the 4 candidates (2×2 grid + circular crop previews, token substitution)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.