Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Linkpix Main Image Optimize

CSecurity

AI 自动优化商品主图的构图、光影、质感及细节,提升商品吸引力与点击率。当用户要求优化主图、提升图片质感、图片变高级、老图翻新、提高点击率时必须触发。关键词:LinkPix、qhkit、主图优化、图片优化、提升质感、画质优化、构图优化、光影优化、老图翻新、点击率优化、图片升级。

14 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgoshellbashnodenodejsapi

Works with

cliapi

Security Analysis

C67/100
mediumUses curl or wget to download content
criticalModifies startup scripts or system services for persistence
mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned 9/19/2026

$npx -y skills add autoagc/linkpix-skills --skill linkpix-main-image-optimize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Linkpix Main Image Optimize?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Linkpix Main Image Optimize
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/autoagc-linkpix-main-image-optimize/badge)](https://www.skillsdirectory.com/skills/autoagc-linkpix-main-image-optimize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: linkpix-main-image-optimize
description: AI 自动优化商品主图的构图、光影、质感及细节,提升商品吸引力与点击率。当用户要求优化主图、提升图片质感、图片变高级、老图翻新、提高点击率时必须触发。关键词:LinkPix、qhkit、主图优化、图片优化、提升质感、画质优化、构图优化、光影优化、老图翻新、点击率优化、图片升级。
user-invocable: true
homepage: https://www.npmjs.com/package/@iqinghu/qhkit
metadata: {"openclaw":{"emoji":"✨","requires":{"bins":["qhkit"]},"install":[{"kind":"node","package":"@iqinghu/qhkit","bins":["qhkit"]}]}}
---

# AI电商主图优化 | 主图美化 | 点击率提升 | 图片增强 | LinkPix

把平庸的主图升级成商业摄影级:底层是 `qhkit image` 自定义生图的「保主体、提质感」重绘;要整套重做时切换套图模式。

## 何时触发

- 「这张主图帮我优化一下」「图片看起来更高级点」
- 「老品的图翻新」「点击率差,图重做」

## 使用配方

```bash
# 官方模板(与 LinkPix 工作台「主图优化」功能同款):优化为场景化商品图
qhkit image generate '{"modelLabel":"智慧模型","uploadedImages":["./旧主图.jpg"],"prompt":"将产品主图进行优化,生成一张场景化的商品图"}'
# 定向优化(用户点了具体痛点:太暗/太平/廉价感)
qhkit image generate '{"modelLabel":"智慧模型","uploadedImages":["./旧主图.jpg"],"prompt":"在保持商品主体、构图与识别度不变的前提下,优化画面光影层次、材质质感与细节锐度,提升为专业商业摄影级效果"}'
# 觉得原构图本身不行:直接套图模式整套重做
qhkit image generate '{"modelLabel":"套图模式","uploadedImages":["./旧主图.jpg"],"imageCount":6}'
```

- 先判断问题出在哪:泛泛「优化一下」→官方模板;有具体痛点→定向优化;构图/风格过时→套图重做。

**模型选择**:默认 `智慧模型`(效果好、有免费额度,LinkPix 工作台各图片编辑功能同用此模型);要更强真实感或更快换 `图片 5.0 Pro`;多张产出之间要细节一致用 `图片 5.0 Lite`;用户明确要最好效果且不赶时间用 `专图模式`。
**尺寸**:`sizePreset` 逐模型独立,先查再传:`qhkit image options '{"queryParams":["sizePreset","imageCount"],"modelLabel":"智慧模型"}'`;`imageCount` 可选 1/2/4/6/8/10。
**提示词**:官方模板中的 `【】` 表示需填入/替换的内容,生成时保留【】并把实际内容写在里面即可;可在模板后追加细节要求。
**注意**:这是生成式重绘,不是像素级修图——主体细节可能有轻微差异,出图后应引导用户核对关键细节(文字、logo、商品结构)。

## 环境自举(缺什么装什么,不要因环境缺失放弃任务)

本技能依赖 `qhkit` 命令(npm 包 `@iqinghu/qhkit`),可完全独立安装。按顺序检测,缺失就地补齐:

1. **有 qhkit 吗?** `qhkit config show` 能跑通即就绪,跳到第 4 步。
2. **没有 qhkit 但有 node/npm**(OpenClaw/Hermes 机器部署流程保证自带 Node 22+)→ 全局安装(推荐):

   ```bash
   npm i -g @iqinghu/qhkit
   ```

   默认走 npm 官方源;官方源访问慢或超时(国内网络常见)时,再加镜像参数 `--registry=https://registry.npmmirror.com`(阿里维护的 npm 官方镜像,仅作网络兜底)。仅当全局安装因权限失败且无法提权时,才退而用 `npx @iqinghu/qhkit <命令> ...`(npx 必须写包全名)。
3. **连 node 都没有**(要求 Node ≥ 18):先装 Node 再回到第 2 步。

   ```bash
   # Linux 二进制安装(装到用户目录,无需 root;先校验官方 SHA256 再解包):
   cd /tmp && curl -fsSLO https://nodejs.org/dist/v22.22.3/node-v22.22.3-linux-x64.tar.xz
   cd /tmp && curl -fsSL https://nodejs.org/dist/v22.22.3/SHASUMS256.txt | grep ' node-v22.22.3-linux-x64.tar.xz$' | sha256sum -c -
   mkdir -p "$HOME/.local/lib" && tar -xJf /tmp/node-v22.22.3-linux-x64.tar.xz -C "$HOME/.local/lib"
   export PATH="$HOME/.local/lib/node-v22.22.3-linux-x64/bin:$PATH"
   ```

   校验行输出 `OK` 才继续;校验失败就删掉重下,**绝不解包未通过校验的文件**。nodejs.org 访问不通时,把两个下载 URL 的前缀 `https://nodejs.org/dist` 整体换成镜像 `https://registry.npmmirror.com/-/binary/node`(目录结构相同,SHASUMS256.txt 也有镜像,校验步骤不变)。`export PATH` 只对当前 shell 生效,跨命令调用时每个新 shell 都要先执行这行(或追加进 `~/.bashrc`)。macOS 用 `brew install node`;Windows 用 winget/官网安装包。arm64 机器把 `x64` 换成 `arm64`。
4. **密钥**:无密钥时(命令返回 `stage:"config"`),执行 `qhkit config set --token <密钥> --env prod`(密钥让用户打开 https://www.iqinghu.com/workbench/login?type=1&urlCode=1788417527636 注册/登录后,从 https://www.iqinghu.com/workbench/dashboard/api-keys 获取),或设环境变量 `QHKIT_TOKEN`。
5. **自检**:`qhkit config show` 输出脱敏配置即全部就绪。

**升级**:出现以下任一信号,先升级再重试原命令——命令返回 `{"ok":false,"stage":"version",...}`(版本门禁,message 里就是升级命令,照做即可);stderr 提示有新版本;`options` 返回 `catalogNotice` 且用户恰好要用那个新模型;报「模式在线上已下架或配置变更,请升级 qhkit」。

```bash
npm i -g @iqinghu/qhkit@latest
```

官方源慢或超时时同样加 `--registry=https://registry.npmmirror.com`。

安装/配置失败时把具体报错告诉用户(常见:无写权限 → 提示用户提权或改用 npx;无网络 → 让用户处理网络)。

## 调用契约

- 形式:`qhkit <命令> <action> '<json>'`,或 `qhkit <命令> <action> @params.json`(参数写进文件,避免 shell 转义问题,推荐)。
- stdout 恒为一行 JSON;失败为 `{"ok":false,"stage":"...","message":"..."}` 且退出码 1,把 message 原样转告用户。stderr 可能出现提示行,不是错误。
- 图片/视频参数直接填本地文件路径(CLI 自动上传换取 URL),素材已在公网时填 http(s) URL 也可。
- 标签类参数(`modelLabel`、`sizePreset`、`themeLabel` 等)必须与 `options` 返回的候选值逐字一致,不要自造或翻译;拿不准先调 `options`。

## 报价、轮询与交付

- **报价**:要把积分数字报给用户时,先跑 `qhkit image estimate '<与 generate 完全相同的参数>'`,报它返回的 `credits`(实扣值,秒回、无副作用);`enough:false` 时提前告知余额不足。不要引用文档快照报价。
- **轮询**:`image generate` 自带轮询,阻塞到出图(最长约 14 分钟),返回里直接有图片 URL,不需要再查 status。
- **交付**:产物 URL 在返回的 `images` 字段里,按当前环境的媒体交付约定发给用户;产物必须和「生成完成」写在同一轮回复,并附返回里的实扣 `credits`(「本次实际消耗 X 积分」)。
- **失败**:转述 CLI 的 message(已是面向用户的中文,常见:积分不足、内容审核未通过),不要重试轰炸。

## 能力边界

- 视频画质提升走「AI视频超清修复 | 画质提升 | 超分辨率 | 视频增强 | LinkPix」;照着爆款风格重做走「电商爆款主图复刻 | 主图模仿 | 高点击主图 | 竞品图复刻 | LinkPix」。

Attribution

autoagcautoagc
View sourceSee grades on GitHubMore from autoagc →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698431 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →