Skip to content

DOJ-4810: give workbook-generate creative latitude (kit as vocabulary, not script)#28

Merged
dbejarano820 merged 1 commit into
mainfrom
daniel/doj-4810-workbook-creative-latitude
Jun 2, 2026
Merged

DOJ-4810: give workbook-generate creative latitude (kit as vocabulary, not script)#28
dbejarano820 merged 1 commit into
mainfrom
daniel/doj-4810-workbook-creative-latitude

Conversation

@dbejarano820
Copy link
Copy Markdown
Contributor

Summary

Guidance-only follow-up to DOJ-4798 (shipped). V1 of workbook-generate optimized hard for consistency/reliability — curated component kit, single base template, content→component mapping. That's the right reliable/accessible/on-brand floor, but it risks monotony if the kit is treated as a script instead of a vocabulary. This rebalances the guidance only (skill + command prose) to leave room for concept-specific creativity — without touching the invariants (brand tokens, accessibility contract, navigation/flow shell, standalone/no-CDN) or the template.

Changes (skill + command only — no workbook-base.html change)

  • Mapping → heuristics, not a lookup table + explicit anti-monotony directive (vary representation across a course; sameness is a failure mode).
  • New "Invariant frame vs. creative payload" section: lock brand/a11y/nav/standalone; let prose, what diagrams depict, component choice & composition differ per concept.
  • "The kit is a floor, not a ceiling" — author bespoke inline SVG/CSS visualizations freely (within design tokens + a11y); the "compose from the tested kit" discipline is narrowed to fragile stateful JS only.
  • Phase 4.5 variety/fit self-check before saving ("would two courses produce visibly different workbooks?").
  • Added "monotony" as an explicit anti-pattern.

Out of scope

  • workbook-base.html (template/runtime), brand/a11y/nav rules, dojo-academy spec — all unchanged.

Test plan

  • CI lint green (check_frontmatter / check_agent_references / check_json_schemas)
  • git status confirms only skills/workbook-generate/SKILL.md + commands/workbook-generate.md changed
  • Voice-neutrality preserved (no new hardcoded brand voice)

Closes DOJ-4810

Created by Claude Code on behalf of @dbejarano820

🤖 Generated with Claude Code

…, not script)

Guidance-only rebalance (skill + command); no template/architecture change.
V1 optimized for consistency/reliability — this leaves room for concept-specific
creativity without touching the invariants (brand, a11y, nav, standalone).

- content->component mapping reframed as heuristics + explicit anti-monotony
- new "Invariant frame vs creative payload" section: lock brand/a11y/nav/
  standalone; vary prose, what diagrams depict, component choice/composition
- "kit is a floor, not a ceiling" — author bespoke inline SVG/CSS freely;
  narrow the JS anti-pattern to fragile *stateful* widgets only (not a ban on
  static/SVG/CSS creativity)
- Phase 4.5 variety/fit self-check before saving
- "monotony" added as an explicit anti-pattern

No workbook-base.html change. CI lint green; voice-neutral.

Created by Claude Code on behalf of @daniel

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dbejarano820
Copy link
Copy Markdown
Contributor Author

@dojo-code-reviewer review

Copy link
Copy Markdown

@dojo-code-reviewer dojo-code-reviewer Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved

Approved — no findings. Confidence: 5/5. NITs: 2 (shown).

⚪ P4 — Nitpicks

  • commands/workbook-generate.md:109 — [NIT] ⚪ P4 (nit) — Unnecessary backslash escaping of double quotes in Markdown. Standard double quotes render perfectly without escaping.

  • skills/workbook-generate/SKILL.md:323 — [NIT] ⚪ P4 (nit) — Escaped backslashes are unnecessary inside plain Markdown files. Standard double quotes can be used directly without escaping.


Total findings: 2 nit (2 total)

SVG/CSS within the design tokens + a11y contract). Reserve the "compose from the
tested kit" discipline for fragile *stateful JS* — static/SVG/CSS creativity is
encouraged. Interactivity must earn its place; prefer one well-chosen block per
concept over decorative ones. See the skill's "Invariant frame vs. creative
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NIT] ⚪ P4 (nit) — Unnecessary backslash escaping of double quotes in Markdown. Standard double quotes render perfectly without escaping.

stateful interactivity from the tested kit, and extend the kit deliberately
(with tests) when a concept truly needs a new interaction. (This is *not* a
ban on creative static / SVG / CSS visualization — author those freely; see
"The kit is a floor, not a ceiling.")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NIT] ⚪ P4 (nit) — Escaped backslashes are unnecessary inside plain Markdown files. Standard double quotes can be used directly without escaping.

@dbejarano820 dbejarano820 merged commit 30c618e into main Jun 2, 2026
1 check passed
@dbejarano820 dbejarano820 deleted the daniel/doj-4810-workbook-creative-latitude branch June 2, 2026 14:15
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