ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 Other-Income-5085

Spinlings:一款帶有可對戰與交易的寶可夢風格生物的 Claude Code 模組

一個免費開源的 Claude Code 模組,會在 Claude 運作時生成類似寶可夢的生物,支援透過 Cloudflare Worker/D1 後端進行離線與線上對戰、交易,以及模型訊號映射(Haiku/Sonnet/Opus/Fable)。需要 Claude Code 2.1.287+。

已翻譯

關於這個 mod

作者介紹了 Spinlings,這是一個基於 Claude Code 模組 API 建構的 TypeScript/TSX 模組。Claude Code UI 鉤子會在輸入框上方渲染一個側邊欄與對戰窗格,作用中模型訊號會選擇生物家族(Haiku、Sonnet、Opus、Fable)。共享的 TypeScript 遊戲引擎同時驅動離線遊玩與線上 Cloudflare Worker/D1 伺服器,後者決定卡牌抽取、所有權、交易與戰鬥結果。對戰使用已儲存的隊伍,因此對手不需要在線上。該模組聲稱它不會讀取提示、回覆或檔案。文中包含一個發布禮物兌換碼 (/spin redeem FIRSTSPIN) 和兩張截圖,但貼文中的倉庫/安裝參考是佔位文字,而非實際連結。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add 416rehman/spinlings
claude plugin install spinlings@spinlings
原文 / README

I built Spinlings specifically for Claude Code. It adds little Pokémon-like creatures you can collect while Claude works, trade with other Claude Code users, and use to duel their teams. Duels use saved teams, so the other player doesn't need to be online. I used Claude as the coding assistant for the original version of Spinlings. That version included the TypeScript creature and battle engine, the TSX mod band and collection pane, and the Cloudflare Worker/D1 backend for online duels and trading. The offline mode and server share the battle engine. Later UI and test iterations were assisted by Codex. Build details: it's TypeScript/TSX using Claude Code's mod API. Claude's UI hooks draw the sidebar and duel above the input, and its model signal selects the creature family: Haiku, Sonnet, Opus or Fable. A shared TypeScript game engine runs offline and on a Cloudflare Worker; the online server decides card rolls, ownership, trades and battle results. The fiddliest Desktop bug was that clicking a card's text worked but clicking its artwork didn't. The artwork now has its own local click handler, so both open the same card. It's free and open source. The mod doesn't read your prompts, replies or files. Repo, screenshots and installation Requires Claude Code 2.1.287+; compatible Code sessions in Claude Desktop work too. Launch gift: run /spin redeem FIRSTSPIN for one random pack. Redeem instructions and live availability . https://preview.redd.it/ywqjzbhcrwth1.png?width=672&format=png&auto=webp&s=20499556187d1fe4050dadb8a830510a90f2ef39 https://preview.redd.it/4gw95bhcrwth1.png?width=656&format=png&auto=webp&s=2c72770a5a45c60731c84e2c9dabe0abc039b860 submitted by /u/Other-Income-5085 [link] [comments]

更多類似作品