Step Gateのロゴ

Step Gate

コミュニティ
daixudk96-max
step-gate

把任意现有 skill 改造成受 step-gate 步骤门控的治理版(meta-skill:改造别的 skill 的 skill)

概要

公開者daixudk96-max
リポジトリagent-skill-gate
スキル名step-gate
スター
565
フォーク
15
同梱ファイル
15
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 15個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/daixudk96-max/agent-skill-gate.git /tmp/agent-skill-gate
mkdir -p .claude/skills
cp -r /tmp/agent-skill-gate/skills/step-gate .claude/skills/step-gate
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

step-gate

用途:当用户希望"保证 Agent 不能跳步骤"时,用本 skill 把任意未治理 skill 改造为带 step-gate 运行时门控的版本。门控由程序(step-gate 二进制)而非模型保证。

工作流程(必须按序执行)

  1. 定位目标 skill 目录(含 SKILL.md 的目录,如 ~/.claude/skills/foo)。
  2. 阅读 SKILL.md,确定步骤边界:优先人工确认,或取二级标题为候选。
  3. 转换:运行本目录 tools/skill-converter.py <目标目录> <skill名> [--steps "id1|标题1|描述1,id2|标题2|描述2"] 产物为母包(flow.yaml + guides/ + scripts/run.cmd|.sh + bin/ 全平台二进制)。
  4. 编辑母包 flow.yaml:为每步填 validators 与 guides/.md 必达内容(不能含 TODO: REQUIRED-GUIDE 占位,否则 skill-pack 拒绝)。validator 四型:
    • type: file + path —— 产物存在(path 相对 Agent 调用启动器时的工作目录,下同)
    • type: non-empty + path —— 产物存在且非空白
    • type: contains + path + pattern —— 产物文本含指定子串(字段校验)
    • type: heading + path + pattern [+ level] —— 产物含指定级别 Markdown 井号标题且标题文本含 pattern;level 缺省任意 1..=6 条件流程用 branches(when: 条件 + then: 步骤,else 省略 when): 条件 type 同 file/non-empty/contains,由程序判定,未走备选自动标 skipped。
  5. 改写母包 SKILL.md:在开头注入下节完整前导。
  6. 验收(从工作目录调用 scripts/run.cmd|.sh 绝对路径,必须全部通过):
    • status -> 显示当前步与每步 delivery 状态(required/pending/delivered)
    • next -> 两阶段交付当前步契约并提交回执(必须先 next 才能 complete)
    • complete -> 无产物/字段缺失/无回执/契约被改时必须失败退出(exit 1)
    • 修复产物后 complete -> 恢复推进
    • status --json -> 验证 admission_status/admission_valid 与 proofs
  7. 分发:运行 tools/skill-pack.py <名> --zip(严格校验,失败 exit 2 不产出),得到 6 份 agent 分发包。

硬约束(不可违背)

  • 状态文件 .step-gate/state.json 与链文件 .step-gate/chain.json 只由 step-gate 程序读写,禁止手改。
  • Agent 只允许通过 status/next/complete 与 chain status 交互;step-gate 未输出 next 前, Agent 不得开始下一步工作;complete 未通过(exit 1)时不得进入下一步。
  • 失败处理只有两条路:修复产物后再次 complete(自动 recover 重试),或 operator 介入。
  • validators 允许 type: file / non-empty / contains / heading;pattern 必填于 contains/heading。
  • 步骤顺序以 flow.yaml 的 steps 数组为准,与 SKILL.md 叙述顺序必须一致。
  • validators 与 branches 条件的 path 均相对 Agent 调用启动器时的工作目录(启动器会把调用时的 当前目录记为 --workdir 传给 step-gate),不是 skill 安装目录;因此必须从项目工作目录用绝对路径 调用启动器,不要 cd 进 skill 目录。若 Agent 踩错目录,complete/next 会以 cannot read 报出它找的 路径——回到原工作目录重跑同一命令即可,状态文件不受影响,无需任何重置。
  • reset / fail / init / chain init / chain advance 是 operator-only(admin token),不得尝试。

必须注入目标 SKILL.md 的前导(逐字复制)

Step-Gate Workflow (MANDATORY)

This skill is governed by a step gate. You MUST follow it exactly:

  1. MANDATORY: BEFORE doing anything else, run the status command (item 1), then mirror BOTH views into your environment's task/todo list tool (todo, task list, plan board, checklist, to-do, todos, task tracker, kanban, issue list, agenda, work items, plan, tasks — whatever your environment provides): (a) the chain progress shown under "chain:" (one entry per member, e.g. "1/2 skill-creator", "2/2 ") and (b) every flow step of THIS skill as checklist items. Update the mirror after every complete. The gate is the source of truth; the checklist is only a mirror. If no such tool exists, skip this step.
  2. Run the launcher's status command once — its output already contains your chain position ("chain: ... cursor i/n", with any chain warning) AND this skill's steps. That single call is all you need; standalone chain inspection is diagnostics only.
  3. Work ONLY on the step printed by next, and DO NOT jump ahead. Each step MUST be delivered first: run next — it pushes the current step's full guide (the step's MUST-DELIVER content) into your context and records a delivery receipt. A step you have not run next on cannot be completed.
  4. After producing a step's real artifacts, run complete. It only advances when (a) next delivered the current step's contract (receipt committed) AND (b) the machine validators pass. If rejected, fix what the message names and retry through the gate; if it says "run next" or "contract changed", re-run next first. Never edit .step-gate/state.json or .step-gate/chain.json; never fabricate artifacts.
  5. If status warns that a previous chain skill is unfinished ("链上一步未完成"), you may NOT work on this skill yet: say so and stop, or ask the user. Only the operator may advance or rebuild the chain.
  6. reset / fail / init / chain init / chain advance are operator-only (admin token required). Never attempt them, even by calling the gate binary directly.
  7. Create each step's artifacts where flow.yaml validators expect them (paths are relative to your current working directory).
  8. If a gate command rejects you with cannot read ... / ... does not exist / does not contain ... while the artifact you produced is real and in place, you almost certainly invoked the launcher from the wrong working directory — the error path shows exactly where the gate looked. Go back to the project working directory you started in and re-run the same command there. This mistake never corrupts state (.step-gate/) and never requires a reset.

Invocation: call the launcher from your current working directory using its ABSOLUTE path — do NOT cd into the skill directory. The skill loader reports this skill's base directory; use '\scripts\run.cmd ' on Windows (PowerShell: & '\scripts\run.cmd' ) or '/scripts/run.sh ' on Unix/Git Bash. The launcher records your current directory as the artifact root (--workdir), so step artifacts are validated relative to where you invoked it — NOT inside the skill package.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Step Gate」では何ができますか?

把任意现有 skill 改造成受 step-gate 步骤门控的治理版(meta-skill:改造别的 skill 的 skill)

TypingMindでStep Gateを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/daixudk96-max/agent-skill-gate/tree/main/skills/step-gateを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Step Gateを使えるAIモデルはどれですか?

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

Step Gateは何個のAIモデルで使えますか?

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

AIスキル「Step Gate」は無料ですか?

はい。daixudk96-maxがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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