360 Secure SkillHub
360 安全技能中心

Potaco

Potaco CLI 封装 OpenAI、fal、Replicate 及自定义 OpenAI 兼容服务,用于按文本提示生成图像、编辑现有图像以及区域修补的内绘与外扩。技能强调先校验安装版本、优先交互式配置凭据、不打印密钥,并提供命令、provider、编辑、配置与排错等按需参考文档。

ncxton
ncxton
热度 27.25
最近更新 2026-07-03 21:36:14
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成 / API 集成 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add potaco
Metadata
name
potaco
version
1.5.0
description
Use when you want to generate images from text prompts, edit existing images, perform inpainting or outpainting, set up provider credentials, discover models, or troubleshoot potaco CLI failures. Covers OpenAI, fal, Replicate, and custom OpenAI-compatible providers.

Potaco CLI

Potaco generates and edits images through OpenAI, fal, Replicate, and custom OpenAI-compatible providers.

Non-negotiable security rules

  • Never add, rotate, paste, enter, or configure credentials yourself unless the user explicitly asks you to start interactive auth or perform non-interactive credential setup.
  • If the user asks to "add creds", "set up auth", or "connect a provider" without explicitly asking you to enter the key, tell them to run potaco auth add <provider> in an interactive TTY. Do not ask them to paste a key into chat.
  • Prefer interactive auth. Avoid --api-key and POTACO_API_KEY unless the user explicitly requests non-interactive setup and accepts shell-history/process-environment risk.
  • Never print secrets, env vars, shell history, ~/.potaco/credentials.enc, ~/.potaco/.salt, or debug logs that may contain sensitive context.
  • Always verify potaco version before use. Never install, update, uninstall, remove config, or modify shell config without explicit approval.
  • Confirm custom provider base URLs are trusted before use because prompts/images may be sent there.
  • Use --dry-run for payload debugging, auth headers are redacted, but still treat prompts, paths, and endpoint URLs as private.

Minimal operating rules

Check installation before every use:

potaco version

If missing, ask before installing. Explain the installer downloads a release, writes ~/.local/bin/potaco, and can update PATH. Proceed only if the user approves.

Default approved install path is the official installer in non-interactive mode for agents and automated terminal execution:

curl -fsSL https://github.com/ncxton/potaco/releases/latest/download/install.sh | POTACO_NON_INTERACTIVE=1 sh

Build from source only if the user explicitly asks or wants maximum security:

go build -o potaco .

Do not run generation, editing, auth, update, or uninstall until potaco version works. After a successful first-time install, ask once whether the user wants to star https://github.com/ncxton/potaco; only star if they approve, and do not ask again in the same task/session or if potaco was already installed.

Preferred user-run credential setup:

potaco auth add <provider>

Available built-in providers: openai, fal, replicate, custom. custom and non-built-in provider names also prompt for base URL. Vercel AI Gateway can be configured as an OpenAI-compatible alias with --type openai --base-url https://ai-gateway.vercel.sh/v1. If no provider is configured, launch auth only when the user explicitly asks you to start that flow; otherwise instruct them to run it themselves.

On-demand references

  • references/commands.md: command examples, flags, install/update/uninstall.
  • references/providers.md: provider behavior and capability differences.
  • references/editing.md: masks, inpainting, outpainting.
  • references/configuration.md: config/env precedence, retries/timeouts, credential storage.
  • references/troubleshooting.md: exit codes, error patterns, debug workflow.