code-quality

code-quality is a skill for Claude Code, Codex from S3YED/appie-kit. It costs 24 tokens per session (2,587 once invoked), scanned A, original, MIT.

A collection of code-measurement, cleanup, and verification practices for software repositories. It can measure code size and language use, simplify recent changes, and check work before a Git commit.

In plain words
What is it for?
Use it to count lines and files, understand a repository's language mix, clean up new code, run security and quality checks, and review changes before committing.
Why use it?
It helps identify what a codebase contains, catch security or quality problems, and review changes before they are saved to version control. It also provides a way to check AI-written code for issues that a matching AI review may miss.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit Use it to count lines and files, understand a repository's language mix, clean up new code, run security and quality checks, and review changes before committing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s3yed/appie-kit/code-quality
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 S3YED/appie-kit --skill code-quality
Clone the repo
git clone --depth 1 https://github.com/S3YED/appie-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/s3yed/appie-kit/code-quality/github.svg)](https://agentmods.dev/skills/s3yed/appie-kit/code-quality)
Your own site
<a href="https://agentmods.dev/skills/s3yed/appie-kit/code-quality"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/code-quality/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/s3yed/appie-kit/code-quality"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00024 $0.02587
Opus 5.5 $0.00010 $0.01035
Sonnet 5.5 $0.00005 $0.00517
Haiku 4.5 $0.00002 $0.00259

Measured 3mo ago against content hash 31dea9dea380, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-quality scanned grade A with 1 finding 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 3mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

os.system(f"ls {user_input}")
skills/automation/code-quality/SKILL.md · 298 lines

How it starts

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

Code Quality & Verification

Three complementary tools for ensuring code quality at different stages of development:

Mode When Tool What it does
Codebase Metrics Explore/adopt a repo pygount Analyze LOC, language breakdown, code-vs-comment ratios
Simplify Code After implementing changes 3 parallel subagents Clean up recent changes for reuse, quality, efficiency
Pre-Commit Verification Before git commit Automated pipeline Security scan, quality gates, independent reviewer, auto-fix

Section 1: Codebase Metrics (pygount)

Analyze repositories for lines of code, language breakdown, file counts, and code-vs-comment ratios.

When to Use

  • User asks for LOC (lines of code) count
  • User wants a language breakdown of a repo
  • User asks about codebase size or composition
  • General "how big is this repo" questions

Prerequisites

pip install --break-system-packages pygount 2>/dev/null || pip install pygount

Basic Summary

cd /path/to/repo
pygount --format=summary \
  --folders-to-skip=".git,node_modules,venv,.venv,__pycache__,.cache,dist,build,.next,.tox,.eggs,*.egg-info" \
  .

IMPORTANT: Always use --folders-to-skip to exclude dependency/build directories, otherwise pygount will crawl them and hang.

Common Folder Exclusions

# Python projects
--folders-to-skip=".git,venv,.venv,__pycache__,.cache,dist,build,.tox,.eggs,.mypy_cache"

# JavaScript/TypeScript projects
--folders-to-skip=".git,node_modules,dist,build,.next,.cache,.turbo,coverage"

Filter by Language

# Only count Python files
pygount --suffix=py --format=summary .

# Only count Python and YAML
pygount --suffix=py,yaml,yml --format=summary .

Output Formats

pygount --format=summary .        # Summary table
pygount --format=json .           # JSON for programmatic use

Interpreting Results

The summary table columns: Language, Files, Code (executable lines), Comment (documentation lines), % (percentage of total).

Read the full file on GitHub · 298 lines

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. 3mo ago First seen · 298 lines · 24 tokens per session scan A 31dea9dea380

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository S3YED/appie-kit (14 stars, last pushed 3mo ago), licensed MIT. It adds 24 tokens to every session and 2,587 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

code-quality compared with skills from other repositories

code-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-qualityS3YED/appie-kitSkill143mo agoMITA24Claude Code, Codex
babysitthedotmack/claude-memSkill121ktodayApache-2.0A44Claude Code
githubNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
make-pr-easy-to-reviewmichael-denyer/pstack-claudeSkill5.1ktodayMITA57Claude Code
pr-triageaeonfun/aeonSkill800todayMITA26Claude Code, Codex
feedback-builderaeonfun/aeonSkill800todayMITA45Claude Code, Codex