Skip to main content

edit-pencil-design

Stars4
Forks1
UpdatedJuly 18, 2026 at 02:07

Pencil CLI(`pencil`コマンド)だけを使って.penファイル(Pencilで作成されたデザインファイル)をAIプロンプトで修正・更新・新規作成するスキル。ユーザーが.penファイルの編集、ボタン追加、レイアウト変更、UIデザインの調整、Pencilデザインの更新、新しい.penデザインの作成などを依頼した場合に必ずこのスキルを使用する。既存ファイルの編集はエージェントモード(`pencil --in --out --prompt`)で同一パスを指定して上書きし、新規作成は`--in`を省略して`--out`に新しいパスを指定する。編集・作成後はインタラクティブモード(`pencil interactive`)でNodeツリーから「**編集・作成したコンポーネントのNodeだけ**」を特定して`get_screenshot` / `export_nodes` でPNG出力し、`.pen`と同階層の`snapshots/`ディレクトリに保存する。Pencil MCPには依存せず、`pencil` コマンドのみで完結する。.penファイルのgitコンフリクト解消・破損復旧は本スキルではなく`resolve-pencil-conflict`スキルの担当。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly