360 Secure SkillHub
360 安全技能中心

Clawcap Avatar Equip

通过三阶段流程为头像添加帽子或头饰:先用 Gemini 视觉分析艺术风格、光照与头部位置,再用 Pillow/NumPy 生成像素级遮罩,最后由 Gemini 生成与原型风格匹配的配饰。支持照片、动漫、3D 与像素风头像,可作为 MCP 工具或 Web API 调用。

ls569333469
ls569333469
热度 55.47
最近更新 2026-05-11 17:31:12
分类:创作依赖:代码执行 / 读写文件 / 第三方 API / MCP 服务应用场景:图像生成 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add the-clawcap
Metadata
name
clawcap-avatar-equip
description
AI-powered avatar accessory synthesis — automatically analyzes art style, lighting, and angle to seamlessly add hats and headwear to any avatar image.

🦞🧠 The ClawCap — Avatar Accessory Skill

When the user wants to add a hat, headwear, or accessory to an avatar image, use this skill.

What It Does

ClawCap uses a 3-stage AI pipeline to add accessories to any avatar:

  1. VLM Fingerprint — Gemini Vision analyzes the avatar's art style, lighting, color palette, and head position
  2. Mask Generation — Automatically creates a pixel-precise placement mask using Pillow/NumPy
  3. AI Inpainting — Gemini generates the accessory that perfectly matches the original style

Supported Styles

  • 📷 Real photos
  • 🎨 Anime / 2D illustrations
  • 🧊 3D renders
  • 👾 Pixel art / NFT avatars

How to Use

As MCP Skill (Claude Desktop)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "clawcap": {
      "command": "python",
      "args": ["mcp_server.py"],
      "cwd": "/path/to/The-ClawCap"
    }
  }
}

Then tell Claude: "给这个头像戴上一顶龙虾帽" with an image attached.

As Web API

POST http://localhost:8000/api/skill/alpha-equip
Content-Type: application/json

{
  "image_base64": "<base64 encoded image>",
  "accessory_prompt": "a red lobster claw beanie hat"
}

Live Demo

🌐 Try it online (Rate limited: 3 requests/minute per IP)

Requirements

Repository

🔗 GitHub: The-ClawCap