ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 dhruvkumar1805

cricket-commentary

一个 Claude Code 插件,把每次工具调用变成一场实时 IPL 风格板球比赛的一球,并提供记分板、像素大屏、观众音效和印度解说员。

dhruvkumar1805@dhruvkumar1805

dhruvkumar1805/cricket-commentary

原帖图片1
已翻译

关于这个 mod

cricket-commentary 通过把每次工具调用映射为一次板球投球,让 Claude Code 工作阶段变得像游戏:测试通过或 git push 会变成 SIX,编辑是单跑,失败是 OUT,被拒绝的权限是 WIDE。它会在提示列上方提供记分板,显示得分、回合、跑分率、顶尖击球手和最近一次出局;终端中的像素大屏会用烟花和礼花庆祝边界球和出局;实时解说可以由 Claude Haiku 生成,也可以从手写台词库中读取;此外还有 macOS 文字转语音声音(印度英语或印地语)以及合成的观众音效。/cpl、/cpl career、/cpl demo、/cpl mute 和 /cpl hinglish 等命令用于控制体验。语音和观众音频需要 macOS,记分板和大屏则可在任何真彩色终端中运行。通过 /plugin marketplace add dhruvkumar1805/cricket-commentary,然后执行 /plugin install cricket-commentary@dhruv-mods 安装。许可证为 MIT。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add dhruvkumar1805/cricket-commentary
claude plugin install cricket-commentary
原文 / README

🏏 cricket-commentary

A Claude Code mod that turns every session into a live IPL match.

Every tool call is a ball. Failing tests get you bowled, git push is a six, and an Indian commentator calls every big moment out loud while the crowd roars.

SIX! on the big screen after the tests pass

Install

In Claude Code:

/plugin marketplace add dhruvkumar1805/cricket-commentary
/plugin install cricket-commentary@dhruv-mods

Then give Claude any task. The toss happens on your first prompt. Turn your sound on 🔊

How it scores

| What Claude does | What you get | |---|---| | tests pass, git push | SIX 🎆 | | build, lint, commit | FOUR | | edits | singles, twos and threes | | reading and searching | dot ball | | tests fail | OUT, bowled | | build breaks | OUT, caught behind | | command not found | OUT, stumped | | rm -rf, force push, sudo | NO BALL, free hit | | you deny a permission | WIDE |

Fifties, centuries, hat-tricks and maiden overs get their own moments. When the turn ends, the commentator names the player of the match.

OUT! with the stumps flying

What's in the box

  • Scoreboard above the prompt: score, overs, run rate, this over ball by ball, top batters, last wicket
  • Pixel big screen in the terminal for sixes, fours, wickets and milestones, with fireworks, flying bails and confetti
  • Live commentary written fresh for each moment by Claude Haiku about the actual command, with a bank of hand-written lines as backup
  • The voice: macOS reads the commentary with its Indian English voice (Aman), or Hindi (Lekha) in Hinglish mode
  • Crowd sounds: bat crack, roar, groan, stumps and applause, all synthesized from scratch

Commands

| | | |---|---| | /cpl | full scorecard for the innings | | /cpl career | career stats across sessions | | /cpl demo | a scripted innings, to see and hear everything | | /cpl stop / start | pause and resume the match | | /cpl mute / unmute | the commentator | | /cpl crowd | toggle the crowd | | /cpl hinglish / english | commentary language | | /cpl hide / show | the scoreboard |

Notes

  • Voice and crowd sounds need macOS. The scoreboard and big screen work in any terminal with true color.
  • Commentary lines use a small amount of your Claude usage (one Haiku call per big moment).
  • If the Aman voice isn't installed, the commentator falls back to your system voice. Add it in System Settings → Accessibility → Spoken Content → System Voice → Manage Voices.
  • Mods run with the same access as Claude Code. Read the code before installing any mod, this one included. It's all in hooks/.

MIT · made by @dhruvkumar1805

更多类似作品