Back to list
davidgasquez

simplify

by davidgasquez

🔧 Where my dotfiles lives in harmony and peace, most of the time.

39🍴 1📅 Jan 22, 2026

SKILL.md


name: simplify description: Refactor code to be simpler while maintaining identical functionality

Simplify

Refactor the given code to make it simpler, clearer, and more maintainable without changing what it does.

Objective

Simplify and clean the code. Implementation should be straightforward and pragmatic. The goal is to get the most minimal code possible.

Principles

  • Behavior parity: Keep interfaces and semantics identical. No new features. Preserve flags, return codes, and observable side effects.
  • KISS: Prefer boring, obvious solutions over cleverness. Fewer moving parts > fewer lines.
  • Small pieces: Favor small, composable functions. Design for easy deletion and iteration.
  • Prune aggressively: Remove dead code, unused vars, redundant branches, defensive over-engineering, and needless indirection.
  • Flatten flow: Simplify complex conditionals and deep nesting; use clear guards and early returns.
  • Standard library first: Replace custom utilities with modern built-ins/framework primitives.
  • Fail early and often: Don't use blanket try/catch. Skip validations.
  • Communicate with types: Use types to express contracts and invariants. Avoid type acrobatics and generic abstractions.
  • Abstractions when earned: Introduce/keep them only if they reduce duplication or isolate likely change.
  • Minimal deps: Don't add dependencies unless they materially simplify and are commonly available for the target runtime.
  • No micro-optimizations unless they remove complexity or are explicitly required.
  • Make rules explicit: Turn hidden assumptions into defaults, parameters, or assertions.
  • Naming for intent: Prefer clear, intention‑revealing names; one responsibility per function/module.

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon