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

workflow-gates-rows

一個 Claude Code 外掛,會把 workflow-gates mod 傳送的問題與回答繪製成 transcript 列,取代 Claude Code 對外掛提示的呈現方式,並按對話儲存這些列。

leeovery@leeovery

leeovery/tick/tree/main/.claude/skills/workflow-gates-rows

已翻譯

關於這個 mod

workflow-gates-rows 是獨立的 Claude Code 外掛,因為 Claude Code 不會在外掛自己送出的提示列上執行該外掛自己的 render hook。它重新繪製 transcript 列,顯示 workflow-gates mod 傳送的問題與回答(例如「Approve this task? → yes · Commit and continue to next task」),而不是 Claude Code 的呈現方式。它會把列與 mod 留在對話專屬資料夾中的 sent.json 記錄配對;無法配對的列只顯示回答。改變的只有繪製方式:模型仍然讀取 Claude Code 的呈現,ctrl+o 會顯示完整訊息。每條繪製的列都會儲存在 ~/.config/workflows/conversations/{session-id}/rows.json(若設定 WORKFLOWS_CONFIG_DIR,則位於該目錄下),並以訊息 id 為鍵,因此回看和恢復的對話不論工作目錄為何都能一致呈現。Claude Code 刪除對話 transcript 後會移除該資料夾,但 session-end hook 從未看見結束的對話除外。不執行 workflows 的對話,或既沒有 home directory 也沒有 WORKFLOWS_CONFIG_DIR 的程序,不會建立資料夾,列也會按照 Claude Code 原本的方式繪製。

安裝

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

claude plugin marketplace add leeovery/tick
claude plugin install workflow-gates-rows
原文 / README

workflow-gates-rows

A Claude Code mod that draws the transcript row of an answer the workflow-gates mod sent as the question and the answer — Approve this task? → yes · Commit and continue to next task — in place of Claude Code's framing of a plugin's prompt. It is a plugin of its own because Claude Code skips a plugin's own render hooks on the row of a prompt that plugin submitted. It pairs a row with the record the mod leaves in the conversation's own folder as sent.json as it sends; a row it cannot pair shows the answer alone. It changes only the drawing: the model reads Claude Code's framing, and ctrl+o shows the message in full.

Each line it draws is kept in that folder, ~/.config/workflows/conversations/{session-id}/rows.json (under WORKFLOWS_CONFIG_DIR where that is set, beside the workflows' system config), under the row's message id, so scrolling back and a resumed conversation draw the row the same way, wherever the session's working directory has moved. The folder goes once Claude Code has deleted the conversation's transcript, and the lines with it, with one exception: a conversation whose end the session-end hook never saw — the session that first installed the hook, or one that crashed — keeps its folder. The mod names the folder the way the workflows' engine does. A conversation that does not run the workflows has no folder, nor does one in a process that names neither a home directory nor WORKFLOWS_CONFIG_DIR: there the mod writes nothing and draws the row as Claude Code does.

其他同名作品

更多類似作品