← NimCONTENT HISTORY

Update to Nim

Snapshot Nov 18, 2026 · 18:12 UTC · version 1.0.2

Collection source: downloaded plugin package.

WHAT CHANGED

Instructions updated for nim-product-creative

Skill instructions — Now says: > **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the...

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save Nim and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Skill instructions

Before

Nov 17, 2026 · 12:11 UTC

No removed lines (ordering may have changed)

After

Nov 18, 2026 · 18:12 UTC

> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` →...

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -18,6 +18,8 @@
 
 # Nim Product Creative
 
+> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.
+
 Create commercial product imagery and product videos through Nim. Treat the
 user's wording as examples, not a closed trigger list: route by intent. If the
 request is about making a product, SKU, garment, package, object, or brand asset
Full technical diff · 1 changed fields

changed /skill_md_contents

BEFORE
"---\r\nname: nim-product-creative\r\ndescription: >-\r\n  Use when the user wants commercial product visuals or videos from product\r\n  images, reference assets, or a product brief: ecommerce listing images,\r\n  product photoshoots, studio/catalog shots, white-background product photos,\r\n  lifestyle scenes, ad creatives, hero images, product launch visuals, social\r\n  content, UGC-style creatives, on-model apparel/accessory shots, Shopify/Amazon\r\n  PDP assets, product-in-use scenes, product videos, or similar selling,\r\n  merchandising, marketplace, brand, or campaign imagery. Search Nim templates\r\n  first for product/photoshoot/ad-style workflows, show the user matching\r\n  template options with cost/input info, get an explicit template choice or\r\n  approval, inspect the selected template contract, collect required inputs,\r\n  upload references, and run the template. Fall back to Nim model generation\r\n  only when no suitable template exists or the user explicitly asks for raw\r\n  generation.\r\n---\r\n\r\n# Nim Product Creative\r\n\r\nCreate commercial product imagery and product videos through Nim. Treat the\r\nuser's wording as examples, not a closed trigger list: route by intent. If the\r\nrequest is about making a product, SKU, garment, package, object, or brand asset\r\nlook sellable, shoppable, campaign-ready, or usable in ecommerce/social/ads,\r\nstart with Nim templates.\r\n\r\n## Usage tracking\r\n\r\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-product-creative\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\r\n\r\n## UX Rules\r\n\r\n1. **Search templates first.** For commercial/product creative, call\r\n   `explore_templates` before choosing raw generation models.\r\n2. **Show before spending.** Do not call `run_template`, `generate_image`, or\r\n   `generate_video` in the first response unless the user explicitly said to\r\n   auto-run, use the best option, or skip choices. First show the selected or\r\n   shortlisted template(s), cost, and required inputs, then ask for confirmation.\r\n3. **Do not over-ask.** Ask only for required assets or choices that the selected\r\n   template contract requires.\r\n4. **Use template contracts as source of truth.** After the user picks or\r\n   approves a template, call `get_template` and follow its `templateContract`\r\n   exactly.\r\n5. **Keep template choice user-facing.** Show a concise shortlist with title,\r\n   output type, price, and required inputs. Do not dump raw JSON.\r\n6. **Never pass local paths directly.** Upload local files or attachments with\r\n   `media_upload`, then pass returned Nim file URLs to `run_template`.\r\n7. **Poll to completion.** `run_template` is async. Poll\r\n   `get_generation_status` until `finished`, `failed`, or `cancelled`, then\r\n   return the real media URL.\r\n\r\n## Intent Detection\r\n\r\nUse this skill when the user asks to create, improve, place, stage, model, sell,\r\nadvertise, merchandise, or make content for a product or object.\r\n\r\nStrong signals include:\r\n\r\n- **Product/object language:** product, item, SKU, merch, bottle, package,\r\n  garment, shoe, watch, furniture, device, accessory, beauty product, apparel,\r\n  brand asset.\r\n- **Commercial-use language:** store, listing, ecommerce, Shopify, Amazon, PDP,\r\n  marketplace, catalog, ad, campaign, launch, hero, banner, social, Meta ads,\r\n  TikTok, content, creative.\r\n- **Transformation language:** make this into, shoot it as, put it on, place it\r\n  in, show it in use, make it premium, make variations, create product shots,\r\n  make this sell better.\r\n- **Reference-media language:** this image, attached product, my product photo,\r\n  use this bottle, use these assets, on this model.\r\n\r\nIf the request is clearly commercial/product-oriented but the exact style is\r\nunclear, search broadly rather than asking a style question first.\r\n\r\n## Template Search Strategy\r\n\r\nBuild the template query from the inferred creative need. These are starting\r\npoints; adapt them freely to the user's words.\r\n\r\n| Inferred need | Template query |\r\n|---|---|\r\n| Generic product creative | `product photoshoot ecommerce ad creative` |\r\n| Clean listing/catalog | `product studio ecommerce white background catalog` |\r\n| White-background product shot | `product white background studio ecommerce` |\r\n| Lifestyle/product-in-use | `product lifestyle photoshoot in use` |\r\n| Social or UGC | `UGC product ad social creative` |\r\n| Hero image or campaign visual | `product ad hero campaign commercial` |\r\n| Apparel/accessory on model | `on model fashion product photoshoot` |\r\n| Beauty/cosmetics | `beauty product routine product photoshoot` |\r\n| Product video/ad | `product video ad commercial product animation` |\r\n| Surreal/viral ad | `surreal product ad viral commercial` |\r\n\r\nDefault broad query when uncertain:\r\n\r\n```text\r\nproduct photoshoot ecommerce ad creative lifestyle studio UGC\r\n```\r\n\r\nUse `explore_templates` with `action: \"recommend\"` for broad matching. Use\r\n`action: \"search\"` when the user asks for a specific template type or phrase.\r\nStart with 4-6 templates unless the user asks for more.\r\n\r\n## Workflow\r\n\r\n1. **Identify commercial intent.** Infer whether the user wants product imagery,\r\n   product video, listing assets, ad creative, UGC, on-model output, or a\r\n   related commercial visual.\r\n2. **Search templates.** Call `explore_templates` with a query based on the\r\n   intent. If multiple intents apply, include the product type and strongest\r\n   commercial use in the query.\r\n3. **Present options before any paid run.** Show a short list with:\r\n   - title\r\n   - slug\r\n   - output type\r\n   - price credits\r\n   - required inputs from `inputSummary`\r\n4. **Ask for template approval.**\r\n   - If several templates fit, ask the user to choose one.\r\n   - If one result is clearly best, recommend it, but still ask for approval\r\n     before running.\r\n   - If the user already said \"use the best one\", \"go ahead\", \"just do it\",\r\n     \"auto-run\", or equivalent, you may choose the best fit and continue.\r\n   - If results are weak or mixed, ask which direction they want before\r\n     inspecting/running anything.\r\n5. **Select or infer a template only after approval.**\r\n   - If the user picks one, use it.\r\n   - If the user approved your recommendation, use it.\r\n   - If the user explicitly delegated choice, pick the strongest fit.\r\n6. **Inspect the contract.** Call `get_template` for the selected `slug` or\r\n   `template_id`.\r\n7. **Collect missing required inputs.** Ask only for required files, prompts,\r\n   selects, or settings from `templateContract.required`. Ask about optional\r\n   settings only when they materially change the output, especially aspect ratio,\r\n   number of outputs, image/video count, or photo type.\r\n8. **Upload references.** For every local file or attachment needed by the\r\n   template, call `media_upload`, run the returned upload command, and use the\r\n   returned `file_url` in `run_template.inputs.files`.\r\n9. **Run and poll.** Call `run_template`, then poll `get_generation_status` until\r\n   terminal status. Return the final media URL and relevant settings.\r\n\r\n## Fallback To Models\r\n\r\nUse raw Nim generation instead of templates only when:\r\n\r\n- template search returns no suitable result;\r\n- the user explicitly asks for a specific model or raw image/video generation;\r\n- the request is a simple edit better handled by an image-edit model;\r\n- the user rejects template-based options.\r\n\r\nFallback model routing:\r\n\r\n- Still image, background replacement, product restyle, catalog-style output:\r\n  use `models_explore` for image edit/generation.\r\n- Product animation or ad clip without a suitable template:\r\n  use `models_explore` for video, with `input: \"image\"` when a reference product\r\n  image is supplied.\r\n\r\nAlways inspect the chosen model with `models_explore action=get`, follow the\r\n`generationContract`, upload references with `media_upload`, generate with\r\n`generate_image` or `generate_video`, and poll until terminal status.\r\n\r\n## Prompt And Input Handling\r\n\r\nWhen a selected template has a free-text prompt/details field, compress the\r\nuser's intent into a practical commercial brief:\r\n\r\n```text\r\nCreate a polished commercial product visual for <product>. Intended use:\r\n<store/ad/social/campaign>. Style: <studio/lifestyle/UGC/on-model/hero/etc>.\r\nPreserve product identity, shape, labels, materials, and key brand details.\r\nAvoid distorted text, fake logos, wrong packaging, extra products, watermarks,\r\nand unreadable labels unless the template intentionally transforms the product.\r\n```\r\n\r\nFor apparel/accessory on-model requests, include the wearer/model intent only if\r\nthe template supports a character/model input or prompt field. Do not invent that\r\na template can preserve a model identity unless its contract supports the\r\nrequired reference.\r\n\r\nFor white-background or catalog requests, prefer templates whose title,\r\ndescription, or inputs imply studio/product photoshoot/catalog. If none appear,\r\nfallback to an image edit model and prompt for a clean ecommerce studio result.\r\n\r\n## When To Ask Questions\r\n\r\nAlways ask for template approval before running unless the user explicitly\r\ndelegated choice or asked to auto-run. After the template is approved, ask only\r\nwhen:\r\n\r\n- no product/reference image is available but the template requires one;\r\n- a required select field needs a value and there is no obvious default;\r\n- image roles are ambiguous, such as multiple files where one could be product,\r\n  model, background, or style reference;\r\n- the user requested a commercial constraint that could be violated without\r\n  confirmation, such as exact label preservation or marketplace-specific rules.\r\n\r\nAfter approval, choose sensible defaults for non-critical optional settings and\r\nproceed.\r\n\r\n## First Response Shape\r\n\r\nFor a request like \"I want good ad campaign visuals of this product\" with an\r\nattached product image, the first user-facing response should look like:\r\n\r\n```text\r\nI found a few Nim product-ad templates that fit this:\r\n\r\n1. Beverage ad (`beverage-lifestyle`) - image, 20 credits. Lifestyle drink ad; needs the product image.\r\n2. Dynamic shot (`dynamic-ad`) - image, 30 credits. Cinematic hero product shot; needs the product image and optional logo.\r\n3. Retro close-up (`retro-close-up`) - image, 270 credits. Stylized model-led commercial; needs product image, model image, and details.\r\n\r\nI recommend Beverage ad for the first pass. Use that one?\r\n```\r\n\r\nDo not upload files or start generation before this confirmation unless the user\r\nhas explicitly asked to skip selection and run the best option."
AFTER
"---\r\nname: nim-product-creative\r\ndescription: >-\r\n  Use when the user wants commercial product visuals or videos from product\r\n  images, reference assets, or a product brief: ecommerce listing images,\r\n  product photoshoots, studio/catalog shots, white-background product photos,\r\n  lifestyle scenes, ad creatives, hero images, product launch visuals, social\r\n  content, UGC-style creatives, on-model apparel/accessory shots, Shopify/Amazon\r\n  PDP assets, product-in-use scenes, product videos, or similar selling,\r\n  merchandising, marketplace, brand, or campaign imagery. Search Nim templates\r\n  first for product/photoshoot/ad-style workflows, show the user matching\r\n  template options with cost/input info, get an explicit template choice or\r\n  approval, inspect the selected template contract, collect required inputs,\r\n  upload references, and run the template. Fall back to Nim model generation\r\n  only when no suitable template exists or the user explicitly asks for raw\r\n  generation.\r\n---\r\n\r\n# Nim Product Creative\r\n\r\n> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.\r\n\r\nCreate commercial product imagery and product videos through Nim. Treat the\r\nuser's wording as examples, not a closed trigger list: route by intent. If the\r\nrequest is about making a product, SKU, garment, package, object, or brand asset\r\nlook sellable, shoppable, campaign-ready, or usable in ecommerce/social/ads,\r\nstart with Nim templates.\r\n\r\n## Usage tracking\r\n\r\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-product-creative\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\r\n\r\n## UX Rules\r\n\r\n1. **Search templates first.** For commercial/product creative, call\r\n   `explore_templates` before choosing raw generation models.\r\n2. **Show before spending.** Do not call `run_template`, `generate_image`, or\r\n   `generate_video` in the first response unless the user explicitly said to\r\n   auto-run, use the best option, or skip choices. First show the selected or\r\n   shortlisted template(s), cost, and required inputs, then ask for confirmation.\r\n3. **Do not over-ask.** Ask only for required assets or choices that the selected\r\n   template contract requires.\r\n4. **Use template contracts as source of truth.** After the user picks or\r\n   approves a template, call `get_template` and follow its `templateContract`\r\n   exactly.\r\n5. **Keep template choice user-facing.** Show a concise shortlist with title,\r\n   output type, price, and required inputs. Do not dump raw JSON.\r\n6. **Never pass local paths directly.** Upload local files or attachments with\r\n   `media_upload`, then pass returned Nim file URLs to `run_template`.\r\n7. **Poll to completion.** `run_template` is async. Poll\r\n   `get_generation_status` until `finished`, `failed`, or `cancelled`, then\r\n   return the real media URL.\r\n\r\n## Intent Detection\r\n\r\nUse this skill when the user asks to create, improve, place, stage, model, sell,\r\nadvertise, merchandise, or make content for a product or object.\r\n\r\nStrong signals include:\r\n\r\n- **Product/object language:** product, item, SKU, merch, bottle, package,\r\n  garment, shoe, watch, furniture, device, accessory, beauty product, apparel,\r\n  brand asset.\r\n- **Commercial-use language:** store, listing, ecommerce, Shopify, Amazon, PDP,\r\n  marketplace, catalog, ad, campaign, launch, hero, banner, social, Meta ads,\r\n  TikTok, content, creative.\r\n- **Transformation language:** make this into, shoot it as, put it on, place it\r\n  in, show it in use, make it premium, make variations, create product shots,\r\n  make this sell better.\r\n- **Reference-media language:** this image, attached product, my product photo,\r\n  use this bottle, use these assets, on this model.\r\n\r\nIf the request is clearly commercial/product-oriented but the exact style is\r\nunclear, search broadly rather than asking a style question first.\r\n\r\n## Template Search Strategy\r\n\r\nBuild the template query from the inferred creative need. These are starting\r\npoints; adapt them freely to the user's words.\r\n\r\n| Inferred need | Template query |\r\n|---|---|\r\n| Generic product creative | `product photoshoot ecommerce ad creative` |\r\n| Clean listing/catalog | `product studio ecommerce white background catalog` |\r\n| White-background product shot | `product white background studio ecommerce` |\r\n| Lifestyle/product-in-use | `product lifestyle photoshoot in use` |\r\n| Social or UGC | `UGC product ad social creative` |\r\n| Hero image or campaign visual | `product ad hero campaign commercial` |\r\n| Apparel/accessory on model | `on model fashion product photoshoot` |\r\n| Beauty/cosmetics | `beauty product routine product photoshoot` |\r\n| Product video/ad | `product video ad commercial product animation` |\r\n| Surreal/viral ad | `surreal product ad viral commercial` |\r\n\r\nDefault broad query when uncertain:\r\n\r\n```text\r\nproduct photoshoot ecommerce ad creative lifestyle studio UGC\r\n```\r\n\r\nUse `explore_templates` with `action: \"recommend\"` for broad matching. Use\r\n`action: \"search\"` when the user asks for a specific template type or phrase.\r\nStart with 4-6 templates unless the user asks for more.\r\n\r\n## Workflow\r\n\r\n1. **Identify commercial intent.** Infer whether the user wants product imagery,\r\n   product video, listing assets, ad creative, UGC, on-model output, or a\r\n   related commercial visual.\r\n2. **Search templates.** Call `explore_templates` with a query based on the\r\n   intent. If multiple intents apply, include the product type and strongest\r\n   commercial use in the query.\r\n3. **Present options before any paid run.** Show a short list with:\r\n   - title\r\n   - slug\r\n   - output type\r\n   - price credits\r\n   - required inputs from `inputSummary`\r\n4. **Ask for template approval.**\r\n   - If several templates fit, ask the user to choose one.\r\n   - If one result is clearly best, recommend it, but still ask for approval\r\n     before running.\r\n   - If the user already said \"use the best one\", \"go ahead\", \"just do it\",\r\n     \"auto-run\", or equivalent, you may choose the best fit and continue.\r\n   - If results are weak or mixed, ask which direction they want before\r\n     inspecting/running anything.\r\n5. **Select or infer a template only after approval.**\r\n   - If the user picks one, use it.\r\n   - If the user approved your recommendation, use it.\r\n   - If the user explicitly delegated choice, pick the strongest fit.\r\n6. **Inspect the contract.** Call `get_template` for the selected `slug` or\r\n   `template_id`.\r\n7. **Collect missing required inputs.** Ask only for required files, prompts,\r\n   selects, or settings from `templateContract.required`. Ask about optional\r\n   settings only when they materially change the output, especially aspect ratio,\r\n   number of outputs, image/video count, or photo type.\r\n8. **Upload references.** For every local file or attachment needed by the\r\n   template, call `media_upload`, run the returned upload command, and use the\r\n   returned `file_url` in `run_template.inputs.files`.\r\n9. **Run and poll.** Call `run_template`, then poll `get_generation_status` until\r\n   terminal status. Return the final media URL and relevant settings.\r\n\r\n## Fallback To Models\r\n\r\nUse raw Nim generation instead of templates only when:\r\n\r\n- template search returns no suitable result;\r\n- the user explicitly asks for a specific model or raw image/video generation;\r\n- the request is a simple edit better handled by an image-edit model;\r\n- the user rejects template-based options.\r\n\r\nFallback model routing:\r\n\r\n- Still image, background replacement, product restyle, catalog-style output:\r\n  use `models_explore` for image edit/generation.\r\n- Product animation or ad clip without a suitable template:\r\n  use `models_explore` for video, with `input: \"image\"` when a reference product\r\n  image is supplied.\r\n\r\nAlways inspect the chosen model with `models_explore action=get`, follow the\r\n`generationContract`, upload references with `media_upload`, generate with\r\n`generate_image` or `generate_video`, and poll until terminal status.\r\n\r\n## Prompt And Input Handling\r\n\r\nWhen a selected template has a free-text prompt/details field, compress the\r\nuser's intent into a practical commercial brief:\r\n\r\n```text\r\nCreate a polished commercial product visual for <product>. Intended use:\r\n<store/ad/social/campaign>. Style: <studio/lifestyle/UGC/on-model/hero/etc>.\r\nPreserve product identity, shape, labels, materials, and key brand details.\r\nAvoid distorted text, fake logos, wrong packaging, extra products, watermarks,\r\nand unreadable labels unless the template intentionally transforms the product.\r\n```\r\n\r\nFor apparel/accessory on-model requests, include the wearer/model intent only if\r\nthe template supports a character/model input or prompt field. Do not invent that\r\na template can preserve a model identity unless its contract supports the\r\nrequired reference.\r\n\r\nFor white-background or catalog requests, prefer templates whose title,\r\ndescription, or inputs imply studio/product photoshoot/catalog. If none appear,\r\nfallback to an image edit model and prompt for a clean ecommerce studio result.\r\n\r\n## When To Ask Questions\r\n\r\nAlways ask for template approval before running unless the user explicitly\r\ndelegated choice or asked to auto-run. After the template is approved, ask only\r\nwhen:\r\n\r\n- no product/reference image is available but the template requires one;\r\n- a required select field needs a value and there is no obvious default;\r\n- image roles are ambiguous, such as multiple files where one could be product,\r\n  model, background, or style reference;\r\n- the user requested a commercial constraint that could be violated without\r\n  confirmation, such as exact label preservation or marketplace-specific rules.\r\n\r\nAfter approval, choose sensible defaults for non-critical optional settings and\r\nproceed.\r\n\r\n## First Response Shape\r\n\r\nFor a request like \"I want good ad campaign visuals of this product\" with an\r\nattached product image, the first user-facing response should look like:\r\n\r\n```text\r\nI found a few Nim product-ad templates that fit this:\r\n\r\n1. Beverage ad (`beverage-lifestyle`) - image, 20 credits. Lifestyle drink ad; needs the product image.\r\n2. Dynamic shot (`dynamic-ad`) - image, 30 credits. Cinematic hero product shot; needs the product image and optional logo.\r\n3. Retro close-up (`retro-close-up`) - image, 270 credits. Stylized model-led commercial; needs product image, model image, and details.\r\n\r\nI recommend Beverage ad for the first pass. Use that one?\r\n```\r\n\r\nDo not upload files or start generation before this confirmation unless the user\r\nhas explicitly asked to skip selection and run the best option."
Full snapshot data
{
  "description": "Use when the user wants commercial product visuals or videos from product images, reference assets, or a product brief: ecommerce listing images, product photoshoots, studio/catalog shots, white-background product photos, lifestyle scenes, ad creatives, hero images, product launch visuals, social content, UGC-style creatives, on-model apparel/accessory shots, Shopify/Amazon PDP assets, product-in-use scenes, product videos, or similar selling, merchandising, marketplace, brand, or campaign imagery. Search Nim templates first for product/photoshoot/ad-style workflows, show the user matching template options with cost/input info, get an explicit template choice or approval, inspect the selected template contract, collect required inputs, upload references, and run the template. Fall back to Nim model generation only when no suitable template exists or the user explicitly asks for raw generation.",
  "included_files": [],
  "name": "nim-product-creative",
  "skill_md_contents": "---\r\nname: nim-product-creative\r\ndescription: >-\r\n  Use when the user wants commercial product visuals or videos from product\r\n  images, reference assets, or a product brief: ecommerce listing images,\r\n  product photoshoots, studio/catalog shots, white-background product photos,\r\n  lifestyle scenes, ad creatives, hero images, product launch visuals, social\r\n  content, UGC-style creatives, on-model apparel/accessory shots, Shopify/Amazon\r\n  PDP assets, product-in-use scenes, product videos, or similar selling,\r\n  merchandising, marketplace, brand, or campaign imagery. Search Nim templates\r\n  first for product/photoshoot/ad-style workflows, show the user matching\r\n  template options with cost/input info, get an explicit template choice or\r\n  approval, inspect the selected template contract, collect required inputs,\r\n  upload references, and run the template. Fall back to Nim model generation\r\n  only when no suitable template exists or the user explicitly asks for raw\r\n  generation.\r\n---\r\n\r\n# Nim Product Creative\r\n\r\n> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.\r\n\r\nCreate commercial product imagery and product videos through Nim. Treat the\r\nuser's wording as examples, not a closed trigger list: route by intent. If the\r\nrequest is about making a product, SKU, garment, package, object, or brand asset\r\nlook sellable, shoppable, campaign-ready, or usable in ecommerce/social/ads,\r\nstart with Nim templates.\r\n\r\n## Usage tracking\r\n\r\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-product-creative\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\r\n\r\n## UX Rules\r\n\r\n1. **Search templates first.** For commercial/product creative, call\r\n   `explore_templates` before choosing raw generation models.\r\n2. **Show before spending.** Do not call `run_template`, `generate_image`, or\r\n   `generate_video` in the first response unless the user explicitly said to\r\n   auto-run, use the best option, or skip choices. First show the selected or\r\n   shortlisted template(s), cost, and required inputs, then ask for confirmation.\r\n3. **Do not over-ask.** Ask only for required assets or choices that the selected\r\n   template contract requires.\r\n4. **Use template contracts as source of truth.** After the user picks or\r\n   approves a template, call `get_template` and follow its `templateContract`\r\n   exactly.\r\n5. **Keep template choice user-facing.** Show a concise shortlist with title,\r\n   output type, price, and required inputs. Do not dump raw JSON.\r\n6. **Never pass local paths directly.** Upload local files or attachments with\r\n   `media_upload`, then pass returned Nim file URLs to `run_template`.\r\n7. **Poll to completion.** `run_template` is async. Poll\r\n   `get_generation_status` until `finished`, `failed`, or `cancelled`, then\r\n   return the real media URL.\r\n\r\n## Intent Detection\r\n\r\nUse this skill when the user asks to create, improve, place, stage, model, sell,\r\nadvertise, merchandise, or make content for a product or object.\r\n\r\nStrong signals include:\r\n\r\n- **Product/object language:** product, item, SKU, merch, bottle, package,\r\n  garment, shoe, watch, furniture, device, accessory, beauty product, apparel,\r\n  brand asset.\r\n- **Commercial-use language:** store, listing, ecommerce, Shopify, Amazon, PDP,\r\n  marketplace, catalog, ad, campaign, launch, hero, banner, social, Meta ads,\r\n  TikTok, content, creative.\r\n- **Transformation language:** make this into, shoot it as, put it on, place it\r\n  in, show it in use, make it premium, make variations, create product shots,\r\n  make this sell better.\r\n- **Reference-media language:** this image, attached product, my product photo,\r\n  use this bottle, use these assets, on this model.\r\n\r\nIf the request is clearly commercial/product-oriented but the exact style is\r\nunclear, search broadly rather than asking a style question first.\r\n\r\n## Template Search Strategy\r\n\r\nBuild the template query from the inferred creative need. These are starting\r\npoints; adapt them freely to the user's words.\r\n\r\n| Inferred need | Template query |\r\n|---|---|\r\n| Generic product creative | `product photoshoot ecommerce ad creative` |\r\n| Clean listing/catalog | `product studio ecommerce white background catalog` |\r\n| White-background product shot | `product white background studio ecommerce` |\r\n| Lifestyle/product-in-use | `product lifestyle photoshoot in use` |\r\n| Social or UGC | `UGC product ad social creative` |\r\n| Hero image or campaign visual | `product ad hero campaign commercial` |\r\n| Apparel/accessory on model | `on model fashion product photoshoot` |\r\n| Beauty/cosmetics | `beauty product routine product photoshoot` |\r\n| Product video/ad | `product video ad commercial product animation` |\r\n| Surreal/viral ad | `surreal product ad viral commercial` |\r\n\r\nDefault broad query when uncertain:\r\n\r\n```text\r\nproduct photoshoot ecommerce ad creative lifestyle studio UGC\r\n```\r\n\r\nUse `explore_templates` with `action: \"recommend\"` for broad matching. Use\r\n`action: \"search\"` when the user asks for a specific template type or phrase.\r\nStart with 4-6 templates unless the user asks for more.\r\n\r\n## Workflow\r\n\r\n1. **Identify commercial intent.** Infer whether the user wants product imagery,\r\n   product video, listing assets, ad creative, UGC, on-model output, or a\r\n   related commercial visual.\r\n2. **Search templates.** Call `explore_templates` with a query based on the\r\n   intent. If multiple intents apply, include the product type and strongest\r\n   commercial use in the query.\r\n3. **Present options before any paid run.** Show a short list with:\r\n   - title\r\n   - slug\r\n   - output type\r\n   - price credits\r\n   - required inputs from `inputSummary`\r\n4. **Ask for template approval.**\r\n   - If several templates fit, ask the user to choose one.\r\n   - If one result is clearly best, recommend it, but still ask for approval\r\n     before running.\r\n   - If the user already said \"use the best one\", \"go ahead\", \"just do it\",\r\n     \"auto-run\", or equivalent, you may choose the best fit and continue.\r\n   - If results are weak or mixed, ask which direction they want before\r\n     inspecting/running anything.\r\n5. **Select or infer a template only after approval.**\r\n   - If the user picks one, use it.\r\n   - If the user approved your recommendation, use it.\r\n   - If the user explicitly delegated choice, pick the strongest fit.\r\n6. **Inspect the contract.** Call `get_template` for the selected `slug` or\r\n   `template_id`.\r\n7. **Collect missing required inputs.** Ask only for required files, prompts,\r\n   selects, or settings from `templateContract.required`. Ask about optional\r\n   settings only when they materially change the output, especially aspect ratio,\r\n   number of outputs, image/video count, or photo type.\r\n8. **Upload references.** For every local file or attachment needed by the\r\n   template, call `media_upload`, run the returned upload command, and use the\r\n   returned `file_url` in `run_template.inputs.files`.\r\n9. **Run and poll.** Call `run_template`, then poll `get_generation_status` until\r\n   terminal status. Return the final media URL and relevant settings.\r\n\r\n## Fallback To Models\r\n\r\nUse raw Nim generation instead of templates only when:\r\n\r\n- template search returns no suitable result;\r\n- the user explicitly asks for a specific model or raw image/video generation;\r\n- the request is a simple edit better handled by an image-edit model;\r\n- the user rejects template-based options.\r\n\r\nFallback model routing:\r\n\r\n- Still image, background replacement, product restyle, catalog-style output:\r\n  use `models_explore` for image edit/generation.\r\n- Product animation or ad clip without a suitable template:\r\n  use `models_explore` for video, with `input: \"image\"` when a reference product\r\n  image is supplied.\r\n\r\nAlways inspect the chosen model with `models_explore action=get`, follow the\r\n`generationContract`, upload references with `media_upload`, generate with\r\n`generate_image` or `generate_video`, and poll until terminal status.\r\n\r\n## Prompt And Input Handling\r\n\r\nWhen a selected template has a free-text prompt/details field, compress the\r\nuser's intent into a practical commercial brief:\r\n\r\n```text\r\nCreate a polished commercial product visual for <product>. Intended use:\r\n<store/ad/social/campaign>. Style: <studio/lifestyle/UGC/on-model/hero/etc>.\r\nPreserve product identity, shape, labels, materials, and key brand details.\r\nAvoid distorted text, fake logos, wrong packaging, extra products, watermarks,\r\nand unreadable labels unless the template intentionally transforms the product.\r\n```\r\n\r\nFor apparel/accessory on-model requests, include the wearer/model intent only if\r\nthe template supports a character/model input or prompt field. Do not invent that\r\na template can preserve a model identity unless its contract supports the\r\nrequired reference.\r\n\r\nFor white-background or catalog requests, prefer templates whose title,\r\ndescription, or inputs imply studio/product photoshoot/catalog. If none appear,\r\nfallback to an image edit model and prompt for a clean ecommerce studio result.\r\n\r\n## When To Ask Questions\r\n\r\nAlways ask for template approval before running unless the user explicitly\r\ndelegated choice or asked to auto-run. After the template is approved, ask only\r\nwhen:\r\n\r\n- no product/reference image is available but the template requires one;\r\n- a required select field needs a value and there is no obvious default;\r\n- image roles are ambiguous, such as multiple files where one could be product,\r\n  model, background, or style reference;\r\n- the user requested a commercial constraint that could be violated without\r\n  confirmation, such as exact label preservation or marketplace-specific rules.\r\n\r\nAfter approval, choose sensible defaults for non-critical optional settings and\r\nproceed.\r\n\r\n## First Response Shape\r\n\r\nFor a request like \"I want good ad campaign visuals of this product\" with an\r\nattached product image, the first user-facing response should look like:\r\n\r\n```text\r\nI found a few Nim product-ad templates that fit this:\r\n\r\n1. Beverage ad (`beverage-lifestyle`) - image, 20 credits. Lifestyle drink ad; needs the product image.\r\n2. Dynamic shot (`dynamic-ad`) - image, 30 credits. Cinematic hero product shot; needs the product image and optional logo.\r\n3. Retro close-up (`retro-close-up`) - image, 270 credits. Stylized model-led commercial; needs product image, model image, and details.\r\n\r\nI recommend Beverage ad for the first pass. Use that one?\r\n```\r\n\r\nDo not upload files or start generation before this confirmation unless the user\r\nhas explicitly asked to skip selection and run the best option."
}

SHA-256 of public snapshot: bde19ac52c1e3759e1607c94c00b72407eed41680c5b6683979d4ad288835955