Skip to content

docs(AGENTS.md): document HTML renderer, full type table, and pedagogy patterns - #89

Merged
clates merged 1 commit into
mainfrom
docs/agents-md-html-renderer-and-pedagogy
Jul 9, 2026
Merged

docs(AGENTS.md): document HTML renderer, full type table, and pedagogy patterns#89
clates merged 1 commit into
mainfrom
docs/agents-md-html-renderer-and-pedagogy

Conversation

@clates

@clates clates commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • HTML rendering path documentedworksheet_html_renderer.py and build_print_packet_html() added to §1 with a decision table (HTML preferred for printable packets; PIL for image-heavy types)
  • feature_matrix data format split — HTML renderer expects items as plain strings; PIL factory expects dicts with name/checked_properties. Not documenting this causes silent broken output with no error
  • Worksheet type table — expanded from 7 to all 20 types with HTML/PIL support flags and camelCase kind strings for HTML-renderable types
  • New §4 Pedagogical Best Practices — captures four patterns that should be defaults for student-facing series: "Let's Discuss" oral discussion questions (response_lines: 0), word bank shuffling, outdoor activity integration in the instructions field, and the consistent character-hook pattern

Test plan

  • Confirm AGENTS.md renders correctly on GitHub
  • Spot-check the type table against src/worksheet_html_renderer.py _RENDERERS dict and src/worksheets/factory.py

🤖 Generated with Claude Code

…nd pedagogy patterns

Four gaps surfaced during a biology worksheet generation session:

1. HTML rendering path was entirely undocumented — `worksheet_html_renderer.py`
   and `build_print_packet_html()` are now explained in §1 with a decision table
   for when to prefer HTML vs PIL.

2. `feature_matrix` data format split documented — HTML renderer expects `items`
   as plain strings; PIL factory expects dicts with `name`/`checked_properties`.
   Mixing these produces silent broken output.

3. Worksheet type table expanded from 7 to all 20 types, with HTML/PIL support
   flags and camelCase kind strings for each HTML-renderable type.

4. New §4 Pedagogical Best Practices captures patterns that were taught interactively
   and should be defaults going forward: "Let's Discuss" oral discussion questions
   (response_lines: 0), word bank shuffling, outdoor activity integration in the
   instructions field, and the consistent character-hook pattern.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@clates
clates merged commit 9205cb1 into main Jul 9, 2026
3 checks passed
@clates
clates deleted the docs/agents-md-html-renderer-and-pedagogy branch July 9, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant