Communitygithub.com

Apple Notes モックアップ生成スキル

JSON形式のノート仕様から、iPhone (ライトモード) のApple Notes風スクリーンショットをピクセル精度でレンダリングします。出力はHTML + PNG形式で、iPhone 16/15 Pro のネイティブ解像度 1180×2556 に対応。段落、画像、チェックリスト、区切り線、自動修正アンダーライン、スマート引用符、オプションのiOSキーボードオーバーレイをサポートします。

Apple Notes モックアップ生成スキル とは?

このスキルは、JSON形式で記述されたノートの仕様を基に、Apple Notesアプリのスクリーンショットを忠実に再現する、LLM非依存のレンダリングツールです。出力はHTMLとPNG画像で、iPhone 15 Proや16 Proのネイティブ解像度(1180×2556、DPR 2)に最適化されています。主な用途は、広告やソーシャルメディア投稿、ビデオシーン、プロダクトモックアップ向けのApple Notes風スクリーンショット生成です。また、タイピングアニメーション動画を生成する上位スキル(`create-apple-notes-video-ad`)のフレームレンダラーとしても使用されます。このスキル自体にはLLMは含まれず、入力として与えられたJSONノート仕様を、ステータスバー、ツールバー、テキストカーソル、自動修正アンダーライン、スマート引用符、画像、チェックリスト、iOSキーボードなどを含めて正確に描画します。CLIツールとして提供されており、`--note` フラグでJSONファイルを指定して実行します。

対応~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/gooseworks-ai/goose-skills/tree/HEAD/skills/ads/packs/video-ad-formats/create-apple-notes-mockup

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

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

ドキュメント

create-apple-notes-mockup

実際のiPhoneスクリーンショットのように見えるApple Notes画面を生成します。正しいステータスバー、フローティングツールバーピル、太字タイトル、段落間隔のある本文テキスト、黄色のテキストカーソル、自動修正アンダーライン、オプションの埋め込み画像とチェックリスト、およびオプションのiOSキーボードを備えています。

目的

JSONノート仕様を、ピクセル精度のApple Notes(iPhone、ライトモード)スクリーンショット(HTML + PNG、ネイティブ解像度1180×2556、DPR 2)に変換します。これは、create-apple-notes-video-ad 分子がタイピングアニメーションを偽装するためにフレームごとに駆動する、決定論的なLLM非依存のレンダラーであり、広告、ソーシャル投稿、ストーリーボードにおける「自分へのメモ」ワンショットビートのためのスタンドアロンツールでもあります。オーケストレーションエージェントがコピーを管理し、このアトムが忠実度(ステータスバー、スマート句読点、カーソル、自動修正アンダーライン、ツールバー、キーボードクローム)を担当します。

使用すべきタイミング

  • 広告、ソーシャル投稿、ビデオシーン、プロダクトモックアップ用のApple Notes風スクリーンショットが必要な場合。
  • タイピングアニメーションビデオを駆動するためのApple Notesフレームのシーケンス(タイトルのみ → 段落追加 → カーソル移動)が必要な場合 — create-apple-notes-video-ad で使用されます。
  • ストーリーボード内で静的な「自分へのメモ」ビートが必要な場合。

iMessageのスレッドをレンダリングする場合は、代わりに skills/atoms/messaging/create-imessage-mockup を使用してください。

入力

このスキルは決定論的です。LLMは組み込まれていません。オーケストレーションエージェントが以下のスキーマに一致するノートJSONを作成し、レンダラーを呼び出します。

ノートJSONスキーマ

