Agent skill

Managing Templates

by Comfy-Org in Comfy-Org/workflow_templates

Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync).

MITAuto-check passedFrontend & Design

Install Managing Templates

skills CLI
$ npx skills add Comfy-Org/workflow_templates --skill managing-templates -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Comfy-Org/workflow_templates managing-templates --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Comfy-Org/workflow_templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/managing-templates .claude/skills/managing-templates && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
managing-templates
GitHub stars
1.3k
Token cost
~2.8k tokens
SKILL.md length
938 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync).

  • Works in 12 steps: Obtain the Workflow JSON → Thumbnails → Entry in templates/index.json → …
  • Asked to: add a template
  • SKILL.md covers Shared Rules, Decide the operation, Adding a Workflow Template and Renaming a Template, plus 3 more sections
  • Calls python3, git and rg; reaches comfyanonymous.github.io

What it does

Managing Templates is an agent skill from Comfy-Org/workflow_templates. Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync). Use when asked to: add a template, create a new template, submit a workflow, rename a template, retitle a template slug, change a template name, rename workflow template, onboard a template, register a template, ship a template. Triggers on: add template, new template, new workflow, rename template, rename workflow, change template name, template rename.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization and Diffusion and image models. It works with ComfyUI. The repository describes itself as: ComfyUI template workflows. The licence is MIT.

When your agent uses it

  • Asked to: add a template
  • Create a new template
  • Submit a workflow
  • Rename a template

Example prompts

  • “Use the managing-templates skill to manage ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata…”
  • “/managing-templates”

Requirements

  • Python 3

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Obtain the Workflow JSON
  2. Thumbnails
  3. Entry in templates/index.json
  4. Bundle
  5. Embed Model Metadata
  6. Node Versions (Optional)
  7. Sync and Validation
  8. i18n
  9. Version (release PRs only)
  10. Discover every reference
  11. Rename assets with git mv
  12. Update text references

What it can do on your machine

Read from SKILL.md and the folder at commit 8be1f8c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • git
    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • comfyanonymous.github.io

    Also links to:

    • comfyui-embedded-workflow-editor.vercel.app

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Managing Templates loads about 2.8k tokens when it runs. Until then it costs about 130 tokens; SKILL.md has 938 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~130
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Comfy-Org/workflow_templates at commit 8be1f8c, republished under its MIT licence (© Comfy-Org). 938 words, ~2,802 tokens.

Download SKILL.mdSave it as .claude/skills/managing-templates/SKILL.md (or your agent's skills folder).
name
managing-templates
description
Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync). Use when asked to: add a template, create a new template, submit a workflow, rename a template, retitle a template slug, change a template name, rename workflow template, onboard a template, register a template, ship a template. Triggers on: add template, new template, new workflow, rename template, rename workflow, change template name, template rename.

Managing Templates

Covers adding new templates and renaming existing ones in this repository.

Related skills (do not replace this one):

  • /managing-bundles — move between bundles / categories / order
  • /managing-thumbnails — thumbnail-only work
  • /managing-translations — broader i18n work
  • /managing-mcp-index — MCP index only

Shared Rules

  • Never modify scripts, build tooling, or CI configuration.
  • Template names must be snake_case — no spaces, dots, or special characters.
  • name must match the workflow JSON filename (without .json).
  • Always run python3 scripts/sync/sync_bundles.py after editing bundles.json or renaming template assets.
  • Always validate after structural changes (see Validation below).
  • For new templates, assign media to media-assets-02 — see scripts/docs/frozen_bundles.md.
  • Bump root pyproject.toml only for intentional PyPI releases (release label).
  • Use double-quotes " in all JSON files.
  • Model download URLs must produce filenames that exactly match widgets_values in the workflow JSON.
  • Package copies under packages/*/src/**/templates/ are gitignored; regenerate via sync_bundles.py, do not hand-edit.

Decide the operation

User intentGo to
Add / create / register a new templateAdding a Workflow Template
Rename / change template slug / old_name → new_nameRenaming a Template

Adding a Workflow Template

Step 1 — Obtain the Workflow JSON

Place your_template_name.json in templates/.

Step 2 — Thumbnails

In templates/:

{template_name}-1.webp          # required
{template_name}-2.webp          # optional — compareSlider / hoverDissolve
VariantFiles needed
(default) / video / audio / zoomHover-1 only
compareSlider / hoverDissolve-1 and -2

Prepare as webp (lossy ~65%), reasonable resolution; animated webp for video thumbs before resize.

Step 3 — Entry in templates/index.json

Add the object to the right category's templates array.

