terminal-title
À propos
Cette compétence met automatiquement à jour les titres des fenêtres de terminal pour refléter la tâche en cours de Claude, aidant les développeurs à identifier plusieurs sessions d'un coup d'œil. Déclenchez-la au début de chaque session Claude Code et à chaque fois que vous passez à une nouvelle tâche de haut niveau distincte. Elle est essentielle pour gérer un travail de développement parallèle dans différents terminaux.
Installation rapide
Claude Code
Recommandénpx skills add bluzername/claude-code-terminal-title -a claude-code/plugin add https://github.com/bluzername/claude-code-terminal-titlegit clone https://github.com/bluzername/claude-code-terminal-title.git ~/.claude/skills/terminal-titleCopiez et collez cette commande dans Claude Code pour installer cette compétence
Documentation
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
- Extract task summary: identify the high-level task from the user's prompt
- Generate title: create a concise, descriptive title (max 40 characters)
- Set title: run
set_title.shwith the generated title - 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 Flowmy-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.
Dépôt GitHub
Questions fréquentes
Qu’est-ce que le Skill terminal-title ?
terminal-title est un Skill Claude créé par bluzername. Un Skill regroupe des instructions et des ressources que Claude charge à la demande pour effectuer des tâches liées à terminal-title sans consigne supplémentaire.
Comment installer terminal-title ?
Utilisez les commandes d’installation de cette page : ajoutez terminal-title à Claude Code comme plugin ou clonez son dépôt dans votre dossier skills, puis redémarrez Claude pour charger le Skill.
À quelle catégorie appartient terminal-title ?
terminal-title appartient à la catégorie Design.
terminal-title est-il gratuit ?
Oui. terminal-title est référencé sur AIMCP et son installation est gratuite.
Compétences associées
Utilisez la compétence executing-plans lorsque vous disposez d'un plan de mise en œuvre complet à exécuter par lots contrôlés avec des points de contrôle de revue. Elle charge et examine le plan de manière critique, puis exécute les tâches par petits lots (3 tâches par défaut) tout en rapportant la progression entre chaque lot pour une revue par l'architecte. Cela garantit une mise en œuvre systématique avec des points de contrôle de qualité intégrés.
Cette compétence délègue un sous-agent réviseur de code pour analyser les modifications apportées au code par rapport aux exigences avant de poursuivre. Elle doit être utilisée après avoir terminé des tâches, implémenté des fonctionnalités majeures, ou avant une fusion vers la branche principale. La revue aide à détecter précocement les problèmes en comparant l'implémentation actuelle avec le plan initial.
Cette compétence fournit un guide complet permettant aux développeurs de connecter des serveurs MCP à Claude Code via les transports HTTP, stdio ou SSE. Elle couvre l'installation, la configuration, l'authentification et la sécurité pour intégrer des services externes tels que GitHub, Notion et des API personnalisées. Utilisez-la lors de la configuration d'intégrations MCP, de la configuration d'outils externes ou du travail avec le Protocole de Contexte de Modèle de Claude.
Cette compétence aide les développeurs à choisir entre les interfaces Web et CLI de Claude Code en fonction de l'analyse des tâches, puis permet une téléportation transparente des sessions entre ces environnements. Elle optimise le flux de travail en gérant l'état et le contexte de la session lors du passage entre le web, la CLI ou le mobile. Utilisez-la pour des projets complexes nécessitant différents outils à diverses étapes.
