portrait-916

portrait-916 is a skill for Claude Code, Codex from rexleimo/aios. It costs 55 tokens per session (829 once invoked), scanned A, original, MIT.

A rule for generating portrait images in a tall 9:16 shape, the same proportion commonly used by phone screens.

In plain words
What is it for?
It is for creating portraits with the stated image-generation settings and cropping them with Python when a 3:4 image is needed.
Why use it?
It gives portrait-generation tasks a consistent image shape and specifies how to handle requests for a different crop.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit It is for creating portraits with the stated image-generation settings and cropping them with Python when a 3:4 image is needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rexleimo/aios/portrait-916
Install

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.

Any agent
npx skills add rexleimo/aios --skill portrait-916
Clone the repo
git clone --depth 1 https://github.com/rexleimo/aios

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for portrait-916

README.md
[![agentmods](https://agentmods.dev/badge/skills/rexleimo/aios/portrait-916/github.svg)](https://agentmods.dev/skills/rexleimo/aios/portrait-916)
Your own site
<a href="https://agentmods.dev/skills/rexleimo/aios/portrait-916"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/portrait-916/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.

agentmods 80×15 button for portrait-916

Your own site · 80×15
<a href="https://agentmods.dev/skills/rexleimo/aios/portrait-916"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/portrait-916.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 829 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00829
Opus 5.5 $0.00022 $0.00332
Sonnet 5.5 $0.00011 $0.00166
Haiku 4.5 $0.00006 $0.00083

Measured 1mo ago against content hash eb856a1e240f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

portrait-916 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 1mo 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.

skill-sources/portrait-916/SKILL.md · 43 lines

What it actually says

Portrait 9:16 — 人像生图画幅升格规则

生成人像(portrait)图片时,默认一律用 9:16 竖幅。这是实测结论,不是偏好。

核心规则

  1. 人像 → 9:16:gpt-image-2 用 --size 1024x1792。不要用 3:4 直接出人像。
  2. 为什么:3:4 画幅下模型把人脸摊进更宽的画面,五官更扁、皮肤纹理更弱、"抓拍感"更差;9:16 对应手机竖屏自拍的真实取景,人脸占比和景深逻辑都更对。2026-09-12 kr-realism 任务实测:同风格下 3:4 出图(gen/probe 时期)人脸明显弱于 9:16 v4(见 rex-videos .workspace/2026-09-12-kr-realism/ 对比记录)。
  3. 下游要 3:4 时:先 9:16 生成,再用 Python(Pillow)裁成 3:4,禁止直接 3:4 生成后凑合。
  4. 提示词里同步声明画幅:prompt 首句写 9:16 vertical ...,与 --size 1024x1792 保持一致。

尺寸对照(gpt-image-2 支持值)

画幅 size 用途
9:16 1024x1792 人像默认
1:1 1024x1024 头像/方形位、快速试 prompt
16:9 1792x1024 横版场景/背景图

执行要点

  • 执行器用 rexai-image-generation 技能的 Python 版 rexai-image.py(进度可见、超时 600s、熔断/内容策略自动重试)。
  • 9:16 大尺寸出图常需 60-180s,属正常,勿中途 kill(job 在服务端继续跑,kill 会丢 job id 上下文)。
  • 内容安全过滤是概率性的:同一 prompt 可能过可能拦;被拦时脚本自动重试,仍失败就替换高危措辞(实测 "one hand ... in foreground" 易拦,"leaning forward with hands on the bed edge" 稳定过)。

验证记录

  • 2026-09-12:kr-realism 任务,ref-01 参考图拆解 → v4 prompt(9:16, 1024x1792)一次通过,8 项场景锚点全中,人脸立体度显著优于 3:4 对照图。
Changes

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.

  1. 1mo ago Changed eb856a1e240f
  2. 1mo ago Changed 68dff48e72dc
  3. 1mo ago First seen · 43 lines · 55 tokens per session scan A dd8a74250d24

Subscribe to this mod's changes

portrait-916 is a skill published in the GitHub repository rexleimo/aios (61 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 829 once invoked, about $0.0002 per session on Opus 5.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-09-14.