phuclh/claude-halloween/tree/main/plugins/halloween
この mod について
🎃 Claude Code のハロウィン
Claude Code ターミナル用のハロウィンテーマです。
<p align="center"> <img src="assets/demo.svg" alt="ハロウィンテーマの Claude Code:会話の上をコウモリが飛び、プロンプトは揺らめくジャック・オー・ランタン、葉、ドクロに囲まれている" width="100%"> </p>- プロンプトを囲む幽霊屋敷のフレーム。 コウモリ、葉、月がプロンプト上の紫色の縁にとまります。その下では苔のつるにジャック・オー・ランタンがランダムな塊で実り、明滅する光をつるへ映します。ときどき幽霊が上端を通り過ぎ、エクトプラズムを引きずります。セッションごとにランダムなレイアウトになります。
- 会話を横切るコウモリ。 小さな群れがチャットの上を一往復します。一方から入り、もう一方へ抜け、緩やかな弧に沿って上昇したり下降したりします。ゆっくり飛ぶものもいれば、素早く駆け抜けるものもいます。
- 不気味な言葉。 スピナーには Brewing…、Summoning…、Stirring the cauldron… などが表示され、完了したターンは Haunted for 12s と表示されます。
- 勇気があれば不気味な音も。 キーを押すたびにコウモリのような鳴き声がし、ときどき稲妻のような音が鳴ります。Enter で回答すると、悪役の mwah-ha-ha、魔女の笑い声、悪魔の笑い、泣き叫ぶ幽霊、パイプオルガン、雷鳴のいずれかが鳴ります。Enter の音はすべて一度ずつ鳴ってから繰り返され、同じ音が連続することはありません。音は有効にするまでオフです。
インストール
Claude Code で:
/plugin marketplace add phuclh/claude-halloween
/plugin install halloween@phuclh-plugins
または shell から:
claude plugin marketplace add phuclh/claude-halloween
claude plugin install halloween@phuclh-plugins
その後、新しいセッションを開始します。
使い方
/halloweenでテーマをオン/オフにします。選択はセッションをまたいで記憶されます。/halloween soundsで音をオン/オフにします。こちらも記憶されます。音が鳴るのは macOS だけです。Claude Code はafplayで再生し、Linux と Windows では何も再生しません。- 90 秒間、入力も Claude の作業もないとアニメーションが一時停止し、CPU の使用を止めます。入力するか Claude が作業を始めるとすぐに再開します。
要件
- フルスクリーンモードはフレームとコウモリに必要です。
~/.claude/settings.jsonに"tui": "fullscreen"を設定するか、/tuiで切り替えます。他の画面では不気味な言葉とヒント行の小さなガーランドが表示されます。 - 新しめの Claude Code。 このテーマは Claude Code の early-access function-hook API を使うため、リリース間で変わる可能性があります。Claude Code 2.1.287 でビルドとテストを行っています。
パフォーマンス
アニメーション中は画面を毎秒 8 回再描画します。110×40 のターミナルでは CPU 1 コアの約 8–11% を使います。一時停止中は何も消費しません。
音を有効にすると、キー入力ごとに短い afplay を起動します。間隔は最大でも 70 ms に 1 回です。CPU 使用量はキー入力 1 回につき約 0.02 s 増え、入力中だけ発生します。
開発
claude --plugin-dir ./plugins/halloween # このフォルダから実行
claude plugin validate ./plugins/halloween # マニフェストと hooks を確認
claude plugin test ./plugins/halloween # テストを実行
上のデモはプラグイン自身のフレームと飛行コードで描画しています。変更後に再描画するには:
npx -p typescript tsc -p scripts
node .demo-build/scripts/render-demo.js > assets/demo.svg
音は scripts/render-sounds.ts がオシレーター、ノイズ、フィルターから合成します。笑い声は小さなフォルマントシンセサイザーによるものです。録音やサンプリングは使っていません。plugins/halloween/sounds/ に再生成するには:
npx -p typescript tsc -p scripts
node .demo-build/scripts/render-sounds.js
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add phuclh/claude-halloween claude plugin install halloween
原文 / README
🎃 Halloween for Claude Code
A Halloween theme for the Claude Code terminal.
<p align="center"> <img src="assets/demo.svg" alt="Claude Code with the Halloween theme: bats fly across the conversation above a prompt framed by flickering jack-o'-lanterns, leaves and skulls" width="100%"> </p>- A haunted frame around the prompt. Bats, leaves and a moon perch on a violet edge above the prompt. Below it runs a moss vine where jack-o'-lanterns grow in random clumps and flicker their glow onto the vine. A ghost drifts along the top every so often, trailing ectoplasm. Every session gets its own random layout.
- Bats across the conversation. A small flock flies whole journeys over your chat: in from one side and out the other, rising or falling along a gentle arc, some cruising and some darting.
- Spooky words. The spinner says things like Brewing…, Summoning… or Stirring the cauldron…, and finished turns read Haunted for 12s.
- Spooky sounds, if you dare. Each keystroke squeaks like a bat or, now and then, cracks like lightning. Enter answers with a villain's mwah-ha-ha, a witch's cackle, a demon's laugh, a wailing ghost, a pipe organ or a thunderclap. Every Enter sound plays once before any repeats, and the same one never plays twice in a row. Sounds are off until you turn them on.
Install
In Claude Code:
/plugin marketplace add phuclh/claude-halloween
/plugin install halloween@phuclh-plugins
Or from a shell:
claude plugin marketplace add phuclh/claude-halloween
claude plugin install halloween@phuclh-plugins
Then start a new session.
Use
/halloweenturns the theme off and on. Your choice is remembered across sessions./halloween soundsturns the sounds on and off, and is remembered too. Sounds play on macOS only: Claude Code plays them withafplay, and plays nothing on Linux or Windows.- After 90 seconds with no typing and no work from Claude, the animation pauses and stops using CPU. It wakes as soon as you type or Claude starts working.
Requirements
- Fullscreen mode for the frame and the bats: set
"tui": "fullscreen"in~/.claude/settings.json, or switch with/tui. On other screens you get the spooky words and a small garland on the hint line. - A recent Claude Code. The theme uses Claude Code's early-access function-hook API, which may change between releases. Built and tested on Claude Code 2.1.287.
Performance
While animating, the theme redraws the screen 8 times a second, which costs about 8–11% of one CPU core on a 110×40 terminal. Once paused, it costs nothing.
With sounds on, each keystroke starts a short afplay, at most one every 70 ms. That adds about 0.02 s of CPU per keystroke, and only while you type.
Develop
claude --plugin-dir ./plugins/halloween # run it from this folder
claude plugin validate ./plugins/halloween # check the manifest and hooks
claude plugin test ./plugins/halloween # run the tests
The demo above is drawn by the plugin's own frame and flight code. To render it again after a change:
npx -p typescript tsc -p scripts
node .demo-build/scripts/render-demo.js > assets/demo.svg
The sounds are synthesized from oscillators, noise and filters by scripts/render-sounds.ts; the laughs come from a small formant synthesizer. Nothing is recorded or sampled. To render them again into plugins/halloween/sounds/:
npx -p typescript tsc -p scripts
node .demo-build/scripts/render-sounds.js
