agentsclimarketplace

Modelscope

Skill xiaowu89/skill-compress/dist/modelscope

自动化图片压缩工作流。支持本地路径、文件夹批量压缩,调用 NX MCP 服务端智能压缩,返回 CDN 地址及压缩比。适用于图片压缩、减小文件体积、图片优化等场景。From its SKILL.md

Install
npx -y skills add xiaowu89/skill-compress --skill modelscope

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.0 KB, 574 tokens by cl100k_base, as published. Nobody here has run it

图片压缩

调用 NX MCP 服务对图片进行智能压缩,支持本地文件和远程 URL。

配置

在项目目录创建 .mcp.json

{
  "mcpServers": {
    "nx-mcp-compress": {
      "type": "streamable_http",
      "url": "https://mcp.api-inference.modelscope.net/da691d14ea0d46/mcp",
      "env": {
        "NX_API_KEY": "your-api-key-here"
      }
    }
  }
}

配置后重启 Claude Code。

没有 API Key? 联系微信 zhjian_2026 获取。

使用

对图片说"压缩"即可,Skill 自动完成:

  1. 收集图片(本地路径、文件夹、远程 URL)
  2. 本地文件转为 dataUrl(远程 MCP 无法访问本地磁盘)
  3. 调用 nx_compress 压缩
  4. 表格汇总结果

参数

参数类型必填默认值说明
urlsstring[]与 files 二选一HTTP URL
filesstring[]与 urls 二选一dataUrl
qualityinteger90质量 1–100
outputstring"overwrite" 或目录

返回字段

  • originalSize — 原始大小(字节)
  • compressedSize — 压缩后大小(字节)
  • ratio — 压缩比(如 "87.4%")
  • compressedUrl — CDN 地址
  • summary — 汇总 {total, success, failed}

限制

  • 单文件上限 5MB
  • 支持格式:png、jpg、jpeg、bmp、webp、tga

错误处理

场景处理
API Key 未配置提示配置 .mcp.json
文件不存在跳过,标注"文件不存在"
网络超时等待 3 秒重试一次
API Key 无效提示检查配置

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.