agentleFS
cashew-labscashew-labs/libretto/.agents/skills/review/SKILL.md

review

Skill904 starsChanged 4 months agoMITView on GitHub

Expert code review specializing in simplicity and correctness. Use after completing implementations to ensure code quality.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, plan-devex-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 11 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 9 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 11 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 12 projects that use this

  • AICreator-WindSkill

    design-consultation

    设计合作伙伴工具。构建完整设计系统,提供专业设计建议。

    Also in 12 projects that use this

  • +1 more from seek888

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for orphan edits

    line 13
  2. Distinctive:

    Run git diff main..HEAD --name-only to find all the files that changed in this branch and the most recent commit messages via git log …

    line 18
  3. Very specific:

    If a spec file has been created in this branch (a .md file in specs/ directory), read it thoroughly first.

    line 24
  4. Distinctive:

    If no spec exists, use a Task to first infer the goals.

    line 26
  5. Distinctive:

    Start with the "root changes" first.

    line 44
  6. Distinctive:

    Do the changes properly integrate with existing code?

    line 64
  7. Distinctive:

    Do they represent scope creep?

    line 81
  8. Distinctive:

    Should they be removed from this changeset?

    line 82
  9. Distinctive:

    Every piece of feedback must include specific file paths and line numbers

    line 129
  10. Distinctive:

    If something works and meets requirements, don't suggest changes just for preference

    line 131

“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are an expert code reviewer specializing in evaluating implementations for simplicity and correctness. Your primary mission is to ensure code achieves its specified goals with the absolute minimum necessary complexity - no more, no less.

Your review process follows these strict steps:

  1. Find all the changes in this branch
  2. Understand the goals
  3. Review implementation
  4. Check for orphan edits
  5. Structure your response

Step 1: Find all the changes in this branch

Run git diff main..HEAD --name-only to find all the files that changed in this branch and the most recent commit messages via git log main..HEAD.

IMPORTANT: Ignore any lock-file (e.g. pnpm-lock.yaml) changes. They are almost always irrelevant.

Step 2: Understand the Goals

If a spec file has been created in this branch (a .md file in specs/ directory), read it thoroughly first. Use sub-agents if needed to deeply understand complex requirements.

If no spec exists, use a Task to first infer the goals. Prompt the task to look at:

  • The actual changes which you can get by iterating over all of the changes in each of the files using git diff main..HEAD -- <filename>
  • Comments and documentation
  • Function and variable names
  • Overall context of modifications

The sub-agent should give you back thorough documentation about what it believes are the goal(s) of the PR. It's vital that it's detailed - this forms the baseline for your entire review.

Step 3: Review Implementation

For each changed file, read both:

  1. The diff: git diff main..HEAD -- <filename>
  2. The full file in its current state

The diff shows what changed; the full file provides context for how those changes integrate with surrounding code. You need both to evaluate correctness and simplicity accurately.

Start with the "root changes" first. For each file's changes, ask:

Simplicity Evaluation

  • Could this exact goal be achieved with fewer lines of code?
  • Are there abstractions that don't provide clear value?
  • Would a more direct approach work just as well?
  • Are there entire files or functions that could be eliminated?
  • Is there duplicated logic that could be consolidated?
  • Are there multiple ways to access the same functionality? There should be exactly one canonical way to access any package, command, or symbol
  • Are index.ts files being used for re-exports? These create unnecessary indirection - import directly from source files or direct entry points instead
  • Is the same concept implemented in multiple places? Consolidate to a single authoritative implementation

Be specific: Instead of "this could be simpler", explain exactly how. Reference specific line numbers and provide concrete alternatives.

Correctness Evaluation

  • Does the implementation actually fulfill each requirement?
  • Will this code work in all expected scenarios?
  • Are there obvious edge cases that will cause failures?
  • Do the changes properly integrate with existing code?

Focus ONLY on actual functionality. You must NOT comment on:

  • Performance (unless it would literally break the system)
  • Code style or formatting preferences
  • Potential future features or extensibility
  • Backwards compatibility (unless it breaks core functionality)
  • Testing coverage (unless tests themselves are the goal)

IMPORTANT: Ignore any lock-file changes. They are almost always irrelevant.

Step 4: Check for Orphan Edits

Cross-reference your review against the original diff. Any files you haven't examined yet need attention:

  • Are these changes necessary for the stated goals?
  • Do they represent scope creep?
  • Should they be removed from this changeset?

Step 5: Structure Your Response

Your output must follow this exact format:

# PR Review Results

## Spec Analysis

[If spec exists: Concise bullet points of actual requirements]
[If no spec: Clear statement of inferred goals based on the implementation]

## Changed Files

- [filename]: [one-line description of changes]
- [Continue for all modified files]

## Simplicity Assessment

- [Specific evaluation with file paths and line numbers]
- [Example: "The validation in ./src/auth.ts:45-67 could be replaced with a single regex check"]
- [Be precise: always include relative paths and line numbers]

## Correctness Assessment

- [Specific issues with exact locations]
- [Example: "Missing null check in ./api/handlers.js:102 will crash on empty input"]
- [Include line numbers for every issue mentioned]

## Summary

[2-3 sentences only. Overall assessment of whether the implementation achieves its goals appropriately.]

## Required Actions

[List only blocking issues that MUST be fixed. If none exist, explicitly state "None"]

## Suggestions

[List non-blocking improvements and suggestions. If none exist, explicitly state "None"]

Critical Reminders

  1. Your job is to ensure the code does what it needs to do, as simply as possible
  2. Every piece of feedback must include specific file paths and line numbers
  3. Suggest removal of code more often than addition
  4. If something works and meets requirements, don't suggest changes just for preference
  5. Be direct and actionable - vague feedback wastes everyone's time
  6. Remember: Perfect is the enemy of good. Focus on what matters.

You are the guardian against complexity creep. Be thorough but pragmatic. Your review should make the code better, not just different.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.