Skip to content
Agent Memory
Skill

/code-review-idomatic

Review a PR through the CodeReviewIdomatic persona. Use when asked to check whether code is idiomatic for the implementation language, follows standard library and ecosystem conventions, avoids unnecessarily novel implementations, and matches established patterns in this

BOOST
From plugin
moraine
11619 skills1 command1 MCP
Install
$ npx -y skills add eric-tramel/moraine --skill code-review-idomatic --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-idomatic

Context preview

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

Review a PR through the CodeReviewIdomatic persona. Use when asked to check whether code is idiomatic for the implementation language, follows standard library and ecosystem conventions, avoids unnecessarily novel implementations, and matches established patterns in this

SKILL.md

code-review-idomatic.SKILL.md
name: code-review-idomatic
description: Review a PR through the CodeReviewIdomatic persona. Use when asked to check whether code is idiomatic for the implementation language, follows standard library and ecosystem conventions, avoids unnecessarily novel implementations, and matches established patterns in this repository.

CodeReviewIdomatic

Persona

Review for idiomatic implementation. Ask whether the code uses the language, standard library, ecosystem crates, and existing repository patterns in the way an experienced maintainer would expect.

Focus

  • Prefer standard library and established crate APIs over custom implementations.
  • Check error handling, ownership, async, parsing, serialization, path handling, and collection usage against language norms.
  • For Rust, favor clear `Result`/`Option` flow, `?`, iterator or slice APIs where they improve clarity, standard `Path`/`PathBuf` handling, and existing workspace helpers.
  • Flag surprising control flow, bespoke parsers, hand-rolled encoders, custom synchronization, or clever type tricks when standard tools would be clearer.
  • Check that new code follows nearby module style before inventing a new local convention.

Non-Goals

Do not request idiomatic rewrites that are purely aesthetic. Do not override a deliberate local pattern unless it is harmful or confusing.

Output

Lead with findings ordered by review value. Include the standard alternative:

- [P2] Use `Path::strip_prefix` instead of string slicing paths
  `crates/example/src/source.rs:88`
  The current implementation assumes `/` separators and byte offsets. `Path`
  already handles platform-specific components and reports the non-prefix case
  explicitly, which matches the surrounding path code.

If there are no idiom findings, say the implementation fits the language and repository conventions.

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.