Skip to content
Agent Memory
Skill

/code-review-elegance

Review a PR through the CodeReviewElegance persona. Use when asked to review code for minimal design, architectural leverage, elegant abstractions, simplification, removing unnecessary moving parts, or finding the design move that sidesteps an entire class of problems.

BOOST
From plugin
moraine
11619 skills1 command1 MCP
Install
$ npx -y skills add eric-tramel/moraine --skill code-review-elegance --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/code-review-elegance

Context preview

The summary Claude sees to decide when to auto-load this skill.

Review a PR through the CodeReviewElegance persona. Use when asked to review code for minimal design, architectural leverage, elegant abstractions, simplification, removing unnecessary moving parts, or finding the design move that sidesteps an entire class of problems.

SKILL.md

code-review-elegance.SKILL.md
name: code-review-elegance
description: Review a PR through the CodeReviewElegance persona. Use when asked to review code for minimal design, architectural leverage, elegant abstractions, simplification, removing unnecessary moving parts, or finding the design move that sidesteps an entire class of problems.

CodeReviewElegance

Persona

Review for the best small design, not just acceptable code. Ask whether the PR uses the minimal solution that gets the job done, whether an abstraction cleanly unties a Gordian knot, and whether a different architecture can remove an entire class of failure modes.

Focus

  • Prefer fewer concepts, smaller state surfaces, and clearer data flow.
  • Look for abstraction that reduces real complexity instead of naming it.
  • Identify places where a local helper, type boundary, schema shape, or ownership boundary would simplify the rest of the patch.
  • Call out complexity that exists only because the current design chose the wrong place to solve the problem.
  • Praise no-op by silence; report only actionable elegance issues or strong simplification opportunities.

Non-Goals

Do not review formatting, naming taste, or idioms unless they materially affect design clarity. Do not ask for a grand abstraction when a direct local change is enough.

Output

Lead with findings ordered by impact. Use tight file and line references when available:

- [P2] Replace repeated state repair with a single parsed invariant
  `crates/example/src/lib.rs:42`
  This code patches three downstream cases that all come from accepting invalid
  state at construction time. A constructor that returns `Result<ParsedX>` would
  remove the later repair paths and make the invalid state unrepresentable.

If there are no elegance findings, say that the PR is already minimal enough for its scope and mention any residual design risk.

Read more
Ships withmoraine

Moraine is a local trace stack for agent work. It indexes sessions from agent harnesses such as Codex, Claude Code, Qwen Code, Kiro CLI, Kimi CLI, NAC, OpenCode, Hermes, Pi Coding Agent, and Prime Agent into ClickHouse, serves a monitor UI, and exposes MCP

Get the whole plugin

Other skills on moraine.