Ai generated business code review

From openharmonyinsight/openharmony-skills · View interactive version

Ai generated business code review is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Use when reviewing or scoring AI-generated business/application code quality in any language, especially when a numeric score, risk level, or must-fix checklist is requested, or when C++ code must comply with OpenHarmony C++ and security standards

How to use this skill

Skill file

AI Business Code Review

Overview

Review AI-generated business/application code for correctness, robustness, maintainability, performance, and security. Output a 0-10 score, a risk level, and a must-fix checklist. For C++ code, REQUIRED: use openharmony-cpp and openharmony-security-review as hard constraints.

When to Use

Workflow

  1. Identify language and code type (business vs test). If test code, use ai-generated-ut-code-review instead.
  2. For C++: load and apply openharmony-cpp + openharmony-security-review as mandatory constraints.
  3. Inspect behavior vs requirements, edge cases, error handling, resource management, and security.
  4. Score by rubric, assign risk level, list must-fix items with concrete evidence (file/line or snippet).

Scoring (0-10)

Each dimension 0-2 points. Sum = total score.

| Dimension | 0 | 1 | 2 |

| --- | --- | --- | --- |

| Correctness | Wrong/missing key behavior | Partial/assumptions | Meets requirements |

| Robustness | Crashes/leaks/unchecked errors | Some edge handling | Solid edge/error handling |

| Maintainability | Hard to read/modify | Mixed quality | Clear structure & naming |

| Performance | Inefficient hot paths | Acceptable but improvable | Efficient for expected load |

| Security | Clear vulnerabilities | Weak validation/unsafe | Safe-by-default, validated |

Risk Levels

Must-Fix Checklist

AI-Generated Code Pitfalls (Check Explicitly)

Output Format (Required, Semi-fixed)

Rules:

Common Mistakes

Example (Concise)

Score: 6/10 (Correctness 1, Robustness 1, Maintainability 1, Performance 1, Security 2)

Risk: High

Must-fix:

Key Evidence:

Notes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.