← スキル一覧に戻る

code-minimization
by binee108
Production-ready 9-step development workflow plugin for Claude Code with 12 specialized agents, 17 reusable skills, and comprehensive quality gates
⭐ 0🍴 0📅 2025年11月14日
SKILL.md
name: code-minimization description: Write minimum necessary code following YAGNI principle to prevent bloat and over-engineering. Use when implementing features to keep the codebase lean and avoid premature optimization or speculative features.
Code Minimization
Instructions
Write minimum code
Implement what's needed NOW, not what MIGHT be needed.
Avoid:
- Premature optimization
- Speculative features
- Over-abstraction
- Unnecessary complexity
YAGNI principle
You Aren't Gonna Need It
Example
Python Example
# ❌ Over-engineered
class ValidatorFactory:
def create(self, type):
if type == 'basic': return BasicValidator()
elif type == 'advanced': return AdvancedValidator()
# 10 more types... (only use BasicValidator!)
# ✅ Minimal
class EntityValidator:
def validate(self, entity):
return entity.required_field is not None
JavaScript/Node.js Example
// ❌ Over-engineered
class ValidatorFactory {
create(type) {
if (type === 'basic') return new BasicValidator();
else if (type === 'advanced') return new AdvancedValidator();
// 10 more types... (only use BasicValidator!)
}
}
// ✅ Minimal
class EntityValidator {
validate(entity) {
return entity.requiredField !== null && entity.requiredField !== undefined;
}
}
Go Example
// ❌ Over-engineered
type ValidatorFactory struct{}
func (f *ValidatorFactory) Create(validatorType string) Validator {
switch validatorType {
case "basic":
return &BasicValidator{}
case "advanced":
return &AdvancedValidator{}
// 10 more types... (only use BasicValidator!)
}
return nil
}
// ✅ Minimal
type EntityValidator struct{}
func (v *EntityValidator) Validate(entity *Entity) bool {
return entity.RequiredField != ""
}
Guidelines
Do: Solve current requirements simply Don't: Add "maybe later" features
For detailed patterns, see reference.md For more examples, see examples.md
スコア
総合スコア
75/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

