ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 mutlumehmet

jackpot

# jackpot

mutlumehmet@mutlumehmet

mutlumehmet/claude-plugins/tree/main/plugins/jackpot

元の投稿の画像1
翻訳済み

この mod について

jackpot

Claude Code の mod です。プロンプト上の行の右端にピクセルスロットマシンを表示します。完了したターンごとにレバーを引き、祝うべき出来事では当たりやすいゴールデンスピンを獲得します。claude-plugins の Claude Code Arcade の一部です。

できること

  • 完了したターンごとにレバーを 1 回引きます。リールがぼやけ、順番に止まり、固定時に跳ねます。
  • 中くらいの出来事ではゴールデンスピンを 1 回、大きな出来事では 3 回キューに入れます。確率が上がり、支払いは 2 倍で、損はしません。
  • きれいなターンを 5 回続ける(ツールエラーなし)と倍率が 1 上がり、×5 まで増えます。ツールが失敗するとリセットされます。
  • 配当:7 が 3 つならチップ 100、ドラゴン 3 つなら 50、ダイヤなら 25、ベルなら 15、星なら 10、さくらんぼなら 8。一対のさくらんぼは 3、それ以外のペアは 2 です。ジャックポットになると筐体が点滅し、コインがこぼれます。
  • マシンの下:◉ 2967 ×1 ▲ 2 ✦ 0 ♛ 1(チップ、倍率、きれいな連続数、待機中のゴールデンスピン、ジャックポット)。チップはセッションをまたいで保持されます。
  • **/jackpot**でルールと統計を表示します。/jackpot spin、golden、demo は支払いのない練習スピンです。/jackpot hide でしまい、/jackpot show で戻します。

出来事

各 Arcade ゲームは祝うべき出来事を独自に見つけるため、依存なしで単独インストールできます。コーディング中かどうかに関係なく、セッションには出来事があります。

| 大きさ | 出来事 | |---|---| | 小 | ターンの完了、ファイルの保存、1 ターン中の 10 回目ごとのツール呼び出し | | 中 | コミット、プッシュ、pull request の作成、テスト成功、任意の skill の実行、サブエージェントの完了、計画の承認、送信・作成・投稿・公開を行う MCP ツール、長い文書の作成、メッセージ内の称賛 | | 大 | マージ、リリース(gh release create、npm publish)、本番デプロイ(vercel --prod、netlify deploy --prod、fly deploy など)、失敗後にテストが戻ること、成果物(PDF、DOCX、XLSX、PPTX、画像)の作成、ページの公開、3 件以上のタスク一覧の完了、マラソンターン(10 分、30 ツール、エラーなし)、1 ターンで 3 つのサブエージェントを完了、3、7、30、100 日の連続記録、100 回目・1,000 回目・10,000 回目のツール呼び出し |

"nothing to commit" と書かれたコミットや、"Everything up-to-date" と表示されたプッシュは数えません。サブエージェント内のツール呼び出しは数えず、完了だけを数えます。

設定

すべて任意で、デフォルトでは空です。/plugin(プラグイン設定)または settings.json の pluginConfigs で設定します。

| 設定 | 用途 | 例 | |---|---|---| | big_skills | 実行が大きな出来事になる skill(それ以外は中くらい) | release-notes, publish-report | | quiet_skills | 何も祝わない skill | commit | | big_commands | 成功すると大きな出来事になるシェルコマンドの正規表現 | make ship | | medium_commands | 成功すると中くらいの出来事になるシェルコマンドの正規表現 | terraform apply | | praise_words | 組み込みの称賛語(thanks、great、perfect と他言語のいくつか)に加えて称賛として数える語 | nice one, cheers |

読み取るものと行うこと

  • 読み取るもの:Claude が実行する各ツールの名前と失敗したかどうか、シェルコマンドのコマンドラインと出力が変化なしと示しているか、Claude が書き込むファイルの名前と行数、skill 名、メッセージの単語(称賛の検出だけに使用)、サブエージェントの開始と完了。
  • 保持するもの:自身のスコアと状態をマシン上の Claude Code プラグインストアに保存します。
  • 描画するもの:プロンプトの上の行の右端に 1 ブロックと、ときどき通知を表示します。
  • Hook:skill.prompt は実行された skill だけを記録するので、完了した skill を出来事として数えられます。prompt は変更せずに渡します。command.run は自分の /jackpot だけに応答します。
  • プライバシー:PRIVACY.md を参照してください。
  • 決してしないこと:ツール呼び出しやメッセージを変更・ブロック・遅延すること、どこかへ送信すること(ネットワーク呼び出しやテレメトリーを含む)、Claude が書くファイルの内容を行数の集計以上に読むこと。

インストール

Claude Code 2.1.287 以降(mods)が必要です。2.1.289 でテストしています。

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install jackpot@mehmetmutlu

mod は Claude Code 内であなたの権限を使います。インストール前にコードを読んでください。

