starship

为任何 shell 提供最小、超快速且可无限定制的提示符。由 Rust 编写,可在 bash、zsh、fish、PowerShell、Ion、Elvish、Tcsh、Nushell 和 Xonsh 中使用。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "starship":https://skillpi.com/zh/skills/deepskill-634bee481433989f2e8870798f5ea7c322ba32c9e1bfddff8f55458f34a3496d。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/starship-cross-shell-prompt-configurator。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

为任何 shell 提供最小、超快速且可无限定制的提示符。由 Rust 编写,可在 bash、zsh、fish、PowerShell、Ion、Elvish、Tcsh、Nushell 和 Xonsh 中使用。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
来源文档未说明。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: starship
description: >-
  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.
license: Apache-2.0
compatibility: ''
metadata:
  author: terminal-skills
  version: 1.0.0
  category: Developer Tools
  tags:
    - terminal
    - prompt
    - shell
    - customization
    - rust
    - fast
    - cross-shell

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

  1. Cross-shell — Same config works in Bash, Zsh, Fish, PowerShell; switch shells without reconfiguring
  2. Lazy detection — Modules only show when relevant (Node.js only in JS projects); clean prompt by default
  3. Git status at a glance — Shows ahead/behind, modified, staged, untracked counts inline
  4. Command duration — Set min_time = 2000 to show timing for slow commands; helps identify bottlenecks
  5. Cloud context — Show AWS profile, K8s context, Terraform workspace; never deploy to wrong environment
  6. Custom modules — Use [custom.name] for any shell command output; docker containers, VPN status, etc.
  7. Presets — Start with a preset: starship preset nerd-font-symbols -o ~/.config/starship.toml
  8. Performance — Written in Rust; renders in <10ms; never slows down your terminal

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 提供跨 Shell 终端提示符配置能力,显著提升开发者日常终端使用体验
  • 涵盖 Git 状态、语言版本、云上下文等高频开发场景,实用性强
触发精准92/100

亮点

  • description 清晰完整,准确描述 Starship 功能与适用范围
  • 触发词覆盖全面,边界清晰,无歧义
结构规范95/100

亮点

  • 文档结构清晰,包含配置、安装、最佳实践等完整章节
  • frontmatter 完整,示例详尽,便于用户理解与执行
执行可靠90/100

亮点

  • 提供完整的 TOML 配置示例和跨平台安装命令
  • 配置参数明确,覆盖主流 Shell 和操作系统,可靠性高
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 127 行
  • 云资源与可能的费用

    先预览变更,核对账号、区域、资源权限与费用;创建、部署或删除前单独确认。

    主文档提及 · 第 144 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • starship.rs

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。