ClaudeMods
☰
JA
● 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 の mod ディレクトリに clone します。

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 の low 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

関連作品