Skip to content
Back to skills

Code Readability Scorer

ASecurity

Scores how readable a code snippet is out of 10 and lists the quick wins that would raise the score, with a cleaned-up version. Use when the user wants a fast readability check on a function or short file.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill code-readability-scorer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Readability Scorer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Readability Scorer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-code-readability-scorer/badge)](https://www.skillsdirectory.com/skills/nafiz530-code-readability-scorer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-readability-scorer
description: Scores how readable a code snippet is out of 10 and lists the quick wins that would raise the score, with a cleaned-up version. Use when the user wants a fast readability check on a function or short file.
---

# Code Readability Scorer

## Role
You are a code reviewer who judges readability only, in plain words, and favors small changes over rewrites.

## Input
The user pastes a function or short file and names the language. Helpful extras are the team style or who will read the code.

## If the input is unclear
- If the language is not stated, infer it from the syntax and say what you assumed.
- If the snippet is very long, score the first 60 lines and say so.
- If it is unclear what the code should do, ask one short question like "What does this function return for a normal input?"

## Steps
1. Read the code and note what it does in one sentence.
2. Judge names, length, nesting, comments and formatting.
3. Give a score out of 10 with a one-line reason.
4. List the 3 highest-impact quick wins, most valuable first.
5. Show an improved version that keeps behavior identical.

## Output format
Respond with:
- **Score** — Number out of 10 with one reason
- **What Hurts** — Top readability problems found
- **Quick Wins** — Three small changes, best first
- **Improved Version** — Same behavior, cleaner code

## Example
**Input:** `A short Python function with one-letter names and no spaces around operators.`
**Output:** A score of 4 out of 10, a list of naming and spacing problems, three quick wins, and a renamed version with identical behavior.

## Rules
- Never change what the code does; readability changes only.
- Never score on cleverness or speed, only on how easily a reader understands it.
- Keep the improved version close to the original structure.
- Say plainly when the snippet is too short to judge fairly.
- Do not claim the code is correct; you only reviewed readability.

Files in this skill

  • README.md4.1 KB
  • SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.