{
  "title": "こんにちは",
  "body": [
    { "type": "paragraph", "text": "これはApple Notesアプリでタイピングしている画面録画です。" },
    { "type": "paragraph", "text": "これがどのように感じられるか見てみましょう。" }
  ],
  "cursor": "end",
  "autocorrect_underline": ["これ", "どのように"],
  "status_bar": {
    "time": "9:41",
    "battery_pct": 87,
    "battery_low": false,
    "show_focus_glyph": false
  },
  "show_keyboard": false,
  "keyboard_state": {
    "suggestions": ["みる", "いく", "する"],
    "shift": "lower",
    "letters_row1": "qwertyuiop",
    "letters_row2": "asdfghjkl",
    "letters_row3": "zxcvbnm"
  },
  "with_iphone_frame": false
}
  • title — 文字列。太字の見出し、1行。
  • body[] — ブロックリスト。サポートされるブロックタイプ:
    • paragraph — { "text": "..." }。スマート句読点が自動適用されます(' → '、" → "、... → …、-- → –、--- → —)。
    • image — { "src": "<path|url>", "caption": "optional" }。相対パスは仕様ファイルのディレクトリを基準に解決され、データURIとしてインライン化されます。
    • checklist — { "items": [{ "text": "...", "checked": true|false }] }。チェックされた項目は黄色の塗りつぶし丸と取り消し線、チェックされていない項目は灰色のアウトライン丸で表示されます。
    • divider — 水平線。
  • cursor — "title" | "end" | null。"title" はタイトルの最後に黄色いキャレットを配置します。"end" は最後の段落の最後に配置します。null は非表示にします。
  • autocorrect_underline[] — 大文字小文字を区別する単語リスト。各出現箇所にApple Notesの中間タイピング時の黄色いアンダーラインが付きます(<span class="spell">)。
  • status_bar — time、battery_pct(0–100)、battery_low(バッテリーを赤く表示)、show_focus_glyph(時刻の横にDND/車アイコン)。Dynamic Islandはレンダリングされません。
  • show_keyboard — true でiOS QWERTY + フォーマットツールバーをオーバーレイします。
  • keyboard_state — show_keyboard がtrueの場合のみ参照されます。shift = "lower" | "upper"。
  • with_iphone_frame — 薄い暗いベゼルインセットを追加します(ヒーローコンポジション用)。

CLI

node render.js --note examples/mid.json
node render.js --note examples/long.json --output ./my-exports/ --name todays-note
node render.js --note my-note.json --with-keyboard
node render.js --note my-note.json --viewport 1080x1920   # 9:16 広告配信サイズ

フラグ

フラグ効果
--note <path>(必須) 上記スキーマに一致するJSONファイル
--with-keyboardshow_keyboardを強制有効化(仕様を上書き)
--with-iphone-frameハードウェアベゼルを強制有効化
--no-frameハードウェアベゼルを強制無効化
--output <dir>日付付き出力フォルダの親ディレクトリ。デフォルト ./apple-notes-mockup-exports/
--name <slug>出力フォルダのスラッグを上書き
--out-html <path> / --out-png <path>明示的なパスに直接書き込み(日付フォルダをスキップ)
--viewport WxHレンダービューポートを上書き(デフォルト 1180x2556)
--dpr Nデバイスピクセル比(デフォルト 2)

出力

<output>/<YYYY-MM-DD>-<slug>/
  index.html       # 完全なスタンドアロンHTML(画像はデータURIとしてインライン化)
  screenshot.png   # 選択されたビューポート×DPRでレンダリングされたPNG
  spec.json        # 再現性のための入力のコピー

デフォルトの <output> はカレントワーキングディレクトリの ./apple-notes-mockup-exports/ です。

ワークフロー

  1. プロンプトまたは既存のノートJSONを受け取ります。
  2. プロンプトのみが与えられた場合:スキーマに一致する note.json を作成し、保存します。
  3. node render.js --note <path> [--with-keyboard] を実行します。
  4. 生成されたPNGを開いてレイアウトを確認します。何か問題がある場合(折り返し、カーソル位置、バッテリーの色など)、JSONを編集して再レンダリングします。

セットアップ(初回のみ)

cd create-apple-notes-mockup
npm install
npx playwright install chromium

リポジトリには create-imessage-mockup/node_modules へのシンボリックリンクが同梱されているため、新しいクローンでは npm install はこのスキルを自己完結させたい場合にのみ必要です。

ファイル

