Security v1.0.0

anygen-shared

anygen CLI: Shared patterns for authentication, global flags, and output formatting.

supertilico2001 更新于 2026-05-01 1 浏览
下载 SKILL

技能说明

anygen CLI: Shared patterns for authentication, global flags, and output formatting.

使用场景

anygen CLI: Shared patterns for authentication, global flags, and output formatting.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/anygen-shared
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
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

```bash
# 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

```bash
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

```bash
# 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)`.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。