360 Secure SkillHub
360 安全技能中心

Anygen Shared

该 Skill 是 anygen CLI 的共享使用参考,说明如何用网页登录、API Key 或环境变量完成认证,如何以「资源 方法」形式调用命令并使用 --params、--data、--dry-run、--wait、--timeout 等参数,如何用 --help 与 schema 发现命令,并给出若干安全使用规则。

supertilico2001
supertilico2001
热度 32.32
最近更新 2026-05-11 17:47:01
分类:自动化依赖:代码执行 / 第三方 API应用场景:API 集成 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add anygen-shared
Metadata
name
anygen-shared
version
1.0.0
description
anygen CLI: Shared patterns for authentication, global flags, and output formatting.
metadata
{"requires":{"bins":["anygen"],"env":["ANYGEN_API_KEY"]},"install":[{"id":"node","kind":"node","package":"@anygen/cli","bins":["anygen"]}]}

anygen — Shared Reference

Authentication

# Web login (recommended for agent usage)
anygen auth login --no-wait

# Direct API key (no browser needed)
anygen auth login --api-key sk-xxx

# Environment variable
export ANYGEN_API_KEY=sk-xxx

CLI Syntax

anygen <resource> <method> [flags]

Method Flags

Flag Description
--params '<json>' URL/path parameters
--data '<json>' Request body
--dry-run Show the request without sending it
--wait Re-poll until terminal state
--timeout <ms> Polling timeout in milliseconds

Discovering Commands

# Browse all resources and methods
anygen --help
anygen task --help

# Inspect a method's required params, types, and defaults
anygen schema task.create
anygen schema task.message.send

Use anygen schema output to build your --params and --data flags.

Security Rules

  • Never output API keys or auth tokens directly.
  • Always confirm with user before uploading files or creating tasks.
  • Never upload or read any file without explicit user consent.
  • Use natural language instead of exposing task_id, file_token, or CLI syntax to the user.
  • Always return links using Markdown format: [text](url).