Gdd Turn Closeoutのロゴ

Gdd Turn Closeout

コミュニティ
hegemonart
gdd-turn-closeout

gdd-turn-closeout Stopフック(D-11)のポータブルなミラーです。ターン終了時にevents.jsonlの記録漏れを補い、ステージの完了またはタスク途中で一時停止したことを通知します。Stopフックの機能がないClaude以外の13種類のランタイムで、オーケストレーターのスキル({{command_prefix}}next、{{command_prefix}}design、{{command_prefix}}verify)から終了時に末尾呼び出しされます。冪等で、処理を妨げず、通常は10ms以内に完了します。

Add to TypingMind

概要

公開者hegemonart
リポジトリget-design-done
スキル名gdd-turn-closeout
スター
3
フォーク
1
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    hegemonartがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Gdd Turn Closeout」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/turn-closeout
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hegemonart/get-design-done.git /tmp/get-design-done
mkdir -p .claude/skills
cp -r /tmp/get-design-done/scripts/skill-templates/turn-closeout .claude/skills/gdd-turn-closeout
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGdd Turn Closeoutを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGdd Turn Closeoutを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gdd Turn Closeoutは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

gdd-turn-closeout

Role

You are a deterministic closeout skill. You close the per-turn telemetry gap on runtimes that don't expose a Stop event (codex, gemini, and 11 others). You are a code-level mirror of hooks/gdd-turn-closeout.js (D-10): same conditions, same idempotence, same emitted event shape. The only difference: the JS hook emits the nudge as additionalContext via the harness; this skill prints the nudge directly to the user. A turn is "complete" when the verify command exits 0, the <done> criterion is observable, and the diff stays within the declared scope - any deviation is logged for the run summary.

When to invoke: orchestrator skills ({{command_prefix}}next, {{command_prefix}}design, {{command_prefix}}verify) tail-call this skill as their final step before returning. Adoption is incremental - each orchestrator can wire the tail-call independently; the skill exists as a stable, callable surface today.

Invocation Contract

  • Input: none. Operates on .design/STATE.md and .design/telemetry/events.jsonl in cwd.
  • Output: at most one printed line - the nudge - or silent return.
  • Latency budget: ≤10ms typical. Read only STATE.md and the tail of events.jsonl.
  • Idempotence: if the most recent event is already a turn_end for the current (stage, task_progress) tuple, skip append but still print nudge.
  • Non-blocking: any I/O failure → silent return. This skill never gates the user.

Algorithm

Execute in order; stop at the first early-return.

Step 1 - Read STATE.md

Read .design/STATE.md. Missing or unreadable → return silently (no print, no append).

Step 2 - Parse <position> block

Lightweight-parse only <position>…</position> (regex /<position>([\s\S]*?)<\/position>/ then per-line key: value). Extract stage, status, task_progress. Do not invoke the full STATE parser.

If status != "in_progress" → return silently. Pipeline is initialized / completed / blocked - no turn-end gap to close.

Step 3 - Tail the last event line

Read only the last 8 KiB of .design/telemetry/events.jsonl. Treat as "stale by definition":

  • File missing.
  • File empty.
  • Last line fails JSON parse.
  • Last line's timestamp is missing or unparseable.

Otherwise compute now - last_event.timestamp. Gap < 60 seconds → user is actively mid-turn → return silently (next real event closes the gap naturally). Bash one-liner for the tail: tail -n 1 .design/telemetry/events.jsonl 2>/dev/null.

Step 4 - Idempotence check, then append

If last event is already {type:"turn_end", stage:<same>, payload:{task_progress:<same>}} for the exact (stage, task_progress) from Step 2: skip append but proceed to Step 5.

Otherwise append one JSONL line to .design/telemetry/events.jsonl:

json
{"type":"turn_end","timestamp":"<ISO 8601 now>","sessionId":"<session-id-or-'turn-closeout'>","stage":"<stage>","payload":{"task_progress":"<N/M>"},"_meta":{"source":"gdd-turn-closeout-skill"}}

Create .design/telemetry/ if missing. Append is a single appendFile-equivalent call (writer assumes append-atomicity per Plan 20-06).

Step 5 - Print the nudge

Match task_progress against ^(\d+)/(\d+)$:

  • Numerator equals denominator and denominator > 0 (e.g. 5/5): Stage <stage> complete — run {{command_prefix}}next or {{command_prefix}}reflect.
  • Otherwise (mid-task, e.g. 3/7, 0/0, malformed): Stage <stage> paused mid-task — resume with {{command_prefix}}resume.

One line exactly. No commentary - the nudge is the user-facing surface.

Failure Modes

ConditionBehavior
STATE.md missing/unreadableSilent return
<position> absent or malformedSilent return
status != "in_progress"Silent return
events.jsonl missingTreat as stale → fall through to append + nudge
Last event unparseableTreat as stale → fall through
Last event < 60s oldSilent return
Append fails (permission, disk full)Print nudge anyway; do not surface I/O error
Any uncaught throwSilent return

Equivalence with the JS hook

This skill and hooks/gdd-turn-closeout.js MUST stay code-level equivalent: same four early-return branches, same 60-second staleness threshold, same idempotence guard (type=turn_end, stage, payload.task_progress), same event shape (only _meta.source differs: gdd-turn-closeout vs gdd-turn-closeout-skill so reflector telemetry can distinguish hook-driven vs skill-driven). Same nudge wording for both N/N and mid-task cases. Change one → change the other in the same plan. Plan 25-09's tests/turn-closeout-hook.test.cjs covers the JS hook.

Non-Goals

  • Not a state writer. Never edits STATE.md. The events.jsonl append is the only side effect.
  • Not a stage transition. turn_end is within-stage, not a state-machine move; downstream tools ignore it for transition gating.
  • Not a Stop-event harness. Cross-runtime Stop-event support at the harness level is out-of-scope for Phase 25 (CONTEXT.md OOS).

Integration Point

Canonical tail-call sites per D-11: {{command_prefix}}next, {{command_prefix}}design, {{command_prefix}}verify. Each orchestrator's final step before returning to the user invokes gdd-turn-closeout. Tail-call wiring intentionally not part of v1.25 (Plan 25-04 ships only the callable surface).

よくある質問

AIスキル「Gdd Turn Closeout」では何ができますか?

gdd-turn-closeout Stopフック(D-11)のポータブルなミラーです。ターン終了時にevents.jsonlの記録漏れを補い、ステージの完了またはタスク途中で一時停止したことを通知します。Stopフックの機能がないClaude以外の13種類のランタイムで、オーケストレーターのスキル({{command_prefix}}next、{{command_prefix}}design、{{command_prefix}}verify)から終了時に末尾呼び出しされます。冪等で、処理を妨げず、通常は10ms以内に完了します。

TypingMindでGdd Turn Closeoutを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gdd Turn Closeoutはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGdd Turn Closeoutをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/turn-closeoutを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Gdd Turn Closeoutを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Gdd Turn Closeoutで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGdd Turn Closeoutを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gdd Turn Closeout」は無料ですか?

はい。hegemonartがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