Manual
Almnck.
Price: 50ⓐ

RSS Chapbook Summaries Design

Date: 2026-01-19 Status: Approved

Overview

Replace the RSS feed’s auto-generated 300-character extracts with literary-style summaries in the tradition of 18th-century chapbook chapter previews. These summaries use phrases like In which, wherein, furthermore, and and in which to create whimsical, engaging descriptions.

Example:

In which our Author observes the overlapping anniversaries of World Logic Day, proposing a bifurcated celebration known as Tarskimas and Gödelnalia; wherein the gregarious, slivovitz-tippling habits of Alfred Tarski are contrasted with the reclusive, poison-fearing anxieties of Kurt Gödel; furthermore, a plan is laid for hybrid festivities involving Polish hunter’s stew, ethnic fraternal halls, and Meta-languages; and in which it is revealed that the 1970s police procedural Starsky & Hutch may—or may not—be a secret allegory for the fundamental rifts in twentieth-century mathematical thought.

Summary Storage & Detection

Location: Each article’s summary lives at editorial/articles/{slug}/assets/summary.md

Format: Plain text containing only the summary (no YAML frontmatter). May include italics for emphasis.

Detection states: - Missing — No assets/summary.md file exists - Stale — Article’s git commit is newer than summary’s git commit - Current — Summary exists and is up to date

Generation Workflow

Script: bin/update-summary

Mirrors the existing bin/update-index pattern:

Command Behavior
update-summary --status List articles by state (missing/stale/current)
update-summary --new Generate summaries only for articles missing summary.md
update-summary --all Regenerate all summaries (overwrites existing)
update-summary slug1 slug2 Generate for specific articles

Prompt Template: assets/prompts/summarizer.md

Instructs the LLM to: - Write in chapbook style using In which, wherein, furthermore, and in which - Capture the article’s key themes, characters, and surprises - Maintain a tone of wry, learned whimsy - Output only the summary text (no wrapping, no metadata)

Human Review

Generated summaries are written directly to assets/summary.md. The author reviews, edits if needed, and commits when satisfied. This preserves human oversight while reducing labor.

Sync & RSS Integration

During make sync

The sync command (sync_with_repo.py) gains additional logic:

  1. For each article directory, check if assets/summary.md exists
  2. If present, read its content
  3. Store as summary key in the Unit’s frontmatter JSON

No model migration required—frontmatter is already a JSONField that accepts arbitrary keys.

In the RSS Feed View

Modify rss_feed() in src/almnck/units/views.py:

# Check for editorial summary first
summary = unit.frontmatter.get('summary')
if summary:
    description = summary.strip()
else:
    # Fall back to existing truncation logic
    description = truncate_extract(rendered_content, 300)

Sync Warnings (Optional)

During sync, emit a warning for published articles missing summaries:

Warning: Published article 'my-article' has no summary.md

This is a gentle nudge, not a blocker.

Makefile Targets

Add to the Editorial section, alongside the Index targets:

.PHONY: summary-status
summary-status: check-activated
    @$(ALMANACK_ROOT)/bin/update-summary --status

.PHONY: summary-new
summary-new: check-activated
    @$(ALMANACK_ROOT)/bin/update-summary --new

.PHONY: summary-all
summary-all: check-activated
    @$(ALMANACK_ROOT)/bin/update-summary --all

Update help text to include a “Summaries:” section.

Files to Create/Modify

File Action
bin/update-summary Create (new script)
assets/prompts/summarizer.md Create (prompt template)
src/almnck/units/management/commands/sync_with_repo.py Modify (read summary.md)
src/almnck/units/views.py Modify (use summary in RSS)
Makefile Modify (add targets and help)

Implementation Order

  1. Create prompt template (assets/prompts/summarizer.md)
  2. Create bin/update-summary script
  3. Add Makefile targets
  4. Modify sync command to read summaries
  5. Modify RSS view to use summaries
  6. Generate summaries for existing articles
  7. Test full workflow