Communitygithub.com

heyimjames/realistic-profile-pictures

アプリのモックアップ、Webサイトのチーム/推薦ページ、マーケティング、デモ、動画向けに、AI生成と見えないリアルなプロフィール写真とアバターを生成します。

realistic-profile-pictures とは?

このスキルは、RealPFP プロンプトエンジンと fal.ai の nano-banana-2 モデルを組み合わせ、AI 生成とはわからない自然でリアルな顔写真を生成します。一般的な AI 生成画像の特徴(蝋のような質感、完璧な美肌効果)を避け、「visible pores(目に見える毛穴)」、「single catchlight(単一のキャッチライト)」などの肯定的な記述を用いて、信頼できる人間の顔を作り出します。3 つのスタイル(aspirational(洗練されたリアル)、profile(自然な投稿向け)、candid(ドキュメンタリータッチ))をサポートし、多様性とシーンの一貫性(天候、光、時刻の整合)を内蔵。ユーザーは自身の fal.ai API キーを用意し、コマンドラインから 1~50 枚の画像を生成できます。アプリのモックアップやマーケティング素材などに、古臭いストック写真や不自然な AI 顔の代替として利用できます。本人へのなりすまし目的での使用は禁止されています。

対応Claude Code~Codex CLICursorGemini CLI
npx skills add heyimjames/realistic-profile-pictures

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Realistic Profile Pictures

Generate believable human faces that don't read as AI, for filling app mockups, website avatars/testimonials, marketing, demos, and video with real-looking people instead of uncanny AI output or the same three Unsplash faces.

Live product this is packaged from: realpfp.vercel.app · source: github.com/heyimjames/RealPFP

What makes it look real

The value isn't the API call, it's the prompt engine. Full detail in reference/prompt-principles.md; the short version:

  • Positive description beats negation. nano-banana-2 is a Gemini-family model with no negative-prompt field, so the engine describes what a real photo has (visible pores, one light source, a single catchlight, correct anatomy) rather than listing what to avoid, naming "plastic skin" to forbid it can summon it.
  • No "poison words" (flawless, perfect, radiant, stunning, 8k…), they trigger the beauty-filter look.
  • Anatomy clause with a "hide the hand rather than mangle it" fallback.
  • Three looks: aspirational (polished but real), profile (natural, postable), candid (gritty/documentary).
  • Diversity + coherent scenes (weather/light/time always agree) baked in.

Setup

Usage

Preview prompts first (no API calls, no cost):

node scripts/generate.mjs --count 3 --mode profile --dry-run

Generate images:

FAL_KEY=your_key node scripts/generate.mjs --count 6 --mode profile --out ./faces

Flags: --count N (1–50, default 4) · --mode aspirational|profile|candid (default profile) · --out DIR (default ./pfp-out) · --aspect 1:1 · --resolution 1K|2K · --dry-run.

Images save as pfp-01.png, pfp-02.png, … Generation runs 4-at-a-time to stay within fal.ai rate limits.

Notes

  • Curate the output. Even with the tuned prompts, image models slip occasionally (usually complex hand/arm poses), generate a few extra and pick the best, exactly how the hero images on realpfp.vercel.app were chosen.
  • Bring your own key. The key is only read from the environment for the API call; it's never stored.
  • This generates fictional people for design/marketing use, it is not for impersonation or headshots of a real person.

関連スキル