Required: name, description, mediaType (image | video | audio | 3d), mediaSubtype (usually webp).

Common optional: title, tags, models, logos, date, openSource, minComfyUIVersion, requiresCustomNodes, thumbnailVariant, tutorialUrl, usage, size, searchRank, io, thumbnail.

json
{
  "name": "text_to_video_wan",
  "description": "Generate videos from text descriptions.",
  "mediaType": "image",
  "mediaSubtype": "webp",
  "tutorialUrl": "https://comfyanonymous.github.io/ComfyUI_examples/wan/"
}
Step 4 — Bundle

Add the name to the correct array in bundles.json. New media → media-assets-02.

bash
python3 scripts/sync/sync_bundles.py
Step 5 — Embed Model Metadata

For every model-loading node (UNETLoader, VAELoader, CLIPLoader, etc.), add properties.models[]:

FieldRequiredNotes
nameyesMust match widgets_values
urlyesDirect download URL
hashyesSHA-256
hash_typeyes"SHA256"
directoryyese.g. diffusion_models, vae, text_encoders
Step 6 — Node Versions (Optional)
json
"properties": {
  "Node name for S&R": "SaveWEBM",
  "cnr_id": "comfy-core",
  "ver": "0.3.26"
}
Step 7 — Sync and Validation
bash
python3 scripts/sync/sync_bundles.py
python3 scripts/validate/validate_templates.py
python3 scripts/validate/validate_thumbnails.py
Step 8 — i18n

sync_data.py does not invent translations. It only applies title / description strings that already exist in scripts/data/i18n.json into templates/index.{locale}.json. Technical fields are copied from English index.json; tags use mappings also stored in i18n.json.

  1. Maintain translations in scripts/data/i18n.json under templates.{name} (add or update locale strings). Until a locale string differs from English, that language stays pending / English fallback.
json
{
  "templates": {
    "your_template_name": {
      "title": {
        "en": "Your Template Title",
        "zh": "您的模板标题",
        "ja": "テンプレートのタイトル"
      },
      "description": {
        "en": "Your template description",
        "zh": "您的模板描述",
        "ja": "テンプレートの説明"
      }
    }
  }
}
  1. Then run sync so locale index files pick up the new/updated strings:
bash
python3 scripts/sync/sync_data.py --templates-dir templates

Order matters: edit i18n.json first, then sync. Re-run sync after any later translation edits. For coverage checks and broader i18n work, use /managing-translations.

Step 9 — Version (release PRs only)

See scripts/docs/frozen_bundles.md.

Full release knowledge (label flow, publish pipeline, quota gates, force publish): use /managing-releases.


Renaming a Template

Rename the template slug (name / filenames), not just the display title.

Example: audio_sync_so_lip_sync_video → api_sync_so_lip_sync_video.

Step 1 — Discover every reference
bash
rg -l --glob '!**/node_modules/**' --glob '!**/.git/**' 'OLD_NAME'
# also list assets
ls templates/OLD_NAME* thumbnail/OLD_NAME* output/OLD_NAME* 2>/dev/null

Typical touch points:

LocationWhat changes
templates/{name}.jsonrename file
templates/{name}-1.webp (and -2.webp if any)rename file
thumbnail/{name}_thumbnail.*rename if present
output/{name}.*rename if present
templates/index.jsonname, io.outputs[].file, thumbnail[] paths
templates/index.*.jsonsame string refs as English index
bundles.jsonbundle membership string
scripts/data/i18n.jsontranslation keys keyed by template name
templates/index.mcp.jsonif the template is already in MCP index
site/overrides/templates/{name}.jsonrename override file + internal name if present
packages/core/.../manifest.jsonregenerated by sync (do not hand-edit)

Do not bulk-replace inside unrelated binary files. Prefer an explicit file list over a repo-wide rg \| perl loop (large trees can hang).

Show full SKILL.md (378 more words)Show less
Step 2 — Rename assets with git mv
bash
git mv templates/OLD_NAME.json templates/NEW_NAME.json
git mv templates/OLD_NAME-1.webp templates/NEW_NAME-1.webp
# if present:
git mv templates/OLD_NAME-2.webp templates/NEW_NAME-2.webp
git mv thumbnail/OLD_NAME_thumbnail.mp4 thumbnail/NEW_NAME_thumbnail.mp4
git mv output/OLD_NAME.mp4 output/NEW_NAME.mp4

Adjust extensions to match what exists (.webp, .mp4, etc.).

Step 3 — Update text references

