mcpField
X
xhs-cover-skill

xhs-cover-skill

github.com/cclankクリエイティブ・メディア80107 回インストール41 週間前に更新
リポジトリ

xhs-cover-skill について

生のコンテンツを小紅書のカバー向け画像生成プロンプトに整えるスキルです。テンプレートに沿ってカバー、本文、締めのページを構成し、タイトル、整えた文章、タグ、プロンプトを JSON で出力します。

主な機能

  1. 01入力コンテンツの分析
  2. 02参照テンプレートからスタイルを選択
  3. 03タイトル、要約、タグの作成
  4. 04各ページ向けプロンプトの作成
  5. 05JSON 形式での出力

活用シーン

  1. 01記事を小紅書の投稿に再構成
  2. 02テンプレートに沿った複数ページの計画
  3. 03画像生成ツール向けプロンプトの作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/cclank/xhs-cover-skill --skill xhs-cover-skill

インストール後、Claude Code で/xhs-cover-skillを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

README.md
references/
xiaohongshu_style_guide.md
references/templates/
style_infographic_pro.md
style_infographic_cartoon.md

詳細

Xiaohongshu カバー生成ツール(xhs-cover-skill)

このスキルは、元のコンテンツを Xiaohongshu のカバーに適した高品質な画像生成プロンプトに変換するのに役立ちます。

ワークフロー

  1. コンテンツを分析する:ユーザーが提供したコンテンツを読みます。
  2. テンプレートを選択する:references/templates/ から適切なテンプレートを選びます。
    • デフォルト:references/templates/style_infographic_cartoon.md(ユーザーから別の指定がない場合)。
  3. コンテンツを処理する:
    • ブラッシュアップ:目を引く、思わずクリックしたくなるタイトルと要約文を作成します。
    • 言語:出力言語を入力に合わせ(別途指定がない場合)、該当する場合は中国語の句読点ルール(全角記号)を厳守します。
    • 構成:テンプレートのルール(例:2~10枚のスライド)に従い、コンテンツを一連の画像(カバー → コンテンツ → 終了)に分割します。
  4. JSON を生成する:以下の厳密な JSON 形式で最終結果を出力します。

出力形式

出力は単一の JSON オブジェクトでなければなりません。

{
  "title": "The Main Title 🌟",
  "content_polished": "The polished caption text for the post...",
  "tags": ["#Tag1", "#Tag2"],
  "image_prompts": [
    {
      "index": 1,
      "type": "Cover | Content | End",
      "text_overlays": {
        "title": "Text on image",
        "subtitle": "Subtitle on image",
        "notes": "Any extra text"
      },
      "prompt": "Full English image generation prompt...",
      "negative_prompt": "..."
    }
  ]
}

やり取りの例(インフォグラフィックスタイル)

ユーザー:「完璧なスクランブルエッグの作り方を説明してください。」

モデル:

{
  "title": "🍳 Perfect Eggs Every Time! Secret Revealed! 😋",
  "content_polished": "Stop making rubbery eggs! 🛑 These simple tips will change your breakfast game forever. Creamy, fluffy, and delicious! #BreakfastHacks #ScrambledEggs #Foodie",
  "tags": ["#CookingTips", "#Breakfast"],
  "image_prompts": [
    {
      "index": 1,
      "type": "Cover",
      "text_overlays": {
        "title": "PERFECT SCRAMBLED EGGS",
        "subtitle": "Creamy & Fluffy!"
      },
      "prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style, hand-drawn text, cream background. Illustration of a plate of fluffy yellow scrambled eggs with steam rising. Cute chef character giving a thumbs up. Title 'PERFECT SCRAMBLED EGGS' in bold playful font at top. Watermark '岚叔' at bottom right.",
      "negative_prompt": "photorealistic, dark, messy"
    },
    {
      "index": 2,
      "type": "Content",
      "text_overlays": {
        "title": "Step 1: Low Heat",
        "subtitle": "Don't rush it!"
      },
      "prompt": "Xiaohongshu style infographic, vertical (3:4), cartoon style. Illustration of a frying pan on a stove with a small flame. Text 'Step 1: Low Heat'. Cute egg character sweating. Pastel colors.",
      "negative_prompt": "photorealistic"
    }
  ]
}

リソース

  • references/templates/:スタイルテンプレート(例:style_infographic_cartoon.md、style_infographic_pro.md)が含まれています。
  • references/xiaohongshu_style_guide.md:Xiaohongshu 向けにスタイルを整えるためのヒントです。

コメント