·encapsulation
</>

encapsulation

yanko-belov/code-craft

内部状態を公開する場合に使用します。便宜上フィールドを公開する場合に使用します。外部コードがオブジェクトの内部を変更する場合に使用します。

16インストール·0トレンド·@yanko-belov

インストール

$npx skills add https://github.com/yanko-belov/code-craft --skill encapsulation

SKILL.md

Hide internal state. Expose behavior, not data. Control access through methods.

Public fields let anyone modify your object's internals, bypassing validation and breaking invariants. Encapsulation protects data integrity.

Response: Less code now, more bugs later. Encapsulation prevents invalid states.

内部状態を公開する場合に使用します。便宜上フィールドを公開する場合に使用します。外部コードがオブジェクトの内部を変更する場合に使用します。 ソース: yanko-belov/code-craft。

原文を見る

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/yanko-belov/code-craft --skill encapsulation
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-01
更新日
2026-02-18

クイックアンサー

encapsulation とは?

内部状態を公開する場合に使用します。便宜上フィールドを公開する場合に使用します。外部コードがオブジェクトの内部を変更する場合に使用します。 ソース: yanko-belov/code-craft。

encapsulation のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/yanko-belov/code-craft --skill encapsulation インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/yanko-belov/code-craft