ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 leeovery

workflow-gates-rows

workflow-gates mod が送った質問と回答を transcript の行として描画し、Claude Code によるプラグインプロンプトの枠付けを置き換え、会話ごとに行を保存する Claude Code プラグインです。

leeovery@leeovery

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

翻訳済み

この mod について

workflow-gates-rows は独立した Claude Code プラグインです。Claude Code は、プラグイン自身が送信したプロンプトの行では、そのプラグイン独自の render hook を実行しないためです。workflow-gates mod が送った質問と回答(例「Approve this task? → yes · Commit and continue to next task」)を表示するよう transcript の行を描き直し、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.

同名の他の作品

関連作品