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

green-lantern

# Claude Code 的 Green Lantern > *在最明亮的白昼,在最深沉的黑夜,任何邪恶都无法逃过我的注视。* 一个以插件形式打包的 [Claude Code](https://claude.com/claude-code) Green Lantern 界面。Claude 的 spinner 变成功率之环,你的使用限制变成戒指的电量,主题全面转为翡翠色。

已翻译

关于这个 mod

Green Lantern 是一个 Claude Code 插件,会把终端 UI 换成 Green Lantern Corps 主题。功能包括按模式显示动作(Charging、Focusing、Forging、Shaping、Constructing)的戒指能量 spinner,显示剩余 5 小时和 7 天限制的电池样式用量条,带誓词的新工作阶段徽章,灯笼风格的回合用词,以及覆盖 57 种颜色的翡翠主题。通过 /plugin marketplace add vogiaan1904/green-lantern-claude 和 /plugin install green-lantern@green-lantern 安装,然后使用 /theme 选择。需要带插件 mods(function hooks)的 Claude Code、支持盲文/框线绘制符号的字体,以及受支持的终端或桌面应用。采用 MIT 授权;非官方粉丝项目。

安装

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

claude plugin marketplace add vogiaan1904/green-lantern-claude
claude plugin install green-lantern
原文 / README

Green Lantern for Claude Code

In brightest day, in blackest night, no evil shall escape my sight.

A Green Lantern UI for Claude Code, packaged as a plugin. Claude's spinner becomes a power ring, your usage limits become the ring's charge, and the theme goes emerald throughout.

A fresh Claude Code session in the Green Lantern theme: the lantern emblem drawn in green blocks beside "Green Lantern Corps · Sector 2814", the oath, and the model, effort and project, with the usage bars below

What you get

A ring-power spinner. The ring takes the place of the spinner glyph. While Claude works, its power flows out of the HUD's badge, beside your project name. Each mode has its own light, and every prompt rolls one act per mode at random:

| Claude is… | Spinner word | Ring | Power | |---|---|---|---| | Sending the request | Charging | ◌ ○ ◎ ◉ ⊜ | (none yet) | | Thinking | Focusing | ◉ breathing | Motes drifting in, with glints, inward ripples or a surge | | Writing | Forging | ⊜ | A pool of light, with beams, poured arcs, ripples or glints | | Writing a tool call | Shaping | ⊜ pulsing | The pool stirring, with a sketched outline, a woven cable or a mold | | Running a tool | Constructing | ⊜ white-hot | The pool boiling, with a forged blade, a chain or lightning |

The /lantern-demo pane: every act playing at once under Focusing, Forging, Shaping and Constructing

Battery-style usage bars. The 5-hour and 7-day limits show the charge left, full when unused and draining as you work. They pale from lantern green to almost white as they run low.

A fresh-session emblem. A new session, or one just /cleared, opens with the emblem and the oath, as pictured above. It folds away into the everyday HUD on your first prompt.

Lantern turn words. Forged for 1m 12s, Charged for 9s, …

An emerald theme. 57 of Claude Code's colors in layered greens, from the spinner and borders to diffs and the mascot.

To see every act at once, run /lantern-demo. A pane opens with each act on its own row, playing on a loop; run it again to close it.

The /lantern-demo pane: every act playing at once under Focusing, Forging, Shaping and Constructing

Install

In Claude Code:

/plugin marketplace add vogiaan1904/green-lantern-claude
/plugin install green-lantern@green-lantern

Restart Claude Code, then choose the theme with /theme. A plugin can ship a theme but can't select it for you.

Optional, in ~/.claude/settings.json:

  • The oath as spinner tips:
    "spinnerTipsOverride": {
      "label": "⊜",
      "tips": [
        "In brightest day, in blackest night, no evil shall escape my sight.",
        "Let those who worship evil's might beware my power: Green Lantern's light!"
      ]
    }
    
  • A still ring, if you prefer no animation: "prefersReducedMotion": true.

Requirements

  • Claude Code with plugin mods (function hooks). Tested on 2.1.289. The mod API is early access and may change between releases; if something breaks after an upgrade, please open an issue.
  • A font with braille, box drawing and a few symbols (⊜ ◆ ▶ ✦ ϟ). Most modern monospace fonts have them.
  • The terminal or the desktop app. Elsewhere you get the still version. The animation runs only while Claude works.

Development

claude --plugin-dir .            # run it from the checkout; this also lays the types tsc needs
claude plugin validate .
npx -y -p typescript@5 tsc -p .
claude plugin test .
python3 scripts/check-theme.py   # after each Claude Code upgrade: theme keys it doesn't know are dropped silently

License

MIT. This is a fan project, not affiliated with or endorsed by DC Comics or Warner Bros. Green Lantern and related names are trademarks of DC Comics.

更多类似作品