ClaudeMods
☰
ZH-CN
● 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 不会在插件自己提交的提示行上运行该插件自己的渲染 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.

其他同名作品

更多类似作品