Meitu tools

From security-pride/MalSkills · View interactive version

Meitu tools is an AI agent skill from the GitHub repository security-pride/MalSkills. Unified Meitu CLI capability skill. Covers installation, credentials, command mapping, execution pattern, and user-facing error guidance for all built-in image/video commands.

How to use this skill

Skill file

meitu-tools

Purpose

This skill is the single tool-execution hub for Meitu CLI commands.

Use one runner script for all supported commands:

Runtime Alignment

This skill is aligned with the Node.js meitu-cli command set.

Current built-in command coverage:

<!-- BEGIN COMMAND_COVERAGE -->

<!-- END COMMAND_COVERAGE -->

Notes:

Instruction Safety

Install Runtime

npm install -g meitu-cli@latest
meitu --version

If an existing meitu binary conflicts:

npm install -g meitu-cli@latest --force

Install Skills

Preferred (ClawHub):

npm install -g clawhub
clawhub install meitu-skills

Fallback (GitHub URL):

npx -y skills add https://github.com/meitu/meitu-skills --yes

Agent Bootstrap Policy (Must Follow)

Agent behavior should optimize for zero-setup user experience:

If runtime bootstrap fails, return concrete repair actions:

npm install -g meitu-cli@latest
meitu --version
npm install -g meitu-cli@latest --force
meitu --version

Credentials

Use one of the following:

  1. Environment variables:
export MEITU_OPENAPI_ACCESS_KEY="..."
export MEITU_OPENAPI_SECRET_KEY="..."
  1. Credentials file (recommended): ~/.meitu/credentials.json
{"accessKey":"...","secretKey":"..."}

Unified Execution

node "{baseDir}/scripts/run_command.js" --command "<command>" --input-json '<json object>'

Expected output JSON fields:

Runtime Repair

Default behavior:

Environment controls:

Manual update intent:

npm install -g meitu-cli@latest
meitu --version

Manual repair for missing/outdated runtime:

npm install -g meitu-cli@latest
meitu --version

Error Contract (Must Be User-Visible)

When execution fails, runner output includes:

Mandatory behavior:

Capability Catalog

<!-- BEGIN CAPABILITY_CATALOG -->

  1. video-motion-transfer
  1. image-to-video
  1. text-to-video
  1. video-to-gif
  1. image-generate
  1. image-poster-generate
  1. image-edit
  1. image-upscale
  1. image-beauty-enhance
  1. image-face-swap
  1. image-try-on
  1. image-adapt
  1. image-cutout
  1. image-grid-split

<!-- END CAPABILITY_CATALOG -->

Natural Language Mapping

Typical intent-to-command mapping:

<!-- BEGIN NL_MAPPING -->

<!-- END NL_MAPPING -->

Security

See SECURITY.md for full security model.

Key points:

Robust Invocation Pattern

When the user provides structured execution intent, prefer:

Use meitu-tools.
command: image-edit
input: {"image":["https://..."],"prompt":"..."}

Or via slash command:

/skill meitu-tools
command=image-edit
input={"image":["https://..."],"prompt":"..."}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.