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

next-prompts

一個讓你持續推進的 Claude Code mod:每回合後建議接下來最值得傳送的 3 個提示,顯示相對於 Claude 自己時間估算的即時計時器,並在提示列上方的面板中追蹤目標進度。

Optinuss@Optinuss

1/

This is my favorite Claude Code mod that I built. It gives three suggested new prompts to further the project development based on recent Terminal history. This has helped me think of new action items. #Mods #ClaudeCode #Claude

原貼文圖片1

2/

Open sourced. Added a progress bar with estimate time to complete the current prompt. https://github.com/BEXAI/Mod-3-Next-Prompts

原貼文圖片1
已翻譯

關於這個 mod

next-prompts

這是一個讓你持續推進的 Claude Code mod:每回合後建議接下來最值得傳送的 3 個提示,顯示相對於 Claude 自己時間估算的即時計時器,並在提示列上方的面板中追蹤目標任務進度。

功能

下一則提示建議

  • 每回合結束後,Haiku 會讀取最近 3 次交流以及專案狀態(目標、未完成任務、git status),依影響排序,提出 3 個具體的下一步提示。
  • 如果任務尚未完成,建議 #1 會繼續下一個任務。
  • 點選建議,或輸入 1、2 或 3 後按 Enter 傳送。

估算門控的計時器

  • 註冊 estimate MCP 工具(mcp__next-prompts__estimate),要求 Claude 在進行任何變更前,用時間估算和簡短計畫呼叫它。
  • 收到估算前,Edit、Write、NotebookEdit 和 Bash 呼叫都會被拒絕(subagent 不受此限制)。
  • 全寬進度條會顯示相對估算值的已用時間、預計完成時間和計畫;請求超時後會變成黃色。

目標和任務面板

  • 接收 TodoWrite / TaskCreate / TaskUpdate 呼叫,並顯示目標、進度條、已用時間,以及每項任務花了多久或已經執行多久。
  • 預設顯示 5 項任務,可用按鈕展開其餘任務。每項任務完成並傳送新提示後,清單會重設。

完成提醒

  • 執行 2 分鐘或更久的請求結束時,會顯示 toast、播放聲音(Glass.aiff),並傳送 macOS 通知。

安裝

將儲存庫複製到 Claude Code 外掛目錄:

git clone https://github.com/BEXAI/Mod-3-Next-Prompts.git ~/.claude/mods/next-prompts

然後將它作為 Claude Code 外掛啟用並重新啟動工作階段。Claude Code 會自行在 .claude-plugin/types/ 下產生型別定義。

目錄結構

.claude-plugin/plugin.json   plugin manifest
hooks/hooks.json             hook module list
hooks/register.tsx           all hooks: suggestions, estimate tool, timer, tasks, UI
hooks/register.test.ts       unit tests for the pure helpers
types/index.d.ts             plugin state types

設定

hooks/register.tsx 頂端的設定是常數:

| Constant | Default | Meaning | |---|---|---| | LOOKBACK | 3 | 傳送給 Haiku 的過往提示數量 | | MAX_CHARS | 1500 | 此上下文中每則訊息的字元上限 | | SUGGEST_TIMEOUT_MS | 15000 | 產生建議的時間限制 | | LONG_TURN_MS | 120000 | 請求執行多久後觸發完成提醒 | | SHOWN_TASKS | 5 | 展開按鈕前顯示的任務數 | | DONE_SOUND | Glass.aiff | 完成提醒使用的聲音 |

備註

  • 聲音和通知使用 afplay 與 osascript,因此只在 macOS 上運作。其餘功能可在任何平台使用。
  • 建議由 Haiku 以低 effort 執行,傳送新提示後會取消。

安裝

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

claude plugin marketplace add BEXAI/Mod-3-Next-Prompts
claude plugin install next-prompts
原文 / README

next-prompts

A Claude Code mod that keeps you moving: after every turn it suggests the 3 best prompts to send next, shows a live timer against Claude's own time estimate, and tracks your goal's task progress, all in a panel above the prompt.

Features

Next-prompt suggestions

  • After each turn, Haiku reads the last 3 exchanges plus the project state (goal, open tasks, git status) and proposes 3 concrete next prompts, ordered by impact.
  • If tasks are unfinished, suggestion #1 continues the next one.
  • Click a suggestion, or type 1, 2 or 3 and press Enter to send it.

Estimate-gated timer

  • Registers an estimate MCP tool (mcp__next-prompts__estimate) and tells Claude to call it with a time estimate and a short plan before making any change.
  • Edit, Write, NotebookEdit and Bash calls are refused until that estimate is in (subagents are exempt).
  • A full-width progress bar shows elapsed time against the estimate, the projected finish time and the plan, and turns yellow when the request runs over.

Goal and task panel

  • Picks up TodoWrite / TaskCreate / TaskUpdate calls and shows the goal, a progress bar, elapsed time, and each task with how long it took or how long it has been running.
  • Shows 5 tasks by default, with a button to expand the rest. The list resets after every task is done and you send a new prompt.

Done alert

  • Requests that run 2 minutes or longer end with a toast, a sound (Glass.aiff) and a macOS notification.

Install

Clone into your Claude Code mods directory:

git clone https://github.com/BEXAI/Mod-3-Next-Prompts.git ~/.claude/mods/next-prompts

Then enable it as a plugin in Claude Code and restart the session. Claude Code generates the type definitions under .claude-plugin/types/ itself.

Layout

.claude-plugin/plugin.json   plugin manifest
hooks/hooks.json             hook module list
hooks/register.tsx           all hooks: suggestions, estimate tool, timer, tasks, UI
hooks/register.test.ts       unit tests for the pure helpers
types/index.d.ts             plugin state types

Configuration

Settings are constants at the top of hooks/register.tsx:

| Constant | Default | Meaning | |---|---|---| | LOOKBACK | 3 | Number of past prompts sent to Haiku | | MAX_CHARS | 1500 | Character cap per message in that context | | SUGGEST_TIMEOUT_MS | 15000 | Time limit for generating suggestions | | LONG_TURN_MS | 120000 | How long a request runs before the done alert fires | | SHOWN_TASKS | 5 | Tasks shown before the expand button | | DONE_SOUND | Glass.aiff | Sound for the done alert |

Notes

  • The sound and notification use afplay and osascript, so they work only on macOS. Everything else works on any platform.
  • Suggestions run on Haiku with low effort and are cancelled once you send a new prompt.

Showcase: This is my favorite Claude Code mod that I built.

It gives three suggested new prompts to further the project development based on recent Terminal history.

This has helped me think of new action items. #Mods #ClaudeCode #Claude

Open sourced. Added a progress bar with estimate time to complete the current prompt. https://github.com/BEXAI/Mod-3-Next-Prompts 依終端歷史建議三個下一步 prompt

更多類似作品