MCP HubMCP Hub
SKILL·39FCE7

terminal-title

bluzername
更新日 22 days ago
3 閲覧
142
16
142
GitHubで表示
デザインaiautomation

について

このスキルは、Claudeの現在のタスクを反映するためにターミナルウィンドウのタイトルを自動的に更新し、開発者が複数のセッションを一目で識別できるようにします。各Claude Codeセッションの開始時、および明確に異なる新しい高レベルタスクに切り替える際にトリガーしてください。異なるターミナル間での並行開発作業を管理するために不可欠な機能です。

クイックインストール

Claude Code

推奨
メイン
npx skills add bluzername/claude-code-terminal-title -a claude-code
プラグインコマンド代替
/plugin add https://github.com/bluzername/claude-code-terminal-title
Git クローン代替
git clone https://github.com/bluzername/claude-code-terminal-title.git ~/.claude/skills/terminal-title

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Terminal Title

Overview

Sets a descriptive terminal window title based on the task Claude is working on. Essential for developers running multiple Claude Code instances who need to identify which terminal handles which task.

When to Use

Always trigger this skill:

  • At the start of every new Claude Code session (after receiving the first user prompt)
  • When switching to a substantially different task (for example from "API Integration" to "Database Migration")

Trigger on task switches like these:

  • Switching from frontend work to backend work
  • Moving from debugging to new feature development
  • Changing from one module or component to a completely different one
  • Starting work on a different part of the system (for example from auth to payments)

Do NOT trigger for:

  • Follow-up questions about the same task ("Can you add a comment to that function?")
  • Small refinements to current work ("Make it blue instead of red")
  • Debugging the same feature you just built
  • Clarifications ("What did you mean by X?")
  • Iterating on the same component or module
  • Mid-task status updates or progress checks

How It Works

  1. Extract task summary: identify the high-level task from the user's prompt
  2. Generate title: create a concise, descriptive title (max 40 characters)
  3. Set title: run set_title.sh with the generated title
  4. No confirmation needed: this happens silently in the background

Title Format Guidelines

Good titles:

  • "API Integration: Auth Flow"
  • "Fix: Login Bug"
  • "DB Migration: Users Table"
  • "Build: Dashboard UI"
  • "Refactor: Payment Module"

Displayed as (the script adds the folder prefix):

  • my-project | API Integration: Auth Flow
  • my-project | Fix: Login Bug

Bad titles:

  • Too long: "Implementing the new authentication system with OAuth2.0 support"
  • Too generic: "Working" or "Coding"
  • Too verbose: "The user wants me to help them with..."
  • Includes system information: "/Users/john/project: Build feature"
  • A full sentence: "I am working on the dashboard component"

Format pattern:

[Action/Category]: [Specific Focus]

Keep titles concise, actionable, and immediately recognizable.

Implementation

Run the script from the installed skill directory. The personal install path is shown; for a project install use .claude/skills/terminal-title/scripts/set_title.sh relative to the project root.

bash ~/.claude/skills/terminal-title/scripts/set_title.sh "Your Title Here"

Example workflow:

# User asks: "Help me debug the authentication flow in the API"
bash ~/.claude/skills/terminal-title/scripts/set_title.sh "Debug: Auth API Flow"

# User asks: "Create a React component for the user profile page"
bash ~/.claude/skills/terminal-title/scripts/set_title.sh "Build: User Profile UI"

# User asks: "Write tests for the payment processing module"
bash ~/.claude/skills/terminal-title/scripts/set_title.sh "Test: Payment Module"

Script Details

scripts/set_title.sh writes the OSC 0 escape sequence to the controlling terminal (/dev/tty), falling back to stdout when no terminal is attached. It also stores the title in ~/.claude/terminal_title so shell hooks can re-apply it after each prompt. It is compatible with macOS Terminal.app, iTerm2, Alacritty, Kitty, and most xterm-compatible emulators (including tmux and screen).

The script takes one argument (the title) and exits silently when none is given.

Automatic Directory Prefix

Every title is prefixed with the current directory name (usually the repo name):

my-project | Build: Dashboard UI
another-repo | Debug: Auth API

Optional Custom Prefix

Users can add a custom prefix through the CLAUDE_TITLE_PREFIX environment variable:

export CLAUDE_TITLE_PREFIX="Claude"

This produces titles like Claude | my-project | Build: Dashboard UI.

Note: You do not need to check these variables or change your behaviour. The script handles them.

Deterministic Alternative

hooks/set-title-hook.sh in this skill directory can be wired as a Claude Code UserPromptSubmit hook. It sets the title from the first line of every prompt without relying on this skill being invoked. See the project README for the settings snippet.

GitHub リポジトリ

bluzername/claude-code-terminal-title
パス: skill/terminal-title
0
FAQ

よくある質問

terminal-title Skillとは何ですか?

terminal-title はbluzername が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで terminal-title に関連するタスクを実行できるようにします。

terminal-title をインストールするには?

このページのインストールコマンドを使用してください。terminal-title をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。

terminal-title はどのカテゴリに属しますか?

terminal-title は デザイン カテゴリに属します。

terminal-title は無料で利用できますか?

はい。terminal-title は AIMCP に掲載されており、無料でインストールできます。

関連スキル

executing-plans
デザイン

executing-plansスキルは、完全な実装計画があり、それを管理されたバッチでレビューチェックポイントを設けながら実行する場合に使用します。このスキルは計画を読み込んで批判的にレビューした後、小さなバッチ(デフォルトは3タスク)でタスクを実行し、各バッチの間に進捗状況を報告してアーキテクトのレビューを受けます。これにより、品質管理チェックポイントが組み込まれた体系的な実装が保証されます。

スキルを見る
requesting-code-review
デザイン

このスキルは、コードレビュアーサブエージェントを起動し、処理を進める前に要件に対してコード変更を分析します。タスク完了後、主要な機能の実装後、またはmainブランチへのマージ前などに使用すべきです。このレビューは、現在の実装と元の計画を比較することで、問題を早期に発見するのに役立ちます。

スキルを見る
connect-mcp-server
デザイン

このスキルは、開発者がHTTP、stdio、またはSSEトランスポートを使用してMCPサーバーをClaude Codeに接続するための包括的なガイドを提供します。GitHub、Notion、カスタムAPIなどの外部サービスを統合するためのインストール、設定、認証、セキュリティについて解説しています。MCP統合のセットアップ、外部ツールの設定、またはClaudeのModel Context Protocolを扱う際にご利用ください。

スキルを見る
web-cli-teleport
デザイン

このスキルは、タスク分析に基づいて開発者がClaude Code WebとCLIインターフェースの選択を支援し、これらの環境間でのシームレスなセッションテレポーテーションを可能にします。Web、CLI、モバイル環境を切り替える際のセッション状態とコンテキストを管理することで、ワークフローを最適化します。様々な段階で異なるツールを必要とする複雑なプロジェクトにご活用ください。

スキルを見る