エディターの統合ターミナルを含むターミナルとデスクトップアプリの Code タブに描画します。VS Code のチャットパネルと claude -p では動作しますが描画しません。複数の Arcade ゲームを同時に開けますが、プロンプト上の行は埋まります。/<command> hide でしまい、/<command> show で戻せます。

既知の不足

  • マシンはカラー(赤、緑、青、黄色、紫を金色の筐体に表示)なので、単色ゲームのように明暗のターミナルテーマには従いません。
  • 1 セル内で 2 色が接すると、行間の広いターミナルでは細い線が見えることがあります。

概要

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Mehmet Mutlu 制作。claude-plugins の一部です。作品の詳細は mehmetmutlu.dev を参照してください。

ライセンス

MIT

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add mutlumehmet/claude-plugins
claude plugin install jackpot
原文 / README

jackpot

A Claude Code mod: a pixel slot machine at the right end of the line above the prompt. Every finished turn pulls the lever; the moments worth celebrating earn golden spins with better odds. Part of the Claude Code Arcade in claude-plugins.

What it does

  • Every finished turn pulls the lever once. Reels blur, stop one by one and bounce as they lock.
  • Medium moments queue one golden spin, big moments three: better odds, double pay, never a loss.
  • Five clean turns in a row (no tool error) raise the multiplier by one, up to ×5; a failed tool resets it.
  • Payouts: three 7s pay 100 chips, three dragons 50, diamonds 25, bells 15, stars 10, cherries 8; a cherry pair 3, any other pair 2. A jackpot strobes the cabinet and spills coins.
  • Under the machine: ◉ 2967 ×1 ▲ 2 ✦ 0 ♛ 1 (chips, multiplier, clean streak, golden spins waiting, jackpots). Chips are kept between sessions.
  • /jackpot shows the rules and stats; /jackpot spin, golden and demo are practice spins that pay nothing; /jackpot hide puts it away and /jackpot show brings it back.

Moments

Every Arcade game spots the moments worth celebrating on its own, so each one installs alone with no dependency. Coding or not, a session has them.

| Size | Moments | |---|---| | Small | A finished turn, a file saved, every 10th tool call in a turn | | Medium | A commit, a push, a pull request opened, tests passing, any skill run, a subagent finished, a plan approved, an MCP tool that sends, creates, posts or publishes, a long document written, praise in your message | | Big | A merge, a release (gh release create, npm publish), a production deploy (vercel --prod, netlify deploy --prod, fly deploy and others), tests back to green after failing, a deliverable made (PDF, DOCX, XLSX, PPTX, images), a published page, a finished task list of three or more, a marathon turn (10 minutes, 30 tools, no errors), three subagents done in one turn, a 3, 7, 30 or 100 day streak, the 100th, 1,000th or 10,000th tool call |

A commit that says "nothing to commit" or a push that says "Everything up-to-date" counts for nothing. Tool calls inside subagents do not count; their finishing does.

Settings

All optional; every one is empty by default. Set them in /plugin (the plugin's settings) or in settings.json under pluginConfigs.

| Setting | What it is for | Example | |---|---|---| | big_skills | Skills whose run is a big moment (every other skill is medium) | release-notes, publish-report | | quiet_skills | Skills that celebrate nothing | commit | | big_commands | A regular expression of shell commands whose success is big | make ship | | medium_commands | A regular expression of shell commands whose success is medium | terraform apply | | praise_words | Extra words that count as praise, on top of the built-in list (thanks, great, perfect and a few in other languages) | nice one, cheers |

What it reads and does

  • Reads: the name of each tool Claude runs and whether it failed; for shell commands, the command line and whether its output says nothing changed; for file writes, the file name and its line count; skill names; the words of your message (only to spot praise); subagent start and finish.
  • Keeps: its own score and state in Claude Code's plugin store on your machine.
  • Draws: one block at the right end of the line above the prompt, and an occasional notice.
  • Hooks: skill.prompt only notes which skill ran, so a finished skill can count as a moment; it passes the skill's prompt on unchanged. command.run answers its own /jackpot command and no other.
  • Privacy: see PRIVACY.md.
  • Never: changes, blocks or delays a tool call or a message; sends anything anywhere (no network calls, no telemetry); reads file contents beyond counting lines of a file Claude writes.

Install

Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install jackpot@mehmetmutlu

A mod runs inside Claude Code with your permissions. Read the code before you install any mod.

It draws in a terminal (including an editor's integrated terminal) and in the Code tab of the Desktop app; in the VS Code chat panel and claude -p it runs but draws nothing. Several Arcade games can be open at once, but the line above the prompt fills up: /<command> hide puts one away, /<command> show brings it back.

Known gaps

  • The machine is in colour (red, green, blue, yellow, purple on a gold cabinet), so it does not follow a light or dark terminal theme the way the one colour games do.
  • Where two colours meet inside one cell, a terminal with tall line spacing can show a hairline.

About

Mehmet Mutlu: work that's shipped, at mehmetmutlu.dev

Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.

License

MIT

関連作品