Communitygithub.com

G1Joshi/Agent-Skills — Zedエディタ

高性能なRustベースのテキスト編集、マルチバッファ編集、言語サーバープロトコル(LSP)、AIアシスタント統合をカバーする、Zedエディタ専門のエキスパート支援。Zedのsettings.json設定、言語拡張のセットアップ、リアルタイムチャネルでの共同作業、エディタ起動速度の最適化に使用します。

Agent-Skills — Zedエディタ とは?

このスキルは、Zedエディタを最大限に活用するための専門的なガイダンスを提供します。ZedはAtomの開発者によって作られた高性能エディタで、Rustで構築され、GPUアクセラレーションによるUIを備えています。2025年にはZeta(オープンモデルAI)とACP(エージェントクライアントプロトコル)が導入されました。このスキルでは、サブミリ秒の入力遅延、120 FPSのスムーズなレンダリング、リアルタイムでのマルチプレイヤーペアプログラミング、統合LLMアシスタントによるコード生成・リファクタリング、Tree-sitterとLSPによる多言語開発(Rust、TypeScript、Python、Goなど)の設定と活用方法を解説します。具体的には、`settings.json`の設定、カスタムキーマップ、マルチバッファ検索・置換、言語サーバーの設定、共同作業の開始方法、トラブルシューティングまでを網羅しており、開発者はこのスキルを通じてZedの高速な編集環境をフルに活用できるようになります。

対応✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/G1Joshi/Agent-Skills/tree/HEAD/skills/tools/zed

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Zed

ZedはAtomの開発者によって作られた高性能エディタです。Rustで構築され、GPUアクセラレーションによるUIを備えています。2025年にはZeta(オープンモデルAI)とACP(エージェントクライアントプロトコル)が導入されました。

使用するタイミング

  • 高性能Rustエンジンによるコード編集: サブミリ秒の入力遅延、瞬時のファイル開封、120 FPSのスムーズなレンダリング。
  • リアルタイムマルチプレイヤーペアプログラミング: オーディオチャットと共有カーソルセッションを使用して、エディタバッファ上で直接共同作業。
  • 統合LLMアシスタント: コード生成、関数のリファクタリング、コードベースコンテキストのクエリをネイティブに実行。
  • モダンなTree-sitterとLSPによる多言語開発: Rust、TypeScript、Python、Goに対してシームレスでアウトオブボックスのサポート。

クイックスタート

1. 最小限の ~/.config/zed/settings.json

{
  "theme": "One Dark",
  "buffer_font_family": "JetBrains Mono",
  "buffer_font_size": 14,
  "tab_size": 2,
  "hard_tabs": false,
  "format_on_save": "on",
  "formatter": "auto",
  "lsp": {
    "rust-analyzer": {
      "initialization_options": {
        "checkOnSave": { "command": "clippy" }
      }
    }
  }
}

2. コアショートカット

  • Cmd + P: ファイルファインダー
  • Cmd + Shift + P: コマンドパレット
  • Cmd + Shift + F: プロジェクト検索
  • Cmd + ?: AIアシスタントパネルの切り替え

コアコンセプト

プロダクションZed設定 (~/.config/zed/settings.json)

タイポグラフィ、フォーマッター、LSP言語サーバー、AI統合の設定:

{
  "theme": "One Dark",
  "ui_font_size": 15,
  "buffer_font_size": 14,
  "buffer_font_family": "JetBrains Mono",
  "autosave": "on_focus_change",
  "format_on_save": "on",
  "tab_size": 2,
  "telemetry": {
    "diagnostics": false,
    "metrics": false
  },
  "languages": {
    "TypeScript": {
      "language_servers": ["vtsls", "!typescript-language-server"],
      "formatter": {
        "external": {
          "command": "prettier",
          "arguments": ["--stdin-filepath", "{buffer_path}"]
        }
      }
    },
    "Rust": {
      "language_servers": ["rust-analyzer"]
    },
    "Python": {
      "language_servers": ["pyright", "ruff"]
    }
  },
  "assistant": {
    "default_model": {
      "provider": "anthropic",
      "model": "claude-3-5-sonnet"
    }
  }
}

カスタムモーダル&Vimキーバインド (~/.config/zed/keymap.json)

高速ナビゲーションのためのキーマップのカスタマイズ:

[
  {
    "context": "Editor && vim_mode == normal",
    "bindings": {
      "space f f": "file_finder::Toggle",
      "space f g": "pane::DeploySearch",
      "space b d": "pane::CloseActiveItem",
      "space c a": "editor::ToggleCodeActions",
      "g d": "editor::GoToDefinition",
      "g r": "editor::FindAllReferences"
    }
  }
]

インスタントマルチプレイヤーコラボレーション

  • 右上のウィンドウヘッダーにあるコラボレートアイコンをクリックします。
  • ルームリンクを共有するか、GitHubユーザー名を使用してチームメンバーを招待します。
  • チームメイトはエディタビューを共有し、カーソルを追跡し、画面共有の遅延なしにコードを同時に編集できます。

一般的なパターン

マルチバッファプロジェクト検索&置換

