AGENT SKILL

create-skill

Helps you create new agent skills for Zed. Use this to create a skill, ask about SKILLs.md, or package reusable agent instructions.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 1
Forks
0

01 前言 Front Matter

name
create-skill
description
Helps you create new agent skills for Zed. Use this to create a skill, ask about SKILLs.md, or package reusable agent instructions.

03 SKILL.md 正文

Creating a Zed Agent Skill

Use this skill when the user wants to create, edit, or understand agent skills in Zed.

What is a Skill?

A skill is a reusable set of instructions that an agent can load on demand. Each skill lives in its own directory and is defined by a SKILL.md file with YAML frontmatter.

Where Skills Live

Skills can be placed in two locations:

Scope Path When to use
Global ~/.agents/skills/<skill-name>/SKILL.md Personal skills, available in all projects
Project-local <project>/.agents/skills/<skill-name>/SKILL.md Project-specific skills, shared with collaborators through version control

Prefer project-local when the skill is specific to a repository. Prefer global when the skill is a personal workflow the user wants everywhere.

SKILL.md Format

Every SKILL.md must start with YAML frontmatter between --- delimiters:

---
name: my-skill-name
description: A clear, specific description of what this skill does and when to use it.
---

# Skill Title

Instructions for the agent go here. Write them as if you're telling the agent
what to do when this skill is activated.

Required Frontmatter Fields

  • name (required): Must be 1–64 characters, lowercase alphanumeric with single-hyphen separators. Must match the containing directory name exactly. Regex: ^[a-z0-9]+(-[a-z0-9]+)*$
  • description (required): Must be 1–1024 characters. This is what the agent sees when deciding whether to use the skill — make it specific and actionable.

Optional Frontmatter Fields

  • disable-model-invocation: When set to true, the skill is hidden from the agent's automatic catalog. The user can still invoke it manually via the / slash command menu. Useful for skills that should only run when explicitly requested.

Naming Rules

The skill name must:

  • Be lowercase letters and numbers only, with single hyphens as separators
  • Not start or end with -
  • Not contain consecutive --
  • Match the directory name that contains the SKILL.md

Good: git-release, pr-review, rust-patterns Bad: Git-Release, pr--review, -my-skill, my_skill

Writing Good Skill Instructions

The body of the SKILL.md (after the frontmatter) contains the instructions the agent will follow. Guidelines:

  1. Be direct: Write instructions as if talking to the agent. "Do X", "Check Y", "Ask the user about Z".
  2. Be specific: Include concrete file paths, commands, formats, and patterns.
  3. Include when-to-use guidance: Help the agent understand the right context for this skill.
  4. Reference supporting files: Skills can include additional files in their directory. Reference them with relative paths (e.g., templates/component.tsx). The agent can read these files when the skill is activated.
  5. Keep descriptions actionable: The description field is the agent's primary signal for whether to load this skill. "Helps with code" is too vague. "Generate React components following the project's design system patterns" is specific.
  6. Keep instructions focused: Limit instructions to those relevant to the skill itself. Avoid duplicating instructions from AGENTS.md and other skills in the current conversation if they are not relevant to the skill being created

Supporting Files

A skill directory can contain additional files beyond SKILL.md:

~/.agents/skills/react-component/
├── SKILL.md
├── templates/
│   ├── component.tsx
│   └── test.tsx
└── examples/
    └── button.tsx

Reference these in the skill body. The agent can read them using the file path shown in the <directory> tag of the skill envelope.

Step-by-Step: Creating a Skill

  1. Decide on scope (global vs project-local) based on the user's needs.
  2. Choose a descriptive, hyphenated name.
  3. Create the directory structure. The create_directory tool normally only creates directories inside the current project, but it has a special allow case for global skills under ~/.agents/skills.
  4. Write the SKILL.md with frontmatter and instructions. The write_file and edit_file tools also have a special allow case for creating or modifying files under ~/.agents/skills.
  5. Optionally add supporting files (templates, examples, references).

After creating the skill, it will be automatically discovered by Zed's agent on the next conversation (no restart needed for global skills if the ~/.agents/skills/ directory already exists).

04 同仓库更多 Skills

YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

vercel-sandbox

Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

slack

Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

electron

Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

dogfood

Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.

★ 1