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

implement-plan-tracker

一個總是在面板中顯示完整計畫的 Claude Code 外掛

已翻譯

關於這個 mod

一個總是在面板中顯示完整計畫的 Claude Code 外掛:

2/5 done · ~45 min left · task list
✓ 1. Read ticket (~5 min)
✓ 2. Write OpenSpec proposal (~15 min)
▶ 3. Implement context functions (~20 min)
○ 4. Add tests (~10 min)
○ 5. Commit and open PR (~5 min)
> Add a step after the current one
  • 每個步驟都帶有 ✓ 已完成、▶ 目前步驟或 ○ 待處理標記
  • 顯示 done/total 計數和剩餘時間
  • 提供文字框來新增步驟,即使 Claude 正在工作也可以新增
  • 狀態列項目:Plan 2/5 · ~45 min left ▶ Implement context functions

剩餘時間

外掛會要求 Claude 在每個步驟結束時給出估計,例如 (~10 min)。

  • 完成任何步驟前,剩餘時間是 Claude 各項估計的總和。
  • 步驟完成後,外掛會測量各步驟實際花費的時間,並按實際時間/估計時間縮放 Claude 的估計。
  • 沒有估計的步驟使用已測量時間的平均值。
  • 會扣除目前步驟已經經過的時間。

Claude 工作時新增步驟

按 ctrl+x tab 將焦點移到面板,按 Tab 進入文字框,輸入步驟後按 Enter。步驟會插入目前步驟之後。

  • Task list:外掛會重寫任務清單(或建立任務),加入新步驟。
  • OpenSpec:外掛會在目前步驟之後將一行 - [ ] 寫入 tasks.md。
  • Claude 會在下一次工具呼叫的結果中收到有關新步驟的說明,因此能看到這項編輯而不必停止。如果 Claude 正在閒置,這則說明會隨下一則訊息傳送。

計畫來源

  1. 主要對話的 Claude Code 任務清單(TodoWrite,或 TaskCreate/TaskUpdate/TaskList)。
  2. 沒有任務清單時:最新 openspec/changes/<change>/tasks.md 中的核取方塊(跳過 archive 資料夾)。該檔案變更時以及每輪結束時,面板都會重新整理。

安裝

/plugin marketplace add hoangbits/claude-implement-plan-tracker
/plugin install implement-plan-tracker@implement-plan-tracker

這個外掛使用 Claude Code 函式 hook(早期存取功能),需要支援外掛函式 hook 的 Claude Code 版本。

使用

  • 面板會在工作階段開始時開啟。終端機窄於 144 欄時,會等到你開啟它才顯示。
  • 隨時輸入 /plan 開啟面板。
  • ctrl+x tab 將焦點移到面板。Esc 或 ctrl+x x 關閉它。

開發

claude plugin validate .
claude plugin test .
claude --plugin-dir .

安裝

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

claude plugin marketplace add hoangbits/claude-implement-plan-tracker
claude plugin install implement-plan-tracker
原文 / README

claude-implement-plan-tracker

A Claude Code plugin that always shows the whole plan in a pane:

2/5 done · ~45 min left · task list
✓ 1. Read ticket (~5 min)
✓ 2. Write OpenSpec proposal (~15 min)
▶ 3. Implement context functions (~20 min)
○ 4. Add tests (~10 min)
○ 5. Commit and open PR (~5 min)
> Add a step after the current one
  • Every step, with ✓ done, ▶ current, ○ pending
  • A done/total count and the time left
  • A text box to add a step, also while Claude is working
  • A status line entry: Plan 2/5 · ~45 min left ▶ Implement context functions

Time left

The plugin asks Claude to end each step with an estimate, for example (~10 min).

  • Before any step is done, the time left is the sum of Claude's estimates.
  • After steps are done, the plugin measures how long each one took. It scales Claude's estimates by actual time / estimated time.
  • Steps without an estimate use the average measured time.
  • The current step's elapsed time is subtracted.

Add a step while Claude works

Press ctrl+x tab to focus the pane, Tab to the text box, type the step, and press Enter. The step goes after the current step.

  • Task list: the plugin rewrites the task list (or creates a task) with the new step.
  • OpenSpec: the plugin writes a - [ ] line into tasks.md after the current step.
  • Claude gets a note about the new step with the result of its next tool call, so it sees the edit without stopping. If Claude is idle, the note goes with your next message.

Plan source

  1. Claude Code's task list (TodoWrite, or TaskCreate / TaskUpdate / TaskList) for the main conversation.
  2. When there is no task list: the checkboxes in the newest openspec/changes/<change>/tasks.md (the archive folder is skipped). The pane refreshes when that file changes and at the end of each turn.

Install

/plugin marketplace add hoangbits/claude-implement-plan-tracker
/plugin install implement-plan-tracker@implement-plan-tracker

The plugin uses Claude Code function hooks (early access). It needs a Claude Code build with plugin function hooks.

Use

  • The pane opens at session start. In a terminal narrower than 144 columns, it waits until you open it.
  • Type /plan to open the pane at any time.
  • ctrl+x tab moves focus to the pane. Esc or ctrl+x x closes it.

Develop

claude plugin validate .
claude plugin test .
claude --plugin-dir .

更多類似作品