360 Secure SkillHub
360 安全技能中心

commander-portraits

该 Skill 指导把用户提供的方形人物肖像裁剪为带边框的圆形图片,再设置 role、image、attach、offset、detail 等地图标记字段并附到对应军队。它还要求读取放置规则并实现图像标记,但相关 docs、assets/portraits/ 与 hde/frame.py 未随包提供。

分类:创作
utkarshdubey2008
热度 0.00
最近更新 2026-10-25 00:40:02

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add utkarshdubey2008/animateskill/commander-portraits
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
commander-portraits
description
Turn a user-supplied square portrait into a circular crop and place it beside that commander's army. Use for kings, generals, Chandragupta, Seleucus, and other named figures. Coins, sculptures, or labeled reconstructions only. Never add audio.

Commander portraits

Overview

A named person is a circle with a clean border, placed on the home side of their army box. The picture comes from a square image the user supplies. The crop keeps the center of that square.

When to use

Use when the plan names a king, a general, or another person who should be on the map.

Steps

  1. Read docs/house-rules.md and docs/placement.md.
  2. Collect the user's square images. Store them at assets/portraits/<slug>.png.
  3. Crop each one:
python3 skills/commander-portraits/scripts/circular_crop.py \
  assets/portraits/<slug>.png \
  assets/portraits/<slug>-circle.png \
  --border "#c4a46a" \
  --size 256

The --border hex is that empire's color.

  1. Set the marker role to person, image to the cropped file, attach to that side's army id, and offset so the circle sits just outside the box on the home side.
  2. Set detail to coin, sculpture, or artistic reconstruction. If the file is missing, leave image null and set detail to portrait not supplied. Draw initials in the circle. Do not generate a face.
  3. The circle follows the army's motion because of attach. Do not give the person a second motion.
  4. Implement circular image markers in hde/frame.py when the film uses an image. A plain dot is not the delivered portrait.

Checks

  • Every named commander in the script has a circle.
  • The circle does not cover the unit symbols or the subtitle.
  • A reconstruction is labeled. A missing file is labeled portrait not supplied.
  • No audio is added to present the portrait.

See also

  • skills/commander-portraits/scripts/circular_crop.py
  • docs/scene-contract.md