arkaos 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/VERSION +1 -1
  2. package/arka/SKILL.md +13 -0
  3. package/arka/skills/comfyui/SKILL.md +82 -0
  4. package/arka/skills/comfyui/references/squads.md +80 -0
  5. package/arka/skills/comfyui/references/workflows.md +435 -0
  6. package/arka/skills/forge/SKILL.md +35 -599
  7. package/arka/skills/forge/references/complexity-engine.md +77 -0
  8. package/arka/skills/forge/references/critic-synthesis.md +154 -0
  9. package/arka/skills/forge/references/workflows.md +408 -0
  10. package/arka/skills/fovory/SKILL.md +91 -0
  11. package/arka/skills/fovory/references/integration.md +186 -0
  12. package/arka/skills/fovory/references/workflows.md +209 -0
  13. package/arka/skills/platform-arka/SKILL.md +121 -0
  14. package/arka/skills/platform-arka/references/workflows.md +202 -0
  15. package/arka/skills/rothbard100/SKILL.md +113 -0
  16. package/arka/skills/rothbard100/references/squad.md +111 -0
  17. package/arka/skills/rothbard100/references/workflows.md +175 -0
  18. package/config/constitution.yaml +8 -0
  19. package/config/hooks/pre-compact.sh +11 -5
  20. package/config/hooks/session-start.sh +4 -5
  21. package/config/hooks/token-hygiene.sh +120 -0
  22. package/config/hooks/user-prompt-submit.sh +28 -10
  23. package/core/agents/__pycache__/schema.cpython-313.pyc +0 -0
  24. package/core/agents/schema.py +20 -1
  25. package/core/synapse/__pycache__/layers.cpython-313.pyc +0 -0
  26. package/core/synapse/layers.py +7 -0
  27. package/core/workflow/__pycache__/schema.cpython-313.pyc +0 -0
  28. package/core/workflow/schema.py +4 -1
  29. package/departments/brand/SKILL.md +13 -0
  30. package/departments/brand/agents/brand-director.yaml +1 -0
  31. package/departments/brand/agents/brand-strategist.yaml +1 -0
  32. package/departments/brand/agents/ux-designer.yaml +1 -0
  33. package/departments/brand/agents/visual-designer.yaml +1 -0
  34. package/departments/brand/workflows/identity.yaml +1 -0
  35. package/departments/brand/workflows/naming.yaml +1 -0
  36. package/departments/community/SKILL.md +13 -0
  37. package/departments/community/agents/community-manager.yaml +1 -0
  38. package/departments/community/agents/community-strategist.yaml +1 -0
  39. package/departments/community/agents/engagement-designer.yaml +1 -0
  40. package/departments/community/workflows/setup.yaml +1 -0
  41. package/departments/content/SKILL.md +13 -0
  42. package/departments/content/agents/content-strategist.yaml +1 -0
  43. package/departments/content/agents/repurpose-distributor.yaml +1 -0
  44. package/departments/content/agents/scriptwriter.yaml +1 -0
  45. package/departments/content/agents/viral-engineer.yaml +1 -0
  46. package/departments/content/workflows/viral.yaml +1 -0
  47. package/departments/dev/SKILL.md +13 -0
  48. package/departments/dev/agents/architect.yaml +1 -0
  49. package/departments/dev/agents/backend-dev.yaml +1 -0
  50. package/departments/dev/agents/cto.yaml +1 -0
  51. package/departments/dev/agents/dba.yaml +1 -0
  52. package/departments/dev/agents/devops-eng.yaml +1 -0
  53. package/departments/dev/agents/frontend-dev.yaml +1 -0
  54. package/departments/dev/agents/qa-eng.yaml +1 -0
  55. package/departments/dev/agents/research-assistant.yaml +1 -0
  56. package/departments/dev/agents/security-eng.yaml +1 -0
  57. package/departments/dev/agents/tech-lead.yaml +1 -0
  58. package/departments/dev/skills/onboard/SKILL.md +21 -353
  59. package/departments/dev/skills/onboard/references/mcp-config.md +284 -0
  60. package/departments/dev/skills/onboard/references/stack-detection.md +83 -0
  61. package/departments/dev/workflows/debug.yaml +1 -0
  62. package/departments/dev/workflows/feature.yaml +3 -0
  63. package/departments/dev/workflows/refactor.yaml +1 -0
  64. package/departments/ecom/SKILL.md +13 -0
  65. package/departments/ecom/agents/commerce-engineer.yaml +1 -0
  66. package/departments/ecom/agents/cro-specialist.yaml +1 -0
  67. package/departments/ecom/agents/ecom-director.yaml +1 -0
  68. package/departments/ecom/agents/retention-manager.yaml +1 -0
  69. package/departments/ecom/skills/ecommerce/SKILL.md +66 -0
  70. package/departments/ecom/skills/ecommerce/references/audit-flow.md +109 -0
  71. package/departments/ecom/skills/ecommerce/references/playbooks.md +141 -0
  72. package/departments/ecom/workflows/product-page.yaml +1 -0
  73. package/departments/finance/SKILL.md +13 -0
  74. package/departments/finance/agents/cfo.yaml +1 -0
  75. package/departments/finance/agents/financial-analyst.yaml +1 -0
  76. package/departments/finance/agents/investment-strategist.yaml +1 -0
  77. package/departments/finance/workflows/cashflow.yaml +1 -0
  78. package/departments/finance/workflows/model.yaml +1 -0
  79. package/departments/kb/SKILL.md +13 -0
  80. package/departments/kb/agents/data-collector.yaml +1 -0
  81. package/departments/kb/agents/knowledge-curator.yaml +1 -0
  82. package/departments/kb/agents/knowledge-director.yaml +1 -0
  83. package/departments/kb/agents/research-analyst.yaml +1 -0
  84. package/departments/kb/skills/knowledge/SKILL.md +94 -0
  85. package/departments/kb/skills/knowledge/references/async-processing.md +89 -0
  86. package/departments/kb/skills/knowledge/references/ingestion-pipeline.md +308 -0
  87. package/departments/kb/skills/knowledge/scripts/kb-check-capabilities.sh +143 -0
  88. package/departments/kb/skills/knowledge/scripts/kb-cleanup.sh +135 -0
  89. package/departments/kb/skills/knowledge/scripts/kb-queue.sh +156 -0
  90. package/departments/kb/skills/knowledge/scripts/kb-status.sh +195 -0
  91. package/departments/kb/skills/knowledge/scripts/kb-worker.sh +217 -0
  92. package/departments/kb/workflows/learn.yaml +1 -0
  93. package/departments/landing/SKILL.md +13 -0
  94. package/departments/landing/agents/affiliate-manager.yaml +1 -0
  95. package/departments/landing/agents/conversion-strategist.yaml +1 -0
  96. package/departments/landing/agents/cro-specialist.yaml +1 -0
  97. package/departments/landing/agents/sales-copywriter.yaml +1 -0
  98. package/departments/landing/workflows/launch.yaml +1 -0
  99. package/departments/landing/workflows/offer.yaml +3 -0
  100. package/departments/leadership/SKILL.md +13 -0
  101. package/departments/leadership/agents/culture-coach.yaml +1 -0
  102. package/departments/leadership/agents/hr-specialist.yaml +1 -0
  103. package/departments/leadership/agents/leadership-director.yaml +1 -0
  104. package/departments/leadership/workflows/team-build.yaml +1 -0
  105. package/departments/marketing/SKILL.md +13 -0
  106. package/departments/marketing/agents/content-marketer.yaml +1 -0
  107. package/departments/marketing/agents/marketing-director.yaml +1 -0
  108. package/departments/marketing/agents/paid-specialist.yaml +1 -0
  109. package/departments/marketing/agents/seo-specialist.yaml +1 -0
  110. package/departments/marketing/workflows/campaign.yaml +1 -0
  111. package/departments/marketing/workflows/social.yaml +1 -0
  112. package/departments/ops/SKILL.md +13 -0
  113. package/departments/ops/agents/automation-engineer.yaml +1 -0
  114. package/departments/ops/agents/doc-writer.yaml +1 -0
  115. package/departments/ops/agents/ops-lead.yaml +1 -0
  116. package/departments/ops/skills/operations/SKILL.md +83 -0
  117. package/departments/ops/skills/operations/references/calendar-email.md +73 -0
  118. package/departments/ops/skills/operations/references/clickup-ops.md +224 -0
  119. package/departments/ops/skills/update/SKILL.md +19 -45
  120. package/departments/ops/skills/update/references/sync-engine.md +93 -0
  121. package/departments/ops/skills/update/references/workflows.md +84 -0
  122. package/departments/ops/workflows/lean-audit.yaml +1 -0
  123. package/departments/org/SKILL.md +13 -0
  124. package/departments/org/agents/coo.yaml +1 -0
  125. package/departments/org/agents/org-designer.yaml +1 -0
  126. package/departments/org/agents/people-ops.yaml +1 -0
  127. package/departments/org/workflows/design.yaml +2 -0
  128. package/departments/pm/SKILL.md +13 -0
  129. package/departments/pm/agents/pm-director.yaml +1 -0
  130. package/departments/pm/agents/product-owner.yaml +1 -0
  131. package/departments/pm/agents/scrum-master.yaml +1 -0
  132. package/departments/quality/SKILL.md +13 -0
  133. package/departments/quality/agents/copy-director.yaml +1 -0
  134. package/departments/quality/agents/cqo.yaml +1 -0
  135. package/departments/quality/agents/tech-director.yaml +1 -0
  136. package/departments/saas/SKILL.md +13 -0
  137. package/departments/saas/agents/cs-manager.yaml +1 -0
  138. package/departments/saas/agents/growth-engineer.yaml +1 -0
  139. package/departments/saas/agents/metrics-analyst.yaml +1 -0
  140. package/departments/saas/agents/saas-strategist.yaml +1 -0
  141. package/departments/saas/workflows/metrics.yaml +1 -0
  142. package/departments/saas/workflows/validate.yaml +1 -0
  143. package/departments/sales/SKILL.md +13 -0
  144. package/departments/sales/agents/sales-closer.yaml +1 -0
  145. package/departments/sales/agents/sales-director.yaml +1 -0
  146. package/departments/sales/agents/sales-ops.yaml +1 -0
  147. package/departments/sales/workflows/pipeline.yaml +1 -0
  148. package/departments/strategy/SKILL.md +13 -0
  149. package/departments/strategy/agents/business-model-designer.yaml +1 -0
  150. package/departments/strategy/agents/market-analyst.yaml +1 -0
  151. package/departments/strategy/agents/strategy-director.yaml +1 -0
  152. package/departments/strategy/workflows/analysis.yaml +1 -0
  153. package/departments/strategy/workflows/swot.yaml +1 -0
  154. package/installer/index.js +19 -0
  155. package/package.json +1 -1
  156. package/pyproject.toml +1 -1
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.15.0
1
+ 2.16.0
package/arka/SKILL.md CHANGED
@@ -138,3 +138,16 @@ All department output saved to the Obsidian vault:
138
138
  - Wikilinks for cross-references
