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

channel

Skill1 starsChanged 4 months agoApache-2.0View on GitHub

Creates and edits the per-channel profile.md that every other skill reads first. Use when the user asks to "채널 만들어", "채널 추가", "채널 목록", "프로파일 수정", "add a channel", "set up a content channel", or wants to create or update the channel directory under data/. Writes data/[slug]/profile.md — target audience, tone, TTS voice, visual theme, target platforms, fact-check policy — the source of truth every storyboard, produce and publish run opens before anything else.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If it already exists, stop and point to update.

    line 57
  2. Very specific:

    When branding·intro·outro install finalized assets, they add rows via references/resolve-asset.py --ensure.

    line 107
  3. Very specific:

    Create the episode slot data/<slug>/episodes/.

    line 110
  4. Very specific:

    If accounts must be opened from scratch, point to the per-platform setup skills — they run account opening, branding, and API token …

    line 125
  5. Very specific:

    Read data/<slug>/profile.md (if missing, show the list and re-confirm).

    line 143
  6. Very specific:

    If the channel copy (description·bio) changed, pass the same gate as add step 5 again (check-style + growth-post-reviewer standalone …

    line 154
  7. Very specific:

    Run it in the background (run_in_background) so the session stays free, then hand the URL to the user.

    line 186
  8. Very specific:

    Stop it when the user is done (pkill -f references/serve.js) — a listener left behind is one more process the next session has to notice.

    line 193
  9. Distinctive:

    When the channel has a ttalkkakstory portal key, its characters live on the portal too — the record the storyboard import and the narration …

    line 198
  10. Very specific:

    Use view:"extra" and an explanatory label only for optional poses or details.

    line 206
  11. Very specific:

    Verify portal_character_get.imagesComplete (by id) before reporting the reference set ready, then use portal_character_tts_set with the …

    line 207

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 management — data/[channel]/profile.md

For update, call portal_channel_sync with action: "pull" before reading the profile. A 409 conflict stops the edit. A missing key, network error, 401 or 5xx gets one warning line, then continue with the local files. After add or update changes profile.md, call portal_channel_sync with action: "push"; use projectId on that first call only when the portal project name is not exactly the channel slug. The tool pins the mapping after success.

A channel is the top-level unit of the social-flow pipeline — one content channel (brand) the user runs maps to one directory under data/, and its output gets published to accounts on multiple SNS platforms (Threads·Instagram·Facebook·YouTube). Each channel has a data/<slug>/ directory and a profile.md (the channel profile); every storyboard/production/publish run that follows loads this profile as its first step and inherits tone, voice, theme, platforms, and verification policy.

data/
└── <channel slug>/
    ├── profile.md             # channel profile (SoT)
    ├── assets/                # channel-shared assets — catalog.md + branding/ intro/ outro/ …
    ├── growth/                # growth-loop state
    └── episodes/<topic slug>/ # episodes (created by the storyboard skill)

data/README.md and references/assets-catalog-template.md are the source of truth for the assets/ kind slots and catalog conventions. Keep only what gets reused in two or more episodes; single-episode artifacts go in the topic's .work/.

Argument parsing

[add|list|update|serve] [channel-name]

  • add <name> — create a new channel (procedure below)
  • list — Glob for data/*/profile.md and report channel, description, and publish platforms as a table
  • update <name> — read the existing profile.md and edit only the fields the user specifies
  • serve — open the channel browser in the browser (procedure below)
  • With no argument, show the current state via list, then ask what to do next

add procedure

  1. Pick the slug — convert the channel name to a kebab-case English slug and propose it (e.g. "베트남 생활" ("Vietnam life") → vn-life). It's used in directories and paths, so avoid Korean slugs. If it already exists, stop and point to update.
  2. Collect the core info — confirm the following with AskUserQuestion (at most 4 at a time; don't re-ask anything the user already gave):
    • Target audience (who watches, and in what moment)
    • Tone (polite explanatory (존댓말) / casual punchy (반말) / documentary narration, etc.) — the register decided here is the source of truth for every output that follows. The style gate doesn't change this register; it only strips AI tells (platform-guide references/korean-style.md)
    • Publish platforms (threads / instagram / facebook / youtube)
    • Fact-check policy (informational=research required / creative·daily-life=skip)
  3. Assign the TTS voice — from the mcp__social-flow__tts_list_voices result or the voice examples in references/profile-template.md, propose the engine (local Supertonic is the default — zero cost; gemini only when acted emotion is the channel's identity) and one voice that fits the tone, and pin down the stylePrompt. Once fixed, never change voiceName·stylePrompt — Gemini TTS interprets style directions as natural language, so if the wording drifts, the voice changes from episode to episode. Change them only when the user explicitly says so.
  4. Fix the visual theme — propose colors that fit the THEME contract of video-template.html (accent/accent2/ink/brand). The default is dark cinematic (ink navy + blue→violet gradient); channel personality comes from the accent color and the background mood prompt.
  5. Create profile.md — copy references/profile-template.md and fill it with the collected values. Leave no section empty — for unknown values, ask the user or use a well-grounded default and mark it (default).

    Settle the motion contract as part of the visual theme — whether the channel permits still-led episodes, which true-motion kinds count, the longest permitted still run, whether each moving shot needs a visible action, and the paid generated-video cap. Keep the template's off defaults only when the channel made no motion promise. Ken Burns, caption changes and swapping still images never count as true motion.

    Two more front-matter choices sit next to it. shortform_outro is on unless the channel deliberately ends its shorts on the CTA's last frame, and length_min_seconds / length_max_seconds narrow the short-form band. Leave the length keys out unless the channel has a reason to hold a tighter band — omitted, the format's own band applies.

    Channel copy (description·bio) is outgoing copy — the setup skills upload this text as the platform bio verbatim. After writing it, run the style gate (check-style --surface screen), then delegate to the growth-post-reviewer agent as a standalone surface; only copy that scores ≥95 with p0=0 goes into profile.md (up to 3 rounds; if it falls short, show the findings and refine together with the user).

    Shared-asset catalog — copy data/<slug>/assets/catalog.md from references/assets-catalog-template.md. Don't create empty kind folders. When branding·intro·outro install finalized assets, they add rows via references/resolve-asset.py --ensure.

    Create the episode slot data/<slug>/episodes/. Topic directories are opened under it by storyboard.

  6. Point to the SNS token directory — publishing credentials live in the per-channel directory ~/.config/social-flow/<slug>/ (same slug as data/<slug> — the publish tools' channel argument points at this directory. When a channel is specified there is no fallback to default tokens):

    mkdir -p ~/.config/social-flow/<slug> && chmod 700 ~/.config/social-flow/<slug>

    For token issuance and file conventions, point to the publish skill's references/token-setup.md, and after setup have the user confirm the accounts to publish to via sns_account_check (channel=<slug>). If accounts must be opened from scratch, point to the per-platform setup skills — they run account opening, branding, and API token issuance together with the user via ego lite: /social-flow:setup-threads <channel> · /social-flow:setup-instagram <channel> · /social-flow:setup-youtube <channel>. Storyboarding and production work without tokens — they only need to be ready by publish time.

  7. Report — show the full generated profile.md and point to the next steps: if there's no profile image (logo) yet, first /social-flow:branding <channel> (4 candidates → HITL direction pick → adversarial convergence); once the logo is fixed, optionally /social-flow:intro <channel> (a channel intro video where the character acts — 4 concepts HITL → veo generation), then pick a market-validated topic with /social-flow:topic-scout <channel> and go to /social-flow:storyboard <channel> <topic>.

update procedure

  1. Read data/<slug>/profile.md (if missing, show the list and re-confirm).
  2. Edit only the fields the user specifies — in particular, warn on TTS voice and THEME color changes: they clash with the tone of already-published videos, and the channel-shared outro (assets/outro/) must be rebuilt too. Warn on shortform_outro and the length band for a different reason — they change what gets made from here on. Flipping shortform_outro to off drops the spliced tail from every future short (the outro file stays on disk; it just stops being used), and narrowing length_min_seconds / length_max_seconds moves what the length check measures against, so a board that drew no flag last week comes back flagged today (check-scenes.js and the approval strip warn outside the band; only the 180s platform cap fails). Neither touches an episode that is already built. If the channel copy (description·bio) changed, pass the same gate as add step 5 again (check-style + growth-post-reviewer standalone ≥95·p0=0).
  3. Report before/after as a table.

serve procedure

references/serve.js serves data/ over HTTP on this machine — a channel picker at the top, 스토리보드 · 캐릭터 in the left nav. The storyboard list is a card per episode — cover (the first scene's image as scenes.js names it), title, frontmatter status, the stage episode-state.js derives, format, image count and blockers — grouped by playlist tabs: 전체 · one tab per distinct series: frontmatter line (the same line pundago's site reads; a (n/m) tail becomes the card's episode marker) · 재생목록없음 for episodes without one. A card opens the episode's own storyboard.html in place (it only references ./scenes.js, images/ and ../../../assets/characters/…, so it renders the same as from file://). The character list shows every panel image in assets/characters/<id>/ and the catalog note; the detail page renders identity.md, swaps the main panel from thumbnails, and plays voice.wav.

Panels come back face → front → back — the order the reference set goes into a generation call (../produce/references/video-model-selection.md §The character panels), so the card thumbnail and the detail page's opening panel are both the face. Naming isn't uniform across channels, so the rank is read off the filename: face/head is the face, back/rear is the rear, everything else (body, front, real, three-quarter) is a front view. Within one rank the shorter name wins — a variant earns its length from a suffix, so head-closeup.png leads head-closeup-pre-led.png and a card shows the canonical panel rather than an old take.

node "$CLAUDE_PLUGIN_ROOT/skills/channel/references/serve.js" data --open     # http://127.0.0.1:8390/
node "$CLAUDE_PLUGIN_ROOT/skills/channel/references/serve.js" data --port 8400
  1. Run it in the background (run_in_background) so the session stays free, then hand the URL to the user. If the port is taken, pass --port.
  2. It reads the disk on every request — nothing to regenerate after a skill edits a storyboard; reload the page.
  3. It binds 127.0.0.1 on purpose. data/ holds research notes, growth state and .work/ intermediates, so --host 0.0.0.0 (other machines, a cloudflared tunnel) is the user's call, never a default. Path segments starting with . are never served.
  4. Stop it when the user is done (pkill -f references/serve.js) — a listener left behind is one more process the next session has to notice.

register procedure (portal characters)

When the channel has a ttalkkakstory portal key, its characters live on the portal too — the record the storyboard import and the narration lane read. Register or refresh them with the portal_character_* tools after the local assets/characters/<id>/ folder is final: portal_character_create with identityDir (key from the folder, name·역할·생김새 from identity.md), then generate and upload all three required views with portal_character_image_upload: body.png → view:"front" (full body without a face), back.png → view:"back" (back full body without a face), and face.png → view:"face" (face close-up). Keep one view per file, the same clothing, proportions and visual style. Use view:"extra" and an explanatory label only for optional poses or details. Verify portal_character_get.imagesComplete (by id) before reporting the reference set ready, then use portal_character_tts_set with the channel's voice. Steps, field mapping and the update/delete rules: references/portal-characters.md. No key → the tools answer one line; skip the step.

Rules

  • profile.md is the only SoT — don't keep tone·voice·theme in session memory or other files. The storyboard/produce/publish skills always read this file first.
  • Platform signatures stay within platform grammar — define hashtags·CTA within the platform-guide skill's playbook limits (Threads hashtags ≤1, YouTube 3~5, etc.).
  • Channel deletion is not provided — the directory holds publish history, so deleting is irreversible. If the user wants it, point to adding status: archived at the top of profile.md.

Additional Resources

Reference Files

  • references/profile-template.md — standard profile.md template (section structure, THEME contract, voice examples)
  • references/assets-catalog-template.md — assets/catalog.md starter (kind+id table)
  • references/resolve-asset.py — resolve shared assets via catalog + well-known paths (--ensure adds a row, --selftest)
  • references/portal-characters.md — registering the channel's characters on the ttalkkakstory portal with portal_character_* (create from identityDir, image, TTS block, update, delete)
  • references/serve.js — the channel browser over HTTP: /api/channels, /api/channels/<slug>/storyboards, /api/channels/<slug>/characters[/<id>], and /files/<slug>/… static from data/ (dot segments refused, Range for audio/video). Zero dependencies, --selftest

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.