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

Часто задаваемые вопросы

Что такое Skill terminal-title?

terminal-title — это Claude Skill от bluzername. Skills объединяют инструкции и ресурсы, которые 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
Дизайн

Этот навык запускает суб-агента для ревью кода, который анализирует изменения в коде на соответствие требованиям перед дальнейшими действиями. Его следует использовать после завершения задач, реализации крупных функций или перед слиянием с основной веткой. Ревью помогает выявить проблемы на ранней стадии, сравнивая текущую реализацию с исходным планом.

Просмотреть навык
connect-mcp-server
Дизайн

Этот навык предоставляет разработчикам подробное руководство по подключению серверов MCP к Claude Code с использованием транспортов HTTP, stdio или SSE. Он охватывает установку, конфигурацию, аутентификацию и безопасность для интеграции внешних сервисов, таких как GitHub, Notion и пользовательские API. Используйте его при настройке интеграций MCP, конфигурации внешних инструментов или работе с Model Context Protocol от Claude.

Просмотреть навык
web-cli-teleport
Дизайн

Этот навык помогает разработчикам выбирать между веб-интерфейсом Claude Code и CLI на основе анализа задачи, а также обеспечивает бесшовное перемещение сессий между этими средами. Он оптимизирует рабочий процесс, управляя состоянием и контекстом сессии при переключении между веб-интерфейсом, CLI или мобильным приложением. Используйте его для сложных проектов, требующих различных инструментов на разных этапах работы.

Просмотреть навык