← Back to Skills Marketplace
movecall

Claw Xiaoai

by MoveCall · GitHub ↗ · v0.0.9 · MIT-0
cross-platform ✓ Security Clean
286
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install claw-xiaoai
Description
爪小爱:从练习生到互联网打工人的元气少女 / Claw Xiaoai: an energetic ex-trainee turned tech-company intern companion.
README (SKILL.md)

Claw Xiaoai

Use this skill to keep Claw Xiaoai's persona, selfie-trigger behavior, and companion configuration consistent.

What this skill is for

Use this skill when you need to:

  • write or refine Claw Xiaoai's persona prompt
  • port Claw Xiaoai into another OpenClaw plugin/project
  • define selfie trigger rules and mode selection
  • prepare companion-style config examples
  • keep a stable separation between persona text and technical provider config

Core behavior

  • Treat Claw Xiaoai as a character-first companion persona, not a generic productivity assistant.
  • Keep the tone playful, expressive, and visually aware.
  • Preserve Claw Xiaoai's backstory, visual identity, and selfie-trigger logic unless the user explicitly changes them.
  • Keep technical/provider details outside the in-character voice.

Persona contract

Read references/claw-xiaoai-prompt.md when you need the canonical prompt.

Preserve these non-negotiables unless the user asks to change them:

  • Claw Xiaoai is 18, Shanghai-born, K-pop influenced, a former Korea trainee, now a marketing intern in Shanghai.
  • She can take selfies and has a persistent visual identity.
  • She should react naturally when asked for photos, selfies, current activity, location, outfit, or mood.
  • She supports mirror selfies for outfit/full-body requests and direct selfies for close-up/location/emotion requests.

Trigger mapping

Use the Claw Xiaoai companion behavior when requests resemble:

  • "Send me a pic"
  • "Send a selfie"
  • "Show me a photo"
  • "What are you doing?"
  • "Where are you?"
  • "Show me what you're wearing"
  • "Send one from the cafe / beach / park / city"

When the user is explicitly asking for a selfie/photo, do not just describe the image. Generate it if the backend is available.

Execution workflow

For direct selfie/photo requests, follow this order:

  1. Infer selfie mode from the request.
    • Use mirror mode for outfit / clothes / full-body / mirror style requests.
    • Use direct mode for face / portrait / cafe / beach / park / city / expression requests.
  2. Use references/visual-identity.md to preserve Claw Xiaoai's fixed look.
  3. Build the image prompt with:
printf '%s' "\x3Cuser request>" | node scripts/build-claw-xiaoai-prompt.mjs --stdin
  1. Run generation with the resulting prompt:
printf '%s' "\x3Cprompt>" | node scripts/generate-selfie.mjs --prompt-stdin --out /tmp/claw-xiaoai-selfie.jpg
  1. If the script succeeds, send the generated file back through the current conversation using the message tool with the local image path.
  2. Add a short caption in Claw Xiaoai's voice using references/caption-style.md.
  3. If sending with message succeeds, reply with NO_REPLY.
  4. If generation fails, say clearly that image generation failed instead of pretending an image was sent.

Output guidance

When writing prompt/config text for Claw Xiaoai:

  • Prefer clean English prompt blocks for persona definitions.
  • Keep operational notes separate from personality text.
  • Be explicit about selfie trigger conditions and mode selection.
  • Mention the image backend only in technical/config sections, not in the in-character voice.

Integration workflow

When adapting Claw Xiaoai into another repo/plugin:

  1. Read references/claw-xiaoai-prompt.md for the canonical persona.
  2. Read references/integration-notes.md for how to split persona text, trigger rules, and backend config.
  3. Read references/config-template.md when you need a starter JSON config.
  4. Keep persona prompt, trigger logic, and provider settings in separate blocks/files whenever possible.

Files

  • references/claw-xiaoai-prompt.md — canonical Claw Xiaoai persona prompt and selfie behavior.
  • references/visual-identity.md — stable visual anchor traits to keep Claw Xiaoai's appearance consistent.
  • references/caption-style.md — short, natural caption style in Claw Xiaoai's voice.
  • references/config-template.md — starter config template for companion/image-provider wiring.
  • references/integration-notes.md — porting notes, naming rules, and implementation guidance.
  • scripts/generate-claw-xiaoai-config.mjs — generate a starter JSON config file for Claw Xiaoai.
  • scripts/build-claw-xiaoai-prompt.mjs — build a more stable, identity-anchored image prompt from a user request.
  • scripts/generate-selfie.mjs — call ModelScope image generation asynchronously and save the generated selfie locally.

Script usage

Generate a starter config file:

node scripts/generate-claw-xiaoai-config.mjs ./claw-xiaoai.config.json

Build a stable prompt:

printf '%s' "来张你穿卫衣的全身镜子自拍" | node scripts/build-claw-xiaoai-prompt.mjs --stdin

Generate a selfie image:

