Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:ALwrity ALwrity Outline Generation

From Leeroopedia
Knowledge Sources
Domains Content_Planning, SEO, LLM
Last Updated 2026-10-24 00:00 GMT

Overview

Mechanism that transforms research results into a structured, section-level outline with word-count budgets so that downstream content generation produces a coherent, SEO-optimised long-form article.

Description

Outline generation is the planning stage between research and content writing. It takes the sources, keyword analysis, and competitor analysis from the research stage and produces a hierarchical structure — title options, sections with headings, subheadings, key points, references, and per-section target word counts. This structure serves two purposes: it gives the LLM a scaffold that constrains generation to the planned topics (reducing drift), and it gives the content generator a word-count budget per section so the final article hits the user's target length.

By assigning references to each section up front, the outline also ensures each section is grounded in specific sources, which downstream hallucination detection can verify.

Usage

Use this principle when:

  • A long-form article must hit a target word count across structured sections.
  • Content generation is parallelised by section and each section needs its own context.
  • SEO requirements demand specific headings and keyword placement.
  • Research sources must be distributed across sections for citation coverage.

Theoretical Basis

Outline generation is a single LLM call that maps research→structure:

# Abstract outline generation (NOT a real implementation)
def generate_outline(research, persona, word_count, instructions):
    prompt = build_outline_prompt(research, persona, word_count, instructions)
    raw = llm_generate(prompt)
    return parse_to_sections(raw)   # [{heading, subheadings, key_points, references, target_words}]

The word-count budget is distributed proportionally to section importance, summing to the target.

Practical Guide

  • Cache outlines.' Outline generation is deterministic for the same inputs; cache by the input hash to avoid redundant LLM calls.
  • Distribute word budgets.' Assign per-section target words that sum to the article target; let the content generator respect them.
  • Attach references per section.' Each section should carry the sources it draws from so grounding is verifiable.
  • Title options.' Return multiple title candidates so the user or a downstream ranker can choose.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment