Ai Coding Agents Command Runtimeのロゴ

Ai Coding Agents Command Runtime

コミュニティ
vasilyu1983
ai-coding-agents-command-runtime

コーディングエージェント向けCLIのスラッシュコマンド実行環境を設計します。コマンドレジストリ、遅延読み込み、エイリアス、フォークされたコマンド、リモート環境でも安全なディスパッチを設計するときに使います。

概要

公開者vasilyu1983
リポジトリAI-Agents-public
スキル名ai-coding-agents-command-runtime
スター
87
フォーク
19
同梱ファイル
9
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 9個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-coding-agents-command-runtime .claude/skills/ai-coding-agents-command-runtime
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

関連するリクエストがあるとすぐに、モデルが自動的にAi Coding Agents Command Runtimeを読み込みます。

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

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

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

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

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

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

スキルの指示

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

AI Coding Agents Command Runtime

Use this skill to design or review the slash-command layer of a coding-agent CLI: command registry shape, typed command kinds, lazy loading, source-aware discovery, and safe dispatch across local, remote, and bridge modes.

This skill owns command-runtime architecture for coding agents. For broader agent creation, start with ../ai-coding-agents/SKILL.md.

ASCII Flow

text
command sources
  built-ins + skills + plugins + workflows + dynamic discoveries
       |
       v
registry composition
  typed command contract + source tags + deterministic precedence
  plugin-namespaced skills: plugin-name:skill-name
       |
       v
availability + enablement
  feature gates + auth + mode filters + aliases
  /agents as first-class tabbed command surface (background agent management)
       |
       v
dispatch
  prompt command | local text | local UI | forked subagent | remote-safe
  /reload-skills (in-session reload) | SessionStart reloadSkills hook
  --safe-mode (disables CLAUDE.md, plugins, skills, hooks, MCP)
       |
       v
execution result or unavailable-command error

Quick Reference

QuestionReadOutcome
How should commands be represented and discovered?references/command-registry-and-discovery.mdRegistry model, command kinds, load order, source precedence
How should commands execute across inline, forked, and remote flows?references/command-dispatch-forking-and-remote-safety.mdDispatch rules, forked execution, remote-safe filtering, bridge gating
How does OpenAI Codex model slash-command availability?references/openai-codex-command-state-machine.mdCommand metadata, inline-arg support, active-task availability, side-conversation availability

When To Use

  • Design slash-command architecture for a coding-agent CLI or REPL
  • Add commands from built-ins, skills, plugins, workflows, or MCP-backed sources
  • Define command kinds such as prompt, local text, and local JSX or TUI commands
  • Review aliasing, immediacy, availability gates, or source-aware command formatting
  • Separate bridge-safe, remote-safe, and terminal-only commands in hybrid runtimes

Use Other Skills

NeedUse Instead
Broader coding-agent architecture../ai-coding-agents/SKILL.md
Plugin package and extension architecture../ai-coding-agents-plugins/SKILL.md
Tool registry and tool execution semantics../ai-coding-agents-tools/SKILL.md
Session lifecycle and resume../ai-coding-agents-sessions/SKILL.md
Terminal REPL interaction design../ai-coding-agents-terminal-ui/SKILL.md
Generic CLI design outside agent runtimes../software-devtools/SKILL.md

Default Workflow

  1. Classify command surfaces. Separate prompt-expansion commands from local text commands and local JSX or TUI commands.
  2. Define the registry contract. Keep one typed command interface with stable fields for names, aliases, source, availability, and enablement.
  3. Model load order explicitly. Load bundled and built-in entries, then skills, plugins, workflows, and any dynamic discoveries, with deterministic precedence.
  4. Keep loading lazy. Heavy implementations should load on invocation, not during registry bootstrap.
  5. Decide which commands are model-invocable. Prompt-style commands and skills need extra fields for descriptions, argument hints, fork behavior, and tool allowances.
  6. Separate UI-safe from bridge-safe. Remote and bridge clients should see only commands that are valid without local terminal interaction.
  7. Treat forked commands as subagent orchestration. Give them explicit allowed tools, agent selection, and prompt-cache-safe context inheritance.
  8. Make cache invalidation explicit. Memoized command discovery must have a host-owned invalidation path when skills, plugins, or policy layers change.
  9. Validate with conflict cases. Test aliases, duplicate names, missing loaders, auth-gated commands, stale caches, and mode-specific filtering.

Host Rules

  • Keep one registry type for every command source so built-ins, skills, plugins, and workflows share the same dispatch contract.
  • Make command kind explicit. Do not infer "text versus TUI versus prompt" from file layout or naming.
  • Separate static availability from dynamic enablement. Auth or provider eligibility and feature-flag or environment checks are different concerns.
  • Default to lazy loading for anything with heavy UI, IO, or optional dependencies.
  • Allow heavyweight commands to expose lightweight shims so menus and help text stay responsive before the real implementation loads.
  • Keep prompt commands declarative and source-tagged so they can be formatted differently in UI and model contexts.
  • Gate remote and bridge command execution with explicit allowlists. Do not let terminal-only commands leak into mobile or web control paths.
  • De-duplicate dynamically discovered commands by canonical file identity, not only by display name or path string.

Build Order

  1. Define the typed command contract and command kinds.
  2. Implement deterministic registry composition and precedence.
  3. Add aliases, source tags, and availability versus enablement fields.
  4. Add lazy loading, shim commands, and loader-failure handling.
  5. Add invalidation hooks for skill, plugin, and policy refresh.
  6. Add mode-specific filtering for local, remote, and bridge contexts.
  7. Add forked-command execution with explicit inheritance rules.

Core Invariants

  • Every command must have one typed dispatch path.
  • Availability and enablement are not the same field.
  • Command names and aliases must resolve deterministically.
  • Remote-safe and bridge-safe command sets must be explicit.
  • Heavy command implementations should load on invocation, not registry bootstrap.
  • Memoized command discovery must have explicit invalidation triggers.

Failure Modes

  • Duplicate names or aliases with unstable winner selection.
  • Mode filtering leaking terminal-only commands into remote clients.
  • Stale dynamic-skill caches keeping removed commands visible.
  • Loader failures collapsing the whole registry instead of one command.
  • Dynamic command caches surviving plugin disable, skill reload, or policy change.
  • Forked commands inheriting broader context or tools than intended.

Minimal Viable Version

  • One registry type for all command sources.
  • One precedence order across built-ins, skills, plugins, and workflows.
  • One lazy loader path for nontrivial commands.
  • One explicit invalidation path for memoized command lists.
  • One allowlist for remote-safe or bridge-safe execution.
  • One clear error shape for unavailable or failed-to-load commands.

What Strong Implementations Add

  • Memoized discovery with explicit invalidation boundaries.
  • Feature-gated built-in command enumeration and lightweight command shims.
  • User-facing source formatting and provenance in command menus.
  • Declarative prompt commands with fork behavior and tool allowances.
  • Separate remote-safe and bridge-safe allowlists.
  • Command-load telemetry and degraded-mode rendering for partial registry failure.

Known Traps

  • Merging built-ins, plugin commands, and repo-local commands without a deterministic precedence model and then getting unstable resolution by load order.
  • Exposing commands in one client surface that cannot execute safely in remote, mobile, or bridge-controlled paths.
  • Treating alias expansion as pure string replacement and losing metadata needed for permissions, telemetry, and fork semantics.
  • Memoizing discovery results without an explicit invalidation path for plugin reloads, auth-state changes, or feature gates.
  • Building slash-command UX around discovery only and forgetting dispatch guarantees, argument parsing, and degraded-mode behavior.

Common Anti-Patterns

  • Inferring command kind from file location or naming conventions alone.
  • Treating auth or feature-flag state as part of static registry shape.
  • Resolving aliases with first-hit-wins behavior that changes by load timing.
  • Eager-loading every command at startup.
  • Memoizing command discovery with no host-owned invalidation path.
  • Assuming commands visible in a local REPL are valid in remote or mobile control paths.

Claude Code Command Surface Extensions (2026)

/reload-skills and SessionStart reloadSkills