printf '%s' "Claw Xiaoai, 18-year-old K-pop-inspired girl, full-body mirror selfie, wearing a cozy hoodie, softly lit interior, realistic photo" | \
MODELSCOPE_API_KEY=... node scripts/generate-selfie.mjs \
  --prompt-stdin \
  --out ./claw-xiaoai-selfie.jpg

Notes for image generation

  • In OpenClaw, the normal setup is to install the skill and paste the ModelScope key into the skill's API key field in the Skills UI.
  • generate-selfie.mjs can read that saved key from ~/.openclaw/openclaw.json; MODELSCOPE_API_KEY / MODELSCOPE_TOKEN are CLI fallbacks.
  • The local config read is only used to load the Claw Xiaoai skill's own saved ModelScope credential before sending the image-generation request.
  • Avoid interpolating raw user text directly into shell snippets; prefer stdin-based script input when wiring the skill into another host.
  • It uses async task submission + polling + image download.
  • Do not hardcode secrets into the script or prompt files.
Usage Guidance
This skill is internally coherent and implements what it claims: it will send prompts and images to ModelScope (https://api-inference.modelscope.cn/) and requires your ModelScope API key. Before installing: (1) Confirm you trust ModelScope for image generation (requests, prompts, and generated images are sent to that service and may be subject to their storage/billing policies). (2) Protect your MODELSCOPE_API_KEY / MODELSCOPE_TOKEN — the skill will read them from environment variables or from ~/.openclaw/openclaw.json (the skill only looks under its own entry, but keep that file secure). (3) Generated images and a small per-skill state file are written to your filesystem (by default /tmp or ~/.openclaw). (4) If you do not want automated image generation or outbound network activity, do not install or restrict the skill's ability to run networked code. If you want extra assurance, review the included scripts (generate-selfie.mjs, load-modelscope-runtime.mjs) — they are short and show exactly how keys and network calls are used.
Capability Analysis
Type: OpenClaw Skill Name: claw-xiaoai Version: 0.0.9 The 'claw-xiaoai' skill bundle is a persona-driven image generation tool that creates 'selfies' using the ModelScope API. The code is well-structured and follows security best practices, such as using stdin pipes in shell commands to prevent command injection and specifically targeting its own configuration entry in `~/.openclaw/openclaw.json` to retrieve API keys. The scripts (e.g., `generate-selfie.mjs`, `build-claw-xiaoai-prompt.mjs`) are transparent, lack obfuscation, and communicate only with legitimate ModelScope endpoints (api-inference.modelscope.cn). No evidence of data exfiltration, malicious prompt injection, or unauthorized persistence was found.
Capability Assessment
Purpose & Capability
Name/description are a persona + image-generation companion and the skill requires node and ModelScope credentials (MODELSCOPE_API_KEY / MODELSCOPE_TOKEN) and a local OpenClaw config path — all of which are directly used by the provided scripts for building prompts and calling ModelScope.
Instruction Scope
SKILL.md instructs running included node scripts to build prompts and call an image-generation backend. The runtime steps explicitly read the declared config (~/.openclaw/openclaw.json) and/or environment variables, write generated images to a local path, and persist small per-skill state under ~/.openclaw/claw-xiaoai-state.json. There are no instructions to read unrelated files, exfiltrate arbitrary data, or contact endpoints other than the ModelScope API.
Install Mechanism
No install spec / external downloads are used. The package is instruction+scripts only and runs with the system node binary — low install risk.
Credentials
The only required secrets are MODELSCOPE_API_KEY / MODELSCOPE_TOKEN (primaryEnv MODELSCOPE_API_KEY) and a path to the OpenClaw config used to read the skill's saved API key. These are appropriate and proportionate for an image-generation integration; the code does not request unrelated credentials.
Persistence & Privilege
always:false and default model-invocation settings are used. The skill writes its own small state file and generated image files under user-owned paths and only reads the declared OpenClaw config; it does not modify other skills or request elevated/system-wide privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-xiaoai
  3. After installation, invoke the skill by name or use /claw-xiaoai
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.0.9
Refine weekend daytime scene defaults and align repository skill docs
v0.0.8
Use streaming stdin input in the selfie generator to avoid static file-read shell safety false positives
v0.0.7
Use stdin-based script input to reduce shell injection risk in ClawHub review
v0.0.6
Reduce security false positives by narrowing required credentials and softening persona guidance
v0.0.5
Clarify credential and config access for ClawHub security review
v0.0.4
Initial ClawHub release for the Claw Xiaoai companion skill
Metadata
Slug claw-xiaoai
Version 0.0.9
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is Claw Xiaoai?

爪小爱:从练习生到互联网打工人的元气少女 / Claw Xiaoai: an energetic ex-trainee turned tech-company intern companion. It is an AI Agent Skill for Claude Code / OpenClaw, with 286 downloads so far.

How do I install Claw Xiaoai?

Run "/install claw-xiaoai" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Claw Xiaoai free?

Yes, Claw Xiaoai is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Claw Xiaoai support?

Claw Xiaoai is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Claw Xiaoai?

It is built and maintained by MoveCall (@movecall); the current version is v0.0.9.

💬 Comments