Og Imageのロゴ

Og Image

コミュニティ
roslove44
og-image

BrandArtisan向けに最適化されたOpen Graph画像(SNS共有時のプレビュー画像)を作成します。プロジェクト用の「og image」「share image」や「Open Graph / Twitter / LinkedIn / Discord」のプレビューを求められた場合に使用します。ブランドガイドラインに沿った1200x630の.tsxテンプレートを作成し、プロジェクトのSatoriエンジンで軽量なPNGとしてレンダリングします。brand.mdが用意されたプロジェクトが必要です。

Add to TypingMind

概要

公開者roslove44
リポジトリbrand-artisan
スキル名og-image
スター
5
フォーク
0
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

og-image: optimized Open Graph image

Goal: produce the PNG asset of a share image (1200×630), through the project's pipeline (Satori -> resvg), aligned with the guidelines. BrandArtisan generates the image only; the og:/twitter: tags live on the site that hosts it.

This is a specialization of new-template with the OG constraints hard-coded. Same conventions: the Template contract (from brand-artisan), assets through brand(), fonts discovered in fonts/, export default ... satisfies Template.

0. Prerequisites (blocking)

The chain project -> template folder -> guidelines must exist before you start. Do not begin until it does:

  • Resolve <project> (from the arguments, otherwise ask).
  • Check templates/<project>/ and brands/<project>/brand.md.
  • If the guidelines or the project are missing -> STOP: ask the user to run /new-project <project> first. No visual without guidelines (CLAUDE.md rule).

1. Frame it

  • <name> is a kebab-case slug, default og (or og-<page> if there are several previews). Check that templates/<project>/<name>.tsx does not exist.
  • Read brands/<project>/brand.md: palette (hex), type, which logo variant to use depending on the background, and the don'ts.
  • Read brands/<project>/project.md if it exists: set the tone and the claims (don't invent figures or promises). If absent -> ask for the tone and the message rather than guessing.
  • Ask for the message: short headline + tagline (1 sentence). No paragraph.

2. OG constraints (to respect in the template)

  • Exact size 1200×630 (1.91:1 ratio). The standard recognized by Facebook, LinkedIn, Slack, Discord and X. Do not deviate; absolute minimum 600×315.
  • Opaque background, never transparency: the platforms compose the image over varied backgrounds.
  • Safe area of roughly 80 px of margin: keep the logo and the text towards the center. The corners can be cropped or rounded (Discord, X), so nothing important goes in them.
  • Legible when small: the preview often displays about 400 px wide on mobile. Large headline (~60–90 px), short tagline, strong contrast. Mental test: still legible once shrunk to 400 px wide.
  • Light weight: aim for < 300 KB. Beyond that, some consumers (WhatsApp in particular) do not generate the preview. The engine's flat rendering is naturally light: favor the mark as an SVG data-URI (as og.tsx does), avoid embedding large raster PNGs, and don't inflate with scale: leaving scale out (= 1) is enough at 1200×630 for OG.
  • PNG: that is the engine's output, ideal for crisp text.

3. Write the template

templates/<project>/<name>.tsx, with colors as constants taken from the guidelines (invent nothing). Skeleton:

tsx
import type { ReactNode } from "react";
import { brand, type Template } from "brand-artisan";
// import { readFile } from "node:fs/promises"; // if you load the mark (SVG/PNG)

const SIZE = { width: 1200, height: 630 }; // OG standard, no scale

// <Project> guideline palette (from brands/<project>/brand.md).
const INK = "#......";

// const markSvg = await readFile(brand("<project>/favicon/icon.svg"));

function render(): ReactNode {
  return (
    <div
      style={{
        width: "100%",
        height: "100%",
        display: "flex",
        flexDirection: "column",
        justifyContent: "center",
        padding: 80, // safe area
        backgroundColor: INK, // opaque background
      }}
    >
      {/* logo + large headline + short tagline, strong contrast */}
    </div>
  );
}

export default { size: SIZE, title: "<Human title>", render } satisfies Template;

Keep the code minimal (principle #2): factor out a background effect locally only if it repeats.

4. Verify

  • npm run typecheck -> green.
  • npm run build -> writes out/<project>/<slug>.png.
  • Check the PNG: dimensions 1200×630, opaque background, weight < 300 KB (beyond that, warn and lighten: drop a heavy raster, lower a scale).
  • Preview: npm run dev then /<project>/<name>; check legibility by mentally shrinking to about 400 px.

Success criterion: a 1200×630 PNG, opaque, under 300 KB, legible when small, and using only the colors and type from brand.md except where the user says otherwise.

よくある質問

AIスキル「Og Image」では何ができますか?

BrandArtisan向けに最適化されたOpen Graph画像(SNS共有時のプレビュー画像)を作成します。プロジェクト用の「og image」「share image」や「Open Graph / Twitter / LinkedIn / Discord」のプレビューを求められた場合に使用します。ブランドガイドラインに沿った1200x630の.tsxテンプレートを作成し、プロジェクトのSatoriエンジンで軽量なPNGとしてレンダリングします。brand.mdが用意されたプロジェクトが必要です。

TypingMindでOg Imageを使うメリットは何ですか?

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

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

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

Og Imageを使えるAIモデルはどれですか?

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

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

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

AIスキル「Og Image」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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