Score style

From OpenHands/extensions · View interactive version

Score style is an AI agent skill from the GitHub repository OpenHands/extensions. Score migrated code against style guidelines and best practices. Evaluates code quality independent of functional correctness.

How to use this skill

Skill file

Evaluate migrated code against style guidelines and best practices.

This skill scores code quality aspects that are independent of functional correctness — focusing on readability, maintainability, and adherence to conventions.

Default Scoring Criteria

Unless a custom rubric is provided, score on these attributes (1-5 scale):

Naming Conventions (1-5)

Code Organization (1-5)

Error Handling (1-5)

Documentation (1-5)

Idiomaticity (1-5)

Output Format

Save scores as a JSON file:

{
  "target_file_a.java": {
    "naming_conventions": 4,
    "code_organization": 3,
    "error_handling": 5,
    "documentation": 4,
    "idiomaticity": 4,
    "justification": "Good naming and error handling. Some methods could be extracted for better organization."
  }
}

Custom Rubric

If a custom rubric is provided, use its attributes and scoring criteria instead of the defaults. The rubric should define:

Evaluation Guidelines

What to Look For

Positive indicators:

Negative indicators:

Language-Specific Considerations

Java:

Python:

Incremental Scoring

If a score file already exists, update it with new scores rather than replacing it entirely.

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.