/reload-skills (shipped Claude Code v2.1.152, May 2026) is a first-class in-session reload command that re-discovers and re-registers all skills from their source directories without restarting the runtime, preserving transcript, loaded files, and task list — a reload, not a restart. The equivalent programmatic path is a SessionStart hook whose return value sets reloadSkills: true; this exists specifically so a hook that fetches, generates, or installs skills before the first turn can make them available in the same session instead of only on the next launch. Both paths belong in the same "invalidation and reload" command kind alongside /reload-plugins.

--safe-mode flag

--safe-mode (and the equivalent CLAUDE_CODE_SAFE_MODE env var, shipped v2.1.169) is a degraded-mode startup flag that disables CLAUDE.md loading, plugins, skills, hooks, and MCP servers — the same five customization layers, together, every time. It is the canonical remote-safe / hardened-bootstrap entry point for CI, sandboxed pipelines, or diagnostic "is it my config or the product" triage where third-party extension code must not run. It does not disable auth, the configured model or base URL, conversation history, or the project trust dialog — those are separate availability axes, not folded into this flag. Commands that depend on skills or plugins should be filtered out of the model-visible command set when --safe-mode is active; this is an availability class (feature-gated by mode flag) distinct from auth-gated or environment-gated.

Plugin-namespaced skills

Skills shipped inside plugins are namespaced by plugin name for slash-command purposes: plugin-name:skill-name (mirroring the existing commands/ namespacing), while legacy un-namespaced invocation is kept for backward compatibility. This is a distinct naming tier in the precedence model, and the namespace separator is :, not / — do not parse it as a path. Treat the exact cross-tier resolution order (built-in vs. project-local vs. plugin-namespaced) as implementation-specific: verify it against the current source or docs for your target runtime before hard-coding a precedence assumption, since this is the kind of internal ordering detail that changes without a changelog entry.

Agent View (claude agents) as a full-screen dashboard surface

claude agents opens Agent View, a full-screen dashboard for every background session on the machine — it is a CLI subcommand, not a /agents in-session slash command; do not register /agents in a slash-command table. Sessions are grouped by urgency, not by a flat state enum: Pinned, Ready for review (open PR), Needs input, Working, and Completed (finished, failed, and stopped sessions collapsed together). /bg backgrounds an active session into this view; claude --bg launches directly into the background from the shell.

Design lesson for your own registry even though /agents is not a literal command: a background-agent manager is a distinct command-surface kind — full-screen, non-modal, state-grouped by actionability rather than by lifecycle stage — and it composes with, but is architecturally separate from, the /plugin, /model, /permissions style single-purpose tabbed commands. If you enumerate command-surface kinds in a registry, add "dashboard surface" as its own kind rather than forcing it into the local-jsx command contract used for simple TUI commands; a dashboard has its own refresh, selection, and cross-session dispatch semantics that a modal command does not.

Cross-Platform Patterns (Goose)

Goose introduces a different kind of command: recipes, YAML-serialized parameterized workflows with their own extension manifest. This is a distinct point in the design space from Claude Code's frontmatter-plus-prompt slash commands.

Recipes as typed, portable commands

A Goose recipe carries version / title / description / instructions / author / extensions / activities / prompt / parameters where each parameter declares {key, input_type, requirement, description, default}. The "command" is a versioned artifact that travels between machines with its dependencies stated.

  • Pattern: for commands that encode reusable workflows, prefer a declarative artifact over a live registry entry. Parameters are typed, extension dependencies are pinned, and the artifact can be statically validated before being added to the registry.
  • Anti-pattern: encoding complex workflow commands as free-form prompt text with implicit argument conventions. That blocks validation, sharing, and portability across agents and machines.
  • Recipe: extend the typed command contract with an optional artifact_ref variant — the command is a reference to a recipe-style artifact. Discovery reads the artifact; validation happens at registration, not execution.

Declared-extension commands

A Goose recipe lists its required extensions. The command cannot run if they are absent — this is an install/activation check, not a runtime tool-call failure.

  • Pattern: commands that depend on particular tools, MCP servers, or skills should declare those dependencies in the command definition. The registry verifies dependencies at load time and surfaces unavailable commands with an actionable error (install X), not a silent "no-op."
  • Anti-pattern: commands that hard-code require_tool("github.pr_create") inside their body and discover unavailability only mid-execution.
  • Recipe: add requires_extensions: Vec<ExtensionRef> to the command type. Unavailable-dependency state is a first-class command availability class (beside auth-gated and feature-gated).

