Skip to content

aiskillstore/marketplace / skills/2389-research/terminal-title

terminal-title

Unverified

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.

FileKindSize
SKILL.mdskill md9.8 KB
scripts/set_title.ps1script1.5 KB
scripts/set_title.shscript1.4 KB
skill-report.jsonconfig71.7 KB

scripts/set_title.ps1

View on GitHub
# ABOUTME: Sets terminal window title with emoji, project name, and topic (Windows PowerShell)
# ABOUTME: Usage: .\set_title.ps1 "Project Name" "Topic"

param(
    [Parameter(Mandatory=$true)]
    [string]$ProjectName,

    [Parameter(Mandatory=$true)]
    [string]$Topic
)

# Exit silently if arguments are empty (fail-safe behavior)
if ([string]::IsNullOrWhiteSpace($ProjectName) -or [string]::IsNullOrWhiteSpace($Topic)) {
    exit 0
}

# Get emoji from environment, default to 🎉
# Sanitize to prevent ANSI escape sequence injection
$Emoji = if ($env:TERMINAL_TITLE_EMOJI) {
    $env:TERMINAL_TITLE_EMOJI -replace '[\x00-\x1F]', ''
} else {
    "🎉"
}

# Sanitize inputs (remove control characters, limit length)
$ProjectName = $ProjectName -replace '[\x00-\x1F]', ''
$Topic = $Topic -replace '[\x00-\x1F]', ''

if ($ProjectName.Length -gt 40) {
    $ProjectName = $ProjectName.Substring(0, 40)
}
if ($Topic.Length -gt 40) {
    $Topic = $Topic.Substring(0, 40)
}

# Ensure values not empty after sanitization
if ([string]::IsNullOrWhiteSpace($ProjectName) -or [string]::IsNullOrWhiteSpace($Topic)) {
    exit 0
}

# Set the terminal title using ANSI escape sequences
# Format: "emoji ProjectName - Topic   " (3 spaces compensate for truncation)
$Title = "$Emoji $ProjectName - $Topic   "

# For Windows Terminal, PowerShell, and CMD support
# Use Write-Host with -NoNewline to send escape sequence
$EscapeSequence = "`e]0;$Title`a"
Write-Host $EscapeSequence -NoNewline

exit 0
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall