053-design-simple-rules

053-design-simple-rules is a skill for Claude Code, Codex from jabrena/plinth. It costs 86 tokens per session (675 once invoked), scanned A, original, Apache-2.0.

An interactive guide for evaluating Java design and refactoring choices using Kent Beck’s four simple-design rules. The rules are: pass the tests, show the code’s intent, avoid duplication, and use as few elements as practical.

In plain words
What is it for?
Use it when reviewing Java code, comparing implementation options, or refactoring, especially when deciding whether an abstraction improves clarity or merely adds complexity.
Why use it?
It gives developers an ordered way to judge whether a design change is safe and worthwhile. It keeps design cleanup from taking priority over working, tested behaviour.

Skill for Claude CodeCodex

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

Good fit Use it when reviewing Java code, comparing implementation options, or refactoring, especially when deciding whether an abstraction improves clarity or merely adds complexity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jabrena/plinth/053-design-simple-rules
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 jabrena/plinth --skill 053-design-simple-rules
Clone the repo
git clone --depth 1 https://github.com/jabrena/plinth

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 053-design-simple-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/jabrena/plinth/053-design-simple-rules/github.svg)](https://agentmods.dev/skills/jabrena/plinth/053-design-simple-rules)
Your own site
<a href="https://agentmods.dev/skills/jabrena/plinth/053-design-simple-rules"><img src="https://agentmods.dev/badge/skills/jabrena/plinth/053-design-simple-rules/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 053-design-simple-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/jabrena/plinth/053-design-simple-rules"><img src="https://agentmods.dev/badge/skills/jabrena/plinth/053-design-simple-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 675 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00086 $0.00675
Opus 5 $0.00043 $0.00338
Sonnet 5 $0.00017 $0.00135
Haiku 4.5 $0.00009 $0.00068

Measured 9d ago against content hash 26b029d5e587, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

053-design-simple-rules 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 9d 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/053-design-simple-rules/SKILL.md · 67 lines

How it starts

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

Simple Design Rules

Guide Java developers through Kent Beck's simple design rules when evaluating design and refactoring choices. This is an interactive SKILL.

What is covered in this Skill?

  • Using tests as the first correctness boundary before design cleanup
  • Revealing intention and maximizing clarity before abstraction pressure
  • Reducing duplication without hiding domain meaning or worsening readability
  • Treating fewer elements as the final simplification pressure after correctness, clarity, and duplication
  • Comparing Java design and refactoring options with the ordered rules
  • Reporting the chosen option, tradeoffs, validation signal, and remaining risk

Constraints

Apply simple design rules in priority order, and do not optimize later rules by weakening earlier rules.

  • MUST read references/053-design-simple-rules.md before applying the rules
  • MUST evaluate the rules in this order: passes the tests, reveals intention, has no duplication, has the fewest elements
  • MUST treat passing tests as the correctness boundary before design cleanup
  • MUST prefer clear intention over abstraction for its own sake
  • MUST reduce duplication only when the result preserves or improves clarity
  • MUST consider fewer elements only after correctness, clarity, and duplication have been addressed

When to use this skill

  • Apply simple design rules
  • Use Beck's simple design rules
  • Review this design with simple design rules
  • Choose between these refactoring options
  • Keep this Java design simple
  • Does this design pass the simple design rules?

Workflow

  1. Anchor Correctness

Read references/053-design-simple-rules.md, then identify the behavior under discussion and the tests, characterization checks, build checks, or manual evidence that define whether the code works.

  1. Reveal Intention

Evaluate whether names, types, responsibilities, control flow, API shape, and test descriptions make the domain decision clear to a future maintainer.

Read the full file on GitHub · 67 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 67 lines · 86 tokens per session scan A 26b029d5e587

Subscribe to this mod's changes

053-design-simple-rules is a skill published in the GitHub repository jabrena/plinth (437 stars, last pushed today), licensed Apache-2.0. It adds 86 tokens to every session and 675 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

test-quality

Write high-quality JUnit 5 tests with AssertJ assertions. Use when user says "add tests", "write tests", "improve test coverage", or when reviewing/creating test classes for Java code.

decebals/claude-code-java · 45 tokens

concurrency-review

Review Java concurrency code for thread safety, race conditions, deadlocks, and modern patterns (Virtual Threads, CompletableFuture, @Async). Use when user asks "check thread safety", "concurrency review", "async code review", or when reviewing multi-threaded code.

decebals/claude-code-java · 58 tokens

java-code-review

Systematic code review for Java with null safety, exception handling, concurrency, and performance checks. Use when user says "review code", "check this PR", "code review", or before merging changes.

decebals/claude-code-java · 45 tokens

codex-loop

Fix Elixir/Phoenix code until Codex CLI review comes back clean — bounded review, fix, verify loop before opening a PR. Use when codex is installed and you want an external cross-model critic on your changes before pushing.

oliver-kriska/claude-elixir-phoenix · 52 tokens

phx-review

Review changed Elixir/Phoenix code read-only. Check requirements, cite evidence, deduplicate findings, and return a severity-based verdict.

oliver-kriska/claude-elixir-phoenix · 32 tokens