check-dry

check-dry is a skill for Claude Code from nortonx/ai-tooling-free. It costs 22 tokens per session (910 once invoked), scanned A, original, MIT.

A code review that looks for repeated logic and suggests when it should be shared. DRY means “Don't Repeat Yourself”: keeping one clear implementation instead of copying the same behavior in several places.

In plain words
What is it for?
Use it to scan the whole codebase, a file or folder, or the changes on the current branch for possible refactoring opportunities.
Why use it?
It helps reduce duplicated code that can become inconsistent and require the same fix in multiple locations.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to scan the whole codebase, a file or folder, or the changes on the current branch for possible refactoring opportunities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nortonx/ai-tooling-free/check-dry
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 nortonx/ai-tooling-free --skill check-dry
Clone the repo
git clone --depth 1 https://github.com/nortonx/ai-tooling-free

Made for: Claude Code.

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 check-dry

README.md
[![agentmods](https://agentmods.dev/badge/skills/nortonx/ai-tooling-free/check-dry/github.svg)](https://agentmods.dev/skills/nortonx/ai-tooling-free/check-dry)
Your own site
<a href="https://agentmods.dev/skills/nortonx/ai-tooling-free/check-dry"><img src="https://agentmods.dev/badge/skills/nortonx/ai-tooling-free/check-dry/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 check-dry

Your own site · 80×15
<a href="https://agentmods.dev/skills/nortonx/ai-tooling-free/check-dry"><img src="https://agentmods.dev/badge/skills/nortonx/ai-tooling-free/check-dry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 910 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.
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.00022 $0.00910
Opus 5.5 $0.00009 $0.00364
Sonnet 5.5 $0.00004 $0.00182
Haiku 4.5 $0.00002 $0.00091

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

Security

Grade A, and why

check-dry 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 1mo 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/check-dry/SKILL.md · 76 lines

How it starts

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

Arguments

[branch | <path>]

  • Optional. Pass branch to diff against the resolved base branch; pass a file/directory path to scope; omit to scan the full codebase.
  • If you pass anything else (a non-existent path, an unrecognized flag), the skill stops and asks for clarification rather than guessing.
  • Examples: /check-dry, /check-dry branch, /check-dry src/services

Copilot CLI note: $ARGUMENTS does not substitute in skills; include the argument inline in your prompt.

Check DRY Violations

Analyze $ARGUMENTS for DRY violations that signal missing abstractions.

Scope

Determine scope from $ARGUMENTS, in this order:

  1. Literal branch -> diff between this branch and the base branch. Resolve the base branch as: git symbolic-ref refs/remotes/origin/HEAD if it resolves, else main if it exists, else master. If neither exists, stop and ask.
  2. An existing file or directory path -> analyze that specific target only.
  3. Empty -> scan the full codebase under the current working directory (excluding node_modules, dist, build, .git, and any path in .gitignore).
  4. Anything else (a non-existent path, a flag the skill does not recognize) -> stop and ask the user to clarify rather than guess.

Detection Criteria

Flag duplication only when it meets all of these:

  1. Code appears 3+ times (two occurrences may be coincidental)
  2. The duplicated blocks change together: shared intent, not just shared syntax
  3. A single abstraction (function, component, module) can replace all occurrences without forced generality

Ignore: boilerplate required by the framework, test setup/fixtures, and config files.

Output format

For each finding, report:

  • File and line number(s) of every duplicate occurrence
  • What is duplicated and why it matters (shared intent vs coincidental similarity)
  • Proposed abstraction: name, signature, and placement, with a code example
  • Risk: what breaks if refactored incorrectly

Read the full file on GitHub · 76 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. 1mo ago Changed 1d9a0ef644b3
  2. 1mo ago First seen · 76 lines · 22 tokens per session scan A 10cbbb2cc1dd

Subscribe to this mod's changes

check-dry is a skill published in the GitHub repository nortonx/ai-tooling-free (1 stars, last pushed 18d ago), licensed MIT. It adds 22 tokens to every session and 910 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

Other skills, from other repositories

adapter-audit

Use this skill to audit CLI adapter projects (like opencli) for missing output fields, then batch-generate fixes and submit PRs. Turns AI agents into adapter quality reviewers.

AllenS0104/skill-browser · 40 tokens

security-audit

Deep adversarial security audit engine for full-stack web applications. Use this skill when the user wants to audit a codebase for security vulnerabilities, broken access control, injection risks, authentication weaknesses, payment security, file upload exploits, IDOR, CSRF, SSRF, RLS bypass, business logic abuse…

Heet-P/skills · 184 tokens

roblox-code-review

Use to review Luau / Roblox code for server-authority holes, anti-slop violations, replication mistakes, and Roblox-specific bugs before merge. Use when the user says "review this code", "code review", "review the PR", "audit this script", "is this server-safe", or after roblox-forge ships a non-trivial change.

schmusch/roblox-ai-workflow · 77 tokens

roblox-anti-slop

Use to strip enterprise jargon (Controller, Service-as-non-engine-service, Repository, DTO, Manager, Handler) out of Luau code and rewrite it as Roblox-native. Use when reviewing generated code that looks like Java enterprise architecture, when the user complains it doesn't "feel like Roblox", or as a final pass after…

schmusch/roblox-ai-workflow · 76 tokens

spec-kitty-runtime-review

Review runtime-owned outputs using the Spec Kitty review workflow surface, then direct approval or rejection with structured feedback. Triggers: "review this work package", "check runtime output", "approve this step", "review WP", "is this WP ready to approve", "check this implementation". Does NOT handle: setup-only…

Priivacy-ai/spec-kitty · 85 tokens

adversarial-squad

Deploy a bounded, profile-loaded adversarial review squad at an SDD point-cut (post-spec, post-plan, post-tasks, pre-merge, or an ad-hoc decision) so independent doctrine lenses converge on findings one reviewer would miss. Triggers: "deploy a squad", "adversarial squad", "post-tasks anti-laziness pass", "pre-spec…

Priivacy-ai/spec-kitty · 160 tokens