2 beatra-ai

ai-image-realism Skill

改进 AI 图像的真实感,无需从头再来。这款专注的 AI 图像编辑与人像真实化工具针对明显的 AI 图像瑕疵——塑料感皮肤、畸形的手或脸、多余手指、重复纹理和光照不一致——通过局部修复或自然的整图优化进行精细修整。可用它让 AI 人像、产品图、营销素材和社交封面更真实,去除明显的 AI 感,修复 AI 手部和多余手指,或优化产品图,同时尽量保持人物身份、产品形状、品牌细节和构图可辨认。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

AI Image Realism & Artifact Fixer

Repair the most visible artificial-looking defect in an existing image while keeping the parts the user already accepts recognizable where possible. The host Agent must be able to inspect the source image; uploading a file is transport, not image diagnosis, and this Skill has no separate Beatra image-analysis call.

Best-fit scenes and preservation priorities

Use this workflow to improve an existing portrait, product image, marketing visual, or social cover with plastic skin, malformed hands or faces, repeated textures, inconsistent light, or another visible generated-image artifact. Start from the user's selected image and repair the highest-impact issue without unnecessarily changing the rest.

Treat text, logo geometry, identity, product shape, packaging, and composition named by the user as must-keep priorities. Prefer the smallest local repair that can address the issue, then compare the result with the source and report any visible drift. Use a reinterpretation route only when the user asks for a new scene or composition; never silently replace an edit request with a newly generated image.

Inputs and defaults

The only hard input is one existing image the host Agent can inspect. Reuse the user's destination, named defect, must-keep details, and accepted composition when already known. Ask only for missing information that changes the repair route or paid payload.

Unless the user asks otherwise:

  • fix one highest-impact problem cluster per pass;
  • use model=auto and count=1;
  • preserve the source aspect ratio for edits;
  • avoid changing unrelated areas;
  • use one stable client_request_id for one logical paid request.

Golden path

  1. Inspect the visible source. Compare anatomy, skin and materials, light, background repetition, composition, text, branding, and destination fit. If the host cannot inspect the image, request an accessible file and stop.
  2. Diagnose one priority problem. Use diagnosis and routing when several defects compete or preservation constraints conflict.
  3. Choose the smallest useful repair.
  • Use beatra.images.edit with one or two normalized regions for bounded local defects.
  • Use beatra.images.edit without edit_regions for image-wide texture, skin, sharpness, or light.
  • Use beatra.images.transform for an explicitly requested new scene or composition. Reuse the user's stated must-keeps, set the intended canvas explicitly, and ask only when missing information would materially change the result or paid payload; never inherit its 16:9 default by accident.
  1. Preview and confirm. Show the problem to fix, route, canvas, must-keeps, output count, and one paid-execution boundary. Follow repair recipes for the exact payload. Query beatra.models.list only when a live capability, availability, count, or price decision matters.
  2. Upload and execute once. Use the bundled scripts/mcp_client.py to upload a local file and call the selected MCP tool. Do not configure or call a host Beatra Connector and do not use REST/OpenAPI as a fallback. Create the request identifier only after the payload is final, then submit once.
  3. Poll and review. Follow the same task with beatra.tasks.get; slow polling is never a reason to resubmit. Inspect the returned result when the host can view it. If it cannot, say visual review is incomplete instead of inventing a conclusion.
  4. Deliver or recover. Present every returned artifact or link, actual dimensions, final billing.net_charged_credits, task ID, whether the priority defect improved, and any must-keep drift. Use review and recovery for one focused unexecuted revision. A changed payload requires a new identifier and fresh confirmation.

Decisions that require confirmation

Confirm before a paid call, before changing the composition or canvas, before accepting weaker preservation, before increasing output count, or before replacing model=auto with a chosen paid model. If a task remains non-terminal after the bounded polling window, return its task ID and current state for later recovery rather than creating another task.

If the tool returns insufficient credits: give the user the tool message in
full. Do not change the URL. You may translate the other words. Do not replace
it with your own top-up copy. Point the user to pay using that message.

When the user asks how many credits remain, call beatra.wallet.get. When they
ask what was charged, call beatra.wallet.ledger. Both are read-only. Do not
invent an account-balance or top-up tool. Do not make wallet.get a required
step before every paid submit.

References by task

Runtime and safe automatic updates

Before ordinary Beatra commands, the bundled client may silently check this installed package channel for a newer version, at most once every 24 hours. When a higher version is available, it installs the update automatically without separate confirmation. It downloads only from the fixed official Beatra discovery and immutable CDN paths, and replaces only files owned by this package after verifying the archive, manifest, and every packaged file. It rejects redirects, downgrades, unsafe archives, unexpected destinations, and a different package, channel, or locale. If any update or recovery step fails, the current installation remains usable and the user's original command continues.

The setting persists for this installation:

python3 scripts/mcp_client.py update --auto off
python3 scripts/mcp_client.py update --auto on
python3 scripts/mcp_client.py update --check

Use the first command to disable silent checks, the second to restore them, and the third to inspect the official available version without changing files. See automatic updates and safety for the complete behavior.