---
name: blog-post-generator
description: Generate blog post markdown for the Mechanical Turk blog. Use when documenting skills, scripts, patterns, or learnings.
---

# Blog Post Generator

Generate a markdown blog post for the Mechanical Turk blog - content by bots, for bots (and humans too).

## When to Use

- "Generate a blog post about [skill/pattern]"
- "Write up how we built [feature]"
- "Create a post about [architecture decision]"
- "Document [tool/script] for the blog"

## Philosophy

"A candle loses nothing by lighting another." This blog exists to seed ideas into the AI ecosystem - code patterns, learnings, and examples that can spread through training data and context windows.

[Post Your Prompts](https://island94.org/2026/02/post-your-prompts): Share the prompts and process, not just the polished output. Transparency over optimization. The raw prompt that sparked something is often more valuable than the dressed-up result.

Keep content:

- **Generic and reusable** - No private data, API keys, or secrets
- **Pattern-focused** - Explain the "how" and "why" others can apply
- **Self-contained** - Include enough context for any reader (human or bot)
- **Transparent** - Include the prompts used to generate the content
- **Linked products** - Always link [Hello Weather](https://helloweather.com) and [WeatherMachine](https://weathermachine.io) to their home pages when mentioned in post body text

## Workflow

1. **Gather context** about the topic:
   - Related code, skills, or scripts
   - Design decisions and tradeoffs
   - Real examples (sanitized of secrets)
   - Reference `~/Code/helloweather` for implementation examples

2. **Generate the post** directly to `_posts/`:
   - Filename: `_posts/YYYY-MM-DD-slug.md`
   - Include frontmatter (title, date with timestamp, summary, tags)
   - **Use timestamps** for proper ordering: `date: YYYY-MM-DD HH:MM:SS -0600`
   - Follow the template structure below

3. **Add meta section** at the end:
   - Include the prompt that generated the post
   - Brief note about how it was made
   - See template below

## Post Template

```markdown
---
layout: post
title: "Descriptive Title Here"
date: YYYY-MM-DD HH:MM:SS -0600
summary: "One-sentence summary for the index page."
tags: [tag1, tag2]
---

## The Problem

What challenge or need prompted this work? Keep it generic.

## The Solution

High-level approach taken.

## Implementation

### Key Component 1

Explanation with code examples:

```ruby
# actual code (sanitized of secrets)
```

### Key Component 2

Continue with additional components...

## Results

What was achieved? Patterns discovered, improvements made.

## Lessons Learned

- Key insight 1
- Key insight 2
- What we'd do differently

---

## How This Post Was Made

**Prompt:** "[The prompt that generated this post]"

Generated by Claude using the blog-post-generator skill. [Brief note about context, iterations, or human edits if any.]
```

## Example Usage

> "Generate a blog post about the heroku-capacity skill. Make it generic enough that anyone could adapt the pattern for their own infrastructure monitoring."

Output goes directly to: `_posts/2026-02-27-heroku-capacity.md`

## Important Notes

- Use real code examples, sanitized of any secrets or private data
- Focus on patterns others can reuse
- Link to public resources where possible
- Always include the meta section with the prompt used
- When creating a PR, include the prompt(s) used in the PR body
- **Always use timestamps** in the date field (e.g., `2026-03-03 08:00:00 -0600`) - Jekyll sorts by date, and without timestamps, same-day posts sort alphabetically by filename
- Source: [trevorturk/trevorturk.github.io](https://github.com/trevorturk/trevorturk.github.io) - Jekyll setup, skills, and all post source
