{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ms-foundry-image-gen",
    "name": "Microsoft Foundry image generation",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/jacqueskang/ms-foundry-image-gen",
    "canonicalUrl": "https://clawhub.ai/jacqueskang/ms-foundry-image-gen",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ms-foundry-image-gen",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ms-foundry-image-gen",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ms-foundry-image-gen"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ms-foundry-image-gen",
    "agentPageUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Azure Foundry Image Generation",
        "body": "AI image generation using an Azure Foundry (Cognitive Services / OpenAI) images deployment. Returns raw image bytes (PNG/JPEG) or a URL depending on the deployment response."
      },
      {
        "title": "Overview",
        "body": "Requires network access to your Foundry endpoint and a valid API key."
      },
      {
        "title": "Usage",
        "body": "Set environment variables (example):\n\nexport FOUNDRY_ENDPOINT=\"https://aif-sbxe2e-ai-agent-02.cognitiveservices.azure.com/\"\nexport FOUNDRY_API_KEY=\"<your_api_key>\"\nexport FOUNDRY_DEPLOYMENT=\"FLUX-1.1-pro\"\nexport FOUNDRY_API_VERSION=\"2025-04-01-preview\"\n\nGenerate an image (safe example using jq to build JSON):\n\n# Basic validation (reject obviously malformed endpoints)\nif ! printf '%s' \"${FOUNDRY_ENDPOINT:-}\" | grep -Eq '^https?://[A-Za-z0-9._:-]+/?$'; then\n  echo \"FOUNDRY_ENDPOINT looks unsafe or is not set\" >&2\n  exit 1\nfi\n\nurl=\"${FOUNDRY_ENDPOINT%/}/openai/deployments/${FOUNDRY_DEPLOYMENT}/images/generations?api-version=${FOUNDRY_API_VERSION:-2025-04-01-preview}\"\n\nPROMPT=\"a red fox\"\njq -n --arg prompt \"$PROMPT\" '{prompt:$prompt, n:1, size:\"1024x1024\", output_format:\"png\"}' | \\\n  curl --fail --show-error --silent \\\n    --url \"$url\" \\\n    -H 'Content-Type: application/json' \\\n    -H \"api-key: ${FOUNDRY_API_KEY}\" \\\n    --data-binary @- -o /tmp/generation_result.json\n  \n# Stream base64 payload to avoid storing large values in shell variables\njq -r '.data[0].b64_json' /tmp/generation_result.json | base64 --decode > /tmp/generated_image.png\necho \"Image saved to: /tmp/generated_image.png\""
      },
      {
        "title": "Options",
        "body": "FOUNDRY_ENDPOINT (required): Azure base URI for Foundry (include scheme, e.g. https://<name>.cognitiveservices.azure.com/)\nFOUNDRY_API_KEY (required): API key (primary credential)\nFOUNDRY_DEPLOYMENT (required): Deployment name to call\nFOUNDRY_API_VERSION (optional): API version (default: 2025-04-01-preview)"
      },
      {
        "title": "Notes",
        "body": "The skill manifest (src/manifest.json) declares the required environment variables and marks FOUNDRY_API_KEY as the primary credential.\nThis document provides a safe example using jq --arg and streaming to prevent shell interpolation and command-injection risks."
      },
      {
        "title": "Troubleshooting",
        "body": "If you see authentication errors, verify FOUNDRY_API_KEY permissions for the deployment.\nIf jq or base64 are missing, install them via your package manager (e.g., apt install jq coreutils on Debian/Ubuntu)."
      },
      {
        "title": "License / Attribution",
        "body": "This skill is a minimal wrapper around the Foundry images generation REST endpoint for use in OpenClaw workflows."
      }
    ],
    "body": "Azure Foundry Image Generation\n\nAI image generation using an Azure Foundry (Cognitive Services / OpenAI) images deployment. Returns raw image bytes (PNG/JPEG) or a URL depending on the deployment response.\n\nOverview\nRequires network access to your Foundry endpoint and a valid API key.\nUsage\n\nSet environment variables (example):\n\nexport FOUNDRY_ENDPOINT=\"https://aif-sbxe2e-ai-agent-02.cognitiveservices.azure.com/\"\nexport FOUNDRY_API_KEY=\"<your_api_key>\"\nexport FOUNDRY_DEPLOYMENT=\"FLUX-1.1-pro\"\nexport FOUNDRY_API_VERSION=\"2025-04-01-preview\"\n\n\nGenerate an image (safe example using jq to build JSON):\n\n# Basic validation (reject obviously malformed endpoints)\nif ! printf '%s' \"${FOUNDRY_ENDPOINT:-}\" | grep -Eq '^https?://[A-Za-z0-9._:-]+/?$'; then\n  echo \"FOUNDRY_ENDPOINT looks unsafe or is not set\" >&2\n  exit 1\nfi\n\nurl=\"${FOUNDRY_ENDPOINT%/}/openai/deployments/${FOUNDRY_DEPLOYMENT}/images/generations?api-version=${FOUNDRY_API_VERSION:-2025-04-01-preview}\"\n\nPROMPT=\"a red fox\"\njq -n --arg prompt \"$PROMPT\" '{prompt:$prompt, n:1, size:\"1024x1024\", output_format:\"png\"}' | \\\n  curl --fail --show-error --silent \\\n    --url \"$url\" \\\n    -H 'Content-Type: application/json' \\\n    -H \"api-key: ${FOUNDRY_API_KEY}\" \\\n    --data-binary @- -o /tmp/generation_result.json\n  \n# Stream base64 payload to avoid storing large values in shell variables\njq -r '.data[0].b64_json' /tmp/generation_result.json | base64 --decode > /tmp/generated_image.png\necho \"Image saved to: /tmp/generated_image.png\"\n\nOptions\nFOUNDRY_ENDPOINT (required): Azure base URI for Foundry (include scheme, e.g. https://<name>.cognitiveservices.azure.com/)\nFOUNDRY_API_KEY (required): API key (primary credential)\nFOUNDRY_DEPLOYMENT (required): Deployment name to call\nFOUNDRY_API_VERSION (optional): API version (default: 2025-04-01-preview)\nNotes\nThe skill manifest (src/manifest.json) declares the required environment variables and marks FOUNDRY_API_KEY as the primary credential.\nThis document provides a safe example using jq --arg and streaming to prevent shell interpolation and command-injection risks.\nTroubleshooting\nIf you see authentication errors, verify FOUNDRY_API_KEY permissions for the deployment.\nIf jq or base64 are missing, install them via your package manager (e.g., apt install jq coreutils on Debian/Ubuntu).\nLicense / Attribution\n\nThis skill is a minimal wrapper around the Foundry images generation REST endpoint for use in OpenClaw workflows."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/jacqueskang/ms-foundry-image-gen",
    "publisherUrl": "https://clawhub.ai/jacqueskang/ms-foundry-image-gen",
    "owner": "jacqueskang",
    "version": "1.0.6",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen",
    "downloadUrl": "https://openagent3.xyz/downloads/ms-foundry-image-gen",
    "agentUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ms-foundry-image-gen/agent.md"
  }
}