Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

ultimate-ai-media-generator-skill终极 AI 媒体生成器技能

Agent Skill

ultimate-ai-media-generator-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,885

周安装

77

GitHub Stars

41

下载量

610
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ultimate-ai-media-generator-skill(终极 AI 媒体生成器技能)
来源仓库:https://github.com/zerolu/ultimate-ai-media-generator-skill
仓库路径:skills/ultimate-ai-media-generator-skill
安装命令:
npx skills add https://github.com/zerolu/ultimate-ai-media-generator-skill --skill ultimate-ai-media-generator-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zerolu/ultimate-ai-media-generator-skill --skill ultimate-ai-media-generator-skill

简介

用于查找、检索和筛选相关信息。ultimate-ai-media-generator-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网或文件读写操作。

SKILL.md

Ultimate-AI-Media-Generator-Skill

Overview

Use this skill to call CyberBara APIs reliably, create image/video generation tasks, and return final media URLs with credit-aware flow.

Implementation Architecture

The runtime uses a layered Python architecture:

  • scripts/cyberbara_api.py: thin entrypoint only
  • src/cyberbara_cli/cli.py: command parsing and command routing
  • src/cyberbara_cli/usecases/: flow orchestration (generation + polling)
  • src/cyberbara_cli/policies/: safety and policy rules (credits quote + formal confirmation)
  • src/cyberbara_cli/gateways/: raw CyberBara API client
  • src/cyberbara_cli/config.py: API key discovery and local persistence
  • src/cyberbara_cli/constants.py: fixed base URL and shared constants

When extending behavior, keep business rules in usecases/ or policies/, not in scripts/.

Set Up Runtime Inputs

The script uses fixed base URL:

https://cyberbara.com

API key lookup order:

  1. --api-key
  2. environment variable CYBERBARA_API_KEY
  3. local cache file ~/.config/cyberbara/api_key
  4. interactive prompt (if running in terminal)

Recommended one-time setup command:

python3 scripts/cyberbara_api.py setup-api-key "<api-key>"

Or save from environment variable:

export CYBERBARA_API_KEY="<api-key>"
python3 scripts/cyberbara_api.py setup-api-key --from-env

If API key is missing, the script immediately asks for it and shows where to get one:

https://cyberbara.com/settings/apikeys

When you provide API key via --api-key or interactive prompt, it is saved to:

~/.config/cyberbara/api_key

Future runs reuse this cached key, so users do not need to provide it every time.

Run The Standard Generation Flow

  1. Discover available models.
  2. Upload reference images when task scene needs image inputs.
  3. Quote credits before creating a generation task.
  4. Create image or video generation task and wait for final output.
  5. Automatically save generated media locally and open it.
  6. Check usage records when needed.

Reference commands:

# 1) List video models
python3 scripts/cyberbara_api.py models --media-type video

# 2) Upload local reference images
python3 scripts/cyberbara_api.py upload-images ./frame.png ./style.jpg

# 3) Estimate credits
python3 scripts/cyberbara_api.py quote --json '{
  "model":"sora-2",
  "media_type":"video",
  "scene":"text-to-video",
  "options":{"duration":"10"}
}'

# 4) Create a video task (default behavior: wait for success, save outputs to ./media_outputs, auto-open)
python3 scripts/cyberbara_api.py generate-video --json '{
  "model":"sora-2",
  "prompt":"A calm drone shot over snowy mountains at sunrise",
  "scene":"text-to-video",
  "options":{"duration":"10","resolution":"standard"}
}'

# 5) Existing task: wait + save/open outputs
python3 scripts/cyberbara_api.py wait --task-id <TASK_ID> --interval 5 --timeout 900

Image and video generation are confirmation-gated by default:

# Single image request: script auto-quotes, then asks you to type CONFIRM
python3 scripts/cyberbara_api.py generate-image --json '{
  "model":"nano-banana-pro",
  "prompt":"A cinematic portrait under neon rain",
  "scene":"text-to-image",
  "options":{"resolution":"1k"}
}'

# Batch image requests (JSON array): script auto-quotes each request and prints total estimated credits
python3 scripts/cyberbara_api.py generate-image --file ./image-requests.json

image-requests.json format:

[
  {
    "model": "nano-banana-pro",
    "prompt": "A cinematic portrait under neon rain",
    "scene": "text-to-image",
    "options": { "resolution": "1k" }
  },
  {
    "model": "nano-banana-pro",
    "prompt": "A product still life with dramatic side light",
    "scene": "text-to-image",
    "options": { "resolution": "1k" }
  }
]

Only use --yes after explicit user approval has been obtained:

python3 scripts/cyberbara_api.py generate-image --file ./image-requests.json --yes
python3 scripts/cyberbara_api.py generate-video --json '{
  "model":"sora-2",
  "prompt":"A calm drone shot over snowy mountains at sunrise",
  "scene":"text-to-video",
  "options":{"duration":"10","resolution":"standard"}
}' --yes

Control auto-save and open behavior:

# keep waiting but do not auto-open media
python3 scripts/cyberbara_api.py generate-image --file ./image-requests.json --yes --no-open

# custom output directory
python3 scripts/cyberbara_api.py generate-video --json '{...}' --yes --output-dir ./downloads

# submit only (no wait/save/open)
python3 scripts/cyberbara_api.py generate-video --json '{...}' --yes --async

Use Script Capabilities

scripts/cyberbara_api.py supports:

  • setup-api-key to persist API key into local cache
  • models to list public models (--media-type image|video optional)
  • upload-images to upload local image files to /api/v1/uploads/images
  • quote to estimate credit cost from JSON request body
  • generate-image to auto-quote credits, compute total for batch requests, require formal confirmation, create task(s), wait, then save/open outputs
  • generate-video to auto-quote credits, compute total for batch requests, require formal confirmation, create task(s), wait, then save/open outputs
  • task to fetch task snapshot by task ID
  • wait to poll task until success, failed, or canceled, then save/open outputs
  • balance and usage to inspect credits
  • raw for direct custom endpoint calls

Use --file request.json instead of --json for long payloads.

Enforce API Payload Rules

  • Send auth via API key (Authorization: Bearer <key> or x-api-key).
  • Send public request fields under options.* only.
  • Prefer explicit scene to avoid inference ambiguity.
  • Include options.image_input for image-to-image and image-to-video.
  • Include options.video_input for video-to-video.
  • Poll /api/v1/tasks/{taskId} until final status; only success guarantees output URLs.
  • Before every image or video generation submission, obtain quote first and get explicit user confirmation.
  • For multiple image/video requests, calculate and present total estimated credits before submission.
  • Save output files under media_outputs/ by default and auto-open them unless disabled.

Navigate Detailed Model Options

Use the reference file for full model matrices and examples:

  • references/cyberbara-api-reference.mdx

For fast lookup in large reference:

rg '^## |^### ' references/cyberbara-api-reference.mdx
rg 'kling-2.6|sora-2|veo-3.1|seedance' references/cyberbara-api-reference.mdx

Handle Common Failures

  • invalid_api_key or api_key_required: verify key and headers.
  • insufficient_credits: quote first or recharge credits.
  • invalid_scene or scene_not_supported: choose scene supported by model.
  • invalid_request: verify prompt and options requirements by model.
  • task_not_found: verify task ID and environment domain.

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.91%
按下载量换算219

Claude

29.18%
按下载量换算178

Cursor

19.17%
按下载量换算117

Gemini CLI

9.88%
按下载量换算60

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills