Character Portraitのロゴ

Character Portrait

組織
SummerEngine
character-portrait

会話UI、キャラクター選択、ロアカード、コーデックスの項目に使える、仕上がりの良いキャラクターのバストアップを1点生成します。

Add to TypingMind

概要

公開者SummerEngine
リポジトリsummer
スキル名character-portrait
スター
91
フォーク
8
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SummerEngineがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Character Portrait」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SummerEngine/summer/tree/main/library/skills/character-portrait
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/character-portrait .claude/skills/character-portrait
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCharacter Portraitを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCharacter Portraitを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Character Portraitは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

character-portrait — Locked Bust for Dialogue UI

This skill produces ONE polished character portrait — bust or shoulders-up framing, neutral or stylized background, designed to drop into a dialogue UI, character-select screen, or lore card. It is the opposite of concept-art: concept art explores; this skill commits.

The single biggest failure mode is inconsistency across a cast. Generating five party members one at a time without a locked anchor produces five images that look like they're from five different games — different lighting, different angle, different palette, different rendering style. This skill makes you write a locked anchor suffix the first time and re-use it verbatim for every subsequent portrait.

If the user is still exploring the look, this is the wrong skill — route to concept-art first, lock a direction, then come back here. The asset-strategy meta-router asks "Quick check — exploring the look (3-4 variants for art direction) or generating a final character portrait for dialogue UI?" to disambiguate.

When to use

  • "Generate a portrait for the merchant NPC."
  • "I need a character-select image for the four playable heroes."
  • "Make a lore-card image of the king."
  • "Add a VN-style dialogue portrait for Aria."
  • The cast is locked and the visual direction is locked; you're producing finals.

When NOT to use

  • The user is still exploring → concept-art.
  • The user wants pixel art → pixel-art.
  • The user wants a full-body 3D model → asset-strategy.
  • The user wants 4+ animated expressions of the same character — generate one base portrait here, then use img2img with the base as referenceImageUrl for each expression.

Steps

1. Read or establish the locked anchor

Check .summer/portrait-anchor.md first.

Read .summer/portrait-anchor.md

If it doesn't exist, this is the first portrait in the cast — you must define the anchor now. Ask the user (or infer from .summer/GameSoul.md):

  • Framing: bust (chest up) or shoulders-up?
  • Angle: straight-on, three-quarter left, three-quarter right?
  • Lighting: soft front, dramatic side, rim-lit, golden-hour?
  • Background: flat color, soft gradient, painterly blur, in-world environment?
  • Rendering style: painterly, anime, semi-realistic, line-art-with-flat-color?

Write the anchor to .summer/portrait-anchor.md:

## Portrait anchor (re-use verbatim for every cast member)

framing: bust, shoulders to crown of head visible
angle: three-quarter view, slight turn to character's left
lighting: soft warm key from upper right, cool fill from left, gentle rim
background: muted painterly gradient, dark teal to deep brown, no scene detail
style: semi-realistic painterly, soft edges, oil-painting feel

Note there is no aspect line in the anchor: framing is the aspectRatio argument of assets.generate_image, not prompt text. Bust framing reads fine square (1:1, the default); true portrait framing is aspectRatio: "3:4". Whichever you pick, use it for the whole cast — mixed aspect is as visible as mixed lighting.

Every subsequent portrait in this cast appends the anchor to the prompt verbatim. Do not edit the anchor mid-cast unless the user explicitly says "I want the new ones to look different."

2. Search for an existing portrait

assets.search({ query: "<character name> portrait", assetType: "2d_image", scope: "all" })

Reuse beats regenerate. If the user wants to iterate on an existing one, pull its URL and pass it as referenceImageUrl for img2img.

3. Build the prompt — character + anchor

Pattern:

<character description>. <anchor framing/angle/lighting/background/style>

The character description should include: identity (age, build, hair, distinctive features), expression, costume/equipment, any signature prop. Keep it under 60 words including the anchor.

4. Confirm and call

Generating Aria the witch portrait — 1 image (uses credits), model nano-banana-2, anchor locked from .summer/portrait-anchor.md. OK?

assets.generate_image({
  prompt: "Aria, young witch, mid-twenties, pale skin, long black hair with silver streak, sharp green eyes, half-smile, wearing dark indigo robes with silver embroidery, raven on shoulder. <anchor verbatim>",
  model: "nano-banana-2",
  style: "none",
  aspectRatio: "<the cast's framing>"
})

style: "none" because the anchor's "semi-realistic painterly" already specifies style. Only cartoon and anime append anything to the prompt, and realistic / none append nothing — any other value is coerced to none. So the preset cannot "fight" a painterly anchor; it just does nothing either way, and every bit of the look has to be in the prompt.

There is no options object: shape and size are aspectRatio, width and height.

5. Import and wire into UI

summer_import_from_url(
  url="<fileUrl from generation>",
  path="res://ui/portraits/aria.png"
)

For dialogue UI nodes, wire the texture into a TextureRect:

summer_set_prop(
  scenePath="res://ui/dialogue.tscn",
  path="./DialogueBox/PortraitRect",
  key="texture",
  value="res://ui/portraits/aria.png"
)

texture is a property on the node, so this is summer_set_prop — which needs an explicit scenePath, a node path relative to that scene's root (./), and a key argument, not property. summer_set_resource_property is for reaching one level inside a resource the node already holds and requires all five of scenePath, nodePath, resourceProperty, subProperty, value.

For character-select with multiple portraits, name files consistently: aria.png, borin.png, cael.png, dara.png. Index-able from code via "res://ui/portraits/%s.png" % character_id.

