Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

batuta content

Content creation tooling for generating structured prompts for educational and technical content.

Overview

The content command provides tools for generating LLM prompts that follow Toyota Way principles, ensuring high-quality, structured content generation.

Subcommands

batuta content emit

Generate a structured prompt for content creation.

batuta content emit [OPTIONS] --type <TYPE>

Options:

OptionShortDescription
--type-tContent type: hlo, dlo, bch, blp, pdm
--titleTitle or topic for the content
--audienceTarget audience
--word-countTarget word count
--level-lCourse level for detailed outlines: short, standard, extended
--source-contextSource context paths (comma-separated)
--show-budgetShow token budget breakdown
--output-oOutput file (default: stdout)

Content Types:

CodeNameFormatLength
hloHigh-Level OutlineYAML/Markdown200-1000 lines
dloDetailed OutlineYAML/Markdown200-1000 lines
bchBook ChapterMarkdown (mdBook)2000-5000 words
blpBlog PostMarkdown (Zola)1000-2500 words
pdmPresentar DemoYAML/MarkdownN/A

Course Levels

For detailed outlines (dlo), configure the course structure using --level:

LevelWeeksModulesVideos/ModuleWeekly Objectives
short123No
standard335Yes (3 per week)
extended665Yes (3 per week)

All courses include:

  • Course description (2-3 sentences)
  • 3 course-level learning objectives
  • Per module: videos + quiz + reading + lab

Examples:

# Short course (1 week, 2 modules)
batuta content emit -t dlo --title "Quick Start" --level short

# Standard course (3 weeks, 3 modules) - default
batuta content emit -t dlo --title "Complete Course"

# Extended course (6 weeks, 6 modules)
batuta content emit -t dlo --title "Masterclass" --level extended

# Book chapter with audience
batuta content emit -t bch --title "Error Handling" --audience "Beginners"

# Blog post with word count
batuta content emit -t blp --title "Why Rust?" --word-count 1500

batuta content validate

Validate generated content against quality constraints.

batuta content validate --type <TYPE> <FILE>

Options:

OptionShortDescription
--type-tContent type to validate against
--llm-judgeUse LLM-as-a-Judge for style validation

Example:

batuta content validate -t bch chapter.md

batuta content types

List all available content types.

batuta content types

Toyota Way Integration

The content module implements Toyota Way principles:

PrincipleImplementation
JidokaLLM-as-a-Judge validation catches quality issues
Poka-YokeStructural constraints in templates prevent mistakes
Genchi GenbutsuSource context mandate grounds content in reality
HeijunkaToken budgeting levels context usage
KaizenDynamic template composition enables improvement

Output Schema (Detailed Outline)

type: detailed_outline
version: "1.0"
course:
  title: string
  description: string (2-3 sentences)
  duration_weeks: int
  total_modules: int
  learning_objectives:
    - objective: string
    - objective: string
    - objective: string
weeks:  # Only for standard/extended
  - week: 1
    learning_objectives:
      - objective: string
      - objective: string
      - objective: string
modules:
  - id: module_1
    week: 1
    title: string
    description: string
    learning_objectives:
      - objective: string
    videos:
      - id: video_1_1
        title: string
        duration_minutes: int (5-15)
    reading:
      title: string
      duration_minutes: int (15-30)
    quiz:
      title: string
      num_questions: int (5-10)
    lab:
      title: string
      duration_minutes: int (30-60)

Navigate: Table of Contents | CLI Overview