360 Secure SkillHub
360 安全技能中心

Pixelvault Setup

该 Skill 引导用户检查并安装 PixelVault CLI(npm 全局安装),用 whoami 检查配置状态,并提供三种认证方式:直接写入已有 API 密钥、使用 PIXELVAULT_API_KEY 环境变量、或注册新账号并自动保存密钥,最后验证配置结果。不含实际的图片上传功能。

facundofarias
facundofarias
热度 10.28
最近更新 2026-07-04 01:36:14
分类:自动化依赖:代码执行 / 第三方 API应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add pixelvault-setup
Metadata
name
pixelvault-setup
description
Set up PixelVault CLI — install the CLI and configure API key authentication. Use when the user wants to configure PixelVault, "set up image hosting", "connect PixelVault", get an API key for image uploads, or when pixelvault-upload fails due to missing auth.
disable-model-invocation
true

PixelVault Setup

Install and configure the PixelVault CLI for image hosting.

Steps

1. Check if CLI is installed

which pixelvault

If not found, install it:

npm install -g pixelvault-cli

2. Check if already configured

pixelvault whoami --json

If this succeeds, the user is already set up. Show them their current config and ask if they want to reconfigure.

3. Configure authentication

Ask the user which option they prefer:

Option A — Existing API key: If the user already has a PixelVault API key, set it directly:

pixelvault config set api_key <their-key>

Option B — Environment variable: For CI/CD or headless usage, suggest adding to their shell profile:

export PIXELVAULT_API_KEY=pv_live_xxx

Option C — Create new account: If the user doesn't have an account, register:

pixelvault register

This will prompt for email and password, create the account, and auto-save the API key.

4. Verify

Confirm setup works:

pixelvault whoami

Should show email, project ID, and masked API key.

5. Done

Tell the user they're ready to upload images with /pixelvault-upload <file>.