Parent
#1 — context2html Framework
What to build
Restructure SKILL.md from a monolithic 5-step linear workflow into a two-layer document:
- Example flow — the familiar Steps 0-5, now calling framework APIs internally
- Framework API reference — listing ComponentRegistry, TemplateRenderer, ThemeProvider with usage patterns
Key changes:
- The "Example flow" section replaces manual instructions ("copy component code block from
components/NN-name.md") with API calls ("call registry.get_component(id) to retrieve component code")
- The "Framework API" section is concise — just the signatures, what each method returns, and a one-line description
- D1-D5 humanization rules stay as-is (they are content rules, not API concerns)
- All hard constraints and gotchas remain (they are project invariants, not workflow steps)
Integration verification:
- Use the framework APIs to regenerate
examples/0001-demo-report.html — this proves the end-to-end workflow works
- Run
validate-report.py on the regenerated demo — it should pass all 21 checks
Acceptance criteria
Blocked by
Parent
#1 — context2html Framework
What to build
Restructure
SKILL.mdfrom a monolithic 5-step linear workflow into a two-layer document:Key changes:
components/NN-name.md") with API calls ("callregistry.get_component(id)to retrieve component code")Integration verification:
examples/0001-demo-report.html— this proves the end-to-end workflow worksvalidate-report.pyon the regenerated demo — it should pass all 21 checksAcceptance criteria
## Example flowsection with the 5-step workflow## Framework APIsection with registry/renderer/theme signaturesexamples/0001-demo-report.htmlregenerated via framework APIs passesvalidate-report.pyBlocked by