5127cf36bbfbbc88dfcbb019c86a0808d1482097
Design for M2 milestone covering: - Layer 2 semantic validator (5 rules, M1 feature subset) - Standalone CLI with human + --json output modes - schema.json as single source of truth (exported from core/schema.py) - Skill pack for AI-as-storyboarder workflow: SKILL.md, PROMPT_TEMPLATE, README, and 5 examples each with screenplay.md + output.json - Canvas-size defaults (1080x1920) to anchor AI composition judgments Layer 3 pre-generation checks, shape_group/polygon rules, and non-custom page_template dimension tables are explicitly deferred to later milestones. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tk_comfyui_batch_image
ComfyUI custom node set for batch comic-page generation from a JSON script.
Status: M1 — Rectangle vertical-stack. See docs/superpowers/specs/2026-04-23-comfyui-comic-batch-node-design.md for the full design; docs/superpowers/plans/ for milestones.
Install
Clone this repo into ComfyUI/custom_nodes/, then:
pip install -e .[dev]
Restart ComfyUI.
Nodes
| Node | Purpose |
|---|---|
Comic Script Loader |
Load + validate JSON; emits COMIC_SCRIPT. Modes: file / path / inline. |
Comic Batch Generator |
Inner for-loop over panels. Connect MODEL / CLIP / VAE; no KSampler needed. Supports resume via panel-hash cache. |
Comic Page Composer |
Assemble panels into full pages. Outputs composed IMAGE batch + bbox metadata + pass-through panels. |
Example workflow
Drop examples/workflows/m1_basic_vertical_stack.json into ComfyUI.
Place basic.json (see tests/fixtures/scripts/) at ComfyUI/input/comics/basic.json.
Running tests
pytest tk_comfyui_batch_image/tests/ -v
ruff check tk_comfyui_batch_image
Current limitations (M1)
- Shapes: rectangle only (no
split/polygonyet → M3/M4) - Layout modes:
vertical_stackonly (nocustom_gridyet → M3) - No debug overlay (→ M5)
- No standalone JSON-validation CLI (→ M2)
- No SKILL.md skill package for AI script generation (→ M2)
Languages
Python
100%