Ctx blog

From ActiveMemory/ctx · View interactive version

Ctx blog is an AI agent skill from the GitHub repository ActiveMemory/ctx. Generate blog post draft. Use when documenting project progress, sharing learnings, or writing about development experience.

How to use this skill

Skill file

<!-- This skill assumes a ctx-style blog layout (docs/blog/, frontmatter,

index.md). It ships as a bundled skill because the workflow (gather

context, find a narrative arc, draft, revise) is universally useful.

Projects with a different blog structure should adapt the paths and

output format in the Process and Blog Post Structure sections. -->

Generate a blog post draft from recent project activity.

Before Writing

Two questions: if any answer is "no", reconsider:

  1. "Is there a narrative arc?" → A blog post needs a story (problem →

approach → outcome), not just a list of changes

  1. "Would someone outside the project learn something?" → If the

insight is only useful internally, use LEARNINGS.md instead

When to Use

When NOT to Use

Input

The user may specify:

Sources to Analyze

Gather context from multiple sources:

# Recent commits
git log --oneline -30

# Recent decisions
ctx status --verbose  # or read DECISIONS.md directly

# Recent learnings
ctx status --verbose  # or read LEARNINGS.md directly

# Recent tasks completed
ctx status  # shows active and completed task counts

# Journal entries (if available)
ctx journal source --limit 10

Blog Post Structure

Frontmatter

---
title: "Descriptive Title: What This Post Is About"
date: YYYY-MM-DD
author: [Ask user]
topics:
  - topic-one
  - topic-two
  - topic-three
---

Body

# Title

![ctx](../images/ctx-banner.png)

> Opening hook or question

[Introduction: Set the scene, why this matters]

## Section 1: The Context/Problem
[What situation led to this work]

## Section 2: What We Did
[Narrative of the work, with code examples]

## Section 3: What We Learned
[Key insights, gotchas, patterns discovered]

## Section 4: What's Next
[Future work, open questions]

Style Guidelines

typographic/curly quotes

for tables, code blocks, and URLs

Process

  1. Gather sources (git, decisions, learnings, journals)
  2. Identify the narrative arc (what's the story?)
  3. Draft outline for user approval
  4. Write full draft
  5. Ask for revisions
  6. Save to docs/blog/YYYY-MM-DD-slug.md
  7. Update docs/blog/index.md: add entry at the top following the

existing pattern:

### [Post Title](YYYY-MM-DD-slug.md)

*Author / Date*

2-3 sentence blurb.

**Topics**: topic-one, topic-two, topic-three

---

Example Invocations

/ctx-blog about the cooldown feature we just built
/ctx-blog last week's refactoring work
/ctx-blog lessons learned from hook design
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.