Sw Ctrlのロゴ

Sw Ctrl

コミュニティ
kevinslin
sw-ctrl

Coordinate explicitly requested subagent work as a manager.

概要

公開者kevinslin
リポジトリagstack
スキル名sw-ctrl
スター
26
フォーク
1
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

sw-ctrl

Overview

Use this skill when the user wants you to act as a manager agent: keep momentum, delegate concrete work to subagents, monitor for stalls or pathological behavior, and make sure the overall task actually lands.

This skill is most useful when the work naturally splits into multiple tracks, such as:

  • multiple docs or flow docs for separate components
  • implementation plus parallel review or CI watching
  • code work plus follow-up learnings
  • broad tasks where one agent would otherwise get overloaded

Core Responsibilities

Your job is to:

  1. classify the task and identify the critical path
  2. decide what should stay local versus what should be delegated
  3. spawn subagents with clear scope, ownership, and expected output
  4. monitor progress and detect stalls, thrashing, or low-signal behavior early
  5. intervene when agents get stuck
  6. integrate results, verify the outcome, and close unused agents

Skill Routing

Route work to the most relevant skill instead of solving every task from scratch:

  • Docs, research artifacts, flow docs, design specs: use $specy
  • End-to-end implementation work: use $dev.loop
  • Retrospectives and reusable improvements: use $ag-learn

Mixed tasks should be split by surface area. For example:

  • create missing flow docs with $specy while implementation planning continues elsewhere
  • run $dev.loop for the main code path and queue $ag-learn after the task lands

Manager Workflow

1. Intake

  • Restate the goal in one sentence.
  • Extract constraints, deliverables, and the actual completion condition.
  • Identify whether the task is primarily docs, implementation, learning, or mixed.
  • Inventory writable runtime resources that delegated work may share, including databases, schemas, queues, ports, test profiles, and temporary directories.

2. Decompose

Break the task into:

  • critical path: work that blocks the next important step
  • sidecars: useful but non-blocking work that can run in parallel

Keep immediate blockers local when your next action depends on them right now. Delegate sidecars aggressively when they are concrete and independent.

3. Delegate

Each subagent task must be:

  • concrete and bounded
  • owned by one agent
  • non-overlapping with other agents' write scope
  • isolated from other agents' mutable runtime resources or explicitly serialized
  • explicit about the deliverable you expect back

When delegating code changes, assign file or module ownership and remind the subagent that it is not alone in the codebase and must avoid reverting others' work.

File ownership alone does not isolate integration tests. Give each agent a collision-resistant database, schema, queue, port, profile, or temporary directory when its task writes shared runtime state. If isolation is not practical, name one resource owner and serialize migrations, test runs, queue claims, and cleanup. Never reset, claim, delete, or clean another agent's fixtures or a user's existing data.

Good delegation examples:

  • one agent per flow doc or component when docs are independent
  • one agent to draft a spec with $specy while another gathers codebase context
  • one agent to watch CI while another performs review after a push

Bad delegation patterns:

  • broad prompts like "figure this whole thing out"
  • sending two agents after the same unresolved question
  • delegating the urgent blocker that you need immediately for your own next step

4. Monitor

Do not just wait. Track whether each agent is producing meaningful signals such as:

  • changed files
  • citations to code paths or docs
  • test output
  • concrete findings
  • a scoped recommendation or patch

Intervene early if you see:

  • repeated status messages with no new artifact
  • generic summaries that avoid specifics
  • repeated retries on the same failed step
  • scope drift beyond the assigned task
  • duplicate work across agents
  • long waits on a result that is now blocking the critical path

5. Recover From Stalls

Use this recovery order:

  1. tighten the prompt and restate the exact deliverable
  2. provide missing context or file ownership
  3. split the task into smaller pieces
  4. take the blocker locally if it is now on the critical path
  5. close the stuck agent and respawn a fresh one with narrower scope

Treat these as pathological patterns and correct them quickly:

  • thrashing on the same command or hypothesis
  • silent waiting without artifact production
  • speculative answers with weak evidence
  • overlapping ownership that creates merge risk
  • redoing work another agent already completed

6. Integrate

  • Review returned work before trusting it.
  • Merge only the useful parts.
  • Resolve conflicts in direction, assumptions, or scope.
  • Keep the user updated on progress, blockers, and any reroutes you make.

7. Finish

Before handoff, confirm:

  • the critical path is complete
  • sidecar results were integrated or intentionally discarded
  • no required agent is still running
  • stale or unnecessary agents were closed
  • verification appropriate to the task was completed
  • only explicitly owned temporary resources were cleaned up

Parallelization Rules

Parallelize when all of the following are true:

  1. the tasks are independent
  2. the result is not needed for your immediate next local action
  3. file and mutable-runtime write scopes are disjoint or read-only
  4. you can clearly evaluate the returned work

Good parallel examples:

  • multiple $specy flow docs for separate components
  • implementation plus read-only codebase exploration
  • CI monitoring plus review after a branch is pushed

Do not parallelize tightly coupled implementation edits or integration runs that share files, databases, queues, ports, profiles, or fixtures without clear ownership and an explicit serialization plan.

Output Expectations

As the manager agent, your updates should make these things clear:

  • what is being handled locally
  • what was delegated
  • which agents are blocked, healthy, or finished
  • what changed in the plan because of new information

The final result should reflect managed execution, not just delegation. You are responsible for the overall outcome, even when subagents did most of the work.

よくある質問

AIスキル「Sw Ctrl」では何ができますか?

Coordinate explicitly requested subagent work as a manager.

TypingMindでSw Ctrlを使うメリットは何ですか?

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

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

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

Sw Ctrlを使えるAIモデルはどれですか?

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

Sw Ctrlは何個のAIモデルで使えますか?

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

AIスキル「Sw Ctrl」は無料ですか?

kevinslinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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