piccc-ai-skills: Integrating Pico AI Image, Video, and Audio Generation for Agents

Introduction

When an Agent needs to “generate an image,” “produce a voiceover,” or “poll an async task and download the result,” the common approach is to wire up HTTP APIs, manage API keys, and hand-write polling and download logic. Piccc AI itself provides a multimodal task API, but to reliably expose those capabilities to tools like Cursor or Codex, you also need a workflow specification that Agents can read and executable scripts. This article introduces the community Skill piccc-ai-skills on SkillHub, which chains together authentication, model discovery, task creation, and result persistence into a standard Skills invocation pattern.

What Is This

piccc-ai-skills integrates Piccc AI, providing AI Agents with image, video, and audio generation capabilities, along with support for querying, waiting on, and downloading existing media tasks. Its coordinates on SkillHub are @user_1719a8c6/piccc-ai-skills. The current published version is v1.0.4, categorized under design-media, sourced from community, published by user_1719a8c6, and tagged with requires_api_key=true (the key must be saved locally via the official authorization flow, not pasted into a conversation).

Official pages:

  • API endpoint: https://api.skillhub.cn/user_1719a8c6/piccc-ai-skills
  • SkillHub showcase: https://www.skillhub.cn/skills/user_1719a8c6/piccc-ai-skills

The Skill body (SKILL.md) stipulates: all requests are made through {baseDir}/scripts/piccc.mjs; it is not applicable to editing existing local media files on the user’s machine, and is exclusively for generation and task management on the Piccc AI side.

Core Features

Based on SKILL.md and references/api.md within the Skill package, the verified capabilities are as follows.

Multimodal Generation

  • Image: After discovering available models, create a task with parameters such as prompt file, aspect ratio, resolution, and quality (subject to the real-time model API response).
  • Video: Create a video generation task with optional duration, resolution, aspect ratio, reference mode, etc.
  • Audio: Create an audio task with optional voice (voice_id), sample rate, etc.; 10 credits are pre-deducted upon submission, and the final cost is determined by actual_cost upon completion.

Model & Voice Discovery

Query currently available models via the CLI, with support for economy-mode selection:

node {baseDir}/scripts/piccc.mjs models image
node {baseDir}/scripts/piccc.mjs models video
node {baseDir}/scripts/piccc.mjs models audio
node {baseDir}/scripts/piccc.mjs models image --economy
node {baseDir}/scripts/piccc.mjs voices --model MODEL_ID --search Chinese

When no model is specified, the Skill workflow recommends using models TYPE --economy first, striking a balance between cost and default quality to select the most credit-efficient configuration. When special_offer is true, the user must be informed before task creation that the discounted model may be slower and less stable.

Async Tasks & Downloads

Generation and querying share the same task model, with statuses including queued, running, completed, failed, and cancelled. When a local file is needed, use --wait --output-dir at creation time, or poll an existing task_id for completion:

node {baseDir}/scripts/piccc.mjs generate image --model MODEL_ID --prompt-file PROMPT.txt --wait --output-dir OUTPUT_DIR
node {baseDir}/scripts/piccc.mjs task get TASK_ID
node {baseDir}/scripts/piccc.mjs task wait TASK_ID --output-dir OUTPUT_DIR
node {baseDir}/scripts/piccc.mjs tasks --type image --status completed --page 1 --page-size 20

A task is only considered successfully produced when it reaches completed status and outputs[].url is present.

Account & Credits

Check authorization status before first use; if unauthorized, complete an OAuth-style login via the browser. The script saves the API Key locally and queries the balance:

node {baseDir}/scripts/piccc.mjs auth status
node {baseDir}/scripts/piccc.mjs auth login
node {baseDir}/scripts/piccc.mjs auth login --no-browser
node {baseDir}/scripts/piccc.mjs credits
node {baseDir}/scripts/piccc.mjs auth logout

The Skill explicitly requires: do not write the API Key into environment variable examples (unless the user specifically requests it), and do not ask the user to manually copy the key in a conversation.

Installation & Activation

Install via SkillHub

The SkillHub page notes: before installing, refer to https://skillhub.cn/install/skillhub.md to configure the CLI. The skill identifier is @user_1719a8c6/piccc-ai-skills. During installation, use --dir to point to the current Agent’s skills directory; otherwise, the default ./skills/ location may not be recognized.

command -v skillhub && skillhub --version
skillhub install @user_1719a8c6/piccc-ai-skills --dir <skills directory>

Common global skills directory examples (from the SkillHub installation docs):

Agent Skills directory (global)
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Cursor users can set --dir to ~/.cursor/skills/ (or whatever skills path their current environment actually uses).

Install via GitHub / Skills CLI (from the repo README)

The same skill is also available in the GitHub repository xiaoyaocz/piccc-ai-skills. The README provides two methods:

Install skill https://github.com/xiaoyaocz/piccc-ai-skills
npx skills add xiaoyaocz/piccc-ai-skills

When copying manually, place SKILL.md, agents, references, and scripts into the corresponding Agent’s piccc-ai skill directory (Codex example: .agents/skills/piccc-ai or ~/.codex/skills/piccc-ai).

Runtime Environment

package.json requires Node.js >= 20. The script is pure Node ESM (scripts/piccc.mjs), and the README states that no npm dependencies need to be installed. You can run syntax and structure checks locally:

npm run check
node scripts/piccc.mjs --help

Typical Usage

After installation, simply drive the Agent with natural language; the Skill will follow the workflow to query models first, then submit the task. Examples from the README (can be sent directly to the Agent):

Use Piccc AI to generate a 16:9 cinematic snow-mountain sunrise image, and download it to output/sunrise when done.
Use Piccc AI to generate a Chinese voiceover for this product introduction. First list the available voices for me to choose from.
Check Piccc AI task task_xxx, and download the result to output/piccc when it's complete.

If you need to call the CLI yourself, it is recommended to write long prompts into a UTF-8 file and use --prompt-file, consistent with the Skill’s conventions.

Use Cases & Cautions

Who it’s for: Developers who need to complete Piccc AI image generation, video generation, and voiceover production within an Agent conversation, with unified handling of authentication, credits, async waiting, and downloads. The SkillHub category is design-media, which aligns well with multimedia creation and automated workflows.

Limitations & notes:

  • Do not use for local media editing or post-production; the Skill description explicitly excludes “editing existing local media.”
  • Model IDs, voice IDs, resolutions, etc. must come from the real-time models / API response—do not hardcode stale names.
  • Polling or task get should not create new tasks, to avoid duplicate charges.
  • If a task times out without completing, retain the task_id and the latest status so you can resume waiting via task wait later.
  • Initial authorization depends on a browser or a link + verification code via --no-browser; sandbox environments must allow the script’s local callbacks and network access.

Current SkillHub stats (based on crawled data): rating 100000, downloads 841.

Conclusion

piccc-ai-skills wraps Piccc AI’s multimodal API into an Agent-executable piccc.mjs command set and a SKILL.md workflow, covering authorization, economy-mode selection, task lifecycle management, and result downloads. If your Agent already supports Skills, you can install @user_1719a8c6/piccc-ai-skills from SkillHub, or install it from GitHub per the README, then complete one auth login to start generating and pulling media files right in your conversation.

Official URL: https://api.skillhub.cn/user_1719a8c6/piccc-ai-skills

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye