kent-beck-style

kent-beck-style is a skill for Claude Code from nathankim0/clean-architecture-skills. It costs 55 tokens per session (4,149 once invoked), scanned A, original, MIT.

A code-review guide based on Kent Beck's refactoring ideas and simple design principles. Refactoring means improving code structure without changing what it does; YAGNI means avoiding functionality until it is needed.

In plain words
What is it for?
Reviewing readability and maintainability, suggesting small refactorings, extracting methods, improving names, removing duplication, and applying KISS and YAGNI.
Why use it?
It helps developers spot code smells, duplication, unclear names, and unnecessary complexity before they make code harder to change.

Skill for Claude Code

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

Part of the kent-beck-style plugin — 1 skill shipped together

Good fit Reviewing readability and maintainability, suggesting small refactorings, extracting methods, improving names, removing duplication, and applying KISS and YAGNI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nathankim0/clean-architecture-skills/kent-beck-style
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 nathankim0/clean-architecture-skills --skill kent-beck-style
Clone the repo
git clone --depth 1 https://github.com/nathankim0/clean-architecture-skills

Made for: Claude Code.

Or install kent-beck-style, the plugin that ships this one along with the rest of its 1 skill.

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 kent-beck-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/nathankim0/clean-architecture-skills/kent-beck-style/github.svg)](https://agentmods.dev/skills/nathankim0/clean-architecture-skills/kent-beck-style)
Your own site
<a href="https://agentmods.dev/skills/nathankim0/clean-architecture-skills/kent-beck-style"><img src="https://agentmods.dev/badge/skills/nathankim0/clean-architecture-skills/kent-beck-style/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 kent-beck-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/nathankim0/clean-architecture-skills/kent-beck-style"><img src="https://agentmods.dev/badge/skills/nathankim0/clean-architecture-skills/kent-beck-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,149 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.00055 $0.04149
Opus 5 $0.00028 $0.02074
Sonnet 5 $0.00011 $0.00830
Haiku 4.5 $0.00006 $0.00415

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

Security

Grade A, and why

kent-beck-style 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 13d 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.

plugins/kent-beck-style/skills/kent-beck-style/SKILL.md · 724 lines

How it starts

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

Kent Beck Style Coding Review Skill

Overview

This skill analyzes and reviews code based on Kent Beck's refactoring philosophy and simple design principles. It focuses on code smells detection, refactoring techniques, and incremental design improvement.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler (Refactoring, foreword by Kent Beck)

When to Use

  • When user requests "code smell" detection or "refactoring" guidance
  • When asked about "code quality", "readability", or "maintainability"
  • When reviewing code for improvement opportunities
  • When asked about "YAGNI", "KISS", or "simple design"
  • When improving naming, extracting methods, or removing duplication

Core Design Principles

Simple Design (4 Rules of Simple Design)

Kent Beck's rules in priority order:

  1. Passes the Tests - Code must work correctly
  2. Reveals Intent - Code should clearly express its purpose
  3. No Duplication - DRY (Don't Repeat Yourself)
  4. Fewest Elements - Minimize classes, methods, and code

YAGNI (You Aren't Gonna Need It)

  • Don't add functionality until it's actually needed
  • Avoid speculative generality
  • Build for today's requirements, not imagined futures
// Bad: Speculative generality
interface DataProcessor<T, U, V> {
  process(input: T, options: U): V;
  processAsync(input: T, options: U): Promise<V>;
  processBatch(inputs: T[], options: U): V[];
  // We only need one sync method right now!
}

// Good: Build what you need
interface DataProcessor {
  process(input: string): Result;
}

KISS (Keep It Simple, Stupid)

  • Prefer simple solutions over clever ones
  • Complexity is the enemy of maintainability
  • If it's hard to explain, it's probably too complex

Incremental Design

  • Make small, safe changes
  • Refactor continuously as you code
  • Design emerges through refactoring

Code Smells Catalog

1. Bloaters

Code that has grown too large to handle.

Read the full file on GitHub · 724 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. 13d ago First seen · 724 lines · 55 tokens per session scan A b58deb65688e

Subscribe to this mod's changes

kent-beck-style is a skill published in the GitHub repository nathankim0/clean-architecture-skills (89 stars, last pushed 7mo ago), licensed MIT. It adds 55 tokens to every session and 4,149 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-30.