Judgment Calls

These are the calls a non-expert gets wrong even after reading the patterns above, because the patterns describe what to build, not when the trade-off actually bites.

  • Bridge-safe filtering is a trust-boundary control, not a UX nicety. A remote or mobile client that can invoke a local-jsx command is, in effect, being handed a slice of local code execution surface — Ink rendering, filesystem side effects, terminal-only state mutation — from a network hop away. Model the remote-safe/bridge-safe allowlist as a security boundary with the same rigor as a permission gate, not as "which commands happen to render okay on a small screen." If a command's safety depends on "the bridge client will just not send that," you have not actually gated it.
  • Precedence order is a security decision before it is a UX decision. When user-scope, project-scope, and plugin-scope commands can collide on the same name, decide up front whether a lower-trust source (a freshly installed plugin) is allowed to silently shadow a higher-trust one (a built-in or a project safety command). Prefer "higher trust always wins, and a same-name lower-trust registration is surfaced as a warning" over "last loaded wins" — silent shadowing of a safety-relevant command by an untrusted plugin is a worse failure than a slightly less convenient override model.
  • Forked-command tool inheritance should default to strictly narrower than the parent's, never wider, and the delta should be visible. It is tempting to let a fork "inherit everything" for simplicity, since it already inherits the full conversation. Inheriting conversation content and inheriting tool permissions are different axes: widen neither by default, and log the effective allowed-tools set for a fork the same way you would for a fresh subagent, or debugging a runaway fork becomes a transcript-diffing exercise.
  • Know when the full typed registry is overkill. A CLI with under ~10 static commands and no plugin, skill, or remote-client story does not need source tags, availability-vs-enablement separation, or a memoization-invalidation contract — a flat match statement is more honest about the system's actual complexity and easier to audit. Reach for the full contract in this skill when you have at least two of: multiple command sources that load independently, a remote or bridge client, or model-invocable (prompt-type) commands. Building the full registry contract for a single-source, terminal-only tool is the over-engineering failure mode of this skill, and it is at least as common as the under-engineering failure modes listed above.
  • isEnabled() staleness is worse than a missing command. A command that silently disappears because a feature flag flipped is confusing but recoverable — the user tries again later. A command that appears available, is dispatched, and then fails mid-execution because isEnabled() was stale at menu-render time but re-checked at dispatch time is a worse experience. If you cannot guarantee the enablement check is consistent between "shown in the menu" and "actually dispatched," fail closed at dispatch and surface why, rather than trusting the menu-time snapshot.

Navigation

References

Data

  • data/sources.json — Primary documentation and implementation references for command-runtime guidance

Related Skills

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • The registry-composition and dispatch patterns in the references are grounded in a local April 2026 claude_code source snapshot; that architecture (typed command contract, source composition order, availability vs. enablement) is stable in intent but re-check upstream code or docs before relying on exact internal ordering.
  • The /reload-skills, --safe-mode, /fork, and Agent View (claude agents) claims in this file were re-verified against current Claude Code product docs and changelog entries as of 2026-07-11 (see data/sources.json → verified_2026_07_11). Re-verify version gates before citing them, since Claude Code ships weekly and these flags/commands are young enough to still be moving.
  • Command availability, auth gates, and bridge behavior are product-specific. Preserve the architecture, but verify the exact command surfaces in the target runtime before shipping.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

同梱ファイル

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

よくある質問

AIスキル「Ai Coding Agents Command Runtime」では何ができますか?

コーディングエージェント向けCLIのスラッシュコマンド実行環境を設計します。コマンドレジストリ、遅延読み込み、エイリアス、フォークされたコマンド、リモート環境でも安全なディスパッチを設計するときに使います。

TypingMindでAi Coding Agents Command Runtimeを使うメリットは何ですか?

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

TypingMindにAi Coding Agents Command Runtimeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-coding-agents-command-runtimeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ai Coding Agents Command Runtimeを使えるAIモデルはどれですか?

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

Ai Coding Agents Command Runtimeで使えるAIモデルの数に制限はありますか?

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

AIスキル「Ai Coding Agents Command Runtime」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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