Starship
Skill ComeOnOliver/skillshub/skills/TerminalSkills/skills/starship
π§ The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.From the repository description
npx -y skills add ComeOnOliver/skillshub --skill starshipAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
3.0 KB, 881 tokens by cl100k_base, as published. Nobody here has run it
Starship β Cross-Shell Prompt
You are an expert in Starship, the minimal, blazing-fast, cross-shell prompt written in Rust. You help developers customize their terminal prompt with git status, language versions, cloud context, battery level, time, and custom modules β working identically across Bash, Zsh, Fish, PowerShell, and any shell with a single TOML config file.
Core Capabilities
Configuration
# ~/.config/starship.toml
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_status\
$nodejs\
$python\
$rust\
$golang\
$docker_context\
$kubernetes\
$aws\
$terraform\
$cmd_duration\
$line_break\
$character"""
[character]
success_symbol = "[β―](bold green)"
error_symbol = "[β―](bold red)"
[directory]
truncation_length = 3
truncate_to_repo = true
style = "bold cyan"
[git_branch]
symbol = "πΏ "
style = "bold purple"
[git_status]
conflicted = "βοΈ "
ahead = "β‘${count} "
behind = "β£${count} "
diverged = "ββ‘${ahead_count}β£${behind_count} "
untracked = "?${count} "
stashed = "π¦ "
modified = "!${count} "
staged = "+${count} "
deleted = "β${count} "
[nodejs]
symbol = "β¬’ "
detect_files = ["package.json", ".nvmrc"]
style = "bold green"
[python]
symbol = "π "
detect_extensions = ["py"]
style = "bold yellow"
[rust]
symbol = "π¦ "
style = "bold red"
[docker_context]
symbol = "π³ "
only_with_files = true
[kubernetes]
disabled = false
symbol = "βΈ "
detect_files = ["k8s", "kubernetes"]
[aws]
symbol = "βοΈ "
format = '[$symbol($profile )(\($region\))]($style)'
[cmd_duration]
min_time = 2000 # Show if command took >2s
format = "took [$duration]($style) "
style = "bold yellow"
[time]
disabled = false
format = "π [$time]($style) "
time_format = "%H:%M"
# Custom module
[custom.docker_running]
command = "docker ps -q | wc -l | tr -d ' '"
when = "docker ps -q"
symbol = "π³ "
format = "[$symbol$output containers]($style) "
style = "blue"
Installation
# macOS
brew install starship
# Linux
curl -sS https://starship.rs/install.sh | sh
# Add to shell:
# Bash: eval "$(starship init bash)" >> ~/.bashrc
# Zsh: eval "$(starship init zsh)" >> ~/.zshrc
# Fish: starship init fish | source >> ~/.config/fish/config.fish
Best Practices
- Cross-shell β Same config works in Bash, Zsh, Fish, PowerShell; switch shells without reconfiguring
- Lazy detection β Modules only show when relevant (Node.js only in JS projects); clean prompt by default
- Git status at a glance β Shows ahead/behind, modified, staged, untracked counts inline
- Command duration β Set
min_time = 2000to show timing for slow commands; helps identify bottlenecks - Cloud context β Show AWS profile, K8s context, Terraform workspace; never deploy to wrong environment
- Custom modules β Use
[custom.name]for any shell command output; docker containers, VPN status, etc. - Presets β Start with a preset:
starship preset nerd-font-symbols -o ~/.config/starship.toml - Performance β Written in Rust; renders in <10ms; never slows down your terminal
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.