Skip to main content
Manusで任意のスキルを実行
ワンクリックで

sugarcraft-model-pattern

スター4
フォーク0
更新日2026年5月15日 22:19

Scaffolds a new SugarCraft TUI class following the canonical immutable + fluent pattern: final class, declare(strict_types=1), readonly props, private mutate() helper, with*() setters, and (for TUI roots) the Model::init/update/view contract from candy-core. Use when user says 'add a new Model', 'new TUI widget', 'port from charmbracelet/<x>', 'scaffold a SugarCraft class', or creates new files under <slug>/src/. Do NOT use for editing existing Models, for non-SugarCraft PHP libs, for tests-only changes (use phpunit-skill), for adding new libraries from scratch (use scaffold-library), or for cross-lib refactors.

インストール

Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。

SKILL.md
readonly