From 1c107d3b721a1618578ffb243153a4685869c3d0 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 6 Nov 2026 13:17:27 -0500 Subject: [PATCH 1/2] Use thoughtbot's brand in `/diff-explainer` Walkthrough pages go to clients and teammates, and nothing on them said who made them. The template now uses the brand's warm grays, red, and type from the playbook. - Red is never text, per the playbook, so diff lines and note labels use the body color. Red shows up as tints, borders, and a top rule. - Cosmica and PP Mori are paid and not on Google Fonts, which is the only stylesheet host Artifacts load. Most readers get Helvetica Neue, the same fallback thoughtbot.com declares. - The palette is only red and grays. Note kinds keep blue, amber, and purple, and added lines stay green, so they're easy to tell apart. A strict red-and-grays version made tradeoff and alternative look the same and added lines hard to spot. - JetBrains Mono ligatures are off. They drew `=>` and `-->` as arrows, which misreports a diff and bent the ASCII figures. - No logo. Considered the robot mark above the title; left it off. Adds a `brand-kept` grader so a model that rewrites the style block fails. Closes #61 Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/plugin.json | 2 +- NEWS.md | 8 ++++ .../graders/brand-kept.md | 5 +++ .../assets/walkthrough-template.html | 37 ++++++++++--------- 4 files changed, 34 insertions(+), 18 deletions(-) create mode 100644 evals/diff-explainer/surfaces-commit-risks/graders/brand-kept.md diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 889d889..0dabbfa 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "rails-consultant", "description": "A collection of skills for Rails development and consulting, with an emphasis on learning, communication, and client success", - "version": "2.0.0", + "version": "2.1.0", "author": { "name": "thoughtbot" }, diff --git a/NEWS.md b/NEWS.md index b38dd26..b45ccb5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,13 @@ ## [Unreleased] +## [2.1.0] - 2026-11-06 + +- `/diff-explainer` pages use thoughtbot's brand colors and type, per + [#61](https://github.com/thoughtbot/rails-consultant/issues/61). Cosmica and + PP Mori aren't on Google Fonts, so most readers get the same Helvetica + fallback thoughtbot.com uses. Note kinds keep their blue, amber, and purple so + they stay easy to tell apart. + ## [2.0.0] - 2026-11-06 - Replace every skill with the stack-agnostic set from diff --git a/evals/diff-explainer/surfaces-commit-risks/graders/brand-kept.md b/evals/diff-explainer/surfaces-commit-risks/graders/brand-kept.md new file mode 100644 index 0000000..11a1f4d --- /dev/null +++ b/evals/diff-explainer/surfaces-commit-risks/graders/brand-kept.md @@ -0,0 +1,5 @@ +--- +type: regex +target: { source: file, path: scratchpad/walkthrough.html } +pattern: "--brand: #e03131" +--- diff --git a/skills/diff-explainer/assets/walkthrough-template.html b/skills/diff-explainer/assets/walkthrough-template.html index 7c956e1..08bf4c5 100644 --- a/skills/diff-explainer/assets/walkthrough-template.html +++ b/skills/diff-explainer/assets/walkthrough-template.html @@ -1,6 +1,6 @@ Session Store Swap - +