Minimalist
Use when the user asks to write code efficiently, avoid over-engineering, reduce dependencies, or prevent unnecessary abstractions.
Before & after
Same prompt, same agent — the only difference is the skill.
You could clean up this code a bit. There might be some dependencies you don't need, or functions that could be simpler. Sometimes people add libraries that do small things when you could just use built-in features. You might also have some code that does similar things in different places and could be consolidated. It depends on your setup, but I'd be happy to suggest some changes. What framework are you using?
EFFICIENCY LADDER ANALYSIS (Precedence: cut first, reuse second, stdlib third)
TIER 1: CUT (Can this go away?)
✗ lodash dependency (56KB minified) used for: _.debounce, _.throttle, _.flatten
→ Native replacement: setTimeout loop tracking or ResizeObserver for debounce
→ Cost to remove: 3 functions, 15 lines of code total
→ Savings: 56KB bundle, 1 dependency to monitor for updates
→ Decision: Remove immediately
✗ moment.js (67KB) used for: date formatting, timezone conversion
→ Native replacement: Intl.DateTimeFormat API (built-in, no deps)
→ Cost to remove: 2 format strings swap from moment patterns to Intl options
→ Example: moment('2026-07-31').format('MMM D') → new Intl.DateTimeFormat('en', {month: 'short', day: 'numeric'}).format(new Date('2026-07-31'))
→ Savings: 67KB bundle
→ Decision: Remove if timezone handling not needed; else swap to date-fns (33KB, smaller)
✗ classnames library (2KB) used for: conditional CSS class concatenation
→ Native replacement: Template literal with ternary
→ Example: classNames('base', isActive && 'active') → `base ${isActive ? 'active' : ''}`
→ Cost: Slightly less readable but same output
→ Decision: Remove (2KB saved is secondary; simplicity is primary)
TIER 2: REUSE (Consolidate duplicated code)
⊕ useDebounce hook written 3 times across codebase (in FilterInput, SearchBar, AutoSave)
→ Consolidate: Move to shared hooks/useDebounce.ts
→ Cost: 1 file, 8 lines
→ Savings: Reduce 25 lines of duplication, fix bugs once instead of 3 times
⊕ Fetch wrapper repeated in api.ts, stripe.ts, analytics.ts
→ Consolidate: Move to api/client.ts, export fetchWithAuth, fetchWithRetry
→ Savings: Remove 40 lines, reduce error handling code duplication
TIER 3: STDLIB (Is this built-in?)
⊕ Array operations: Swap map/filter/reduce from custom forEach loops
→ Example: for(let i=0; i<items.length; i++) → items.map(item => ...)
→ Savings: Clearer intent, 5 fewer lines per loop
⊕ Promise handling: Use Promise.all instead of manual async/await loops
→ Example: for await (const result of api.get(urls)) → Promise.all(urls.map(u => api.get(u)))
→ Savings: 3 lines per parallel call, faster execution
TIER 4: NATIVE PLATFORM
⊕ CSS: Remove 12 @media queries that duplicate breakpoint logic
→ Native replacement: CSS Grid subgrid or CSS Container Queries (browser support improving)
→ Trade-off: Older browser support vs cleaner CSS
BEFORE/AFTER BUNDLE SIZE
Before: 340KB (lodash 56 + moment 67 + classnames 2 + app code 215)
After: 200KB (app code 200, after refactoring for consolidation)
Savings: 42% reduction, no feature loss
About this skill
name: minimalist description: Use when Use when the user asks to write code efficiently, avoid over-engineering, reduce dependencies, or prevent unnecessary abstractions.
Minimalist
Use when the user asks to write code efficiently, avoid over-engineering, reduce dependencies, or prevent unnecessary abstractions. Enforces a strict efficiency ladder: YAGNI, reuse, stdlib, native platform, existing deps — before writing any new code.
What you get
- Public GitHub repo (alirezarezvani/claude-skills)
- the minimalist skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.
Customize your output
- Fork the repo and adapt the skill's instructions and references to your workflow.
Example output
Activates automatically when your request matches Minimalist; chains with the other skills, agents, and commands in the collection.
Best for
Creators, builders, and teams using Claude Code.
SKILL.md preview
---
name: minimalist
description: Use this skill when the user asks to write code efficiently, avoid over-engineering, reduce dependencies, or prevent unnecessary abstractions.
version: 1.0.0
category: Development / Engineering
author: AgentVolt
license: proprietary
tags:
- development
- engineering
---
# Minimalist
Enforces a strict efficiency ladder before writing new code: YAGNI, reuse, standard library, native platform, existing dependencies — in that order, before reaching for anything new.
## When to use
… (sign up to view the full skill)More development skills
View all Development skills →Generate
Scaffold code, tests, and boilerplate from a short spec.
Performance Profiler
Systematic performance profiling for Node.js, Python, and Go applications.
Threat Detection
Use when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry.
Agent Harness
Turns a domain folder of skills into a bounded agentic loop: compile a goal into a task plan, execute with the domain's tools, verify every task, retry within a budget.