open-closed-principle
✓既存のコードに新しい機能を追加する場合に使用します。 if/else または switch 分岐を追加したい場合に使用します。既存のクラスの動作を拡張する場合に使用します。
SKILL.md
Software entities should be open for extension, but closed for modification.
When new functionality is needed, extend the system with new code rather than modifying existing code. If adding a feature requires changing existing if/else chains, you're violating OCP.
Noting the problem while doing it anyway is still a violation.
既存のコードに新しい機能を追加する場合に使用します。 if/else または switch 分岐を追加したい場合に使用します。既存のクラスの動作を拡張する場合に使用します。 ソース: yanko-belov/code-craft。
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/yanko-belov/code-craft --skill open-closed-principle- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-12
- 更新日
- 2026-02-18
クイックアンサー
open-closed-principle とは?
既存のコードに新しい機能を追加する場合に使用します。 if/else または switch 分岐を追加したい場合に使用します。既存のクラスの動作を拡張する場合に使用します。 ソース: yanko-belov/code-craft。
open-closed-principle のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/yanko-belov/code-craft --skill open-closed-principle インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/yanko-belov/code-craft
詳細
- カテゴリ
- </>開発ツール
- ソース
- skills.sh
- 初回登録
- 2026-02-12