leeovery/portal/tree/main/.claude/skills/workflow-gates-rows
workflow-gates-rows
workflow-gates mod が送った回答のトランスクリプト行を、対応する sent.json レコードと会話ごとの rows.json に基づいて描画する Claude Code プラグインです。
この mod について
workflow-gates-rows は、workflow-gates mod が送信した回答のトランスクリプト行を描画する独立した Claude Code プラグインです。回答した質問も回答の横に表示します(例:"Approve this task? → yes · Commit and continue to next task")。Claude Code は、そのプラグインが送信したプロンプト行ではプラグイン自身の render hooks をスキップするため、別のプラグインになっています。各行を、mod が会話フォルダーに書き込む sent.json レコードと対応付け、対応できない行では回答だけを表示します。変わるのは描画だけです。モデルが見るのは Claude Code 本来のフレーミングのままで、ctrl+o で完全なメッセージを表示できます。描画した行は message id ごとに ~/.config/workflows/conversations/{session-id}/rows.json(または WORKFLOWS_CONFIG_DIR 配下)へ保存されます。そのため、作業ディレクトリが変わっても、過去へスクロールした会話や再開した会話は同じように描画されます。Claude Code がトランスクリプトを削除するとフォルダーも削除されます。ただし、session-end hook が終了を一度も観測しなかったセッション(インストール中のセッションやクラッシュしたセッションなど)は例外です。workflows を実行していない会話や、home directory / WORKFLOWS_CONFIG_DIR がない会話にはフォルダーを作らず、Claude Code の標準描画になります。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add leeovery/portal 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.
同名の他の作品
- workflow-gates-rowsleeovery · ★ 2
