Better with Kent · draft
Review primitives and architecture — not line-by-line code.
Hook
I didn't read most of them.
kody PR #662 · MCP client support · I reviewed the system
The problem
Inspiration
Why I rolled my own
Ported the core idea to kcd-skills — GitHub renders it, no extra service
Visual recap
GitHub renders mermaid in the description — no extra service
Classification
| Level | Meaning | Review posture |
|---|---|---|
composes |
Uses primitives as-is | Low risk — wiring and call sites |
extends |
Changes behavior or contract | Medium — read the diff for that primitive |
adds |
New primitive in the map | High — system design review |
Source of truth
docs/contributing/architecture/primitives.yaml
Demo setup
Demo · high risk
github.com/kentcdodds/kody/pull/662
Expand the system recap block — table, system map, sequence diagram, invariants
PR #662
mcp-client-servers| Primitive | Impact | What changed |
|---|---|---|
mcp-client-servers |
adds | Hub DO, OAuth, settings, synthesized domains |
capability-registry |
extends | Runtime merge synthesizes mcp:<server> |
d1-app-db |
extends | New mcp_server_settings table |
account-export |
composes | New table in export/deletion targets |
PR #662
flowchart LR appUi["app-ui"] --> mcpClient["mcp-client-servers\nNEW"] capReg["capability-registry"] --> mcpClient capExec["capabilities-execute"] --> mcpClient mcpClient --> d1["d1-app-db"]
Red node on GitHub = new primitive
PR #662
Architecture questions — not "is this idiomatic TypeScript?"
Demo · low risk
github.com/kentcdodds/kody/pull/686
Same MCP topic — totally different review posture
PR #686
| Primitive | Impact | What changed |
|---|---|---|
app-ui |
composes | /onboarding, home/account banners |
app-sessions |
composes | Auth-gated onboarding handlers |
mcp-oauth |
composes | listUserGrants for first-connection check |
mcp-server |
composes | Displays request-scoped /mcp URL |
PR #686
flowchart LR appUi["app-ui"] -->|"banner + /onboarding"| sessions["app-sessions"] appUi -->|"needsOnboarding"| oauth["mcp-oauth"] appUi -->|"shows /mcp URL"| mcp["mcp-server"]
All green on GitHub — wiring only, no contract changes
Contrast
Primitives episode
composesInstall
github.com/kentcdodds/kcd-skills
Vision
Homework
Map your primitives.
Run visual recap before you open the diff.
Lowest-risk outcome: the plan requires no primitive change
Better with Kent
Subscribe · like · comment · share