問題: コードベース全体を検索し、単一の統合バッファで結果を同時に編集する。 解決策: マルチバッファエディタを開く。

  1. Cmd + Shift + F を押してプロジェクト検索を開きます。
  2. 検索語を入力し、Enter を押します。
  3. Option + Enter を押して、すべての一致を編集可能なマルチバッファに展開します。
  4. 複数のファイルにまたがってコードをその場で編集し、Cmd + S で保存してすべてのファイルに書き込みます。

Zedでのカスタム言語サーバーの設定

問題: Zedで特定の言語サーバーの引数とフォーマッターを設定する。 解決策: settings.json でサーバー設定を定義します。

{
  "languages": {
    "Python": {
      "language_servers": ["pyright", "ruff"],
      "format_on_save": "on",
      "formatter": {
        "external": {
          "command": "ruff",
          "arguments": ["format", "--stdin-filename", "{buffer_path}"]
        }
      }
    }
  }
}

ベストプラクティス (2026)

  • 推奨: 自動コード整形のために、format_on_save: "on" を外部ツール(Prettier、Ruff、Rustfmt)と共に設定する。
  • 推奨: ZedにおけるTypeScript開発には、優れたパフォーマンスとメモリ効率のために vtsls を使用する。
  • 推奨: モーダル編集ワークフローに慣れている場合は、Vimモード("vim_mode": true)を有効にする。
  • 推奨: コードベースコンテキストを使用して高速リファクタリングを行うには、ネイティブのアシスタントパネル(Cmd + ?)を活用する。
  • 非推奨: ビルドキャッシュ(target、dist、.next)を除外せずにプロジェクトフォルダーを過負荷にしない。
  • 非推奨: settings.json にプライベートAPIキーをハードコードしない。システムキーチェーンまたは環境変数を使用する。
  • 非推奨: 機密性の高い本番設定ファイルを編集する際に、コラボレーションルームをオープンかつ公開のままにしない。

トラブルシューティング

エラー / 症状原因解決策
言語サーバーが初期化に失敗するサーバーバイナリ(例:gopls、pyright)がシステムの $PATH に見つからないサーバーバイナリをグローバルにインストールするか、ユーザーシェル環境からアクセス可能であることを確認する。
キーバインドがシステムショートカットと衝突MacのシステムキーボードショートカットがZedのキーストロークを妨害している~/.config/zed/keymap.json の settings.json キーマップオーバーライドを確認する。
Zed AIアシスタントが応答しないAPIキー(OpenAI/Anthropic)の欠如、またはクォータ超過Zed設定を開き、"features": { "edit_prediction_provider": "copilot" } を設定するか、APIキーを提供する。

参考文献

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

G1Joshi/Agent-Skills

Expert Dask distributed computing assistance covering Dask DataFrames, Arrays, Futures, and cluster scaling. Use when analyzing datasets too large for pandas on a single machine or multi-node cluster.

G1Joshi/Agent-Skills

Expert dbt (data build tool) assistance covering SQL modeling, Jinja macros, tests, documentation, and semantic layer. Use when building analytics engineering pipelines on BigQuery, Snowflake, or PostgreSQL.

G1Joshi/Agent-Skills

Expert JAX assistance covering Autograd, XLA compilation (`jit`), vectorization (`vmap`), and parallelization (`pmap`). Use when building high-performance numerical computing and cutting-edge deep learning research.

G1Joshi/Agent-Skills

Expert Ray distributed computing assistance covering Ray Core (actors, tasks), Ray Train, Ray Tune, and Ray Serve. Use when scaling Python compute and ML training across multi-node clusters.

G1Joshi/Agent-Skills

Expert Git version control assistance covering branching, interactive rebase, cherry-pick, submodules, worktrees, and conflict resolution. Use when managing source code history and collaboration workflows.

G1Joshi/Agent-Skills

Expert K9s CLI assistance covering terminal Kubernetes cluster navigation, real-time log streaming, port forwarding, and pod debugging. Use when managing and troubleshooting Kubernetes clusters with speed.

G1Joshi/Agent-Skills

Expert SWC assistance covering high-performance Rust-based JavaScript/TypeScript compilation, .swcrc configuration, Jest testing via @swc/jest, and minification. Use when replacing Babel with SWC for faster builds, accelerating test execution, or compiling modern ECMAScript features.

G1Joshi/Agent-Skills

Expert Tig assistance covering text-mode interface for Git, interactive staging, commit graph visualization, diff exploration, and blame navigation. Use when navigating Git commit history in the terminal, staging hunks interactively, browsing file changes, or reviewing revisions.

G1Joshi/Agent-Skills

Expert Vim assistance covering modal editing, .vimrc configuration, registers, macros, search/replace, and plugin management via vim-plug. Use when editing text efficiently in terminal environments, writing Vimscript, recording macros, or configuring core Vim settings.

G1Joshi/Agent-Skills

Expert Zsh assistance covering shell customization, Oh My Zsh plugins, Zinit plugin manager, prompt engineering (Starship/Powerlevel10k), and shell scripting. Use when configuring .zshrc, writing Zsh automation scripts, optimizing shell startup time, or configuring tab-completion.

G1Joshi/Agent-Skills

Expert [skill-name] assistance covering [feature 1], [feature 2], and [feature 3]. Use when [working with X], [debugging Y], or [implementing Z].

関連スキル