/hone-skills:hone:method-brevity-auditfrom hone-skills
Scans a codebase for methods and functions that exceed configurable length thresholds. Reports a ranked list of the longest methods with file:line, language, and surrounding complexity signals. Designed for scheduled weekly runs. Do NOT use for style formatting, indentation, or naming concerns.
Ships in hone-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
hone:intent-clarity-audit instead.hone:test-naming-audit instead.hone:duplication-hunt instead.vendor/, generated/, node_modules/).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.
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).
Parse method boundaries. For each file, identify function and method definitions. Use language-appropriate heuristics:
function, def, fn, func, method
signatures, arrow functions assigned to variables, and class methods.def blocks by
indentation level changes.
Count lines from the opening signature to the closing delimiter (inclusive).Measure each method. Record:
Filter and rank. Keep only methods exceeding the threshold. Sort by line count descending, breaking ties by nesting depth descending.
Produce the report. Output the top-N findings in the format specified under Output Requirements.
Summarize. After the findings table, include a summary with:
Produce a Markdown report with the following structure:
# Method Brevity Audit
**Repo**: <repo name>
**Threshold**: <N> lines | **Scanned**: <count> methods | **Over threshold**: <count>
## Findings
| # | Method | File | Lines | Depth | Branches | Params | Lang |
|---|--------|------|-------|-------|----------|--------|------|
| 1 | ClassName.methodName | path/to/file.ts:42-118 | 76 | 5 | 12 | 4 | TypeScript |
| ... | | | | | | | |
## Summary
- **Distribution**: X methods 30-60 lines, Y methods 60-90 lines, Z methods 90+ lines
- **Hotspot files**: file1.ts (3 methods, 210 total excess lines), ...
- **Recommendation**: Consider extracting [specific suggestions based on findings]
Every finding must include a real file path and line range. Do not fabricate paths or line numbers.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ckorhonen/hone-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-hone-skills8 skills in this plugin
/hone:automation-opportunitiesFinds manual processes that could be automated: manual deploy steps in READMEs, setup instructions that could be scripts, repetitive git workflows, manual testing procedures, and undocumented tribal knowledge. Also checks for artifacts not in source control. Use monthly to surface automation ROI. Do NOT use for code quality or style audits./hone:broken-windows-huntDetects entropy signals in a codebase: stale TODOs, disabled tests, lint suppressions, commented-out code, dead imports, empty catch blocks, and deprecated API usage. Designed for daily runs to catch quality erosion early. Do NOT use for feature work, refactoring planning, or security audits./hone:duplication-huntFinds duplicated code patterns across the codebase including exact copies and structural duplication (same logic with different variable names). Ranks by frequency and suggests extraction candidates. Designed for weekly runs. Do NOT use for method length, naming, or style concerns./hone:intent-clarity-auditFinds code that obscures its intent: unclear variable names, nested ternaries, boolean parameters without names, overly clever one-liners, and comments that restate code instead of explaining why. Focuses on recently changed files. Do NOT use for method length, duplication, or test naming concerns./hone:magic-number-huntSurfaces magic numbers, unexplained string literals, hardcoded URLs, configuration values buried in code, and other "magical" values that should be named constants or config entries. Use when you want a weekly sweep for unnamed literals. Do NOT use for style or formatting audits./hone:naming-specificity-auditFlags classes, modules, and functions with vague generic names like Manager, Handler, Processor, Helper, Utils, Service, Base, Common, and Misc. Suggests more specific alternatives based on what the code actually does. Use weekly to prevent naming drift. Do NOT use for variable-level naming or style enforcement.