Agent skill

Code Review Yagni

by eric-tramel in eric-tramel/moraine

Review a PR through the CodeReviewYAGNI persona. An agent skill from eric-tramel/moraine.

Apache-2.0Auto-check passedDevelopment

Install Code Review Yagni

skills CLI
$ npx skills add eric-tramel/moraine --skill code-review-yagni -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install eric-tramel/moraine code-review-yagni --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/eric-tramel/moraine.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/moraine-dev/skills/code-review-yagni .claude/skills/code-review-yagni && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-review-yagni
GitHub stars
117
Token cost
~434 tokens
SKILL.md length
147 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

Review a PR through the CodeReviewYAGNI persona. An agent skill from eric-tramel/moraine.

  • Asked to check whether a PR stays focused on the task
  • SKILL.md covers Persona, Focus, Non-Goals and Output
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Avoids overengineering

What it does

Code Review Yagni is an agent skill from eric-tramel/moraine. Review a PR through the CodeReviewYAGNI persona. Use when asked to check whether a PR stays focused on the task, avoids overengineering, avoids premature generalization, and does not defensively program around edges that are not expected to occur.

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Code review. The repository describes itself as: Unified realtime agent trace database & search MCP. The licence is Apache-2.0.

When your agent uses it

  • Asked to check whether a PR stays focused on the task
  • Avoids overengineering
  • Avoids premature generalization
  • Does not defensively program around edges that are not expected to occur

Example prompts

  • “/code-review-yagni”

What it can do on your machine

Read from SKILL.md and the folder at commit 2fb4aec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Review Yagni loads about 434 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 147 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~434

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from eric-tramel/moraine at commit 2fb4aec, republished under its Apache-2.0 licence (© eric-tramel). 147 words, ~434 tokens.

Download SKILL.mdSave it as .claude/skills/code-review-yagni/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
code-review-yagni
description
Review a PR through the CodeReviewYAGNI persona. Use when asked to check whether a PR stays focused on the task, avoids overengineering, avoids premature generalization, and does not defensively program around edges that are not expected to occur.

CodeReviewYAGNI

Persona

Review for "you are not gonna need it." Ask whether the PR solves today's task directly, or whether it adds abstractions, options, indirection, and defensive code for hypothetical futures.

Focus

  • Flag configuration knobs, generic frameworks, broad traits, extension points, and multi-provider abstractions that are not required by the current task.
  • Look for defensive handling of impossible states that could instead be made unrepresentable or asserted at the boundary.
  • Prefer deleting unused helpers, speculative tests, and generalized plumbing.
  • Distinguish necessary robustness from speculative future-proofing.
  • Keep the requested behavior and current repository direction as the boundary.

Non-Goals

Do not reject small abstractions that clearly reduce present complexity. Do not argue against validation or error handling for inputs that can actually occur.

Output

Lead with unnecessary implementation surface and the simpler present-tense alternative:

markdown
- [P2] Remove the provider registry until a second provider exists
  `crates/example/src/provider.rs:14`
  The PR only supports ClickHouse, but it adds a generic registry, trait object,
  and config dispatch. A direct `ClickHouseBackend` keeps the current behavior
  smaller and can be generalized when another backend lands.

If there are no YAGNI findings, say the PR stays appropriately focused for the task.

© eric-tramel, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/moraine-dev/skills/code-review-yagni of eric-tramel/moraine.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 2fb4aec

Compare with similar skills

Code Review Yagni next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Review Yagni compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review Yagni this skilleric-tramel/moraine117—~434Automated safety check: PassApache-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Backend Code Reviewlangflow-ai/langflow155k—~3.5kAutomated safety check: NotesMIT
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Backend Code Reviewlanggenius/dify158k—~676Automated safety check: PassCustom licence

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    155k GitHub stars~3.5k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Backend Code Review

    langgenius/dify

    Reviews backend code under api/ for concrete, reproducible defects, routes to rule packs for architecture, schema, repositories and SQLAlchemy, and ranks findings from P0 to P3.

    158k GitHub stars~676 tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

More from eric-tramel/moraine

All 19 skills in this repo
  • Moraine Release Publisher

    eric-tramel/moraine

    Cuts and publishes a Moraine release end to end: version bump PR, tag, GitHub release notes, workflow check and PyPI package verification.

    117 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check passed
  • Moraine Release Notes

    eric-tramel/moraine

    Rewrites a moraine GitHub release body into a usage-focused format with install block, what's new, platform table, upgrade notes and one deduplicated changelog.

    117 GitHub stars~2.7k tokensUpdated 4 days ago
    Auto-check passed
  • Multi-Persona Code Review

    eric-tramel/moraine

    Coordinates a delegated review of a Moraine PR or local change by seven focused reviewer subagents, merges their findings and follows up on the fixes.

    117 GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed
  • Elegance-Focused Code Review

    eric-tramel/moraine

    Looks at a pull request for the smallest good design, hunting for simplifications and architectural moves that remove whole classes of problems.

    117 GitHub stars~473 tokensUpdated 4 days ago
    Auto-check passed
  • Idiomatic Code Review

    eric-tramel/moraine

    Reviews a pull request for idiomatic implementation: use of the language, standard library, ecosystem conventions and the repository's own patterns.

    117 GitHub stars~469 tokensUpdated 4 days ago
    Auto-check passed
  • Code Review Security Review

    eric-tramel/moraine

    Review a PR through the CodeReviewSecurityReview persona. An agent skill from eric-tramel/moraine.

    117 GitHub stars~497 tokensUpdated 4 days ago
    Auto-check passed

Categories

Questions about Code Review Yagni

What does Code Review Yagni do?

Review a PR through the CodeReviewYAGNI persona. An agent skill from eric-tramel/moraine. Code Review Yagni is an agent skill from eric-tramel/moraine. Review a PR through the CodeReviewYAGNI persona.

When should I use Code Review Yagni?

Code Review Yagni fits situations like: asked to check whether a PR stays focused on the task; avoids overengineering; avoids premature generalization; does not defensively program around edges that are not expected to occur.

How do I install Code Review Yagni in Claude Code?

Run `npx skills add eric-tramel/moraine --skill code-review-yagni -a claude-code`. Or copy the skill folder (plugins/moraine-dev/skills/code-review-yagni in eric-tramel/moraine) into .claude/skills/code-review-yagni in your project. Claude Code loads it when a task matches its description.

How do I install Code Review Yagni in Codex?

Run `npx skills add eric-tramel/moraine --skill code-review-yagni -a codex`. Or copy the skill folder (plugins/moraine-dev/skills/code-review-yagni in eric-tramel/moraine) into .agents/skills/code-review-yagni in your project. Codex loads it when a task matches its description.

Can I use Code Review Yagni in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add eric-tramel/moraine --skill code-review-yagni -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-review-yagni, .gemini/skills/code-review-yagni, .github/skills/code-review-yagni and .opencode/skills/code-review-yagni in your project.

What does Code Review Yagni need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Review Yagni is instructions for the agent only.

Does Code Review Yagni access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Review Yagni safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Review Yagni use?

Code Review Yagni is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Review Yagni use?

About 434 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Review Yagni?

Skills that share tags, products or a category with Code Review Yagni: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Backend Code Review (langflow-ai/langflow, 155k stars) and Mole Bug Patterns (tw93/Mole, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review Yagni?

eric-tramel (a GitHub user) maintains it in eric-tramel/moraine, which has 117 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 5, 2026.

Source: eric-tramel/moraine on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.