本文へスキップ
Skillpedia
一般的なプログラミング29k · #9568

minimalist

できること

新しいコードを書く前に、その機能が本当に必要か、標準ライブラリで足りないかといった短いチェックリストを適用します。依存関係の少ない、無駄のないコードがほしい人向けです。

使う場面

  • ✓小さな作業でエージェントが過剰に作り込むのを防ぎたいとき。
  • ✓プロジェクトから依存関係を減らしたいとき。
  • ✓問題を解く最も少ないコードを求めるとき。

スキルのリンク

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/minimalist/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“可能な限り少ないコードで解決してください。標準ライブラリで足りるなら、新しいパッケージは入れないでください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

何かを書く前に、機能は必要かという問いから既存コードの再利用まで、選択肢の段階を順にたどり、そのうえで最も小さく動くバージョンを書きます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Minimalist

You are highly efficient. The best code is the code never written.

Overview

Use this skill whenever the goal is to solve a problem with the least code possible. It prevents common AI failure modes: inventing helper classes for single-use logic, installing packages for one-line operations, and producing boilerplate that the user will never need.

The Efficiency Ladder

Before writing any new code, stop at the first rung that holds:

  1. YAGNI — Does this need to be built at all? If the user hasn't asked for it, don't build it.
  2. Reuse — Does it already exist in this codebase? Find the helper, util, or pattern and reuse it.
  3. Standard Library — Does the standard library already do this? Use it directly.
  4. Native Platform — Does a native platform feature cover it? Use it.
  5. Existing Dependency — Does an already-installed dependency solve it? Use it.
  6. One-Liner — Can this be one line? Make it one line.
  7. Minimum Code — Only then, write the minimum code that works.

Rules of Engagement

  • No unrequested abstractions: Do not invent interfaces, base classes, or generics for future-proofing unless the user explicitly asks.
  • No unnecessary dependencies: If the standard library can do it cleanly, do not install a package.
  • No boilerplate: Deletion over addition. Boring over clever. Fewest files possible.
  • Question complex requests: Ask "Do you actually need X, or does Y cover it?" before building X.
  • Shortest working diff wins: But only once you understand the problem. The smallest change in the wrong place isn't lazy — it's a second bug.

Workflow

When asked to implement something:

  1. Pause before writing code.
  2. Walk the ladder — can rungs 1–6 resolve this without new code?
  3. State your decision — "Using stdlib pathlib instead of a custom file helper."
  4. Write minimum code only if the ladder doesn't resolve it.
  5. Do not add comments, logging, or error handling that wasn't asked for.

Anti-Patterns

Anti-Pattern What to do instead
Installing a package for a one-liner Use the standard library
Writing a class for a single function Write the function
Adding a config file for a single hardcoded value Hardcode it until there are 2+ uses
Creating a utility module before it's reused anywhere Write inline, extract later
Adding docstrings/comments the user didn't ask for Skip them
Building error handling for errors that can't happen Skip it
Adding logging before the code works Ship the code first

Cross-References

  • Related: engineering/strict-api — prevents hallucinated APIs when writing minimal code; use together.
  • Related: engineering/zero-hallucination-coder — enforces verified-only API usage.
  • Related: engineering/karpathy-coder — Karpathy-inspired behavioral guidelines for LLM-assisted coding.
よくある質問

頼んだ機能まで省きますか?

いいえ。頼まれていない機能は避けますが、作業に必要なものは提供します。

パッケージを勝手に入れますか?

標準ライブラリか既存の依存関係で足りる場合は、新しいパッケージを避けます。

最初に何を尋ねますか?

そもそも作る必要があるかどうかです。最良のコードは、書かれなかったコードです。

詳細

作者による元の説明

Use when asked to avoid over-engineering, cut dependencies or write the least code. Applies a strict ladder before any new code: YAGNI, reuse, stdlib, native platform, existing deps.

repo: alirezarezvani/claude-skills

人気

GitHubのスター
29k
ランキング
#9568
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル