aiskillstore/marketplace / skills/2389-research/terminal-title
terminal-title
UnverifiedThis 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.8 KB |
| scripts/set_title.ps1 | script | 1.5 KB |
| scripts/set_title.sh | script | 1.4 KB |
| skill-report.json | config | 71.7 KB |
scripts/set_title.sh
View on GitHub#!/bin/bash
# ABOUTME: Sets terminal window title with emoji, project name, and topic
# ABOUTME: Usage: ./set_title.sh "Project Name" "Topic"
# Exit silently if arguments missing (fail-safe behavior)
if [ -z "$1" ] || [ -z "$2" ]; then
exit 0
fi
PROJECT="$1"
TOPIC="$2"
# Get emoji from environment, default to 🎉
# Sanitize to prevent ANSI escape sequence injection
EMOJI=$(echo "${TERMINAL_TITLE_EMOJI:-🎉}" | tr -d '\000-\037')
# Validate and sanitize inputs (remove control characters, limit length)
PROJECT=$(echo "$PROJECT" | tr -d '\000-\037' | head -c 40)
TOPIC=$(echo "$TOPIC" | tr -d '\000-\037' | head -c 40)
# Ensure values not empty after sanitization
if [ -z "$PROJECT" ] || [ -z "$TOPIC" ]; then
exit 0
fi
# Set the terminal title using ANSI escape sequences
# Format: "emoji ProjectName - Topic " (3 spaces compensate for Bash tool truncation)
#
# Dual-path approach:
# 1. Hook context: Write to /dev/tty (stdout is captured by hook logging)
# 2. Skill context: Write to stdout (Bash tool passes it through to terminal)
#
# Try /dev/tty first (suppress all errors), fall back to stdout if unavailable
{
if printf '\033]0;%s %s - %s \007' "$EMOJI" "$PROJECT" "$TOPIC" > /dev/tty 2>&1; then
exit 0 # Success via /dev/tty (hook context)
fi
} 2>/dev/null
# If we reach here, /dev/tty failed - use stdout (Bash tool context)
printf '\033]0;%s %s - %s \007' "$EMOJI" "$PROJECT" "$TOPIC"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |