home / skills / langchain-ai / deepagents / blog-post

This skill helps you compose well-structured, SEO-friendly long-form blog posts with clear sections, code examples, and practical guidance.

npx playbooks add skill langchain-ai/deepagents --skill blog-post

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
4.8 KB
---
name: blog-post
description: Use this skill when writing long-form blog posts, tutorials, or educational articles that require structure, depth, and SEO considerations
---

# Blog Post Writing Skill

This skill provides a structured workflow for creating high-quality blog posts that educate and engage readers.

## When to Use This Skill

Use this skill when asked to:
- Write a blog post or article
- Create a tutorial or how-to guide
- Develop educational long-form content
- Write thought leadership pieces

## Research First (Required)

**Before writing any blog post, 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 the current state of AI agents in 2025. Save findings to research/ai-agents-2025.md"
)
```

3. After research completes, read the findings file before writing

## Output Structure (Required)

**Every blog post MUST have both a post AND a cover image:**

```
blogs/
└── <slug>/
    ├── post.md        # The blog post content
    └── hero.png       # REQUIRED: Generated cover image
```

Example: A post about "AI Agents in 2025" → `blogs/ai-agents-2025/`

**You MUST complete both steps:**
1. Write the post to `blogs/<slug>/post.md`
2. Generate a cover image using `generate_image` and save to `blogs/<slug>/hero.png`

**A blog post is NOT complete without its cover image.**

## Blog Post Structure

Every blog post should follow this structure:

### 1. Hook (Opening)
- Start with a compelling question, statistic, or statement
- Make the reader want to continue
- Keep it to 2-3 sentences

### 2. Context (The Problem)
- Explain why this topic matters
- Describe the problem or opportunity
- Connect to the reader's experience

### 3. Main Content (The Solution)
- Break into 3-5 main sections with H2 headers
- Each section covers one key point
- Include code examples, diagrams, or screenshots where helpful
- Use bullet points for lists

### 4. Practical Application
- Show how to apply the concepts
- Include step-by-step instructions if applicable
- Provide code snippets or templates

### 5. Conclusion & CTA
- Summarize key takeaways (3 bullets max)
- End with a clear call-to-action
- Link to related resources

## Cover Image Generation

After writing the post, generate a cover image using the `generate_cover` tool:

```
generate_cover(prompt="A detailed description of the image...", slug="your-blog-slug")
```

The tool saves the image to `blogs/<slug>/hero.png`.

### Writing Effective Image Prompts

Structure your prompt with these elements:

1. **Subject**: What is the main focus? Be specific and concrete.
2. **Style**: Art direction (minimalist, isometric, flat design, 3D render, watercolor, etc.)
3. **Composition**: How elements are arranged (centered, rule of thirds, symmetrical)
4. **Color palette**: Specific colors or mood (warm earth tones, cool blues and purples, high contrast)
5. **Lighting/Atmosphere**: Soft diffused light, dramatic shadows, golden hour, neon glow
6. **Technical details**: Aspect ratio considerations, negative space for text overlay

### Example Prompts

**For a technical blog post:**
```
Isometric 3D illustration of interconnected glowing cubes representing AI agents, each cube has subtle circuit patterns. Cubes connected by luminous data streams. Deep navy background (#0a192f) with electric blue (#64ffda) and soft purple (#c792ea) accents. Clean minimal style, lots of negative space at top for title. Professional tech aesthetic.
```

**For a tutorial/how-to:**
```
Clean flat illustration of hands typing on a keyboard with abstract code symbols floating upward, transforming into lightbulbs and gears. Warm gradient background from soft coral to light peach. Friendly, approachable style. Centered composition with space for text overlay.
```

**For thought leadership:**
```
Abstract visualization of a human silhouette profile merging with geometric neural network patterns. Split composition - organic watercolor texture on left transitioning to clean vector lines on right. Muted sage green and warm terracotta color scheme. Contemplative, forward-thinking mood.
```

## SEO Considerations

- Include the main keyword in the title and first paragraph
- Use the keyword naturally 3-5 times throughout
- Keep the title under 60 characters
- Write a meta description (150-160 characters)

## Quality Checklist

Before finishing:
- [ ] Post saved to `blogs/<slug>/post.md`
- [ ] Hero image generated at `blogs/<slug>/hero.png`
- [ ] Hook grabs attention in first 2 sentences
- [ ] Each section has a clear purpose
- [ ] Conclusion summarizes key points
- [ ] CTA tells reader what to do next

Overview

This skill streamlines creation of long-form blog posts, tutorials, and educational articles with structure, SEO, and cover image generation built in. It enforces a research-first workflow, a clear post structure, and required deliverables so published posts are complete and discoverable. Use it to produce polished technical content that includes code, visuals, and a ready-to-use hero image.

How this skill works

Before writing, the skill delegates research to a researcher subagent and saves findings to a designated research file; the post is written only after reading that research. It mandates a specific folder structure for each post, writes the content into a post.md file, and generates a hero image via an image-generation tool. The skill also guides title, keyword placement, meta description, and a simple quality checklist to ensure SEO and reader engagement.

When to use it

  • Writing long-form blog posts or tutorials that require depth and structure
  • Creating educational or how-to articles with code examples and step-by-step instructions
  • Producing thought leadership pieces that need a polished cover image and clear CTA
  • Preparing content that must meet SEO rules (title, keyword usage, meta description)
  • When you want an enforceable workflow that includes research and asset generation

Best practices

  • Always run the researcher subagent first and read the saved research file before drafting
  • Pick a concise title under 60 characters and include the main keyword in the first paragraph
  • Structure the post with Hook, Context, 3–5 H2 sections, Practical Application, and Conclusion + CTA
  • Generate a hero image with a clear prompt including subject, style, composition, palette, and negative space
  • Save the post to the required blogs/<slug>/post.md path and the cover to blogs/<slug>/hero.png

Example use cases

  • A tutorial showing how to build an agentic pipeline with Deep Agents, including code snippets and diagrams
  • A thought leadership article on the future of langchain and langgraph integrations with agent architectures
  • A step-by-step guide for spawning subagents to handle complex tasks, with practical code templates
  • An SEO-optimized educational post comparing agent planning tools and filesystem backends

FAQ

Do I have to generate a cover image?

Yes. A post is considered complete only after saving the hero image to blogs/<slug>/hero.png.

What comes first: research or writing?

Research always comes first. Delegate a researcher subagent and read its findings before drafting.