hone:method-brevity-audit

hone:method-brevity-audit is a skill for Claude Code from ckorhonen/hone-skills. It costs 63 tokens per session (1,286 once invoked), scanned A, original, MIT.

A code review check that finds methods, functions, and closures longer than a chosen number of lines, then ranks the results.

In plain words
What is it for?
Use it for weekly codebase health checks, after large changes, or when exploring an unfamiliar repository. It can include file locations, languages, line counts, and complexity clues.
Why use it?
Long code blocks can be harder to understand and maintain; this report helps locate the main problem areas. It only reports findings and does not rewrite code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the hone-skills plugin — 8 skills shipped together

Good fit Use it for weekly codebase health checks, after large changes, or when exploring an unfamiliar repository. It can include file locations, languages, line counts, and complexity clues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ckorhonen/hone-skills/method-brevity-audit
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 ckorhonen/hone-skills --skill method-brevity-audit
Clone the repo
git clone --depth 1 https://github.com/ckorhonen/hone-skills

Made for: Claude Code.

Or install hone-skills, the plugin that ships this one along with the rest of its 8 skills.

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 hone:method-brevity-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ckorhonen/hone-skills/method-brevity-audit/github.svg)](https://agentmods.dev/skills/ckorhonen/hone-skills/method-brevity-audit)
Your own site
<a href="https://agentmods.dev/skills/ckorhonen/hone-skills/method-brevity-audit"><img src="https://agentmods.dev/badge/skills/ckorhonen/hone-skills/method-brevity-audit/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 hone:method-brevity-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/hone-skills/method-brevity-audit"><img src="https://agentmods.dev/badge/skills/ckorhonen/hone-skills/method-brevity-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 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.00063 $0.01286
Opus 5 $0.00032 $0.00643
Sonnet 5 $0.00013 $0.00257
Haiku 4.5 $0.00006 $0.00129

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

Security

Grade A, and why

hone:method-brevity-audit 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 11d 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/method-brevity-audit/SKILL.md · 128 lines

How it starts

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

Method Brevity Audit

What This Skill Does

Walks the source tree and identifies methods, functions, and closures whose line count exceeds a configurable threshold. For each finding it reports the fully qualified name, file path with line range, language, line count, and optional complexity hints (nesting depth, number of branches, parameter count). Findings are ranked longest-first so the worst offenders surface immediately.

When To Use

  • On a weekly schedule as a codebase health check.
  • After a large merge or feature branch lands to catch method bloat.
  • When onboarding to an unfamiliar codebase to find hot spots.
  • When the user asks to "find long methods" or "audit method length".

Do Not Use

  • For style or formatting issues (indentation, whitespace, line wrapping).
  • For naming quality — use hone:intent-clarity-audit instead.
  • For test-specific naming — use hone:test-naming-audit instead.
  • For duplication detection — use hone:duplication-hunt instead.
  • To auto-refactor or split methods. This skill only reports findings.

Inputs To Confirm

  1. Scope: Which directories or file patterns to scan (default: entire repo, excluding vendored/generated code).
  2. Threshold: Maximum acceptable method length in lines (default: 30 lines).
  3. Top-N: How many findings to include in the report (default: 20).
  4. Exclusions: Glob patterns for files or directories to skip (e.g., vendor/, generated/, node_modules/).

Instructions

  1. Identify scannable files. Walk the repository tree. Exclude directories that match common vendored or generated patterns (node_modules, vendor, dist, build, .git, __pycache__) and any user-specified exclusions.

  2. Detect language per file. Use file extension to determine the language. Support at minimum: TypeScript/JavaScript (.ts, .tsx, .js, .jsx), Python (.py), Ruby (.rb), Go (.go), Java (.java), Kotlin (.kt), Rust (.rs), Swift (.swift), C/C++ (.c, .cpp, .h), C# (.cs), PHP (.php), Shell (.sh, .bash).

Read the full file on GitHub · 128 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. 11d ago First seen · 128 lines · 63 tokens per session scan A 80475d92bb00

Subscribe to this mod's changes

hone:method-brevity-audit is a skill published in the GitHub repository ckorhonen/hone-skills (0 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,286 once invoked, about $0.0003 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-31.