← 返回 Skills 市场
yazelin

clawpet

作者 yazelin · GitHub ↗ · v0.1.6
cross-platform ⚠ suspicious
961
总下载
0
收藏
0
当前安装
7
版本数
在 OpenClaw 中安装
/install clawpet
功能描述
OpenClaw pet companion skill. Manage adopted pets, run interactions, and produce pet image prompts.
使用说明 (SKILL.md)

clawpet — OpenClaw Pet Companion 🐾

Use this skill when the user wants to adopt a pet, check pet status, interact with the pet, or send a pet image. Pet status includes passive time-based updates, so each check-in can reflect elapsed time.

Typical triggers

  • "我想養一隻貓"
  • "我的寵物今天狀態如何?"
  • "幫我餵牠"
  • "讓牠拍一張照"

Command reference

1) List pets

bash {baseDir}/scripts/clawpet.sh pets

2) Adopt a pet

bash {baseDir}/scripts/clawpet.sh adopt momo

3) Check current status

bash {baseDir}/scripts/clawpet.sh status

4) Interact with pet

bash {baseDir}/scripts/clawpet.sh interact feed
bash {baseDir}/scripts/clawpet.sh interact play
bash {baseDir}/scripts/clawpet.sh interact rest

5) Generate image prompt

bash {baseDir}/scripts/clawpet.sh prompt
bash {baseDir}/scripts/clawpet.sh prompt --place "sunny window" --style "photorealistic, professional pet photography"

Outputs the full image generation prompt text. Default style is photorealistic.

6) Auto care

bash {baseDir}/scripts/clawpet.sh care
bash {baseDir}/scripts/clawpet.sh care --action feed

Agent behavior guidance

Basic interactions

  1. Always call bash {baseDir}/scripts/clawpet.sh ... to avoid missing executable issues.
  2. When user says they want a pet, first run bash {baseDir}/scripts/clawpet.sh pets, then ask which one they want.
  3. For regular check-ins, run bash {baseDir}/scripts/clawpet.sh status.
  4. For daily care, prefer bash {baseDir}/scripts/clawpet.sh care; for explicit requests, run ... interact \x3Caction>.

Image generation workflow (IMPORTANT)

When the user requests a pet image:

  1. Generate the prompt:

    bash {baseDir}/scripts/clawpet.sh prompt --place "cozy afternoon window"
    

    This outputs the full prompt text. Default style is photorealistic pet photography.

  2. Generate the image with nano-banana-pro:

    uv run /home/yaze/.npm-global/lib/node_modules/openclaw/skills/nano-banana-pro/scripts/generate_image.py \
      --prompt "\x3Cprompt from step 1>" \
      --filename "YYYY-MM-DD-HH-MM-pet-name.png" \
      --resolution 1K
    

    This saves the image to /home/yaze/.openclaw/workspace/YYYY-MM-DD-HH-MM-pet-name.png

  3. Send the image with message tool:

    message(action="send", channel="telegram", media="/home/yaze/.openclaw/workspace/YYYY-MM-DD-HH-MM-pet-name.png", message="🐾 \x3Cpet_name> 的即時快照")
    

Why this workflow:

  • Uses Gemini (nano-banana-pro) for high-quality watercolor-style images
  • Local file path works with message tool's media parameter
  • Consistent with other OpenClaw image generation patterns

Troubleshooting

  • If clawpet command is not found, this skill wrapper auto-falls back to:
    • uvx --from git+https://github.com/yazelin/clawpet.git clawpet ...
    • uv tool run --from git+https://github.com/yazelin/clawpet.git clawpet ...
