clarity-over-cleverness

clarity-over-cleverness is a skill for Claude Code from loiane/specs-driven-development-spring-angular. It costs 68 tokens per session (1,625 once invoked), scanned A, original, MIT.

A code-review guide that rewrites overly clever code into clearer code without changing its behavior. It favors code that a junior engineer can understand quickly.

In plain words
What is it for?
Use it when simplifying implementation, untangling nested conditional expressions, deciding whether loops or streams are clearer, and reviewing readable code.
Why use it?
It helps reduce hidden assumptions and hard-to-read expressions, making code easier to maintain and review while keeping the test suite passing.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it when simplifying implementation, untangling nested conditional expressions, deciding whether loops or streams are clearer, and reviewing readable code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/loiane/specs-driven-development-spring-angular/clarity-over-cleverness
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 loiane/specs-driven-development-spring-angular --skill clarity-over-cleverness
Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

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 clarity-over-cleverness

README.md
[![agentmods](https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/clarity-over-cleverness.svg)](https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/clarity-over-cleverness)
Your own site
<a href="https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/clarity-over-cleverness"><img src="https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/clarity-over-cleverness.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,625 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.00068 $0.01625
Opus 5 $0.00034 $0.00813
Sonnet 5 $0.00014 $0.00325
Haiku 4.5 $0.00007 $0.00162

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

Security

Grade A, and why

clarity-over-cleverness 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 8d 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.

.claude/skills/clarity-over-cleverness/SKILL.md · 211 lines

How it starts

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

Clarity over cleverness

Rule of thumb

If a competent engineer who has never seen this code needs more than five seconds to understand a line, that line is a candidate for rewrite.

The bar is not "fewer characters". The bar is fewer surprises.

Targets (apply, in order)

1. Untangle nested ternaries

Bad:

return a ? (b ? x : y) : (c ? z : w);

Better:

if (a) {
    return b ? x : y;
}
return c ? z : w;

Best (when shapes line up):

return switch (state) {
    case ACTIVE -> x;
    case PAUSED -> y;
    case CLOSED -> z;
    case PENDING -> w;
};

2. Streams only when they read better than a loop

Bad (clever stream that's actually obscure):

return items.stream()
    .collect(Collectors.toMap(
        Item::id,
        Function.identity(),
        (a, b) -> a.timestamp().isAfter(b.timestamp()) ? a : b));

Better (explicit loop, named purpose):

Map<Id, Item> latestById = new HashMap<>();
for (Item it : items) {
    Item existing = latestById.get(it.id());
    if (existing == null || it.timestamp().isAfter(existing.timestamp())) {
        latestById.put(it.id(), it);
    }
}
return latestById;

(If the team consistently uses streams, follow the team. The point is consistency + readability, not banning streams.)

3. Inline once-used helpers

If a private method has exactly one caller AND the helper name doesn't add information, inline it. Reverse if a long method has a recognizable middle "phase" — extract that phase with a domain-meaningful name.

4. Kill option flags with one used value

Bad:

public Result calculate(Input in, boolean strict, boolean retry, Mode mode) { ... }
// every caller passes (in, true, false, Mode.DEFAULT)

Better: drop the unused dimensions; add them back when a real second caller exists.

5. Replace clever names with domain names

Bad: processX, handleData, doWork. Better: redeemGiftCard, priceWithDiscount, rejectIfExpired.

Read the full file on GitHub · 211 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. 8d ago First seen · 211 lines · 68 tokens per session scan A 3b6d8558b5f3

Subscribe to this mod's changes

clarity-over-cleverness is a skill published in the GitHub repository loiane/specs-driven-development-spring-angular (58 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 1,625 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.

Related

Other skills, from other repositories

spec-kitty-implement-review

Orchestrate the implement-review loop for Spec Kitty work packages using any configured agent. Covers agent dispatch, state transitions, rejection cycles, arbiter escalation, and dependency-aware sequencing across all 13 supported coding agents. Triggers: "implement and review WPs", "run the implement-review loop"…

Priivacy-ai/spec-kitty · 120 tokens

spec-kitty-mission-review

Review a fully merged Spec Kitty mission post-merge (all WPs done/approved) to verify spec→code fidelity, FR coverage, drift, risks, and security. Triggers: "review the merged mission", "post-merge mission review", "verify the completed mission", "audit the mission implementation", "mission-level acceptance review"…

Priivacy-ai/spec-kitty · 155 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

spk-run-review-wp

Review a Spec Kitty work package through the runtime review surface and approve or reject with structured feedback.

Priivacy-ai/spec-kitty · 26 tokens

spk-doctrine-bulk-edit

Recognize bulk-edit missions and apply occurrence classification guardrails before modifying many matching instances.

Priivacy-ai/spec-kitty · 25 tokens