Claude Code Plugins

Community-maintained marketplace

Feedback

applying-code-principles

@thkt/claude-config
3
0

>

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name applying-code-principles
description Fundamental software principles - SOLID, DRY, Occam's Razor, Miller's Law, YAGNI. Triggers: 原則, シンプル, 複雑, アーキテクチャ, リファクタリング, 保守性, コード品質, design pattern, best practice, clean code
allowed-tools Read, Grep, Glob

Code Principles

Purpose

Apply SOLID, DRY, Occam's Razor, Miller's Law, YAGNI with project-specific priority.

Project Priority Order

When principles conflict:

  1. Safety First - Security, data integrity
  2. YAGNI - Don't build what you don't need
  3. Occam's Razor - Simplest solution
  4. SOLID - For complex systems
  5. DRY - Eliminate duplication (not at cost of clarity)
  6. Miller's Law - Respect 7±2 cognitive limit

Quick Decision Questions

  • "Is there a simpler way?" (Occam's Razor)
  • "Understandable in <1 min?" (Miller's Law)
  • "Duplicating knowledge?" (DRY)
  • "Needed now?" (YAGNI)

References

Principles (rules/)

Detailed explanations (Claude already knows these concepts):

Related Skills

  • generating-tdd-tests - 原則を適用したテスト設計
  • reviewing-readability - 可読性レビュー

Used by Commands

  • /code - TDD実装時の原則適用
  • /audit - コードレビュー基準