/cross-harness-skills:code-review-idomaticfrom Cross Harness Skills
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.
Ships in Cross Harness Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Act as a terminal reviewer. Perform the review and all direct inspection yourself. Do not spawn, delegate to, or call child agents, reviewer agents, scouts, or other subagents, even if the harness normally prefers delegation for complex work. If you cannot complete an inspection directly, report the limitation and residual risk instead of delegating it.
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. Ground findings in the review objective, changed files, and nearby code before judging style.
Result/Option flow, ?, iterator or slice APIs where they improve clarity, standard Path/PathBuf handling, and existing workspace helpers.Use P2 only when the idiom issue creates realistic correctness, portability, test-isolation, data-shape, or maintenance risk. Use P3 for localized non-idiomatic code, unnecessary allocation or copying, or repository-convention drift that is easy to fix. Treat pure taste, equivalent expression, naming preference, or cosmetic cleanup as non-findings unless the repository already enforces it.
Do not request idiomatic rewrites that are purely aesthetic. Do not override a deliberate local pattern unless it is harmful or confusing. Do not report pure performance micro-optimizations unless the standard API or repository convention materially changes allocation, lifetime, or API shape. Do not duplicate correctness, security, scope, or YAGNI findings unless the reason is specifically idiomatic implementation and you add the idiomatic alternative.
Lead with findings ordered by review value. Include the standard or repository alternative, actual cost, and line reference:
- [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, name the main conventions or surfaces checked, and mention the residual facet boundary. For follow-ups, re-check only the named concern and state whether it is resolved.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/author-prCreate ready-for-review pull requests on GitHub. Use when the branch is ready to open a PR; when the user asks to create, push, or open a PR; after local changes are committed; or when documenting user-facing features, bug fixes, performance optimizations, validation, changelog impact, or operational impact in a PR that follows repository conventions without AI attribution./code-reviewCoordinate a delegated full multi-persona code review for a PR or local change. Use when asked to review a PR, run review agents, get code review feedback, or iterate on review feedback using all CodeReview personas: elegance, idiom, correctness, completeness, security, YAGNI, and scope. Invoking this skill is an explicit request to launch reviewer subagents./npx claudepluginhub eric-tramel/cross-harness-skills --plugin cross-harness-skills