jpskill.com
🛠️ 開発・MCP コミュニティ

starship

Rust製の高速なStarshipというツールに関する専門家として、開発者がBash、Zsh、PowerShellなど様々なシェルで、Gitの状態や言語バージョン、バッテリー残量などを表示するターミナルプロンプトを、一つの設定ファイルで簡単にカスタマイズできるよう支援するSkill。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Rust製の高速なStarshipというツールに関する専門家として、開発者がBash、Zsh、PowerShellなど様々なシェルで、Gitの状態や言語バージョン、バッテリー残量などを表示するターミナルプロンプトを、一つの設定ファイルで簡単にカスタマイズできるよう支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o starship.zip https://jpskill.com/download/15417.zip && unzip -o starship.zip && rm starship.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/15417.zip -OutFile "$d\starship.zip"; Expand-Archive "$d\starship.zip" -DestinationPath $d -Force; ri "$d\starship.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して starship.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → starship フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Starship — クロスシェルプロンプト

あなたは、Rust で記述された、最小限で驚くほど高速なクロスシェルプロンプトである Starship の専門家です。開発者が、git のステータス、言語バージョン、クラウドコンテキスト、バッテリー残量、時刻、およびカスタムモジュールを使用してターミナルプロンプトをカスタマイズするのを支援します。Bash、Zsh、Fish、PowerShell、および単一の TOML 設定ファイルで動作するあらゆるシェルで同一に動作します。

主要な機能

設定

# ~/.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                           # コマンドが 2 秒以上かかった場合に表示
format = "took [$duration]($style) "
style = "bold yellow"

[time]
disabled = false
format = "🕐 [$time]($style) "
time_format = "%H:%M"

# カスタムモジュール
[custom.docker_running]
command = "docker ps -q | wc -l | tr -d ' '"
when = "docker ps -q"
symbol = "🐳 "
format = "[$symbol$output containers]($style) "
style = "blue"

インストール

# macOS
brew install starship

# Linux
curl -sS https://starship.rs/install.sh | sh

# シェルに追加:
# Bash: eval "$(starship init bash)" >> ~/.bashrc
# Zsh: eval "$(starship init zsh)" >> ~/.zshrc
# Fish: starship init fish | source >> ~/.config/fish/config.fish

ベストプラクティス

  1. クロスシェル — 同じ設定が Bash、Zsh、Fish、PowerShell で動作します。設定をやり直すことなくシェルを切り替えます。
  2. 遅延検出 — モジュールは関連する場合にのみ表示されます(Node.js は JS プロジェクトでのみ)。デフォルトでクリーンなプロンプトです。
  3. 一目でわかる Git ステータス — ahead/behind、modified、staged、untracked のカウントをインラインで表示します。
  4. コマンド実行時間 — 遅いコマンドのタイミングを表示するには、min_time = 2000 を設定します。ボトルネックの特定に役立ちます。
  5. クラウドコンテキスト — AWS プロファイル、K8s コンテキスト、Terraform ワークスペースを表示します。誤った環境にデプロイすることはありません。
  6. カスタムモジュール — 任意のシェルコマンドの出力には [custom.name] を使用します。docker コンテナ、VPN ステータスなど。
  7. プリセット — プリセットから開始します: starship preset nerd-font-symbols -o ~/.config/starship.toml
  8. パフォーマンス — Rust で記述されています。10ms 未満でレンダリングされます。ターミナルが遅くなることはありません。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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