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

context-level

一个 Claude Code 外挂,通过 hook tool 暴露 context window 还剩多少,让 Claude 能监视自己的 context 使用量。

tobihagemann@tobihagemann

tobihagemann/turbo/tree/main/claude/skills/context-level

已翻译

关于这个 mod

作为 Turbo skills collection 的一部分打包,这个 Claude Code mod 通过注册的 hook 增加 context-level tool。hook 文件(hooks/register.ts)注册一个 tool,并拦截对 mcp__context-level__read 的调用,返回 context window 剩余多少。它带有经过验证的 .claude-plugin/plugin.json manifest 和完整的设置文档,因此用户可以安装它,让 Claude 在工作阶段检查自己剩余的 context 预算。

安装

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

claude plugin marketplace add tobihagemann/turbo
claude plugin install context-level
原文 / README
<p align="center"> <img src="assets/logo/thunderbolt-icon-256.png" width="128" height="128" alt="Turbo lightning hammer"> </p> <h1 align="center">Turbo</h1> <p align="center"> Reusable workflows for planning, building, reviewing, and shipping with AI coding agents. </p>

Turbo gives Claude Code and Codex a repeatable development process, packaged as Markdown skills. Use a skill for a single task, or combine them into a workflow that takes a change from idea to pull request.

Claude Code: production-tested · Codex: experimental, with skill parity but less real-world use

Get started · What you can do · Browse the guides

From Idea to Pull Request

Plan  →  Implement  →  Finalize

Start with a change you want to make:

/turboplan add password reset to the app

Turbo assesses the scope and helps you settle the approach. Clear-scope changes proceed to implementation once you agree on the shape; when the approach needs writing down, you get a reviewed plan to run with /implement-plan in a fresh session. /finalize then checks, reviews, and polishes the change and takes you through shipping. You can also run /finalize on work you built yourself.

Examples use Claude Code's /skill-name syntax. In Codex, use $skill-name:

$turboplan add password reset to the app

Get Started

What you'll need:

  • A Claude Code or Codex plan with headroom. Pipeline workflows are context-heavy, so higher-tier plans work best.
  • Codex (for the Claude Code edition) or Claude Code (for the Codex edition), which /finalize uses for peer review. You can swap in your own review setup.
  • The GitHub CLI.

See requirements for what setup changes on your machine and what your project should have.

Then paste this into Claude Code or Codex:

Walk me through the Turbo setup. Read SETUP.md from the tobihagemann/turbo repo and follow the guide for your edition.

The agent selects your edition, installs the skills, and walks you through tools and configuration interactively.

Prefer to read the steps first? Open the Claude Code setup or Codex setup guide.

What You Can Do

You can start with any of these skills; you don't need to learn the whole pipeline first.

| I want to… | Claude Code | Codex | |---|---|---| | Plan and build a change | /turboplan | $turboplan | | Understand a failing test or bug | /investigate | $investigate | | Review a pull request | /review-pr | $review-pr | | Finish and ship a change | /finalize | $finalize |

Skills also work naturally in a request: tests are failing in the auth module, can you please /investigate?

See more prompt examples for dependency updates, UI testing, PR feedback, and other everyday tasks.

Why Turbo

  • A process you can repeat. Planning, investigation, review, and shipping workflows are written down as skills, so you can invoke them without rebuilding the prompt each time. They use your project's existing tests, linters, formatters, and hooks.
  • Pieces you can replace. Use individual skills or compose them into larger workflows. Swap review tools, commit conventions, or code-style guidance for your own. The skills are plain Markdown using the harness's native tools.
  • Lessons carried forward. /self-improve captures corrections and project conventions in instructions, memory, and skills, so future sessions can build on what you've learned.

You stay involved in choosing the approach and reviewing the result. Turbo works best alongside the checks and engineering judgment you already bring to a project.

Go Deeper

  • Workflow guide — planning and finalization diagrams, self-improvement, and browser testing.
  • Prompt examples — requests you can copy into your next session.
  • Requirements — accounts, what setup changes, and the project infrastructure Turbo builds on.
  • Customization — swap skills, understand harness instructions, and update your installation.
  • All skills: Claude Code index · Codex index — descriptions and dependencies for every skill.

If Turbo helps you ship, consider sponsoring my open source work.

Distributed under the MIT License.

更多类似作品