code-quality-assessment

code-quality-assessment is a skill for Claude Code, Codex from liza-mas/liza. It costs 17 tokens per session (5,967 once invoked), scanned A, original, Apache-2.0.

A framework for measuring and reviewing the quality of a codebase, then writing a report with ranked refactoring suggestions. Refactoring means improving code structure without changing what it does.

In plain words
What is it for?
Use it for health checks, onboarding, pre-refactoring reviews, milestone assessments, or evaluations of a specific part of a codebase.
Why use it?
It turns a general concern about code quality into documented findings and priorities. This helps decide which parts of a project deserve improvement first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for health checks, onboarding, pre-refactoring reviews, milestone assessments, or evaluations of a specific part of a codebase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liza-mas/liza/code-quality-assessment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liza-mas/liza --skill code-quality-assessment
Clone the repo
git clone --depth 1 https://github.com/liza-mas/liza

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-quality-assessment

README.md
[![agentmods](https://agentmods.dev/badge/skills/liza-mas/liza/code-quality-assessment/github.svg)](https://agentmods.dev/skills/liza-mas/liza/code-quality-assessment)
Your own site
<a href="https://agentmods.dev/skills/liza-mas/liza/code-quality-assessment"><img src="https://agentmods.dev/badge/skills/liza-mas/liza/code-quality-assessment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-quality-assessment

Your own site · 80×15
<a href="https://agentmods.dev/skills/liza-mas/liza/code-quality-assessment"><img src="https://agentmods.dev/badge/skills/liza-mas/liza/code-quality-assessment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.05967
Opus 5 $0.00009 $0.02984
Sonnet 5 $0.00003 $0.01193
Haiku 4.5 $0.00002 $0.00597

Measured 9d ago against content hash 0a631b4e3573, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

code-quality-assessment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-quality-assessment/SKILL.md · 564 lines

How it starts

The opening of the file, as written. The whole thing — 564 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REPORT_FILE = specs/architecture/code_quality_assessment.md

Target directories: If the target directory for REPORT_FILE does not exist, create it. The assessment is the first artifact that justifies the directory's existence.

Recommended Tools: Make sure you've read ~/§BRAND_GLOBAL_DIRNAME§/AGENT_TOOLS.md list_directory_tree and codebase_search (fast and token-efficient semantic search) may be specifically useful.

Quality is not a binary. Measure it, grade it, and direct investment where it will compound.

Invoked for: periodic health checks, pre-refactoring assessment, onboarding orientation, or explicit code quality evaluation.


Process

Metrics Collection → Subsystem Analysis → Synthesis → Recommendations

Templates anchor cognition. Complete each phase before the next. The skill is a measurement framework to apply to what you found, not boxes to fill with platitudes.

Report format: See references/report-format.md for the output template.


Modes

Mode When Scope
Full Assessment First assessment, periodic health check, major milestone All phases, all sections, full report
Targeted Assessment Evaluate specific subsystem(s) or concern area Scoped metrics + analysis for named components only
Reassessment After refactoring or significant changes Delta comparison against previous REPORT_FILE
Enrichment Improve coverage of existing assessment Independent analysis → merge → verify → update
Quick Health Check Verify existing findings still hold Metrics refresh + finding verification only

Phase applicability:

Mode Phase 1 (Metrics) Phase 2 (Subsystem Analysis) Phase 3 (Synthesis) Phase 4 (Recs) Output
Full Assessment ✓ Complete ✓ Complete ✓ Complete ✓ Complete New REPORT_FILE
Targeted Assessment Scoped Scoped Scoped Scoped Targeted section in REPORT_FILE
Reassessment ✓ Fresh Delta comparison Update Update Revised REPORT_FILE
Enrichment ✓ Fresh (independent) Update (add to existing) Update Update Revised REPORT_FILE
Quick Health Check Refresh only Verify only — Skip — Skip Updated metrics + verification notes

Read the full file on GitHub · 564 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 564 lines · 17 tokens per session scan A 0a631b4e3573

Subscribe to this mod's changes

code-quality-assessment is a skill published in the GitHub repository liza-mas/liza (372 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 5,967 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.