ファイル目的
render.jsCLIエントリポイント — フラグを解析、画像パスを解決、HTMLを生成、スクリーンショットを取得
generate.jsノートJSON → スタンドアロンHTMLページ(ここでスマート句読点と自動修正アンダーラインが適用されます)
screenshot.jsHTML → PNG(Playwright chromiumヘッドレス経由、1180×2556、DPR 2)
templates/note.cssすべてのビジュアルスタイリング(ステータスバー、ツールバー、本文、チェックリスト、画像、キーボード)
templates/icons.jsインラインSVGアイコン(戻るシェブロン、元に戻す、共有、その他、完了チェック、信号、Wi-Fi、バッテリー、フォーマットツールバーアイコン、キーボードグリフ)
assets/samples/sample-landscape.jpgexamples/with-image.json で使用されるサンプル画像
examples/*.jsonすべてのバリエーション(タイトルのみ、タイピング途中、長文複数段落、チェックリスト付き、画像付き、フレーム1小文字キーボード)をカバーする6つのリファレンスノート
tests/run-all.shすべての例を tests/output/ にレンダリングしてビジュアルレビューを実行
apple-notes-skill-build.htmlリファレンスビデオフレームと生成されたPNGを比較するサイドバイサイドレビューボード

品質チェック

ノートが出荷可能と宣言する前に:

  • タイトルが通常の太さではなく、太字の見出しでレンダリングされている。
  • 本文テキストがAppleのスマート句読点を使用している — ' はカール、" はカール、… は1文字。
  • 黄色いカーソル(#FFCC00)がターゲットテキストの最後にぴったりと配置され、幅は約5px。
  • 本文段落が1行の空白行(手動の <br> なし)で区切られている。
  • 自動修正アンダーラインはフラグが立てられたトークンの下にぴったりと配置された短い黄色い線で、大文字小文字を区別するマッチング。
  • ステータスバー:時刻が左、信号/Wi-Fi/バッテリーが右。battery_low: true の場合のみバッテリーが赤くなる。Dynamic Islandなし。
  • スクロールマスク: ステータスバーとツールバーは不透明な白い背景を持ち、分子のドライバーによってスクロールされた本文コンテンツが透けて見えないようにする。DevToolsで .note を -300px だけ移動させ、タイトルがツールバーによって完全にマスクされていることを確認する(後ろや透けて見えない)。
  • ツールバー:フローティング戻るシェブロンピル(左)、白いカプセル型の元に戻す/共有/その他、黄色い完了丸(右)。すべてにソフトシャドウが適用されている。
  • キーボード(有効時):QWERTYレイアウトが shift の大文字小文字設定に一致、サジェストストリップに3つの単語が表示、キーの上にフォーマットツールバーピル、下部にマイクと地球儀。
  • 画像ブロックは丸みを帯びた角(約18px)でレンダリングされ、本文の左パディングを尊重する。
  • チェックリスト:チェックされた項目は黄色い塗りつぶし丸 + 取り消し線、そうでない項目は灰色のアウトライン丸。

障害モード

症状原因修正
本文テキストの折り返しが1語早すぎる/遅すぎるフォント幅がリファレンスと異なる(ChromiumがSF以外のフォールバックを選択).note-body の font-size を2px単位で調整するか、左右のパディングを減らして .note を広げる
タイトルが細く見える/十分に太くないホストにSF Pro Displayがなく、システムがより細いフォントにフォールバックfont-weight: 900 に設定(デフォルトのまま)し、`fc-list
「Hello's」「Let's」がストレート引用符でレンダリングされるスマート句読点プリプロセッサが無効escapeHtml の前に generate.js で smartQuotes() が呼び出されていることを確認
画像がレンダリングされない(空白スペース)リモートURLがブロックされているか、相対パスが解決されなかったローカルファイルパスを使用。render.js はローカル画像をbase64としてインライン化
自動修正アンダーラインが「this」のみを意図しているのに「This」にもマッチする正規表現が大文字小文字を区別していなかったデフォルトでは正規表現は大文字小文字を区別。autocorrect_underline に正確な大文字小文字の文字列を渡す
空の段落がつぶれる(カーソルスペースがない)内容のない <p class="note-paragraph"></p> の高さがゼロCSSで margin: 0 0 84px 0 が設定されているため、空の段落でも1段落分の間隔が確保される。末尾のマージンを削除していないことを確認
黄色い完了丸がオレンジ色に見えるCSSの色ずれ純粋なAppleの黄色は #FFCC00。カーソルと完了で値を共有。#FFC107(Material Amber)に変更しない
キーボードサジェスト「Hello's」がストレートアポストロフィでレンダリングされるサジェストにスマート引用符が適用されていないgenerate.js の smartQuotes(s) で適用されることを確認済み

参考

ビジュアル仕様は apple-notes-typing.MP4(Apple Notesをライトモードでタイピングする36秒のiPhone画面録画)から抽出されました。このフォルダの apple-notes-skill-build.html を参照して、サイドバイサイドの証明を確認してください。各例はターゲットとするリファレンスフレームとともに表示されます。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

gooseworks-ai/goose-skills

Burned-in captions for a finished vertical video, three kinds. transcribe.py gets word timings from the video's own audio through the GooseWorks proxy (fal Whisper, bills the Ads agent, cents); captions.py burns one to three words at a time with Pillow + ffmpeg (no libass needed), either pinned to a split-screen seam (plate 25% above / 75% below) or at a fixed height, in a plate, outline or one-word serif style, with an optional red hook card; plates.py burns per-beat caption blocks (black, one union silhouette, placed in the emptiest band) for formats with no voice. The last caption (the CTA) holds to the final frame. Use as the last step of any video ad.

gooseworks-ai/goose-skills

Assemble a cartoon / animated / hand-crafted music-video ad from a config — a sung song carries the whole narrative while N per-bar i2v clips (one recurring animated character, one look pack) are each cut to their BAR window from librosa beat-tracking and hard-concatenated on the bar, VEED-whisper white bold-sans captions in the BOTTOM third (Alignment 2, above the logo bug, no pill) burned from the song's word timings re-spelled against the locked lyrics, a persistent brand logo bug held over the body (suppressed on the end card), and closed on a solid-brand-color PIL end card with the song still playing under it — never AI-rendered text. This is the FREE deterministic assembly stage (cut-to-bar + hard concat + logo bug + captions + end card + song mux); the song, character, keyframes, and clips come from create-music-elevenlabs / create-image-fal / create-video-fal. Use for the cartoon-music-video format.

gooseworks-ai/goose-skills

Assemble a cinematic live-action-style music-video ad from a config — an original sung anthem carries the whole narrative while N 35mm-film-look i2v clips are each cut to their lyric window and hard-concatenated on the beat as a 3-act arc, the anthem muxed at loudnorm I=-14, cinematic lower-third serif captions built from the song's OWN word timings (never Whisper) with the hook line landing on the chorus drop, and closed on a brand end card composited from the real asset — never AI-rendered text. This is the FREE deterministic assembly stage (cut-to-window + hard concat + anthem mux + captions + end card); the anthem, keyframes, and clips come from create-music-elevenlabs / create-image-gpt-image-fal / create-video-fal. Use for the cinematic-music-video format.

gooseworks-ai/goose-skills

Assemble an editorial-motion podcast-clip ad from a config — a real clipped podcast MP3 carries the narrative while N flat limited-palette editorial-illustration keyframes (one look pack) are animated NOT by generative i2v but by DETERMINISTIC ffmpeg ken-burns (zoompan) + hard cuts (no crossfades, which expose geometric drift), each beat snapped to its spoken line, the real audio muxed, Whisper-driven captions burned only mid-sentence, and closed on a PIL brand end card — never AI-rendered text. This is the FREE deterministic assembly stage (ffmpeg ken-burns + hard concat + audio mux + captions + end card); the real audio is clipped from source and the keyframes come from create-image-fal. Use for the editorial-motion-podcast format.

gooseworks-ai/goose-skills

Analyze the message match between your ads and landing pages. Checks if the promise in the ad copy carries through to the landing page headline, body, and CTA. Flags disconnects that kill conversion rates. Works with Google, Meta, and LinkedIn ads.

gooseworks-ai/goose-skills

Generate a single 4-15s vertical video clip with ByteDance Seedance 2.0 reference-to-video via fal.ai. Multi-image reference (avatar + product + setting), native lip-synced VO + ambient audio (generate-audio on by default), internal multi-cut handling within one render. Routes through the GooseWorks FAL proxy (bills the Ads agent). The default clip atom for AI-creator UGC ads built on the NB2 + Seedance architecture. Validated on beauty-by-earth/video-01.

gooseworks-ai/goose-skills

Mandatory pre-publish review gate for a UGC video render. Transcribes the finished render's AUDIO with Whisper and word-diffs it against the approved spoken script, then gates set_final_render — blocking a render whose generated audio mis-voices a word (e.g. the approved "human-vetted" spoken as "human witted"), drops an approved phrase, or comes back silent. Runnable, gating counterpart to content-goose's review-transcript-integrity atom. Every ugc-video-formats recipe runs this after render and BEFORE set_final_render.

gooseworks-ai/goose-skills

Extract competitor and customer intelligence from any company's landing page HTML. Discovers tech stack, analytics tools, ad pixels, customer logos, SEO metadata, CTAs, hidden elements, and more. No API keys required.

gooseworks-ai/goose-skills

Find speakers, hosts, and guest profiles at conferences and events on Luma. Two modes - free direct scrape for hosts, or Apify-powered search for full guest profiles with LinkedIn/Twitter/bio.

gooseworks-ai/goose-skills

Find Twitter/X influencers to promote a product or brand. Use when asked to find influencers, discover Twitter accounts for partnerships, identify creators in a niche, or build an influencer outreach list.

関連スキル