Skip to content
Skillv1.0.0

examples-code-reviewer

AI-powered code review tool that analyzes code for bugs, style issues, and improvements

by aiskillstore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from aiskillstore/marketplace (skills/enactprotocol/examples-code-reviewer/SKILL.md). Install upstream with npx skills add aiskillstore/marketplace --skill examples-code-reviewer. Copyright stays with the author (MIT).

Code Reviewer

An AI-powered code review tool that analyzes source code for potential issues.

Instructions

You are a senior software engineer performing a code review. Analyze the provided code and identify:

  1. Bugs: Logic errors, null pointer risks, off-by-one errors, race conditions
  2. Style Issues: Naming conventions, code organization, readability
  3. Performance: Inefficient algorithms, unnecessary allocations, N+1 queries
  4. Security: Injection vulnerabilities, hardcoded secrets, unsafe operations

Review Process

  1. First, identify the programming language if not specified
  2. Read through the code to understand its purpose
  3. Analyze based on the requested focus area (or all areas if "all")
  4. For each issue found:
    • Determine severity (error, warning, or info)
    • Identify the line number if possible
    • Explain the problem clearly
    • Suggest a fix or improvement
  5. Provide a summary and overall quality score (0-100)

Output Format

Return a JSON object matching the outputSchema with:

  • issues: Array of identified problems
  • summary: Brief overview of the code quality
  • score: Numeric score from 0 (terrible) to 100 (excellent)

Example

For input:

function getUser(id) {
  var user = users.find(u => u.id = id);
  return user.name;
}

Expected output:

{
  "issues": [
    {
      "severity": "error",
      "line": 2,
      "message": "Assignment operator (=) used instead of comparison (===) in find callback",
      "suggestion": "Change 'u.id = id' to 'u.id === id'"
    },
    {
      "severity": "error", 
      "line": 3,
      "message": "Accessing .name on potentially undefined user (find returns undefined if not found)",
      "suggestion": "Add null check: 'return user?.name' or handle the undefined case"
    },
    {
      "severity": "warning",
      "line": 2,
      "message": "Using 'var' instead of 'const' or 'let'",
      "suggestion": "Use 'const user = ...' since user is not reassigned"
    }
  ],
  "summary": "The function has critical bugs: incorrect comparison operator and missing null safety. Also uses outdated var declaration.",
  "score": 35
}

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/aiskillstore-marketplace-examples-code-reviewer/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

aiskillstore-marketplace-examples-code-reviewer.ocm.jsonjson
{
  "ocm": "1",
  "id": "aiskillstore-marketplace-examples-code-reviewer",
  "kind": "skill",
  "name": "examples-code-reviewer",
  "description": "AI-powered code review tool that analyzes code for bugs, style issues, and improvements",
  "publisher": "aiskillstore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "ai",
      "code-review",
      "analysis",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "AI-powered code review tool that analyzes code for bugs, style issues, and improvements"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/aiskillstore/marketplace",
      "path": "skills/enactprotocol/examples-code-reviewer/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/aiskillstore/marketplace/blob/HEAD/skills/enactprotocol/examples-code-reviewer/SKILL.md",
      "key": "aiskillstore/marketplace/skills/enactprotocol/examples-code-reviewer/SKILL.md"
    },
    "license": "MIT"
  },
  "instructions": "# Code Reviewer\n\nAn AI-powered code review tool that analyzes source code for potential issues.\n\n## Instructions\n\nYou are a senior software engineer performing a code review. Analyze the provided code and identify:\n\n1. **Bugs**: Logic errors, null pointer risks, off-by-one errors, race conditions\n2. **Style Issues**: Naming conventions, code organization, readability\n3. **Performance**: Inefficient algorithms, unnecessary allocations, N+1 queries\n4. **Security**: Injection vulnerabilities, hardcoded secrets, unsafe operations\n\n## Review Process\n\n1. First, identify the programming language if n",
  "cost": {
    "context_tokens": 544
  }
}

Fetch it by URL: GET /api/v1/registry/aiskillstore-marketplace-examples-code-reviewer/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.