knowledge-batch-task-lifecycle
Skill by bytedance
Explains the full lifecycle of batch tasks in a ComfyUI custom node, from parameter combination to queue execution, state aggregation, cancellation and file cleanup. It is for developers debugging or changing that flow.
Install knowledge-batch-task-lifecycle
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bytedance/comfyui-lumi-batcher /tmp/comfyui-lumi-batcher && mkdir -p ~/.claude/skills && cp -r /tmp/comfyui-lumi-batcher/.trae/knowledges/batch-task-lifecycle ~/.claude/skills/knowledge-batch-task-lifecycleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install knowledge-batch-task-lifecycle in Claude Code
git clone --depth 1 https://github.com/bytedance/comfyui-lumi-batcher /tmp/comfyui-lumi-batcher && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/comfyui-lumi-batcher/.trae/knowledges/batch-task-lifecycle ~/.gemini/antigravity-cli/skills/knowledge-batch-task-lifecycleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install knowledge-batch-task-lifecycle in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a code map for the batch task lifecycle in a ComfyUI custom node. It covers how parameter combinations are turned into multiple prompts, how those prompts are submitted to the ComfyUI queue, and how execution is tracked with monkey-patched hooks. It also covers how sub-task statuses roll up into a batch status, how queued tasks are cancelled, and how files are cleaned up on delete.
The source lists the key files, HTTP endpoints (create, cancel, delete), state machine transitions, patterns and gotchas. It also points to child nodes for parameter creation, queue execution, and cancel and delete. It is aimed at developers who need to trace an end-to-end task issue, change status transitions, debug a stuck task, or add a new lifecycle stage.
Written from the project's SKILL.md and checked against it.
What it can do
- Parameter cross-product creationExplains how batch parameters are combined with itertools.product into multiple prompt variants.
- Queue submission trackingDescribes the monkey-patched hooks that track task start and completion in the ComfyUI queue.
- Status aggregationMaps how sub-task results roll up into batch states such as RUNNING, SUCCESS and PARTIAL_SUCCESS.
- Cancellation and interruptCovers how a batch is cancelled in the database and cleaned up from the queue by a background thread.
- File cleanup and deleteCovers the delete endpoint and the path whitelist checks that guard file operations.
- Restart recoveryDescribes how unfinished tasks are set to terminal states after a service restart.
What you need
- ComfyUI, with the extension loaded from custom_nodes
- SQLite (Python standard library)
Try asking
- Explain how a batch task moves from creation to completion in this codebase.
- Help me debug why a batch task is stuck in RUNNING.
- Show me where sub-task statuses are aggregated into the batch status.
Good to know
- Restart recovery marks unfinished tasks as terminal and does not run remaining sub-tasks.
- Monkey patches apply at import, so reloading the extension without restarting ComfyUI can stack wrappers.
- Status aggregation is event-driven, so a missed hook event can leave a batch stuck.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .trae/knowledges/batch-task-lifecycle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to knowledge-batch-task-lifecycle
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
knowledge-batch-task-lifecycle: common questions
What does the batch task lifecycle cover?
The source covers parameter cross-product creation, monkey-patched queue tracking, state aggregation, queue cancellation and file cleanup.
Why can a batch task get stuck?
The source says status aggregation depends on task_done hook events, so a missed event can leave a batch in RUNNING or WAITING. A fallback check_status thread exists.
What is excluded from this skill?
Result processing and output media handling, resource upload management and frontend UI logic are excluded and referenced in other nodes.
How do I install knowledge-batch-task-lifecycle?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is knowledge-batch-task-lifecycle free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is knowledge-batch-task-lifecycle safe to use?
It scores 71 of 100. Grades: maintenance B, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to knowledge-batch-task-lifecycle?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
