social-media

作成者: langchain-ai

Drafts engaging social media posts, writes hooks, suggests hashtags, creates thread structures, and generates companion images. Use when the user asks to write…

npx skills add https://github.com/langchain-ai/deepagents --skill social-media

Social Media Content Skill

Research First (Required)

Before writing any social media content, you MUST delegate research:

  1. Use the task tool with subagent_type: "researcher"
  2. In the description, specify BOTH the topic AND where to save:
task(
    subagent_type="researcher",
    description="Research [TOPIC]. Save findings to research/[slug].md"
)

Example:

task(
    subagent_type="researcher",
    description="Research renewable energy trends in 2025. Save findings to research/renewable-energy.md"
)
  1. After research completes, read the findings file before writing

Output Structure (Required)

Every social media post MUST have both content AND an image:

LinkedIn posts:

linkedin/
└── <slug>/
    ├── post.md        # The post content
    └── image.png      # REQUIRED: Generated visual

Twitter/X threads:

tweets/
└── <slug>/
    ├── thread.md      # The thread content
    └── image.png      # REQUIRED: Generated visual

Example: A LinkedIn post about "prompt engineering" → linkedin/prompt-engineering/

You MUST complete both steps:

  1. Write the content to the appropriate path
  2. Generate an image using generate_image and save alongside the post

A social media post is NOT complete without its image.

Platform Guidelines

LinkedIn

Format:

  • 1,300 character limit (show more after ~210 chars)
  • First line is crucial - make it hook
  • Use line breaks for readability
  • 3-5 hashtags at the end

Tone:

  • Professional but personal
  • Share insights and learnings
  • Ask questions to drive engagement
  • Use "I" and share experiences

Structure:

[Hook - 1 compelling line]

[Empty line]

[Context - why this matters]

[Empty line]

[Main insight - 2-3 short paragraphs]

[Empty line]

[Call to action or question]

#hashtag1 #hashtag2 #hashtag3

Twitter/X

Format:

  • 280 character limit per tweet
  • Threads for longer content (use 1/🧵 format)
  • No more than 2 hashtags per tweet

Thread Structure:

1/🧵 [Hook - the main insight]

2/ [Supporting point 1]

3/ [Supporting point 2]

4/ [Example or evidence]

5/ [Conclusion + CTA]

Image Generation

Every social media post needs an eye-catching image. Use the generate_social_image tool:

generate_social_image(prompt="A detailed description...", platform="linkedin", slug="your-post-slug")

The tool saves the image to <platform>/<slug>/image.png.

Social Image Best Practices

Social images need to work at small sizes in crowded feeds:

  • Bold, simple compositions - one clear focal point
  • High contrast - stands out when scrolling
  • No text in image - too small to read, platforms add their own
  • Square or 4:5 ratio - works across platforms

Writing Effective Prompts

Include these elements:

  1. Single focal point: One clear subject, not a busy scene
  2. Bold style: Vibrant colors, strong shapes, high contrast
  3. Simple background: Solid color, gradient, or subtle texture
  4. Mood/energy: Match the post tone (inspiring, urgent, thoughtful)

Example Prompts

For an insight/tip post:

Single glowing lightbulb floating against a deep purple gradient background, lightbulb made of interconnected golden geometric lines, rays of soft light emanating outward. Minimal, striking, high contrast. Square composition.

For announcements/news:

Abstract rocket ship made of colorful geometric shapes launching upward with a trail of particles. Bright coral and teal color scheme against clean white background. Energetic, celebratory mood. Bold flat illustration style.

For thought-provoking content:

Two overlapping translucent circles, one blue one orange, creating a glowing intersection in the center. Represents collaboration or intersection of ideas. Dark charcoal background, soft ethereal glow. Minimalist and contemplative.

Content Types

Announcement Posts

  • Lead with the news
  • Explain the impact
  • Include link or next step

Insight Posts

  • Share one specific learning
  • Explain the context briefly
  • Make it actionable

Question Posts

  • Ask a genuine question
  • Provide your take first
  • Keep it focused on one topic

Quality Checklist

