aiskillstore/terminal-title
This skill should be used to update terminal window title with context. Triggers automatically at session start via hook. Also triggers on topic changes during conversation (debugging to docs, frontend to backend). Updates title with emoji + project + current topic.
This is a copy. The original lives at comeonoliver/terminal-title.
npx skills add https://github.com/aiskillstore/marketplace --skill terminal-title
<!-- ABOUTME: Terminal title skill that automatically updates terminal window title -->
<!-- ABOUTME: Uses emoji from environment + Claude's project detection + current topic -->
This skill updates the terminal window title to show current context:
$TERMINAL_TITLE_EMOJI environment variable)Format: 💼 ProjectName - Topic
MANDATORY invocations:
Topic change patterns (Claude must detect these):
Claude's responsibility: Actively monitor conversation flow and invoke this skill whenever topic materially shifts. Do not wait for explicit permission.
Example titles:
💼 Skills Repository - Terminal Title🎉 dotfiles - zsh config💼 OneOnOne - Firebase ConfigRequired Permission:
This skill runs scripts to update the terminal title. To prevent Claude from prompting for permission every time, add this to your ~/.claude/settings.json:
For Unix/Linux/macOS:
{
"permissions": {
"allow": [
"Bash(bash *skills/scripts/set_title.sh:*)"
]
}
}
For Windows:
{
"permissions": {
"allow": [
"Bash(pwsh *skills/scripts/set_title.ps1:*)"
]
}
}
Why this permission is needed: The skill executes a script that sends terminal escape sequences silently in the background to update your window title without interrupting your workflow.
Cross-platform support: The plugin includes both bash scripts (.sh) for Unix-like systems and PowerShell scripts (.ps1) for Windows. The SessionStart hook automatically detects your OS and uses the appropriate script.
Primary method: Claude's intelligence
Claude analyzes the current context to determine the project name:
Key principle: Use intelligent understanding, not just mechanical file parsing.
Detection examples:
/Users/dylanr/work/2389/skills → "Skills Repository" (not just "skills")/Users/dylanr/work/2389/oneonone/hosting → "OneOnOne"/Users/dylanr/dotfiles → "dotfiles"/Users/dylanr/projects/my-app → "My App" (humanized from directory)Supporting evidence Claude checks:
package.json name field (Node.js projects)Fallback: If Claude cannot determine context, use current directory name.
Always include project name - Claude can always determine something meaningful.
Standard format:
$emoji ProjectName - Topic
Component details:
1. Emoji (from environment):
$TERMINAL_TITLE_EMOJI environment variable2. Project Name (from Claude's detection):
3. Topic (from invocation context):
Script usage:
bash scripts/set_title.sh "ProjectName" "Topic"
Note: The script automatically reads emoji from environment and handles terminal escape sequences.
Edge cases:
$TERMINAL_TITLE_EMOJI: Use 🎉 as defaultWhen Claude detects a topic change (or session start), immediately invoke this workflow:
Follow these steps to update the terminal title:
Step 1: Determine project name
Use Claude's understanding of the current codebase and context to determine the project name. Check:
Generate a human-friendly name (e.g., "Skills Repository" not "skills").
Step 2: Get topic from context
The topic should come from:
Step 3: Detect operating system
Before executing the script, detect the operating system:
# Check if running on Windows (check for common Windows indicators)
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" || "$OSTYPE" == "cygwin" ]]; then
OS="windows"
else
OS="unix"
fi
Step 4: Execute title update script (cross-platform)
Find the skill base directory (available in the skill loading message) and execute the appropriate script based on OS:
For Unix/Linux/macOS:
bash <skill-base-dir>/scripts/set_title.sh "Project Name" "Topic"
For Windows:
pwsh -NoProfile -ExecutionPolicy Bypass -File <skill-base-dir>/scripts/set_title.ps1 "Project Name" "Topic"
The scripts handle:
$TERMINAL_TITLE_EMOJI (Unix) or $env:TERMINAL_TITLE_EMOJI (Windows)Execute this command silently using the Bash tool (pre-approved via permissions).
Step 5: Done
Title updated silently. Continue responding to user without mentioning the title update unless they ask about it.
Context: User starts Claude Code in /Users/dylanr/work/2389/skills
Environment: TERMINAL_TITLE_EMOJI=💼
Execution:
bash /Users/dylanr/work/2389/claude-plugins/terminal-title/skills/scripts/set_title.sh "Skills Repository" "Claude Code"Result: Terminal title shows 💼 Skills Repository - Claude Code (script reads emoji from environment)
Context: Conversation shifts from "terminal title implementation" to "rare VWs"
Claude's detection: User asked "can you tell me about rare vws?" - this is a clear topic shift
Environment: TERMINAL_TITLE_EMOJI=🎉
Claude's action:
bash <skill-base-dir>/scripts/set_title.sh "Home" "Rare VWs"Result: Terminal title silently updates to 🎉 Home - Rare VWs (script reads emoji from environment)
Context: User working in ~/projects/dotfiles directory
Environment: TERMINAL_TITLE_EMOJI not set
Execution:
bash <skill-base-dir>/scripts/set_title.sh "dotfiles" "zsh config"Result: Terminal title shows 🎉 dotfiles - zsh config (script uses 🎉 as fallback when TERMINAL_TITLE_EMOJI not set)
Context: User working in /Users/dylanr/work/2389/oneonone/hosting
Environment: TERMINAL_TITLE_EMOJI=💼
Execution:
bash <skill-base-dir>/scripts/set_title.sh "OneOnOne" "Firebase Config"Result: Terminal title shows 💼 OneOnOne - Firebase Config (script reads emoji from environment)
Context: Windows user starts Claude Code in C:\Users\Nat\projects\my-app
Environment: $env:TERMINAL_TITLE_EMOJI=💻 (Windows environment variable)
OS Detection: Claude detects Windows via $OSTYPE check
Execution:
pwsh -NoProfile -ExecutionPolicy Bypass -File <skill-base-dir>/scripts/set_title.ps1 "My App" "Claude Code"Result: Terminal title shows 💻 My App - Claude Code (PowerShell script reads emoji from $env:TERMINAL_TITLE_EMOJI)
Note: The SessionStart hook automatically detected Windows and invoked the PowerShell version of the script instead of the bash version.
Take aiskillstore/terminal-title from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.