generate-3d

generate-3d is a command for Claude Code from Comfy-Org/comfy-skills. It costs 10 tokens per session (856 once invoked), scanned A, original, MIT.

A command for creating a three-dimensional model from a user's description through Comfy Cloud, an online service for running media-generation workflows.

In plain words
What is it for?
Use it to generate 3D models from descriptions, or from reference images when an image-to-3D workflow is available. It can also use a named provider when a matching service node exists.
Why use it?
It provides a defined process for finding a suitable model-generation workflow and using available providers or templates. This avoids relying on an assumed, possibly outdated list of options.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the comfy-cloud plugin — 12 commands shipped together

Good fit Use it to generate 3D models from descriptions, or from reference images when an image-to-3D workflow is available. It can also use a named provider when a matching service node exists.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/comfy-org/comfy-skills/generate-3d
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-3d

README.md
[![agentmods](https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-3d.svg)](https://agentmods.dev/commands/comfy-org/comfy-skills/generate-3d)
Your own site
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-3d"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-3d.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00856
Opus 5 $0.00005 $0.00428
Sonnet 5 $0.00002 $0.00171
Haiku 4.5 $0.00001 $0.00086

Measured 8d ago against content hash 3e053ef7f976, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generate-3d scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code/commands/generate-3d.md · 39 lines

What it actually says

Generate a 3D model using Comfy Cloud based on the user's description: $ARGUMENTS

Approach: prefer a ready-made template over hand-building, and discover the current options with the tools rather than assuming a fixed catalog. Model, node, and template availability changes over time, so let the tools tell you what exists right now.

Step 0 - Partner-API shortcut. If the user named a provider or capability (Meshy, Tripo, Rodin, Tencent, and so on), find the matching node with search_nodes filtered by category: "api node/3d" (optionally add a q for the provider name). If a matching api node/3d/... node exists, try partner_generate first with type: "3d" and that provider's model slug, plus prompt and any optional fields (seed, medias[]). On success, return the artifact URL(s) and stop. If it returns "unknown model" or "not yet implemented", continue below.

  1. Look for a template first. Call search_templates with tag: "Image to 3D" (image-to-3D is the common case), and/or q: "3d" for the broader set. If a suitable template comes back, clone it as your base workflow: swap in the user's input (such as the reference image) and adjust settings instead of building from scratch. Cloning a template is almost always faster than hand-wiring nodes, so spend real effort here before falling through to step 2.

  2. If no template fits, discover nodes structurally - do not free-text guess. Use search_nodes with its typed filters, which match against the live catalog:

    • output_type: "FILE_3D_GLB" (also MESH, FILE_3D_OBJ) to find nodes that produce a 3D file.
    • category: "3d" or category: "api node/3d" to browse the 3D nodes.
    • input_type: "IMAGE" to find what accepts an image, for image-to-3D.

    Use search_models for any checkpoints the chosen nodes require. Do not paste in remembered model or node names - query for them, because the set changes.

  3. If the user provides a reference image (image-to-3D), upload_file it first.

  4. Build a ComfyUI API-format workflow JSON, or edit the cloned template. A 3D workflow generally chains an input, a 3D generation or reconstruction node, and a 3D save/output node.

  5. Validate inputs and outputs before submitting. Confirm the workflow has:

    • at least one input node carrying the user's intent (a text prompt node, or LoadImage for image-to-3D), and
    • at least one save/output node wired to the final mesh. If you are unsure of the exact node, find it with search_nodes output_type: "FILE_3D_GLB".

    API and partner nodes often produce an output but include no save node by default. Add and wire one, or the job runs and produces nothing retrievable, wasting compute. Do not skip this check.

  6. Call submit_workflow. 3D generation can take longer than image generation.

  7. Poll get_job_status every 5 seconds until completed, showing brief status updates while waiting. If the user asks to cancel, use cancel_job with the prompt_id.

  8. Call get_output to retrieve the result. Pass a short description (for example "red sports car 3d model") so the saved file gets a descriptive name.

  9. Tell the user where the files were saved. 3D outputs may include mesh files (.obj, .glb), textures, or rendered preview images.

If a step fails, show the error clearly and use the search tools to find a current alternative rather than assuming none exists.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 39 lines · 10 tokens per session scan A 3e053ef7f976

Subscribe to this mod's changes

generate-3d is a command published in the GitHub repository Comfy-Org/comfy-skills (190 stars, last pushed 2d ago), licensed MIT. It adds 10 tokens to every session and 856 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.