Before finishing:

  • Post saved to linkedin/<slug>/post.md or tweets/<slug>/thread.md
  • Image generated alongside the post
  • First line hooks attention
  • Content fits platform limits
  • Tone matches platform norms
  • Has clear CTA or question
  • Hashtags are relevant (not generic)

langchain-aiのその他のスキル

langgraph-docs
langchain-ai
LangGraphのドキュメントにアクセスして、ステートフルなエージェントやマルチエージェントワークフローを構築できます。公式のLangGraph Pythonドキュメントを取得し、ステートマシン、グラフベースのエージェント設計、ヒューマンインザループパターンをカバーします。クエリの種類に応じて関連ドキュメントを優先します:ハウツー質問には実装ガイド、理論にはコンセプトページ、エンドツーエンドの例にはチュートリアル、技術詳細にはAPIリファレンスを提供します。自動的に2~4個の最も関連性の高いドキュメントURLを選択し、その内容を取得して回答します。
official
langgraph-human-in-the-loop
langchain-ai
グラフの実行を一時停止し、人間によるレビュー、承認、検証を経て、その入力を反映させて再開します。これには3つのコンポーネントが必要です:チェックポインター(InMemorySaverまたはPostgresSaver)、設定内のスレッドID、そしてJSONシリアライズ可能なインタラプトペイロードです。interrupt(value)は一時停止してデータを表示し、Command(resume=value)は再開してその値を一時停止したノードに返します。interrupt()より前のすべてのコードは再開時に再実行されるため、副作用は冪等である必要があります(insertではなくupsertを使用)。承認ワークフローをサポートします。
official
web-research
langchain-ai
このスキルはウェブリサーチに関連するリクエストに使用します。包括的なウェブリサーチを実施するための構造化されたアプローチを提供します。
official
langchain-oss-primer
langchain-ai
LangChain、Deep Agents、またはLangGraphエージェント構築プロジェクトでは、必ずここから始めてください。他のスキルを選択したり、何かを記述する前に必要な出発点です。
official
skill-creator
langchain-ai
エージェントの機能を専門知識、ワークフロー、ツール連携で拡張する効果的なスキルを作成するためのガイド。このスキルは、ユーザーが…のときに使用します。
official
social-media
langchain-ai
プラットフォーム固有のソーシャルメディア投稿を、調査に基づいたコンテンツと生成された補完画像とともに下書きします。LinkedInの投稿(1,300文字、プロフェッショナルなトーン)とTwitter/Xのスレッド(1ツイートあたり280文字、1/🧵形式)に対応。執筆前にサブエージェントに調査を委任し、その後調査結果を読み、正確性と関連性を確認します。generate_social_imageツールを使用して、小さな画面向けに最適化された大胆でコントラストの高い構図の、目を引くソーシャル画像を自動生成します。
official
deep-agents-memory
langchain-ai
Deep Agents向けのプラグイン可能なメモリおよびファイルバックエンド。エフェメラル、永続、ハイブリッドルーティングオプションを備えています。4種類のバックエンドタイプ:StateBackend(スレッドスコープ、エフェメラル)、StoreBackend(セッションをまたいだ永続)、FilesystemBackend(ローカル開発用の実際のディスクアクセス)、CompositeBackend(異なるパスを異なるバックエンドにルーティング)。FilesystemMiddlewareは6つのファイル操作ツールを提供:ls、read_file、write_file、edit_file、glob、grep。CompositeBackendは最長プレフィックス一致を使用してルーティングします...
official
deep-agents-orchestration
langchain-ai
サブエージェントを調整し、複数ステップのタスクを計画し、機密操作には人間の承認を必要とします。タスクツールを介して専門サブエージェントに作業を委任します。カスタムサブエージェントは独立したツールセットとシステムプロンプトをサポートし、デフォルトの「汎用」サブエージェントはメインエージェント設定を継承します。write_todosを使用して複雑なワークフローを計画・追跡し、保留中、進行中、完了済みの状態でタスクを整理します。呼び出し間での永続性のためにthread_idが必要です。実装...
official