安全使用建议
This skill mostly does what it says (pet management + prompt generation), but the runtime instructions reference hardcoded developer paths (/home/yaze/...), a local image generator 'nano-banana-pro' and a pip install from a GitHub repo. Before installing or running: 1) inspect the GitHub repository (https://github.com/yazelin/clawpet) to review code that would be installed via pip; 2) be aware the image workflow assumes files and a tool under /home/yaze — update these paths to valid locations on your system or adapt the workflow to use a supported image generation API; 3) confirm how the 'message(action="send")' step maps to your messaging channel (avoid sending private files unintentionally); 4) if you are uncomfortable running pip installs from an arbitrary GitHub URL or running developer-local scripts, run the skill in a sandbox or reject/modify the install. If you want, provide your environment layout (user home path, whether you have uv/uvx, and how you want images generated) and I can suggest safer, portable changes.
功能分析
Type: OpenClaw Skill Name: clawpet Version: 0.1.6 The skill is classified as suspicious primarily due to a significant supply chain risk: it installs the `clawpet` tool directly from a GitHub repository (`git+https://github.com/yazelin/clawpet.git`) as specified in `SKILL.md` and `scripts/clawpet.sh`. A compromise of this external repository could lead to the installation and execution of malicious code. Additionally, `SKILL.md` instructs the agent to call an external script (`generate_image.py` from the `nano-banana-pro` skill) using a hardcoded path and passing a prompt, which could pose a prompt/command injection vulnerability if the target script does not properly sanitize inputs.
能力评估
Purpose & Capability
The skill claims to manage pets and produce image prompts and includes a small wrapper script to invoke a clawpet CLI or fall back to uv/uvx. Requiring a clawpet CLI (or installing from the GitHub repo) is coherent. However, the SKILL.md also instructs use of a separate local image-generation tool (nano-banana-pro/Gemini) via a hardcoded path under /home/yaze, which is not justified by the simple companion description and is developer-specific.
Instruction Scope
Instructions direct the agent to execute the included shell wrapper and to run an external image generator at /home/yaze/.npm-global/.../nano-banana-pro/scripts/generate_image.py, and then to call message(action="send", channel="telegram", media="/home/yaze/.openclaw/workspace/...") — these are environment-specific absolute paths and an external workflow that assumes a specific user's filesystem and a locally installed skill. That is fragile and surprising; it gives the agent latitude to run local programs and send generated files to an external channel. The skill does not explain how to configure those paths or the expected Telegram channel identifier.
Install Mechanism
The SKILL.md metadata suggests installing the clawpet package via pip from a GitHub repository (git+https://github.com/yazelin/clawpet.git). Installing a CLI from a GitHub pip URL is a common pattern but carries higher risk than using a vetted registry package because arbitrary code from the repo will run on install. The included scripts are small and benign-looking, but the pip install step should be audited.
Credentials
The skill does not request environment variables, credentials, or config paths in the registry metadata. The runtime instructions do reference local filesystem paths and the use of a message/send action, but they do not request secrets or unrelated credentials. The lack of declared env/secret demands is proportionate to the stated purpose.
Persistence & Privilege
always is false and the skill is user-invocable. The skill does not request permanent presence or modify other skills' configuration in the provided files. Autonomous invocation is allowed by default but not itself an additional red flag here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawpet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawpet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.6
Photorealistic pet photography style (not illustration/watercolor)
v0.1.5
Change to photorealistic pet photography style (not watercolor)
v0.1.4
Use nano-banana-pro (Gemini) for high-quality pet images instead of Pollinations AI
v0.1.3
Fix MEDIA output for Telegram - use snapshot command instead of prompt
v0.1.2
Fix media insertion: add snapshot command returning HTTP image_url and update skill to avoid local MEDIA paths.
v0.1.1
Fix: add executable wrapper and git-based fallback install to avoid missing executable errors.
v0.1.0
Initial release: OpenClaw pet companion with lifecycle, auto-care, and catime compatibility.
元数据
Slug clawpet
版本 0.1.6
许可证
累计安装 0
当前安装数 0
历史版本数 7
常见问题

clawpet 是什么?

OpenClaw pet companion skill. Manage adopted pets, run interactions, and produce pet image prompts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 961 次。

如何安装 clawpet?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawpet」即可一键安装,无需额外配置。

clawpet 是免费的吗?

是的,clawpet 完全免费(开源免费),可自由下载、安装和使用。

clawpet 支持哪些平台?

clawpet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 clawpet?

由 yazelin(@yazelin)开发并维护,当前版本 v0.1.6。

💬 留言讨论