360 Secure SkillHub
360 安全技能中心

Yummy Shared

为 yummycli 提供共享操作规则:运行前检查 Gemini 凭据并可按需初始化;声明所有生成命令在标准输出返回 JSON,并以 output 字段作为生成文件路径;同时给出输入图片顺序、输出覆盖与参数校验等安全约束。

分类:创作
yummysource
yummysource
热度 25.29
最近更新 2026-05-11 17:42:20

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yummysource/yummy-shared
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
yummy-shared
version
1.0.0
description
Use when operating yummycli for the first time, checking Gemini credential status, handling yummycli JSON command output, or applying shared CLI safety rules before image generation or editing.
always
true
metadata
{"requires":{"bins":["yummycli"]},"openclaw":{"requires":{"bins":["yummycli"],"env":["GEMINI_API_KEY"]},"primaryEnv":"GEMINI_API_KEY"},"hermes":{"tags":["yummycli","shared","gemini","authentication"],"requires_toolsets":["yummycli"]}}
install
[{"kind":"node","package":"@yummysource/yummycli","bins":["yummycli"]}]

yummycli Shared Rules

Shared operating rules for yummycli.

Authentication

Before running Gemini image commands, confirm the provider is configured:

yummycli auth status --provider gemini

If Gemini is not configured, initialize it:

yummycli gemini init --api-key "<api-key>"

Output Contract

All yummycli generation commands return JSON on stdout. Read the response and use the output field as the generated file path.

Image example:

{
  "provider": "gemini",
  "output": "gemini_20260410123456_789.png",
  "model": "gemini-3.1-flash-image-preview",
  "inputImageCount": 2
}

Video example:

{
  "provider": "gemini",
  "output": "veo_20260417_142301_047.mp4",
  "model": "veo-3.1-fast-generate-preview",
  "duration_seconds": 8,
  "aspect_ratio": "16:9",
  "resolution": "1080p",
  "elapsed_seconds": 73
}

Safety Rules

  • Only use local image files explicitly provided by the user.
  • Preserve the order of repeated --input-image flags.
  • Do not overwrite a user-specified output path unless the command is intentionally run that way.
  • If the command returns a validation error, fix the arguments before retrying.
  • Report the final output path back to the user after a successful run.