Replace OLD_NAME → NEW_NAME in every text/JSON file from Step 1, especially:

  • "name": "OLD_NAME"
  • bundles.json entry
  • io.outputs[].file (e.g. OLD_NAME.mp4)
  • thumbnail: ["thumbnail/OLD_NAME_..."]
  • i18n object keys

Use a targeted replace on the known file list (not a whole-repo scan that touches binaries).

Step 4 — Sync packages
bash
python3 scripts/sync/sync_bundles.py

Confirms manifest.json ids/filenames point at NEW_NAME, and regenerates gitignored package template copies.

Step 5 — i18n / MCP if needed
  • Rename the template key inside scripts/data/i18n.json (templates.OLD_NAME → templates.NEW_NAME, and any pending-tracking entries). Sync will not move those keys for you.
  • After the i18n key rename (and any translation string updates), run:
    bash
    python3 scripts/sync/sync_data.py --templates-dir templates
  • If locale files still contain OLD_NAME in name / media paths, finish those replaces before or after sync as needed.
  • If the template exists in templates/index.mcp.json, update it (or follow /managing-mcp-index).
Step 6 — Verify
bash
rg -l --glob '!**/node_modules/**' --glob '!**/.git/**' 'OLD_NAME' || echo '(none)'
ls templates/NEW_NAME.json templates/NEW_NAME-1.webp
python3 scripts/validate/validate_templates.py
python3 scripts/validate/validate_thumbnails.py

No remaining OLD_NAME refs should remain (except unrelated historical docs). Bundle membership stays the same unless the user also asks to move bundles (/managing-bundles).

Rename caveats
  • Renaming the slug is a breaking change for anything that pins the old template id (Comfy Cloud, docs links, MCP callers). Mention that if relevant.
  • Do not bump pyproject.toml for a rename-only PR unless it is an intentional release.
  • Display-only title/description edits are not a rename; edit index.json / i18n only.

Validation (shared)

bash
python3 scripts/sync/sync_bundles.py
python3 scripts/validate/validate_templates.py
python3 scripts/validate/validate_thumbnails.py

Common User Requests

User saysAgent action
"Add this workflow as a template"Adding Steps 1–9
"I have a JSON file, make it a template"Adding from Step 1
"Rename X to Y" / "把 X 重命名成 Y"Renaming Steps 1–6
"Change the template name / slug"Renaming (not title-only)
"Add a thumbnail for template X"Prefer /managing-thumbnails
"What bundle?"New media → media-assets-02; media-* and media-assets-01 frozen
"Validate my template"Validation section
"Sync translations" / "加翻译"Edit scripts/data/i18n.json first, then Adding Step 8 / /managing-translations

File Quick-Reference

File / DirPurpose
templates/Workflow JSON + thumbnails
templates/index.jsonMaster English manifest
templates/index.{locale}.jsonLocale manifests
thumbnail/, output/Optional preview/output media naming {name}_…
bundles.jsonTemplate → bundle
scripts/data/i18n.jsonSource of truth for title/description (and tag) translations; edit here before sync
scripts/sync/sync_bundles.pyManifest + copy assets into packages
scripts/sync/sync_data.pyApply i18n.json translations into locale indexes (does not invent translations)
scripts/validate/validate_templates.pyTemplate JSON validation
scripts/validate/validate_thumbnails.pyThumbnail validation
scripts/docs/frozen_bundles.mdFrozen legacy bundle policy

© Comfy-Org, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/managing-templates of Comfy-Org/workflow_templates.

Open the folder on GitHubat commit 8be1f8c

Compare with similar skills

Managing Templates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Managing Templates compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Managing Templates this skillComfy-Org/workflow_templates1.3k—~2.8kAutomated safety check: PassMIT
Docs I18n ReviewComfy-Org/docs299—~926Automated safety check: NotesGPL-3.0
Docs I18n TranslateComfy-Org/docs299—~3.2kAutomated safety check: NotesGPL-3.0
ComfyUI Frontend Extensionsjtydhr88/comfyui-custom-node-skills295—~3.7kAutomated safety check: PassMIT
Writing Storybook StoriesComfy-Org/ComfyUI_frontend2.1k—~2.2kAutomated safety check: PassGPL-3.0
Pre Commit CheckMooshieblob1/MooshieUI207—~825Automated safety check: PassAGPL-3.0

