{
  "schemaVersion": "1.0",
  "item": {
    "slug": "color-palette",
    "name": "Color Palette Generator",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/QROST/color-palette",
    "canonicalUrl": "https://clawhub.ai/QROST/color-palette",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/color-palette",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=color-palette",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "clawhub.json",
      "requirements.txt",
      "scripts/extract_palette.py"
    ],
    "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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/color-palette"
    },
    "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/color-palette",
    "agentPageUrl": "https://openagent3.xyz/skills/color-palette/agent",
    "manifestUrl": "https://openagent3.xyz/skills/color-palette/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/color-palette/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": "Color Palette",
        "body": "Extract dominant colors from a photo and get HEX/RGB values for use in design tools or mood boards."
      },
      {
        "title": "Dependencies",
        "body": "Pillow (image handling; required)\ncolorgram (optional; better dominant-color extraction; pip install colorgram.py)\nmatplotlib (optional; only if generating swatch image with --output)\n\nSetup: OpenClaw does not install Python packages automatically. After installing this skill, run once: pip install -r requirements.txt (from the skill folder or pass the path). If a script fails with ModuleNotFoundError, install the missing package."
      },
      {
        "title": "Extract palette from an image",
        "body": "Parameters:\n\nimage: Path to the image file (JPEG, PNG, etc.).\n-n, --num-colors: Number of colors to extract (default 5, max 20).\n--output: Optional path to save a swatch PNG.\n\npython3 scripts/extract_palette.py /path/to/photo.jpg\npython3 scripts/extract_palette.py /path/to/photo.jpg -n 8 --output palette_swatch.png\n\nOutput: one line per color with HEX and RGB (e.g. #2A4B7C  RGB(42, 75, 124)). If --output is set, a simple swatch image is saved."
      },
      {
        "title": "Sending images to Telegram",
        "body": "These skills are used from the OpenClaw Telegram conversation. To show the user a picture, the agent must (1) run the script with an image output path (PNG or JPG), then (2) send that file to the conversation using the OpenClaw message/media tool. For this skill: use --output <path>.png so you have an image to send; then send that PNG to the user.\n\nOpenClaw allowed paths: The message tool only sends files from allowed dirs (~/.openclaw/media/, ~/.openclaw/agents/, or system temp e.g. /tmp). Use e.g. --output ~/.openclaw/media/palette.png or --output /tmp/palette.png; do not use the skill install directory or sending will fail.\n\nAgent behavior: When the user asks to extract colors from an image (or sends an image for a palette), run the script directly with exec: save the image to a temp path if needed, run extract_palette.py <image_path> -n <N> --output <path>.png with <path> under an allowed dir, return the HEX/RGB text and send the swatch PNG. Do not ask for confirmation; execute and return the palette and image."
      },
      {
        "title": "Examples",
        "body": "User: \"Extract 5 colors from this image\" (with image attached).\nAction: Save the image to a temp path, run extract_palette.py <path> -n 5 --output /tmp/palette.png, return the HEX/RGB list and send the swatch PNG.\n\nUser: \"Give me a color palette from [image] and save the swatch as swatch.png.\"\nAction: Run with --output swatch.png, return the palette text and send the image."
      }
    ],
    "body": "Color Palette\n\nExtract dominant colors from a photo and get HEX/RGB values for use in design tools or mood boards.\n\nDependencies\nPillow (image handling; required)\ncolorgram (optional; better dominant-color extraction; pip install colorgram.py)\nmatplotlib (optional; only if generating swatch image with --output)\n\nSetup: OpenClaw does not install Python packages automatically. After installing this skill, run once: pip install -r requirements.txt (from the skill folder or pass the path). If a script fails with ModuleNotFoundError, install the missing package.\n\nUsage\nExtract palette from an image\n\nParameters:\n\nimage: Path to the image file (JPEG, PNG, etc.).\n-n, --num-colors: Number of colors to extract (default 5, max 20).\n--output: Optional path to save a swatch PNG.\npython3 scripts/extract_palette.py /path/to/photo.jpg\npython3 scripts/extract_palette.py /path/to/photo.jpg -n 8 --output palette_swatch.png\n\n\nOutput: one line per color with HEX and RGB (e.g. #2A4B7C RGB(42, 75, 124)). If --output is set, a simple swatch image is saved.\n\nSending images to Telegram\n\nThese skills are used from the OpenClaw Telegram conversation. To show the user a picture, the agent must (1) run the script with an image output path (PNG or JPG), then (2) send that file to the conversation using the OpenClaw message/media tool. For this skill: use --output <path>.png so you have an image to send; then send that PNG to the user.\n\nOpenClaw allowed paths: The message tool only sends files from allowed dirs (~/.openclaw/media/, ~/.openclaw/agents/, or system temp e.g. /tmp). Use e.g. --output ~/.openclaw/media/palette.png or --output /tmp/palette.png; do not use the skill install directory or sending will fail.\n\nAgent behavior: When the user asks to extract colors from an image (or sends an image for a palette), run the script directly with exec: save the image to a temp path if needed, run extract_palette.py <image_path> -n <N> --output <path>.png with <path> under an allowed dir, return the HEX/RGB text and send the swatch PNG. Do not ask for confirmation; execute and return the palette and image.\n\nExamples\n\nUser: \"Extract 5 colors from this image\" (with image attached).\nAction: Save the image to a temp path, run extract_palette.py <path> -n 5 --output /tmp/palette.png, return the HEX/RGB list and send the swatch PNG.\n\nUser: \"Give me a color palette from [image] and save the swatch as swatch.png.\"\nAction: Run with --output swatch.png, return the palette text and send the image."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/QROST/color-palette",
    "publisherUrl": "https://clawhub.ai/QROST/color-palette",
    "owner": "QROST",
    "version": "1.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/color-palette",
    "downloadUrl": "https://openagent3.xyz/downloads/color-palette",
    "agentUrl": "https://openagent3.xyz/skills/color-palette/agent",
    "manifestUrl": "https://openagent3.xyz/skills/color-palette/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/color-palette/agent.md"
  }
}