agentsclimarketplace

Design smell review

Skill charlieviettq/awesome-agent-skill/.cursor/skills/core-workflow/design-smell-review

Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).

Install
npx -y skills add charlieviettq/awesome-agent-skill --skill design-smell-review

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Lightweight design smell review for modules and APIs—coupling, cohesion, naming, boundaries, and unnecessary complexity. Use before large refactors or when code feels hard to change. Complements gstack/review (diff-focused). Triggers: "design review", "code smell", "too complex", "refactor structure".

SKILL.md

2.0 KB, as published. Nobody here has run it

Design smell review

Scope

Review structure and boundaries, not line-by-line style. Pair with PR diff review for changes; use this for module-level health.

Smell checklist

SmellSignalDirection
God moduleMany unrelated responsibilitiesSplit by domain
Shotgun surgeryOne change touches many filesConsolidate logic
Feature envyModule A mostly uses B's dataMove behavior
Leaky abstractionImpl details escape APINarrow public surface
Config soupMagic strings everywhereNamed constants / schema
Boolean flagsif is_x branches everywherePolymorphism or strategy

Workflow

  1. Map entry points and dependencies (imports, public API).
  2. List responsibilities per module; flag >1 unrelated core job.
  3. Check testability — can core logic run without I/O?
  4. Propose smallest structural improvement (not full rewrite).
  5. Record decision in ADR if trade-off is significant.

Output format

## Summary
[1-2 sentences]

## Smells (priority order)
1. [Smell] — evidence — suggested fix (effort: S/M/L)

## Recommended next step
[One concrete change to try first]

Simplification (Chesterton's Fence)

Before deleting or collapsing code, ask why it exists:

  • Comment, test, or git history explaining constraint?
  • If unknown, prefer small experiment or question over bulk delete.
  • Remove duplication only when behavior is proven identical.
  • "Fewer lines" is not success if edge cases or observability regress.

Boundaries

  • Do not block small fixes on perfect architecture.
  • Prefer incremental extraction over big-bang rewrites.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.