139
139
  - Department-specific output paths
140
140
  - MOC (Map of Content) for organization
141
+
142
+ ## Model Selection
143
+
144
+ When dispatching subagent work via the Task tool, include the `model` parameter from the target agent's YAML `model:` field:
145
+
146
+ - Agent YAMLs at `departments/*/agents/*.yaml` have `model: opus | sonnet | haiku`
147
+ - Quality Gate dispatch (Marta/Eduardo/Francisca) ALWAYS uses `model: opus` — NON-NEGOTIABLE
148
+ - Default to `sonnet` if the agent YAML has no `model` field
149
+ - Mechanical tasks (commit messages, routing, keyword extraction) use `model: haiku`
150
+
151
+ Example Task tool call:
152
+
153
+ Task(description="...", subagent_type="general-purpose", model="sonnet", prompt="...")
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: arka-comfyui
3
+ description: >
4
+ ComfyUI ecosystem orchestrator. Two specialized squads: ComfyUI Core (workflow engineering,
5
+ custom nodes research, model discovery, pipeline optimization, API automation) and
6
+ Hollywood Cinematographic Production (directing, cinematography, color grading, VFX,
7
+ sound design, editing, motion graphics). Manages 2 projects: purz-comfyui-workflows
8
+ (production-ready workflow collection) and lora_tester (LoRA batch testing toolkit).
9
+ Full AI video production pipeline from concept to final cut.
10
+ Use when user says "comfyui", "comfy", "workflow", "video production", "cinematography",
11
+ "generate video", "text to video", "image to video", or wants to work with ComfyUI.
12
+ ---
13
+
14
+ # ComfyUI Ecosystem Orchestrator — ARKA OS
15
+
16
+ Full-spectrum AI media production platform. From ComfyUI node engineering to Hollywood-grade cinematographic output.
17
+
18
+ ## Ecosystem Overview
19
+
20
+ | Project | Type | Stack | Path |
21
+ |---------|------|-------|------|
22
+ | **purz-comfyui-workflows** | Workflow Collection | ComfyUI JSON (7 workflows, 110+ nodes) | `/Users/andreagroferreira/AIProjects/purz-comfyui-workflows` |
23
+ | **lora_tester** | CLI Tool + Gallery | Python 3.8+ (stdlib) + Vanilla HTML/JS | `/Users/andreagroferreira/AIProjects/lora_tester` |
24
+
25
+ ## Squads (summary)
26
+
27
+ | Squad | Purpose | Members |
28
+ |-------|---------|---------|
29
+ | **ComfyUI Core** | Technical engine: workflow JSON, custom nodes, models, VRAM, API automation | Viktor (Pipeline Architect), Kaito (Workflow Engineer), Iris (Node Researcher), Atlas (Model Specialist), Nexus (Automation Engineer), Pixel (QA Tester) |
30
+ | **Cinematographic Production** | Hollywood pipeline: direction, DP, art, VFX, color, edit, sound, motion, production | Roman (Director), Lena (DP), Soren (Screenwriter), Mika (Art Director), Orion (VFX), Celeste (Colorist), Raven (Editor), Echo (Sound Designer), Flux (Motion Graphics), Sterling (Producer) |
31
+
32
+ Full role definitions, agent types, and competencies: `references/squads.md`.
33
+
34
+ ## Commands
35
+
36
+ ### General
37
+
38
+ | Command | Description |
39
+ |---------|-------------|
40
+ | `/comfyui <description>` | Describe what you need — orchestrator routes to correct squad |
41
+ | `/comfyui status` | Status of all ComfyUI projects + server availability |
42
+ | `/comfyui context` | Full ecosystem context (workflows, models, capabilities) |
43
+
44
+ ### ComfyUI Core
45
+
46
+ | Command | Description |
47
+ |---------|-------------|
48
+ | `/comfyui workflow create\|edit\|list\|test` | Design, modify, list, or test workflows |
49
+ | `/comfyui node research <topic>` | Research custom nodes |
50
+ | `/comfyui model research\|list` | Research or query models (checkpoints, LoRAs, VAEs, ControlNets) |
51
+ | `/comfyui lora test` | Delegate to /lora-tester |
52
+ | `/comfyui optimize <workflow>` | VRAM/speed optimization |
53
+ | `/comfyui api <task>` | API automation |
54
+ | `/comfyui install <nodes>` | Guide custom node installation |
55
+
56
+ ### Cinematographic Production
57
+
58
+ | Command | Description |
59
+ |---------|-------------|
60
+ | `/comfyui produce <concept>` | Full pipeline: concept → script → storyboard → generate → edit → deliver |
61
+ | `/comfyui direct\|shoot\|grade\|edit\|vfx\|sound\|motion` | Single-stage production commands |
62
+ | `/comfyui storyboard\|lookdev` | Pre-production: storyboard, visual style development |
63
+
64
+ ### Pipelines
65
+
66
+ | Command | Description |
67
+ |---------|-------------|
68
+ | `/comfyui pipeline t2v\|i2v\|a2v` | Text/Image/Audio-to-Video (LTX-2 / SVD) |
69
+ | `/comfyui pipeline upscale\|interpolate\|mask` | Upscale, frame interpolation, subject/bg replacement |
70
+
71
+ ## Orchestration Workflow
72
+
73
+ Every `/comfyui` request follows a 6-phase flow: (1) context loading, (2) analysis & planning with squad routing, (3) plan presentation & approval gate, (4) execution with worktree isolation, (5) mandatory Quality Gate (Marta/Eduardo/Francisca), (6) documentation & report.
74
+
75
+ Squad routing: technical → Core; creative production → Cinematographic; full production → both, coordinated by Producer Sterling; research → Iris or Atlas.
76
+
77
+ **See `references/workflows.md`** for full phase templates (plan, report), workflows catalogue (LTX-2 T2V/I2V/Audio, SVD, AnimateDiff), model registry, cinematic prompt engineering guide, ComfyUI API reference, status command, `/comfyui produce` pipeline, custom node research protocol, and Obsidian output structure.
78
+
79
+ ## References
80
+
81
+ - `references/squads.md` — Full Core and Cinematographic squad role tables, agent types, core competencies
82
+ - `references/workflows.md` — Phase templates, workflow catalogue, model registry, API reference, prompt engineering guide, Obsidian output
@@ -0,0 +1,80 @@
1
+ # arka-comfyui — squads
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## Architecture
6
+
7
+ ```
8
+ ARKA OS /comfyui Orchestrator
9
+ |
10
+ +---------------+---------------+
11
+ | |
12
+ ComfyUI Core Squad Cinematographic Squad
13
+ (Technical Engine) (Creative Production)
14
+ | |
15
+ +-----------+-----------+ +-------+-------+
16
+ | | | | | |
17
+ Workflows Research Automation Pre-Prod Prod Post-Prod
18
+ | | | | | |
19
+ purz-comfyui Custom lora_tester Script Shoot Edit
20
+ -workflows Nodes (batch test) Board Direct Grade
21
+ | | | Story Light VFX
22
+ v v v Art Comp Sound
23
+ ComfyUI Server (localhost:8188) Motion
24
+ |
25
+ +-- POST /prompt (queue)
26
+ +-- GET /history (poll)
27
+ +-- GET /view (download)
28
+ +-- GET /object_info (discover)
29
+ ```
30
+
31
+ ## SQUAD 1 — ComfyUI Core (Technical Engine)
32
+
33
+ The engineering backbone. These specialists know every node, every model, every optimization trick.
34
+
35
+ | Role | Agent Type | Name | Specialty |
36
+ |------|-----------|------|-----------|
37
+ | **Pipeline Architect** | `architect` | Viktor | Workflow design, node graph architecture, data flow optimization, multi-pass pipelines |
38
+ | **Workflow Engineer** | `backend-dev` | Kaito | JSON workflow construction, API-format conversion, conditional node logic, batch orchestration |
39
+ | **Node Researcher** | `research-analyst` | Iris | Custom node discovery (ComfyUI Manager, GitHub), new model evaluation, capability mapping |
40
+ | **Model Specialist** | `research-analyst` | Atlas | Checkpoint/LoRA/VAE/ControlNet selection, quantization (FP8/FP4), VRAM optimization |
41
+ | **Automation Engineer** | `backend-dev` | Nexus | Python scripting, ComfyUI API automation, batch generation, queue management, manifest tracking |
42
+ | **QA Tester** | `qa-eng` | Pixel | Output quality validation, A/B comparison, artifact detection, performance benchmarking |
43
+
44
+ **Core Competencies:**
45
+ - Workflow JSON engineering (API format, node IDs, connections)
46
+ - Custom node ecosystem (ComfyUI Manager, 2000+ community nodes)
47
+ - Model landscape (Stability AI, Lightricks LTX, Runway, Black Forest Labs)
48
+ - Memory optimization (chunked inference, tiled decoding, model offloading)
49
+ - Multi-pass pipelines (low-res draft -> upscale -> high-res refine)
50
+ - LoRA training evaluation and strength testing
51
+ - ControlNet/IP-Adapter/SAM integration
52
+ - Video frame interpolation (FILM, GMFSS, RIFE)
53
+
54
+ ## SQUAD 2 — Cinematographic Production (Hollywood Level)
55
+
56
+ Full film production pipeline — from concept to final deliverable. Every role mirrors a real Hollywood department.
57
+
58
+ | Role | Agent Type | Name | Specialty |
59
+ |------|-----------|------|-----------|
60
+ | **Director** | `brand-director` | Roman | Creative vision, shot composition, narrative flow, pacing, emotional arc, final cut authority |
61
+ | **Cinematographer (DP)** | `visual-designer` | Lena | Camera movement (dolly, crane, steadicam), lighting design, depth of field, aspect ratios, lens selection |
62
+ | **Screenwriter** | `content-marketer` | Soren | Prompt engineering as screenwriting, scene descriptions, dialogue, narrative structure, beat sheets |
63
+ | **Art Director** | `visual-designer` | Mika | Visual style, color palette, production design, set dressing, period accuracy, world-building |
64
+ | **VFX Supervisor** | `frontend-dev` | Orion | Compositing, masking, subject/background replacement, particle effects, environment extension |
65
+ | **Colorist** | `visual-designer` | Celeste | Color grading, LUT design, mood through color, scene-to-scene continuity, final look |
66
+ | **Editor** | `visual-designer` | Raven | Pacing, rhythm, cut timing, montage, transitions, assembly to final cut, export settings |
67
+ | **Sound Designer** | `content-marketer` | Echo | Audio-to-video sync, soundscape design, music selection, audio separation, ambient design |
68
+ | **Motion Graphics Artist** | `visual-designer` | Flux | Title sequences, lower thirds, kinetic typography, logo animation, UI/HUD overlays |
69
+ | **Producer** | `tech-lead` | Sterling | Budget (compute/VRAM), scheduling, resource allocation, pipeline coordination, delivery |
70
+
71
+ **Core Competencies:**
72
+ - Cinematic prompt engineering (lens, lighting, movement vocabulary)
73
+ - Shot type vocabulary (ECU, CU, MS, WS, EWS, OTS, POV, bird's eye, Dutch angle)
74
+ - Camera movement lexicon (dolly in/out, truck, pan, tilt, crane, Steadicam, handheld, zoom)
75
+ - Lighting design (three-point, Rembrandt, butterfly, split, rim, practical, motivated)
76
+ - Color theory and grading (warm/cool, complementary, analogous, monochromatic, teal-orange)
77
+ - Aspect ratios and their emotional impact (2.39:1 anamorphic, 1.85:1, 16:9, 4:3, 1:1)
78
+ - Frame rate and motion (24fps cinematic, 30fps broadcast, 60fps smooth, 120fps slo-mo)
79
+ - Audio-visual synchronization and rhythm
80
+ - Export codecs and delivery specs (H.264, H.265, ProRes, DNxHR, CRF values)
@@ -0,0 +1,435 @@
1
+ # arka-comfyui — workflows
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## Orchestration Workflow
6
+
7
+ For EVERY `/comfyui` request, follow this workflow:
8
+
9
+ ### Phase 1 — Context Loading
10
+ 1. Read ComfyUI skill reference: `/Users/andreagroferreira/AIProjects/lora_tester/.claude/skills/comfy_local/skill.md`
11
+ 2. Check available workflows: `ls /Users/andreagroferreira/AIProjects/purz-comfyui-workflows/`
12
+ 3. Check ComfyUI server: `curl -s http://localhost:8188/system_stats 2>/dev/null`
13
+ 4. Load project context for affected repos
14
+ 5. Identify which squad(s) the request needs
15
+
16
+ ### Phase 2 — Analysis & Planning
17
+
18
+ **Before planning, verify context:**
19
+ - Restate the request to confirm understanding
20
+ - Ask at least 1 clarifying question about scope or intent
21
+ - Challenge at least 1 assumption (devil's advocate)
22
+ - Check memory/knowledge base for prior related work
23
+
24
+ **Squad routing logic:**
25
+ - Technical workflow requests -> ComfyUI Core Squad
26
+ - Creative production requests -> Cinematographic Squad (with Core support)
27
+ - Full production pipeline -> Both squads coordinated by Producer (Sterling)
28
+ - Research requests -> Node Researcher (Iris) or Model Specialist (Atlas)
29
+
30
+ 1. Analyze the request and route to correct squad(s)
31
+ 2. Determine which roles are needed
32
+ 3. Create execution plan with:
33
+ - **Squad(s) involved** (Core, Cinematographic, or both)
34
+ - **Roles assigned** (which agents)
35
+ - **Pipeline stages** (pre-prod, production, post-prod)
36
+ - **Technical requirements** (models, nodes, VRAM, resolution)
37
+ - **Deliverables** (files, formats, specs)
38
+
39
+ ### Phase 3 — Plan Presentation & Approval
40
+
41
+ ```
42
+ --- COMFYUI — Production Plan ---
43
+
44
+ REQUEST: [summary]
45
+
46
+ SQUAD ASSIGNMENT:
47
+ Core: [roles involved]
48
+ Cinematographic: [roles involved]
49
+
50
+ PIPELINE:
51
+ 1. [stage] — [role] — [deliverable]
52
+ 2. [stage] — [role] — [deliverable]
53
+ ...
54
+
55
+ TECHNICAL REQUIREMENTS:
56
+ - Models: [list]
57
+ - Nodes: [custom nodes needed]
58
+ - Resolution: [WxH]
59
+ - Frames: [count]
60
+ - VRAM estimate: [GB]
61
+
62
+ DELIVERABLES:
63
+ - [format, resolution, codec, duration]
64
+
65
+ CONSIDERATIONS:
66
+ - [risk/note]
67
+
68
+ ---------------------------------
69
+ ```
70
+
71
+ Ask for user approval: "Approve plan and proceed?"
72
+
73
+ ### Phase 4 — Execution
74
+ 1. Only proceed after approval
75
+ 2. Use worktree isolation for code changes (NON-NEGOTIABLE)
76
+ 3. Squad roles execute in their domain
77
+ 4. Producer (Sterling) coordinates cross-squad handoffs
78
+
79
+ ### Phase 5: Quality Gate (NON-NEGOTIABLE)
80
+
81
+ Before any output reaches the user:
82
+ - **Marta** (CQO) orchestrates the review
83
+ - **Eduardo** (Copy Director) reviews all text output
84
+ - **Francisca** (Tech/UX Director) reviews all code and technical output
85
+
86
+ **Verdict:** APPROVED or REJECTED. No exceptions.
87
+
88
+ ### Phase 6 — Documentation & Report
89
+
90
+ ```
91
+ --- COMFYUI — Production Report ---
92
+
93
+ COMPLETED:
94
+ - [deliverables produced]
95
+
96
+ TECHNICAL:
97
+ - Workflow: [name]
98
+ - Models used: [list]
99
+ - Resolution: [WxH] | Frames: [N] | FPS: [N]
100
+ - Generation time: [estimate]
101
+
102
+ FILES:
103
+ - [outputs and locations]
104
+
105
+ -----------------------------------
106
+ ```
107
+
108
+ ## Available Workflows Reference
109
+
110
+ ### LTX-2 Text-to-Video (ltx2-t2v-lora)
111
+ | Property | Value |
112
+ |----------|-------|
113
+ | Resolution | 1280x720 |
114
+ | Frames | 48 (configurable, must be divisible by 8+1) |
115
+ | Model | ltx-2-19b-dev-fp8 |
116
+ | Text Encoder | Gemma 3 12B (FP4/FP8/Full) |
117
+ | LoRA Support | Yes (camera control, style) |
118
+ | Key Nodes | LTX2_NAG, LTXVConditioning, KSampler |
119
+ | Output | H.264 MP4, CRF 13, 24fps |
120
+
121
+ ### LTX-2 Image-to-Video (ltx2-i2v-lora)
122
+ | Property | Value |
123
+ |----------|-------|
124
+ | Resolution | Input image resolution |
125
+ | Frames | 48 |
126
+ | Model | ltx-2-19b-dev-fp8 |
127
+ | Key Feature | First-frame conditioning |
128
+ | Key Nodes | LTXVImgToVideoInplaceKJ, LTX2_NAG |
129
+ | Output | H.264 MP4 |
130
+
131
+ ### LTX-2 Audio-to-Video (ltx2-audio_to_video_extension_5x)
132
+ | Property | Value |
133
+ |----------|-------|
134
+ | Feature | Separate audio + video VAE encoding |
135
+ | Upscaling | 5x spatial upscaler |
136
+ | Chunked Inference | 4 chunks, 4096 tokens |
137
+ | Audio Processing | FL_Audio_Separation, audio crop, vocoder |
138
+ | Key Nodes | LTXVAudioVAEEncode/Decode, LTXVSeparateAVLatent |
139
+ | Output | H.264 MP4 with audio |
140
+
141
+ ### SVD Simple (svd-simple)
142
+ | Property | Value |
143
+ |----------|-------|
144
+ | Resolution | 576x1024 |
145
+ | Frames | 14 + 2x interpolation = 27 |
146
+ | Model | svd.safetensors |
147
+ | Key Feature | Simple image-to-video |
148
+ | Interpolation | FILM VFI |
149
+ | Output | H.264 MP4 |
150
+
151
+ ### SVD CLIP Extension 8x (svd-clip-extension-8x)
152
+ | Property | Value |
153
+ |----------|-------|
154
+ | Resolution | 576x1024 |
155
+ | Frames | 14 base + 8x interpolation |
156
+ | Model | svd.safetensors + CLIP Vision |
157
+ | Interpolation | GMFSS Fortuna (8x) |
158
+ | Output | H.264 MP4, high frame count |
159
+
160
+ ### AnimateDiff Subject Replacement
161
+ | Property | Value |
162
+ |----------|-------|
163
+ | Model | deliberate_v3 (SD 1.5) |
164
+ | Segmentation | SAM + YOLOv8 person detection |
165
+ | Control | ControlNet inpaint + openpose |
166
+ | IP-Adapter | ip-adapter-plus_sd15 |
167
+ | Use Case | Replace subject in video while preserving motion |
168
+
169
+ ### AnimateDiff Background Replacement
170
+ | Property | Value |
171
+ |----------|-------|
172
+ | Model | deliberate_v3 (SD 1.5) |
173
+ | Segmentation | SAM + YOLOv8 |
174
+ | Control | ControlNet inpaint |
175
+ | Use Case | Replace background while preserving subject |
176
+
177
+ ## Model Registry
178
+
179
+ ### Checkpoints
180
+ | Model | Type | Size | Use Case |
181
+ |-------|------|------|----------|
182
+ | ltx-2-19b-dev-fp8 | LTX-2 | ~10GB | Primary T2V/I2V |
183
+ | ltx-2-19b-distilled-fp8 | LTX-2 Distilled | ~10GB | Faster generation |
184
+ | deliberate_v3 | SD 1.5 | ~2GB | AnimateDiff base |
185
+ | svd | SVD | ~4GB | Image-to-video |
186
+
187
+ ### Text Encoders
188
+ | Model | Precision | VRAM |
189
+ |-------|-----------|------|
190
+ | gemma_3_12B_it | Full | ~24GB |
191
+ | gemma_3_12B_it_fp8_scaled | FP8 | ~12GB |
192
+ | gemma_3_12B_it_fp4_mixed | FP4 | ~6GB |
193
+
194
+ ### LoRAs
195
+ | LoRA | Purpose |
196
+ |------|---------|
197
+ | ltx-2-19b-distilled-lora-384 | Quality boost for distilled model |
198
+ | ltx-2-19b-lora-camera-control-dolly-left | Camera dolly movement |
199
+ | DoubleDolly_lora_weights | Double dolly camera effect |
200
+ | ltx2-cakeify-v2 | Style transfer (cakeify) |
201
+ | lcm-sd15-lora | LCM acceleration for SD 1.5 |
202
+ | temporaldiff-v1-animatediff | Temporal consistency |
203
+
204
+ ### Interpolation Models
205
+ | Model | Multiplier | Quality |
206
+ |-------|-----------|---------|
207
+ | FILM VFI (film_net_fp32) | 2x | High |
208
+ | GMFSS Fortuna | 2x-8x | Very high |
209
+
210
+ ## Cinematic Prompt Engineering Guide
211
+
212
+ The Screenwriter (Soren) and Director (Roman) use structured prompt engineering:
213
+
214
+ ### Shot Type Vocabulary
215
+ ```
216
+ ECU — Extreme Close-Up (eyes, details)
217
+ CU — Close-Up (face fills frame)
218
+ MCU — Medium Close-Up (head + shoulders)
219
+ MS — Medium Shot (waist up)
220
+ MWS — Medium Wide Shot (knees up)
221
+ WS — Wide Shot (full body + environment)
222
+ EWS — Extreme Wide Shot (landscape dominates)
223
+ OTS — Over-the-Shoulder
224
+ POV — Point of View
225
+ ```
226
+
227
+ ### Camera Movement Vocabulary
228
+ ```
229
+ dolly in/out — Camera moves toward/away from subject
230
+ truck L/R — Camera moves laterally
231
+ pan L/R — Camera pivots horizontally (stationary)
232
+ tilt up/down — Camera pivots vertically (stationary)
233
+ crane up/down — Camera rises/lowers vertically
234
+ Steadicam — Smooth handheld tracking
235
+ handheld — Organic, documentary feel
236
+ zoom in/out — Lens zoom (not camera movement)
237
+ rack focus — Shift focus between planes
238
+ push in — Slow dolly in for emphasis
239
+ ```
240
+
241
+ ### Lighting Vocabulary
242
+ ```
243
+ three-point — Key + fill + back (standard)
244
+ Rembrandt — Triangle shadow on cheek
245
+ butterfly/Paramount — Shadow under nose
246
+ split — Half face lit, half shadow
247
+ rim/edge — Backlight outlining subject
248
+ practical — Visible light sources in scene
249
+ motivated — Light justified by scene elements
250
+ golden hour — Warm, low-angle natural light
251
+ blue hour — Cool, pre-dawn/post-sunset
252
+ chiaroscuro — Extreme contrast (Caravaggio)
253
+ ```
254
+
255
+ ### Prompt Structure for Cinematic Output
256
+ ```
257
+ [Shot type], [camera movement], [subject description],
258
+ [lighting], [color palette], [mood/atmosphere],
259
+ [lens/focal length], [aspect ratio reference],
260
+ [film stock/look reference], [time of day]
261
+ ```
262
+
263
+ **Example:**
264
+ ```
265
+ Medium wide shot, slow dolly in, a lone figure walking through
266
+ rain-soaked neon streets, Rembrandt lighting with cyan and magenta
267
+ neon reflections, melancholic noir atmosphere, 35mm anamorphic lens,
268
+ Kodak Vision3 500T film grain, late night
269
+ ```
270
+
271
+ ## ComfyUI API Reference
272
+
273
+ ### Core Endpoints
274
+ | Endpoint | Method | Purpose |
275
+ |----------|--------|---------|
276
+ | `/prompt` | POST | Queue workflow: `{"prompt": {...}, "client_id": "..."}` |
277
+ | `/history/{prompt_id}` | GET | Poll job status and results |
278
+ | `/queue` | GET | Queue status (pending + running) |
279
+ | `/view?filename=X&type=output` | GET | Download generated media |
280
+ | `/object_info` | GET | All available nodes and their schemas |
281
+ | `/object_info/{NodeType}` | GET | Specific node schema + available models |
282
+ | `/system_stats` | GET | GPU memory, VRAM, compute stats |
283
+ | `/upload/image` | POST | Upload input image (multipart) |
284
+ | `/upload/mask` | POST | Upload mask image (multipart) |
285
+
286
+ ### Workflow JSON Format (API)
287
+ ```json
288
+ {
289
+ "1": {
290
+ "class_type": "NodeType",
291
+ "inputs": {
292
+ "param": "value",
293
+ "connection": ["source_node_id", output_index]
294
+ }
295
+ }
296
+ }
297
+ ```
298
+
299
+ ### Batch Generation Pattern
300
+ ```python
301
+ # 1. Submit all jobs upfront (queue them)
302
+ for job in jobs:
303
+ response = post("/prompt", {"prompt": workflow})
304
+ prompt_ids.append(response["prompt_id"])
305
+
306
+ # 2. Single polling loop
307
+ while pending:
308
+ for pid in pending:
309
+ history = get(f"/history/{pid}")
310
+ if pid in history:
311
+ download_outputs(history[pid])
312
+ pending.remove(pid)
313
+ time.sleep(3)
314
+ ```
315
+
316
+ ## /comfyui status
317
+
318
+ ```bash
319
+ # Server status
320
+ curl -s http://localhost:8188/system_stats 2>/dev/null
321
+
322
+ # Project status
323
+ cd /Users/andreagroferreira/AIProjects/purz-comfyui-workflows && git log --oneline -5
324
+ cd /Users/andreagroferreira/AIProjects/lora_tester && git log --oneline -5
325
+ ```
326
+
327
+ Present as:
328
+
329
+ ```
330
+ --- COMFYUI ECOSYSTEM — Status ---
331
+
332
+ SERVER: [online/offline] (localhost:8188)
333
+ GPU: [name] | VRAM: [total/used/free]
334
+
335
+ PURZ-COMFYUI-WORKFLOWS
336
+ Branch: [branch]
337
+ Last commit: [hash] — [message]
338
+ Workflows: 7 (3 LTX-2, 2 SVD, 2 AnimateDiff)
339
+
340
+ LORA_TESTER
341
+ Branch: [branch]
342
+ Last commit: [hash] — [message]
343
+ Components: CLI (252 lines) + Gallery (900 lines)
344
+
345
+ SQUADS READY:
346
+ Core: Viktor, Kaito, Iris, Atlas, Nexus, Pixel (6)
347
+ Cinematographic: Roman, Lena, Soren, Mika, Orion,
348
+ Celeste, Raven, Echo, Flux, Sterling (10)
349
+
350
+ ----------------------------------
351
+ ```
352
+
353
+ ## /comfyui produce — Full Production Pipeline
354
+
355
+ The flagship command. Runs the complete Hollywood pipeline:
356
+
357
+ ```
358
+ Phase 1: DEVELOPMENT (Screenwriter Soren + Director Roman)
359
+ - Concept analysis and creative brief
360
+ - Scene breakdown and beat sheet
361
+ - Prompt script (structured cinematic prompts)
362
+ - Shot list with camera/lighting specs
363
+
364
+ Phase 2: PRE-PRODUCTION (Art Director Mika + Cinematographer Lena)
365
+ - Visual style development (lookdev)
366
+ - Color palette and mood board
367
+ - Storyboard (generated reference images)
368
+ - Technical specs (resolution, fps, codec)
369
+
370
+ Phase 3: PRODUCTION (Pipeline Architect Viktor + Workflow Engineer Kaito)
371
+ - Workflow selection or creation
372
+ - Model and LoRA selection (Model Specialist Atlas)
373
+ - Generation execution via ComfyUI API
374
+ - Quality monitoring (QA Tester Pixel)
375
+
376
+ Phase 4: POST-PRODUCTION
377
+ - VFX compositing (VFX Supervisor Orion)
378
+ - Color grading (Colorist Celeste)
379
+ - Sound design (Sound Designer Echo)
380
+ - Motion graphics (Motion Graphics Flux)
381
+ - Final edit and pacing (Editor Raven)
382
+
383
+ Phase 5: DELIVERY (Producer Sterling)
384
+ - Export in requested format/codec
385
+ - Quality Gate review
386
+ - Documentation and handoff
387
+ ```
388
+
389
+ ## Custom Node Research Protocol
390
+
391
+ When Iris (Node Researcher) investigates custom nodes:
392
+
393
+ 1. **ComfyUI Manager Registry** — Primary source for vetted nodes
394
+ 2. **GitHub search** — `comfyui custom node [capability]`
395
+ 3. **ComfyUI community** — Reddit r/comfyui, Discord, forums
396
+ 4. **Evaluation criteria:**
397
+ - Active maintenance (commits in last 3 months)
398
+ - Star count and community adoption
399
+ - Compatibility with current ComfyUI version
400
+ - VRAM requirements
401
+ - License compatibility
402
+ - Node conflicts with existing installation
403
+
404
+ ## Obsidian Output
405
+
406
+ All documentation: `/Users/andreagroferreira/Documents/Personal/Projects/WizardingCode Internal/ComfyUI/`
407
+
408
+ ```
409
+ WizardingCode Internal/ComfyUI/
410
+ ├── Home.md <- Ecosystem overview
411
+ ├── Workflows/
412
+ │ ├── LTX-2 T2V.md
413
+ │ ├── LTX-2 I2V.md
414
+ │ ├── LTX-2 Audio.md
415
+ │ ├── SVD Simple.md
416
+ │ ├── SVD CLIP 8x.md
417
+ │ ├── AnimateDiff Subject.md
418
+ │ ├── AnimateDiff Background.md
419
+ │ └── Custom/ <- User-created workflows
420
+ ├── Models/
421
+ │ ├── Checkpoints.md
422
+ │ ├── LoRAs.md
423
+ │ ├── VAEs.md
424
+ │ └── ControlNets.md
425
+ ├── Production/
426
+ │ ├── Cinematic Prompt Guide.md
427
+ │ ├── Shot Types.md
428
+ │ ├── Camera Movement.md
429
+ │ ├── Lighting Design.md
430
+ │ └── Color Grading.md
431
+ ├── Research/
432
+ │ ├── Custom Nodes.md
433
+ │ └── New Models.md
434
+ └── Projects/ <- Production project logs
435
+ ```