6. Iterate (img2img) instead of regenerating from scratch

If the user wants the portrait tweaked ("smaller smile", "darker robes"), use img2img with the existing image as referenceImageUrl. Preserves identity and lighting.

assets.generate_image({
  prompt: "<original prompt> with a smaller, more subtle smile",
  referenceImageUrl: "<previous fileUrl>",
  model: "nano-banana-2",
  style: "none"
})

Prompt patterns

GoalPrompt skeleton (subject part only — append anchor verbatim)Why
Generic NPC<name>, <age> <build>, <hair>, <eyes>, <expression>, wearing <costume>Identity-first; no scene context
Hero / protagonist<name>, <age> <build>, <hair>, <distinctive feature>, confident <expression>, wearing <signature outfit>, holding <signature prop>Adds prop for memorability
Antagonist<name>, <imposing detail>, <unsettling expression>, wearing <costume with menacing detail>, <signature scar/mark>Antagonists need visual asymmetry
Lore card / king<name>, <age>, regal <expression>, wearing <ornate detail>, <crown/insignia>, formal portrait poseFormal pose overrides anchor's three-quarter
Expression variant<previous prompt> with <new expression: angry / surprised / sad / laughing> + referenceImageUrl: <base portrait>img2img preserves identity
Younger / older variant<character> as a <child / elder> + referenceImageUrl: <base>For flashback / time-skip portraits

Bad prompts (and why)

BadFailure mode
cool warrior portraitNo identity, no anchor. Returns generic stock art.
the witch but make her sad (no img2img ref)Without referenceImageUrl, you get a different witch who is sad. Identity drift.
Anchor inconsistent across castEach portrait looks like a different game. The cast doesn't read as a cast.
full body portrait"Portrait" implies bust. If you want full body, say so explicitly in the prompt and use a tall aspectRatio (2:3) — full body is a different asset class anyway; consider concept-art or the 3D pipeline.
transparent background for a painterly portraitPainterly + transparent fails on most models. Use a flat or gradient background, then alpha-cut in an editor if you must.

Anti-patterns

  • No anchor file. Every cast member generated ad-hoc looks unrelated. Define the anchor on portrait #1, re-use for the rest of the cast.
  • Editing the anchor mid-cast. If you change lighting from "warm key" to "dramatic side" halfway through, the cast splits visually. Either commit to the change and regenerate everyone, or stick with the anchor.
  • Regenerating from scratch when img2img would do. Identity drifts every regen. Iterate via referenceImageUrl.
  • Using the portrait as a 3D reference. Portraits have dramatic lighting, painterly backgrounds, and cropped framing — all of which corrupt 3D generation. For 3D, generate a separate clean white-bg full-body T-pose via asset-strategy.
  • Expecting style to carry the look. Only cartoon and anime append anything; realistic and none append nothing and any other value is coerced to none. If the anchor names the style, "none" is correct — but the anchor text is doing all the work, not the preset.

Edge cases

  • Character has a non-human silhouette (lizardfolk, demon, robot). The anchor still applies — framing, lighting, background, rendering style. Only the subject description changes. Verify the model can hold the silhouette under "bust framing" — some models default to humanoid.
  • Player wants to swap costumes mid-game. Generate one base portrait per costume (aria_traveler.png, aria_robes.png, aria_armored.png) and switch by index. Use img2img from the base for consistency.
  • Cast of 12+ characters. Anchor discipline gets harder as fatigue sets in. Print the anchor as a header in your generation script and don't write any prompt without it.
  • User wants the portrait to "read at small size" (32×32 in a portrait list). That's pixel-art territory; route to pixel-art.

Without Summer Engine

In a session without Summer Engine tools (the assets profile; the summer-assets skill has the whole loop), do steps 1-4 and 6, and skip step 5 (import and UI wiring). Pass out with the person's folder so the PNG lands there (the summer-assets skill says how), and tell them the path.

Fallback (no MCP)

Print the prompt and the call:

assets.generate_image({ prompt: "<character + anchor>", model: "nano-banana-2", style: "none" })

Tell the user to run via the Summer dashboard, then summer_import_from_url the result to res://ui/portraits/<name>.png.

Handoff

After the portrait is wired:

  • More cast members → re-invoke this skill with the same anchor. Don't redefine.
  • Expression variants → re-invoke with referenceImageUrl set to the base portrait.
  • Pixel-art version of the same character → pixel-art.
  • 3D model of the same character → asset-strategy (the portrait is NOT a usable 3D reference; generate a separate T-pose).
  • Dialogue system wiring → scene-composition for the UI hierarchy.

See also

  • concept-art — explore the look first if not yet locked.
  • asset-strategy — meta-router and the 3D pipeline.
  • scene-composition — wiring the portrait into a dialogue UI scene.
  • summer_docs_read id reference/mcp-tools-reference — how to call assets.generate_image.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
assets.generate_image, summer_assets_generate_imagesummer assets generate-image
summer_assets_searchsummer assets search
summer_docs_readsummer docs read
summer_import_from_urlsummer engine import-from-url
summer_set_propsummer engine set-prop
summer_set_resource_propertysummer engine set-resource-property

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Character Portrait」では何ができますか?

会話UI、キャラクター選択、ロアカード、コーデックスの項目に使える、仕上がりの良いキャラクターのバストアップを1点生成します。

TypingMindでCharacter Portraitを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Character Portraitはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCharacter Portraitをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SummerEngine/summer/tree/main/library/skills/character-portraitを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Character Portraitを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Character Portraitで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCharacter Portraitを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Character Portrait」は無料ですか?

はい。SummerEngineがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