Ctab logo

Ctab

Community
hummer98
ctab

cmux / c11 のタブタイトル(サイドバーに出る自分の表示名)を変更する。先頭の [surface番号] は必ず維持する。トリガー - 「/ctab」「タブ名を変えて」「タブタイトルを…に」「サイドバーの表示名を変えて」「タブの名前を付けて」「今の作業に合わせてタブ名を更新して」など。説明(サブタイトル)も同時に更新できる。cmux / c11 の外では使えない。

Overview

Publisherhummer98
Repositoryusing-cmux
Skill namectab
Stars
45
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by hummer98 on GitHub. Read the source before you install it.

Installation

Install the Ctab AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hummer98/using-cmux/tree/main/skills/ctab
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hummer98/using-cmux.git /tmp/using-cmux
mkdir -p .claude/skills
cp -r /tmp/using-cmux/skills/ctab .claude/skills/ctab
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ctab in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ctab on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ctab is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ctab — タブタイトルの変更

自分の surface のタブタイトルを変える。先頭の [surface番号] を絶対に落とさないのがこのスキルの唯一にして最大の役目。番号はオペレーターが「292 に送って」のようにペインを指すときの住所なので、消すと呼べなくなる。

使い方

bash
ctab                          # 現在の番号・タイトル・説明を表示
ctab "資金計画 齟齬解消"        # → [103] 資金計画 齟齬解消
ctab "タイトル" "説明文"        # 説明(サブタイトル)も同時に更新

bin/ctab は Plugin 有効時に Claude Code の Bash ツールの PATH に入る(plugin.json への宣言は不要)。ユーザーが自分のターミナルで打つと command not found になるのは仕様で、その場合は /ctab を使う。/ctab <タイトル> と呼ばれたら、引数をそのままタイトルとして渡す。引数に説明まで含んでいる(「タイトル、説明は〜」のような自然文)ときは、タイトル部分と説明部分に切り分けて第1・第2引数に渡す。引数なしで呼ばれたら、まず現状表示を実行し、直近の作業内容から2〜4語のタイトルを自分で決めて提案してから適用する。

番号の扱い

スクリプトが次の順で解決する。生きた情報を先に見る。現タイトルを最後に置くのは、誤った番号が一度書き込まれても次回の実行で直るようにするため(先頭に置くと誤番号が自己増殖して直らない)。

  1. cmux identify --json の caller.surface_ref = surface:103 → 103
  2. $C11_SURFACE_NUM(c11 が出す。cmux 本家には無い。$CMUX_SURFACE_NUM があればそちらを先に見る)
  3. 現在のタイトルの先頭 [NNN]

どれでも解決できなければ rename せずに中止する(番号なしのタイトルを書き込まない)。現タイトルの番号が 1. と食い違っていたら警告し、rename で正しい番号に直す。

タイトルに番号を自分で付けて渡さない。[NNN] 付きで渡した場合、番号が一致していればそのまま通すが、違っていれば rename せずに中止する(他のペインの番号を名乗ったタブができると、オペレーターがどちらも呼べなくなる)。

実行後にタイトルを読み直し、番号が残っていることを確認してから成功を返す。この読み直しで失敗したときは既に書き込み済みなので、エラーメッセージがそう言う。再実行せず目視で確認する。

focused ではなく caller の surface を使う。identify の focused はオペレーターが今見ているペインで、自分とは限らない。

タイトルの付け方

  • 2〜4語、役割が先頭。サイドバーは幅が狭く、先頭の数文字しか残らない
  • 兄弟エージェントと先頭の語を変える。親 :: 子 のような連結や共通プレフィックスは付けない
  • 役割・ミッションが変わったときだけ改名する。コマンドごとに書き換えない
  • 説明(サブタイトル)は「いま何をしていて、次のゲートは何か」を現在形の平文で。チケット番号だけを置かない

注意

  • cmux / c11 の中でしか動かない。CMUX_SOCKET_PATH が無い、または surface を特定できない場合はエラーで止まる
  • CLI 実体は "${CMUX_BUNDLED_CLI_PATH:-cmux}" で選ぶ。c11 環境では c11 バイナリが呼ばれる
  • タイトル読み取りと説明の設定は CLI ビルドによって可否が違う。get-titlebar-state が無いビルドでは tree --all --json の title で代替する。set-description が無いビルドでは説明を諦めて警告を出す(rename 自体は成功させる)
  • --surface は必ず明示する。省略すると $CMUX_TAB_ID / $CMUX_SURFACE_ID が既定値として使われ、拒否されずに呼び出し元のタブへ書かれる。他のペインを名指しで書き換えるときに省略すると黙って自分のタブを潰すので、常に明示する
  • セッション開始時のフックが [NNN] Claude Code に戻すことがある。本 Plugin の SessionStart フックは、タイトルが既に [NNN] で始まっていれば触らないので、ctab で付けた名前は /clear や再開でも残る。ただし何らかの理由で番号が落ちると [NNN] Claude Code に書き換えられ、元の名前は復元されない(既定名も [NNN] で始まるので、以降フックは触らない)。ctab で付け直す
  • タイトルの表示は cmux の設定「Show Surface IDs in Tab Titles」とは別物。この番号はタイトル文字列そのものに含めて運用している

Frequently asked questions

What does the Ctab AI skill do?

cmux / c11 のタブタイトル(サイドバーに出る自分の表示名)を変更する。先頭の [surface番号] は必ず維持する。トリガー - 「/ctab」「タブ名を変えて」「タブタイトルを…に」「サイドバーの表示名を変えて」「タブの名前を付けて」「今の作業に合わせてタブ名を更新して」など。説明(サブタイトル)も同時に更新できる。cmux / c11 の外では使えない。

Why use Ctab on TypingMind?

Because you install it once and use it with any model. Ctab is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ctab in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hummer98/using-cmux/tree/main/skills/ctab. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ctab?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ctab?

As many as you like. As long as a model supports skills, you can use Ctab with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ctab AI skill free?

Yes. It is published on GitHub by hummer98 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