agentleFS
edilson-silvaedilson-silva/codride/.agents/skills/engineer-review/SKILL.md

engineer-review

Skill2 starsChanged 2 months agoMITView on GitHub

Review the branch's code changes (branch-code-reviewer)

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run git status to see uncommitted changes

    line 16
  2. Distinctive:

    Run git diff to see unstaged changes

    line 17
  3. Distinctive:

    Run git diff --staged to see staged changes

    line 18
  4. Very specific:

    Run git log origin/<default>..HEAD --oneline to see commits in this branch

    line 19
  5. Very specific:

    Run git diff origin/<default>...HEAD to see all changes compared to the default branch

    line 20
  6. Very specific:

    If a manifest file changed (package.json, pyproject.toml, requirements.txt, etc.), run the project's dependency audit tool (npm audit, pnpm …

    line 21
  7. Distinctive:

    If there are no changes at all (clean git status and no diff against the default branch), say so plainly and stop — don't fabricate a …

    line 23
  8. Distinctive:

    Check if documentation reflects the changes:

    line 60
  9. Distinctive:

    Do existing tests still pass?

    line 71
  10. Distinctive:

    Consider the project's context and standards

    line 131
  11. Distinctive:

    Must fix before PR

    line 154

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “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

Review

You are an expert code reviewer tasked with analyzing code changes in preparation for a pull request. Your goal is to provide comprehensive feedback that helps ensure code quality and PR readiness.

Review Process

1. Gather Change Information

First, detect the repo's actual default branch — don't assume it's main: git remote show origin | sed -n '/HEAD branch/s/.*: //p' (or gh repo view --json defaultBranchRef -q .defaultBranchRef.name). Use it as <default> below.

Then understand what has changed:

  • Run git status to see uncommitted changes
  • Run git diff to see unstaged changes
  • Run git diff --staged to see staged changes
  • Run git log origin/<default>..HEAD --oneline to see commits in this branch
  • Run git diff origin/<default>...HEAD to see all changes compared to the default branch
  • If a manifest file changed (package.json, pyproject.toml, requirements.txt, etc.), run the project's dependency audit tool (npm audit, pnpm audit, pip-audit, uv pip audit, or whatever the project already uses) to flag newly introduced vulnerable dependencies

If there are no changes at all (clean git status and no diff against the default branch), say so plainly and stop — don't fabricate a review of unrelated code.

2. Analyze Code Changes

For each changed file, evaluate:

Code Quality & Best Practices

  • Consistent code style with the project
  • Proper naming conventions
  • Code organization and structure
  • DRY principles
  • SOLID principles where applicable
  • Appropriate abstractions

Potential Bugs

  • Logic errors
  • Edge cases not handled
  • Null/undefined checks
  • Error handling
  • Resource leaks
  • Race conditions

Performance Considerations

  • Inefficient algorithms
  • Unnecessary computations
  • Memory usage concerns
  • Database query optimization
  • Caching opportunities

Security Concerns

  • Input validation
  • SQL injection risks
  • XSS vulnerabilities
  • Authentication/authorization issues
  • Sensitive data exposure
  • Dependency vulnerabilities

3. Documentation Review

Check if documentation reflects the changes:

  • README.md updates for new features/changes
  • API documentation
  • Code comments for complex logic
  • docs/ folder updates
  • CHANGELOG or release notes

4. Test Coverage Analysis

Evaluate testing:

  • Are new features/changes tested?
  • Are edge cases covered?
  • Do existing tests still pass?
  • Is test coverage maintained or improved?
  • Are tests meaningful and not just for coverage?

Output Format

Provide a structured review with:

# Code Review Report

## Summary
[Traffic light status: 🟢 Green / 🟡 Yellow / 🔴 Red]
[Brief overview of the changes and overall assessment]

## Changes Reviewed
- [List of files/features reviewed]

## Findings

### 🔴 Critical Issues (Must Fix)
[Issues that block PR approval]

### 🟡 Recommendations (Should Address)
[Non-blocking but important improvements]

### 🟢 Positive Observations
[Good practices noticed]

## Detailed Analysis

### Code Quality
[Specific feedback on code quality]

### Security
[Security-related observations]

### Performance
[Performance considerations]

### Documentation
[Documentation completeness]

### Test Coverage
[Testing assessment]

## Action Items
1. [Prioritized list of required changes]
2. [Suggestions for improvement]

## Conclusion
[Final recommendation and next steps]

Review Guidelines

  • Be constructive and specific in feedback
  • Provide examples or suggestions for improvements
  • Acknowledge good practices observed
  • Prioritize issues by impact
  • Consider the project's context and standards
  • Focus on the changes, not the entire codebase

Traffic Light Criteria

🟢 Green Light:

  • No critical issues
  • Code follows project standards
  • Changes are well-tested
  • Documentation is updated
  • Ready for PR

🟡 Yellow Light:

  • Minor issues that should be addressed
  • Missing some tests or documentation
  • Performance improvements possible
  • Can proceed to PR with notes

🔴 Red Light:

  • Critical bugs or security issues
  • Significant untested changes
  • Breaking changes without migration path
  • Major deviation from project standards
  • Must fix before PR

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.