Similar skills

  • Docs I18n Review

    Comfy-Org/docs

    Review ComfyUI docs translation quality with LLM-as-a-judge (review-i18n.ts).

    299 GitHub stars~926 tokensUpdated today
    Frontend & DesignAuto-check: notes
  • Docs I18n Translate

    Comfy-Org/docs

    Translate ComfyUI Mintlify docs from English MDX to ja/zh/ko using translate-i18n.ts.

    299 GitHub stars~3.2k tokensUpdated today
    Frontend & DesignAuto-check: notes
  • ComfyUI Frontend Extensions

    jtydhr88/comfyui-custom-node-skills

    Guide to writing JavaScript extensions for the ComfyUI frontend from custom nodes, covering lifecycle hooks, widgets, sidebar tabs, commands, settings, toasts and dialogs.

    295 GitHub stars~3.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Writing Storybook Stories

    Comfy-Org/ComfyUI_frontend

    Write or update Storybook stories for Vue components in ComfyUIfrontend.

    2.1k GitHub stars~2.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Pre Commit Check

    Mooshieblob1/MooshieUI

    Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n.

    207 GitHub stars~825 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Comfyui Frontend Extensions

    artokun/comfyui-mcp

    Authoring ComfyUI v2 frontend extensions with @comfyorg/extension-api, covering defineNode/defineExtension/defineWidget, shell UI (sidebar tabs, commands, hotkeys), typed events, and handles.

    800 GitHub stars~5.4k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed

More from Comfy-Org/workflow_templates

All 10 skills in this repo
  • Editing Site Content

    Comfy-Org/workflow_templates

    Edits, updates, rewrites, or adds content on the ComfyUI template site pages.

    1.3k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Importing Subgraphs

    Comfy-Org/workflow_templates

    Imports and registers subgraph blueprints into the ComfyUI workflowtemplates repository.

    1.3k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Managing Bundles

    Comfy-Org/workflow_templates

    Manages template bundles, categories, and ordering in the ComfyUI template repository.

    1.3k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Managing MCP Index

    Comfy-Org/workflow_templates

    Builds and maintains templates/index.mcp.json for Comfy Cloud MCP tools.

    1.3k GitHub stars~1.9k tokensUpdated today
    Auto-check: notes
  • Managing Releases

    Comfy-Org/workflow_templates

    Manages releases for this repository: how version bumps, PyPI publishing, and GitHub releases work.

    1.3k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Managing Thumbnails

    Comfy-Org/workflow_templates

    Manages thumbnail and preview images for ComfyUI workflow templates.

    1.3k GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Works with

Questions about Managing Templates

What does Managing Templates do?

Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync). Managing Templates is an agent skill from Comfy-Org/workflow_templates. Manages ComfyUI workflow templates end-to-end: add new templates and rename existing ones (files, index metadata, bundles, i18n, package sync).

When should I use Managing Templates?

Managing Templates fits situations like: asked to: add a template; create a new template; submit a workflow; rename a template.

How do I install Managing Templates in Claude Code?

Run `npx skills add Comfy-Org/workflow_templates --skill managing-templates -a claude-code`. Or copy the skill folder (.claude/skills/managing-templates in Comfy-Org/workflow_templates) into .claude/skills/managing-templates in your project. Claude Code loads it when a task matches its description.

How do I install Managing Templates in Codex?

Run `npx skills add Comfy-Org/workflow_templates --skill managing-templates -a codex`. Or copy the skill folder (.claude/skills/managing-templates in Comfy-Org/workflow_templates) into .agents/skills/managing-templates in your project. Codex loads it when a task matches its description.

Can I use Managing Templates in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Comfy-Org/workflow_templates --skill managing-templates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/managing-templates, .gemini/skills/managing-templates, .github/skills/managing-templates and .opencode/skills/managing-templates in your project.

What does Managing Templates need to run?

Going by SKILL.md and its folder, Managing Templates needs the command-line tools its instructions call (python3, git and rg). Our summary lists: Python 3.

Does Managing Templates access the network?

SKILL.md names 2 domains. In commands or code: comfyanonymous.github.io; the agent is likely to contact it when it follows the instructions. As links in the text: comfyui-embedded-workflow-editor.vercel.app. This is read from the text; nothing was executed.

Is Managing Templates safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Managing Templates use?

Managing Templates is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Managing Templates use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Managing Templates?

Skills that share tags, products or a category with Managing Templates: Docs I18n Review (Comfy-Org/docs, 299 stars), Docs I18n Translate (Comfy-Org/docs, 299 stars), ComfyUI Frontend Extensions (jtydhr88/comfyui-custom-node-skills, 295 stars) and Writing Storybook Stories (Comfy-Org/ComfyUI_frontend, 2.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Managing Templates?

Comfy-Org (a GitHub organization) maintains it in Comfy-Org/workflow_templates, which has 1,270 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.

Source: Comfy-Org/workflow_templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.