code-quality

code-quality is a skill for Claude Code, Codex from sordi-ai/skill-everything. It costs 34 tokens per session (1,493 once invoked), scanned A, original, MIT.

A general code-quality rule set for writing and refactoring software, covering function size, naming, error handling, security, and development tools.

In plain words
What is it for?
Use it when creating, editing, reviewing, or refactoring production code, while allowing different treatment for generated files, test fixtures, migrations, and framework adapters.
Why use it?
It targets common bugs, review comments, unclear code, and unsafe behavior with concrete rules and stated exceptions.

Skill for Claude CodeCodex

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

Good fit Use it when creating, editing, reviewing, or refactoring production code, while allowing different treatment for generated files, test fixtures, migrations, and framework adapters.

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

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/sordi-ai/skill-everything/code-quality/github.svg)](https://agentmods.dev/skills/sordi-ai/skill-everything/code-quality)
Your own site
<a href="https://agentmods.dev/skills/sordi-ai/skill-everything/code-quality"><img src="https://agentmods.dev/badge/skills/sordi-ai/skill-everything/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/sordi-ai/skill-everything/code-quality"><img src="https://agentmods.dev/badge/skills/sordi-ai/skill-everything/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,493 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.00034 $0.01493
Opus 5.5 $0.00014 $0.00597
Sonnet 5.5 $0.00007 $0.00299
Haiku 4.5 $0.00003 $0.00149

Measured 3mo ago against content hash 24407e81b58c, 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

17. **SHOULD: External dependencies only in dedicated adapter files.** No direct `axios.get()` in business logic — always wrap through an interface.
skills/code-quality/SKILL.md · 89 lines

How it starts

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

Sub-Skill: Code Quality & Common Mistakes

Purpose: Prevents the 20 % of mistakes that cause 80 % of review comments. Concrete rules from real projects — no boilerplate.

Rule classification

  • MUST — load-bearing. Violating causes bugs, security issues, or cross-team confusion. Never break.
  • SHOULD — default behavior. Deviation needs a documented reason in the code or PR.
  • AVOID — usually wrong; documented exception inline where needed.

Where these rules don't strictly apply: test fixtures, generated code (parser tables, codegen output, schema-derived types), CLI bootstrap scripts, framework adapters, and migration scripts may legitimately differ. The rules below apply to production code paths unless an inline exception says otherwise.


Rules

Functions & Logic

  1. SHOULD: Functions under ~30 lines. Longer → split where practical. Reduces cognitive load.
  2. AVOID: Boolean as last argument. render(true) is unreadable. Use enum or named-property: render({ withHeader: true }).
  3. SHOULD: Early return over nested if-blocks. Nesting depth > 2 is a warning sign.
  4. SHOULD: No magic numbers. if (status === 3) → if (status === OrderStatus.SHIPPED).
  5. AVOID: Double negation. if (!isNotValid) → if (isValid).

Variables & Naming

  1. SHOULD: Variable names describe content, not type. userList instead of arr, activeUserId instead of id.
  2. SHOULD: Temporary variables for complex expressions. const isEligible = age >= 18 && !isBanned; instead of cramming it all into an if.
  3. AVOID: Abbreviations except established ones (id, url, ctx, req, res). usr, cfg, tmp → spell out.

Error Handling

  1. MUST: Every async call needs try/catch or .catch(). Unhandled promise rejections crash Node processes.
  2. MUST: Never silently swallow error objects. catch (e) {} is forbidden. At minimum: logger.warn(e).
  3. MUST: Error messages must include context. throw new Error('User not found: ' + userId) not throw new Error('Not found').
  4. SHOULD: Catch specific exception types, not broad categories. Catch ConnectionError not Exception. Broad catches mask unrelated bugs and make debugging harder.
  5. SHOULD: Use exponential backoff with jitter for retry logic. Never retry in a tight loop. Each retry should wait longer than the last with randomization to prevent thundering herds.
  6. MUST: Never retry non-idempotent operations without explicit safeguards. A retried POST that creates a resource can produce duplicates. Use idempotency keys or check-before-retry patterns.
  7. SHOULD: Propagate errors with context rather than swallowing and re-raising generic exceptions. Use raise NewError("context") from original_error to preserve the chain. Reference: ERR-2026-016.

Read the full file on GitHub · 89 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 · 89 lines · 34 tokens per session scan A 24407e81b58c

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository sordi-ai/skill-everything (21 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 1,493 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

code-quality compared with skills from other repositories

code-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-qualitysordi-ai/skill-everythingSkill216mo agoMITA34Claude Code, Codex
remove-ai-slopscode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA77Claude Code
review-workcode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA63Claude Code, Codex
githubcode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA226Claude Code, Codex
tech-debt-auditcode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA127Claude Code, Codex
code-review-webrampstackco/claude-skillsSkill1.1k18d agoMITA121Claude Code
design-standardsrampstackco/claude-skillsSkill1.1k18d agoMITA122Claude Code