Code Review

Code review for issues, style consistency, best practices—use for full code evaluation; not for debugging specific errors or fixing individual style violations.

chainlesschain 2a887b5 2 files · 9.4 KB Updated

File contents

Code Review Skill

Performs comprehensive code review on provided code snippets or files.

Usage

/code-review [file_path or code snippet]

What This Skill Analyzes

  1. Code Quality

    • Variable naming conventions
    • Function/method complexity
    • Code duplication
  2. Best Practices

    • Error handling
    • Input validation
    • Security considerations
  3. Style

    • Formatting consistency
    • Comment quality
    • Documentation
  4. Performance

    • Obvious inefficiencies
    • Memory usage patterns
    • Algorithm complexity

Output Format

The review will include:

  • Summary of findings
  • List of issues with severity (critical/warning/info)
  • Specific recommendations with code examples
  • Overall code quality score (1-10)

Examples

Review a specific file:

/code-review src/main/database.js

Review inline code:

/code-review
function foo(x) {
  return x * 2;
}

chainlesschain/chainlesschain/tree/main/desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/code-review commit 2a887b5474

Frequently asked questions

npx skillmds@latest add chainlesschain/code-review