zed
Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
Best use case
zed is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
Teams using zed should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/zed/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How zed Compares
| Feature / Agent | zed | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Zed — High-Performance Code Editor
## Overview
Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
## Instructions
### Configuration
Customize Zed through its JSON settings:
```jsonc
// ~/.config/zed/settings.json — Main configuration file
{
// Editor appearance and behavior
"theme": "One Dark",
"ui_font_size": 14,
"buffer_font_size": 14,
"buffer_font_family": "JetBrains Mono",
"buffer_line_height": { "custom": 1.6 },
// Vim mode (built-in, no extension needed)
"vim_mode": true,
"vim": {
"use_system_clipboard": "always",
"use_smartcase_find": true
},
// Tab and indentation
"tab_size": 2,
"hard_tabs": false,
"format_on_save": "on",
"formatter": "language_server",
// Git integration
"git": {
"inline_blame": { "enabled": true, "delay_ms": 500 },
"git_gutter": "tracked_files"
},
// AI Assistant configuration
"assistant": {
"enabled": true,
"default_model": {
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
},
"version": "2" // Use Assistant v2 panel
},
// Inline completions (code suggestions)
"inline_completions": {
"disabled_globs": [".env", "*.pem", "*.key"]
},
// Language-specific settings
"languages": {
"TypeScript": {
"tab_size": 2,
"formatter": { "external": { "command": "prettier", "arguments": ["--stdin-filepath", "{buffer_path}"] } }
},
"Python": {
"tab_size": 4,
"formatter": { "external": { "command": "ruff", "arguments": ["format", "--stdin-filename", "{buffer_path}"] } }
},
"Rust": {
"tab_size": 4,
"formatter": "language_server"
}
},
// Terminal
"terminal": {
"shell": { "program": "zsh" },
"font_size": 13,
"line_height": { "custom": 1.4 },
"copy_on_select": true
},
// File tree
"project_panel": {
"auto_reveal_entries": true,
"auto_fold_dirs": true,
"file_icons": true
},
// Performance
"autosave": { "after_delay": { "milliseconds": 1000 } },
"soft_wrap": "editor_width"
}
```
### Key Bindings
Configure custom keyboard shortcuts:
```jsonc
// ~/.config/zed/keymap.json — Custom keybindings
[
// Quick file switching (like VS Code Cmd+P)
{
"context": "Workspace",
"bindings": {
"cmd-p": "file_finder::Toggle",
"cmd-shift-p": "command_palette::Toggle",
"cmd-shift-f": "project_search::ToggleFocus",
"cmd-b": "workspace::ToggleLeftDock",
"cmd-j": "terminal_panel::ToggleFocus",
// Custom: open AI assistant panel
"cmd-shift-a": "assistant::ToggleFocus",
// Custom: toggle inline AI completions
"cmd-shift-i": "editor::ToggleInlineCompletions"
}
},
// Editor-specific bindings
{
"context": "Editor",
"bindings": {
"cmd-d": "editor::SelectNext", // Multi-cursor select next match
"cmd-shift-l": "editor::SelectAllMatches", // Select all occurrences
"alt-up": "editor::MoveLineUp",
"alt-down": "editor::MoveLineDown",
"cmd-shift-k": "editor::DeleteLine",
"cmd-/": "editor::ToggleComments",
// Quick AI actions
"ctrl-l": "assistant::InlineAssist" // Inline AI edit at cursor
}
},
// Vim-specific overrides
{
"context": "VimControl",
"bindings": {
"space f": "file_finder::Toggle",
"space g": "project_search::ToggleFocus",
"space e": "project_panel::ToggleFocus",
"space a": "assistant::ToggleFocus",
"space t": "terminal_panel::ToggleFocus"
}
}
]
```
### Collaborative Editing
Set up real-time pair programming sessions:
```markdown
## How Collaboration Works in Zed
1. **Start a session**: Click "Share" in the title bar or run `collaboration::ShareProject`
2. **Share the link**: Copy the invite link and send to teammates
3. **Real-time editing**: All participants see each other's cursors and edits instantly
4. **Follow mode**: Click a collaborator's avatar to follow their cursor (see what they see)
5. **Voice chat**: Built-in voice channels — no need for a separate call
### Collaboration Features
- **Shared terminal**: Collaborators can see your terminal output
- **Shared diagnostics**: LSP errors and warnings are visible to all participants
- **Conflict-free**: Uses CRDT (similar to Yjs) for concurrent edit resolution
- **Low latency**: Edits propagate in <50ms on good connections
```
### AI Assistant Usage
Leverage Zed's integrated AI for coding tasks:
```markdown
## AI Workflows in Zed
### Inline Assist (Ctrl+L)
Select code → Ctrl+L → type instruction:
- "Add error handling to this function"
- "Refactor to use async/await"
- "Add TypeScript types"
- "Write a unit test for this"
### Assistant Panel (Cmd+Shift+A)
Full conversation with AI, with context from your codebase:
- Drag files into the panel to add them as context
- Use `/file` to reference specific files
- Use `/tab` to include all open tabs as context
- Ask architectural questions about your codebase
### Slash Commands in Assistant
- `/file path/to/file.ts` — Include file content as context
- `/tab` — Include all open editor tabs
- `/diagnostics` — Include current LSP errors/warnings
- `/selection` — Include currently selected code
- `/terminal` — Include recent terminal output
```
### Extension Development
Build custom extensions for Zed:
```rust
// extensions/my-extension/src/lib.rs — Zed extension in Rust (WASM)
use zed_extension_api::{self as zed, Result};
struct MyExtension;
impl zed::Extension for MyExtension {
fn new() -> Self { MyExtension }
fn language_server_command(
&mut self,
_language_server_id: &zed::LanguageServerId,
worktree: &zed::Worktree,
) -> Result<zed::Command> {
// Configure a custom language server
Ok(zed::Command {
command: "my-lsp-binary".to_string(),
args: vec!["--stdio".to_string()],
env: Default::default(),
})
}
}
zed::register_extension!(MyExtension);
```
```toml
# extensions/my-extension/extension.toml — Extension manifest
[extension]
id = "my-extension"
name = "My Extension"
version = "0.1.0"
schema_version = 1
authors = ["Your Name"]
description = "Custom language support for Zed"
repository = "https://github.com/you/zed-my-extension"
[grammars.my-language]
repository = "https://github.com/tree-sitter/tree-sitter-my-language"
commit = "abc123"
[language_servers.my-lsp]
language = "MyLanguage"
```
## Installation
```bash
# macOS (official)
brew install --cask zed
# Linux
curl -f https://zed.dev/install.sh | sh
# Build from source
git clone https://github.com/zed-industries/zed.git
cd zed
cargo build --release
```
## Examples
### Example 1: Setting up Zed with a custom configuration
**User request:**
```
I just installed Zed. Help me configure it for my TypeScript + React workflow with my preferred keybindings.
```
The agent creates the configuration file with TypeScript-aware settings, configures relevant plugins/extensions for React development, sets up keyboard shortcuts matching the user's preferences, and verifies the setup works correctly.
### Example 2: Extending Zed with custom functionality
**User request:**
```
I want to add a custom key bindings to Zed. How do I build one?
```
The agent scaffolds the extension/plugin project, implements the core functionality following Zed's API patterns, adds configuration options, and provides testing instructions to verify it works end-to-end.
## Guidelines
1. **Use Vim mode** — Zed's Vim emulation is excellent and first-class; combine with Zed-specific keybindings for best productivity
2. **Configure per-language formatting** — Set formatters per language (Prettier for JS, Ruff for Python, rustfmt for Rust)
3. **AI context matters** — Drag relevant files into the assistant panel; more context = better AI responses
4. **Inline assist for quick edits** — Select code + Ctrl+L is faster than copy-pasting into a chat
5. **Use follow mode in pairing** — Click a collaborator's avatar to see exactly what they see; great for code reviews
6. **Autosave with delay** — 1000ms delay avoids constant disk writes while keeping files saved
7. **Extensions are WASM** — Write extensions in Rust compiled to WebAssembly; they run in a sandbox for security
8. **Keyboard-first design** — Learn `Cmd+P` (files), `Cmd+Shift+P` (commands), `Cmd+T` (symbols) for fast navigationRelated Skills
zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.
zig
Expert guidance for Zig, the systems programming language focused on performance, safety, and readability. Helps developers write high-performance code with compile-time evaluation, seamless C interop, no hidden control flow, and no garbage collector. Zig is used for game engines, operating systems, networking, and as a C/C++ replacement.
zeabur
Expert guidance for Zeabur, the cloud deployment platform that auto-detects frameworks, builds and deploys applications with zero configuration, and provides managed services like databases and message queues. Helps developers deploy full-stack applications with automatic scaling and one-click marketplace services.
zapier
Automate workflows between apps with Zapier. Use when a user asks to connect apps without code, automate repetitive tasks, sync data between services, or build no-code integrations between SaaS tools.
zabbix
Configure Zabbix for enterprise infrastructure monitoring with templates, triggers, discovery rules, and dashboards. Use when a user needs to set up Zabbix server, configure host monitoring, create custom templates, define trigger expressions, or automate host discovery and registration.
yup
Validate data with Yup schemas. Use when adding form validation, defining API request schemas, validating configuration, or building type-safe validation pipelines in JavaScript/TypeScript.
yt-dlp
Download video and audio from YouTube and other platforms with yt-dlp. Use when a user asks to download YouTube videos, extract audio from videos, download playlists, get subtitles, download specific formats or qualities, batch download, archive channels, extract metadata, embed thumbnails, download from social media platforms (Twitter, Instagram, TikTok), or build media ingestion pipelines. Covers format selection, audio extraction, playlists, subtitles, metadata, and automation.
youtube-transcription
Transcribe YouTube videos to text using OpenAI Whisper and yt-dlp. Use when the user wants to get a transcript from a YouTube video, generate subtitles, convert video speech to text, create SRT/VTT captions, or extract spoken content from YouTube URLs.
youtube-marketing
Create, optimize, and manage YouTube content for channel growth, audience building, and monetization. Use when someone asks to "grow on YouTube", "optimize YouTube videos", "YouTube SEO", "YouTube Shorts strategy", "YouTube API integration", "automate YouTube uploads", "YouTube analytics", "YouTube thumbnail", or "YouTube content strategy". Covers long-form video, Shorts, SEO, thumbnail design, YouTube Data API, analytics, monetization, and growth strategies.