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

atuin

Atuinは、Rust製のシェル履歴管理ツールで、あいまい検索や複数端末での同期、ディレクトリやホストごとのフィルタリングを可能にし、コマンド履歴を分析して生産性を向上させるSkill。

📜 元の英語説明(参考)

You are an expert in Atuin, the Rust-based shell history tool that replaces your shell's built-in history with a searchable, syncable, context-aware database. You help developers set up fuzzy search across shell history, sync history across machines, filter by directory/host/session, and analyze command usage — turning shell history from a flat text file into a powerful productivity tool.

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

一言でいうと

Atuinは、Rust製のシェル履歴管理ツールで、あいまい検索や複数端末での同期、ディレクトリやホストごとのフィルタリングを可能にし、コマンド履歴を分析して生産性を向上させるSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して atuin.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → atuin フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Atuin — 魔法のようなシェル履歴

あなたは Atuin のエキスパートです。Atuin は Rust で記述されたシェル履歴ツールで、シェルの組み込み履歴を、検索可能で、同期可能で、コンテキストを認識するデータベースに置き換えます。開発者がシェル履歴全体でファジー検索を設定したり、マシン間で履歴を同期したり、ディレクトリ/ホスト/セッションでフィルタリングしたり、コマンドの使用状況を分析したりするのを支援し、シェル履歴をフラットなテキストファイルから強力な生産性向上ツールに変えます。

主要な機能

セットアップと使用方法

# インストール
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

# 既存の履歴のインポート
atuin import auto                         # bash/zsh/fish を検出

# インタラクティブ検索 (Ctrl+R の代替)
# Ctrl+R を押す → 全履歴に対してファジー検索
# フィルタモード:
#   - Global: 全マシンにおける全履歴
#   - Host: 現在のマシンのみ
#   - Session: 現在のターミナルセッションのみ
#   - Directory: 現在のディレクトリで実行されたコマンドのみ

# マシン間での同期
atuin register -u username -e email -p password
atuin sync                                # E2E 暗号化同期
atuin login -u username -p password       # 別のマシンで
atuin sync                                # 全マシンの履歴!

# 検索
atuin search "docker"                     # フルテキスト検索
atuin search --after "2026-03-01" "deploy"
atuin search --cwd /project "git"         # このディレクトリのみ
atuin search --exit 0 "make"              # 成功したコマンドのみ

# 統計
atuin stats                               # 最も使用されたコマンド、頻度
atuin stats --count 20                    # 上位20個のコマンド

設定

# ~/.config/atuin/config.toml
[settings]
dialect = "us"
auto_sync = true
update_check = true
sync_frequency = "5m"
search_mode = "fuzzy"                     # fuzzy | prefix | fulltext | skim
filter_mode = "global"                    # global | host | session | directory
style = "compact"                         # compact | full
inline_height = 40
show_preview = true
show_help = true
exit_mode = "return-original"

# キーバインド
[keys]
scroll_exits = false

# 同期設定
[sync]
records = true                            # 全履歴レコードを同期

ZSH/Bash/Fish の統合

# ~/.zshrc に追加
eval "$(atuin init zsh)"

# または ~/.bashrc
eval "$(atuin init bash)"

# または ~/.config/fish/config.fish
atuin init fish | source

# これで Ctrl+R でデフォルトの検索ではなく Atuin のインタラクティブ検索が開きます

インストール

# macOS
brew install atuin

# Linux
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

# Cargo
cargo install atuin

ベストプラクティス

  1. ファジー検索search_mode = "fuzzy" を設定します。タイプミスや部分的な記憶でもコマンドを見つけます。
  2. ディレクトリフィルタリングfilter_mode = "directory" を使用して、現在のプロジェクトに関連するコマンドのみを表示します。
  3. マシン間での同期 — E2E 暗号化同期に登録します。履歴はどのマシンでもあなたについてきます。
  4. 終了コードフィルタリング — 成功したコマンドを --exit 0 で検索します。失敗した試行の繰り返しを避けます。
  5. 最適化のための統計atuin stats を実行して、エイリアスする価値のある頻繁なコマンドを特定します。
  6. 履歴のインポート — インストール直後に atuin import auto を実行します。既存の履歴を失わないようにします。
  7. セッションモード — デバッグ時にセッションフィルタを使用します。このターミナルで実行した内容を正確に確認します。
  8. セルフホスト — チーム向けに独自の Atuin サーバーをデプロイします。docker run ghcr.io/atuinsh/atuin
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Atuin — Magical Shell History

You are an expert in Atuin, the Rust-based shell history tool that replaces your shell's built-in history with a searchable, syncable, context-aware database. You help developers set up fuzzy search across shell history, sync history across machines, filter by directory/host/session, and analyze command usage — turning shell history from a flat text file into a powerful productivity tool.

Core Capabilities

Setup and Usage

# Install
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

# Import existing history
atuin import auto                         # Detects bash/zsh/fish

# Interactive search (Ctrl+R replacement)
# Press Ctrl+R → fuzzy search across all history
# Filter modes:
#   - Global: all history across all machines
#   - Host: only current machine
#   - Session: only current terminal session
#   - Directory: only commands run in current directory

# Sync across machines
atuin register -u username -e email -p password
atuin sync                                # E2E encrypted sync
atuin login -u username -p password       # On another machine
atuin sync                                # History from all machines!

# Search
atuin search "docker"                     # Full-text search
atuin search --after "2026-03-01" "deploy"
atuin search --cwd /project "git"         # Only in this directory
atuin search --exit 0 "make"              # Only successful commands

# Stats
atuin stats                               # Most used commands, frequency
atuin stats --count 20                    # Top 20 commands

Configuration

# ~/.config/atuin/config.toml
[settings]
dialect = "us"
auto_sync = true
update_check = true
sync_frequency = "5m"
search_mode = "fuzzy"                     # fuzzy | prefix | fulltext | skim
filter_mode = "global"                    # global | host | session | directory
style = "compact"                         # compact | full
inline_height = 40
show_preview = true
show_help = true
exit_mode = "return-original"

# Key bindings
[keys]
scroll_exits = false

# Sync settings
[sync]
records = true                            # Sync all history records

ZSH/Bash/Fish Integration

# Add to ~/.zshrc
eval "$(atuin init zsh)"

# Or ~/.bashrc
eval "$(atuin init bash)"

# Or ~/.config/fish/config.fish
atuin init fish | source

# Now Ctrl+R opens Atuin's interactive search instead of default

Installation

# macOS
brew install atuin

# Linux
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

# Cargo
cargo install atuin

Best Practices

  1. Fuzzy search — Set search_mode = "fuzzy"; find commands even with typos or partial recall
  2. Directory filtering — Use filter_mode = "directory" to see only commands relevant to current project
  3. Sync across machines — Register for E2E encrypted sync; history follows you to any machine
  4. Exit code filtering — Search --exit 0 for successful commands; avoid repeating failed attempts
  5. Stats for optimization — Run atuin stats to identify frequent commands worth aliasing
  6. Import history — Run atuin import auto immediately after install; don't lose existing history
  7. Session mode — Use session filter when debugging; see exactly what you ran in this terminal
  8. Self-hosted — Deploy your own Atuin server for teams; docker run ghcr.io/atuinsh/atuin