Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add meitu/meitu-skills --skill image-id-photo-generategit clone --depth 1 https://github.com/meitu/meitu-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/meitu/meitu-skills/image-id-photo-generate)<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-id-photo-generate"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-id-photo-generate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-id-photo-generate"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-id-photo-generate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 6 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 5 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 7 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 14 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 16 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 22 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- medium Rogue Agent · line 26 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.03022 |
| Opus 5 | $0.00046 | $0.01511 |
| Sonnet 5 | $0.00019 | $0.00604 |
| Haiku 4.5 | $0.00009 | $0.00302 |
Grade A, and why
image-id-photo-generate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
证件照生成(image-id-photo-generate)
Overview
基于用户照片 + 证件规格一键生成标准证件照。自动换装(默认黑西装+白衬衫)+ 换背景 + 合规调整(露耳/露额/底色/着装/尺寸)+ face_desc 面部特征锚定,避免通用编辑链路对五官做过度美化。覆盖一寸/二寸/护照/签证/身份证/驾照/入学/毕业/职业/商务/结婚证/工牌等多规格。
执行前应让用户清楚知道:本 Skill 会读取 Meitu 凭证、调用本地 meitu CLI、将用户提供的人像图片与规格参数发送到 Meitu OpenAPI 处理,并把结果写入 ./output/ 或 $VISUAL/output/image-id-photo-generate/。证件照涉及敏感的人脸与身份相关图像数据,应确认对照片中人物具备合法授权。
API Mapping
- 证件照生成:固定使用
praline_pro,通过证件照 prompt 模板与规格映射驱动。
Dependencies
- meitu-cli:
>=2.0.6(npm install -g meitu-cli@latest) - 凭证:CONFIG AKSK →
meitu tools update;EXEC AKSK → 实际执行(见根CONFIG.md) - 环境变量:
MEITU_OPENAPI_TOOL_TASK_MODE=command
路径别名:
$VISUAL={OPENCLAW_HOME}/workspace/visual/
Core Workflow
Preflight → Execute → Deliver
Preflight
meitu --version≥ 2.0.6(否则npm install -g meitu-cli@latest)- 确认已跑过
meitu tools update(用 CONFIG AKSK) - 当前 AKSK = EXEC,且
MEITU_OPENAPI_TOOL_TASK_MODE=command - 解析 output_dir:openclaw.yaml →
./output/|else →$VISUAL/output/image-id-photo-generate/;mkdir -p
Execute
触发信号 / 路由规则
核心判断维度:证件用途判定 + spec_type 齐全 + 参数齐全。
决策顺序:
image_url缺失 → 追问;spec_type缺失 → 展示规格选择模板- 着装冲突检查:身份证规格 + 白衣无外套 → 强制改为黑西装
- 观察原图填写 face_desc 13 项(禁止凭印象或默认值)
- 构造 prompt(face_desc + attire_desc + bg_desc + 合规指令 + 负面约束)→ 固定使用
praline_pro
优先级规则:明确证件照用途 > 通用写真;需完整证件照(换装+换背景+合规) > 单纯换背景。失败精简 prompt 重试,最多 3 轮。
参数定义
| 参数 | 类型 | 必填 | 范围 | 默认值 | 说明 |
|---|---|---|---|---|---|
image_url |
STRING | 是 | -- | -- | 用户正面人像照片。缺失 → 提示补图 |
spec_type |
STRING | 是 | 一寸/二寸/护照/身份证/签证/驾照/入园/结婚证/职业/商务 | -- | 证件规格。缺失 → 展示询问模板 |
bg_color |
STRING | 否 | 白/蓝/红/灰白渐变/灰渐变 | 按规格自动适配 | 背景色 |
attire |
STRING | 否 | 见服装预设表 | 黑西装+白衬衫 | 着装,≤15 字描述 |
model |
STRING | 固定 | praline_pro |
praline_pro |
证件照固定模型,不由用户配置 |
spec_type → 内部参数映射:
| spec_type | ratio | 背景 | 合规级别 | 合规指令 |
|---|---|---|---|---|
| 一寸/考研/考编/教资/简历 | 3:4 | 白/蓝 | 严格 | 双耳露出额头露出双眉可见 |
| 二寸/毕业证 | 3:4 | 蓝 | 中等 | 双耳露出额头露出 |
| 护照/签证 | 3:4 | 白 | 严格 | 双耳露出额头露出双眉可见 |
| 身份证 | 4:5 | 白 | 严格 | 双耳露出额头露出双眉可见 |
| 驾照 | 3:4 | 白 | 严格 | 双耳露出额头露出双眉可见 |
| 入园照/入学照 | 3:4 | 白/蓝 | 中等 | 双耳露出额头露出 |
| 结婚证 | 3:4 | 红 | 宽松 | 不加 |
| 职业证件照/智感证件照 | 3:4 | 灰白渐变 | 宽松 | 不加 |
| 商务/形象照 | 3:4 | 灰渐变 | 无 | 不加 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 173 lines · 93 tokens per session scan A 3765681d1540
image-id-photo-generate is a skill published in the GitHub repository meitu/meitu-skills (32 stars, last pushed 15d ago), licensed MIT. It adds 93 tokens to every session and 3,022 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…