58pic

Original🇨🇳 Chinese
Translated

58pic AI Open Platform CLI: supports material search, directory browsing, model list query, download information retrieval by pid, and same-style task generation. Use when users mention 58pic search, same-style creation, PID, or material download; first use requires completing config / API Key setup. If no API Key is available, guide users to get it from the 58pic AI Open Platform page.

13installs
Added on

NPX Install

npx skill4agent add 58pic-open/cli 58pic

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

58pic-cli (58pic AI Open Platform)

This Skill is consistent with the README.md in the repository root directory; actual requests are sent by the
58pic
command in the terminal
, the Agent should call it by executing shell commands instead of forging HTTP requests in conversations.

Agent Skills Installation

Use the open source skills CLI (
npx skills
) to install
skills/
in the repository to Agent directories such as Cursor, Claude Code, Codex, etc.:
bash
npm install -g @58pic/cli
npx skills add 58pic-open/cli -y -g
View the Skill list provided by this repository (no installation):
npx skills add 58pic-open/cli --list

Install this Skill only:
npx skills add 58pic-open/cli --skill 58pic -y -g

You can also use the full repository address
https://github.com/58pic-open/cli
.
You must install the
58pic
executable first
(
npm install -g @58pic/cli
or
npm install -g github:58pic-open/cli
); Skill does not replace CLI, it only guides the Agent on how to call the command line.
58pic AI Open Platform uses API Key for authentication, no OAuth browser process. CLI provides common capabilities such as
config init
,
auth status
,
dry-run
, etc.

When API Key is missing (Agent must remind users)

If
58pic auth status
shows unconfigured, or the command reports an error indicating missing API Key: Do not guess or fabricate the Key.
Get API Key (login required first): 58pic AI Open Platform
After the user gets the Key, execute
58pic config init --api-key "<user's Key>"
(or interactive
58pic config init
). Do not write the Key into a repository that can be submitted.

Calling Method (Agent must follow)

  1. Confirm installation:
    58pic --help
    (if it fails, execute
    npm install -g @58pic/cli
    or
    github:58pic-open/cli
    according to README).
  2. Confirm credentials:
    58pic auth status
    ; If there is no Key, you must first guide the user to obtain it according to the above "When API Key is missing" section, then run
    58pic config init --api-key "<key>"
    (do not write the Key into a repository that can be submitted).
  3. Add
    --format json
    when automatically parsing responses.
  4. For interfaces that may deduct points (download, create same style, etc.), use
    58pic dry-run …
    first or remind users to confirm.

Common Commands

ScenarioCommand
Keyword search
58pic search "keyword" --format json
AI vector search
58pic search --ai --format json
Category directory
58pic catalog --format json
Model list
58pic models --format json
Fetch download information by pid
58pic download <pid> --format json
Create same style
58pic same-style --help
(requires
-m/--model
, use
--body-file
for complex body)
Task status
58pic same-style-status <ai_id> --format json
Unencapsulated route
58pic api <route> --body '{...}'
or
--body-file
Credential priority and environment variables
58PIC_API_KEY
,
58PIC_BASE_URL
are described in README (note that bash/zsh cannot
export
variable names starting with numbers, local configuration files or
--api-key
are preferred).

Security

API Key has the same permissions as the account: limit the exposure scope, do not transmit it in plain text in untrusted environments; users must be informed or confirmed before automatically calling interfaces that may deduct points.