Skip to content

feat(design): playbooks, disclosed on demand through design_playbook - #153

Merged
filipeforattini merged 1 commit into
mainfrom
feat/design-playbooks
Sep 6, 2026
Merged

feat(design): playbooks, disclosed on demand through design_playbook#153
filipeforattini merged 1 commit into
mainfrom
feat/design-playbooks

Conversation

@filipeforattini

@filipeforattini filipeforattini commented Sep 6, 2026

Copy link
Copy Markdown

Tranche A4 of the design-mode parity plan, stacked on #152.

  • src/design/playbooks.ts: the seven lavish playbooks (diagram, table, comparison, plan, code, input, slides), rewritten for this review page — window.redcodeDesign, data-redcode-question, the vendored Mermaid, a code playbook that renders listings and diffs as annotatable tables instead of a CDN library the sandbox cannot load, the manifest's kinds where they meet.
  • design_playbook({ id? }): no id lists them with when each applies; an id returns the playbook as sections; a miss names the known ids. Registered with the design tools, rendered inline in the run view.
  • The prompt carries the router only (open every matching playbook before writing HTML); the playbook is read on the turn that needs it.

Tests: 5 in test/design/playbooks.test.ts (completeness, no lavish or CDN references, list/render, the prompt's router, the tool). 179 in test/design overall; typecheck clean.

https://claude.ai/code/session_013JrKXL4pdgTu2EtCjgiYyq


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@filipeforattini
filipeforattini changed the base branch from feat/design-attachments to main September 6, 2026 05:39
The seven playbooks lavish teaches — diagram, table, comparison, plan, code, input, slides —
ported and rewritten for this review page: window.redcodeDesign, data-redcode-question, the
vendored Mermaid, a code playbook that renders listings and diffs as tables the reviewer can
annotate by row instead of a CDN diff library the sandbox cannot load, and the manifest's own
kinds (data-option, kind: "deck") where they meet.

Following lavish's principle that guidance is disclosed when needed: the prompt carries only the
router — open every matching playbook before writing HTML — and design_playbook returns the list
or one playbook, so the tokens are spent on the turn that uses them.

Claude-Session: https://claude.ai/code/session_013JrKXL4pdgTu2EtCjgiYyq
@filipeforattini
filipeforattini merged commit 448242c into main Sep 6, 2026
12 checks passed
@filipeforattini
filipeforattini deleted the feat/design-playbooks branch September 6, 2026 06:00
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