feat(design): playbooks, disclosed on demand through design_playbook - #153
Merged
Conversation
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
force-pushed
the
feat/design-playbooks
branch
from
September 6, 2026 05:39
34aae2e to
3c93085
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Tests: 5 in
test/design/playbooks.test.ts(completeness, no lavish or CDN references, list/render, the prompt's router, the tool). 179 intest/designoverall; typecheck clean.https://claude.ai/code/session_013JrKXL4pdgTu2EtCjgiYyq
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.