Skip to content

claude: add readability reviewer agent to review-crdb#165700

Open
tbg wants to merge 1 commit intocockroachdb:masterfrom
tbg:readability-reviewer
Open

claude: add readability reviewer agent to review-crdb#165700
tbg wants to merge 1 commit intocockroachdb:masterfrom
tbg:readability-reviewer

Conversation

@tbg
Copy link
Member

@tbg tbg commented Mar 13, 2026

Add a new review agent focused on whether the code helps a reader who is
familiar with CockroachDB but new to the subsystem follow along. The
existing review agents verify correctness, style, test coverage, type
design, and commit structure, but none checks whether a newcomer to the
code can follow its intent and structure without reconstructing it.

The readability reviewer checks:

  • Datadriven command specification (documenting the command vocabulary)
  • Datadriven testdata narration (inline comments explaining state and intent)
  • Test infrastructure clarity (design rationale for mocks and helpers)
  • Test organization (separation of different test types, testdata splitting)
  • Orientation before complexity in production code (roadmap comments)
  • State narration in complex flows (phase labels and separation)
  • Stub and placeholder method documentation (TODO vs intentional no-op)
  • Working memory load (variable proximity, function structure)

The agent is scoped to avoid overlap with existing agents — it focuses
specifically on cognitive load and narrative flow rather than style rules,
simplification opportunities, test coverage, or type design.

Epic: none

@trunk-io
Copy link
Contributor

trunk-io bot commented Mar 13, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl
Copy link

blathers-crl bot commented Mar 17, 2026

Detected infrastructure failure (matched: self-hosted runner lost communication with the server). Automatically rerunning failed jobs. (run link)

@tbg tbg marked this pull request as ready for review March 18, 2026 07:23
@tbg
Copy link
Member Author

tbg commented Mar 18, 2026

Todo: some kind of feedback loop that offers to update the skill as follow-up from human reviews.

@tbg tbg requested review from pav-kv and rafiss March 23, 2026 10:31
Add a new review agent focused on whether the code helps a reader who is
familiar with CockroachDB but new to the subsystem follow along. The
existing review agents verify correctness, style, test coverage, type
design, and commit structure, but none checks whether a newcomer to the
code can follow its intent and structure without reconstructing it.

The readability reviewer checks:
- Datadriven command specification (documenting the command vocabulary)
- Datadriven testdata narration (inline comments explaining state and intent)
- Test infrastructure clarity (design rationale for mocks and helpers)
- Test organization (separation of different test types, testdata splitting)
- Orientation before complexity in production code (roadmap comments)
- State narration in complex flows (phase labels and separation)
- Stub and placeholder method documentation (TODO vs intentional no-op)
- Working memory load (variable proximity, function structure)

The agent is scoped to avoid overlap with existing agents -- it focuses
specifically on cognitive load and narrative flow rather than style rules,
simplification opportunities, test coverage, or type design.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@tbg tbg force-pushed the readability-reviewer branch from f13f06a to 0ac5630 Compare March 23, 2026 10:33
---
name: crdb-readability-reviewer
description: >
Reviews CockroachDB code changes for reader-friendliness — whether the code
Copy link
Collaborator

Choose a reason for hiding this comment

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

there appears to be some overlap with the goals of the crdb-simplifier agent: https://github.com/cockroachdb/cockroach/blob/master/.claude/agents/crdb-simplifier.md

clarity and maintainability are called out there specifically. do you feel that the goals of each agent are distinct, or should we find a way to combine the two?

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.

3 participants