Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

custom-agents

БесплатноБез исполняемых скриптовНе проверен

Define and validate GitHub custom agent files, prompts, and examples.

githubот github★ 5 758 звёзд на GitHub

Об этом скилле

GitHub Custom Agent File Format

Use this reference for the GitHub custom agent file format.

Overview

GitHub Copilot reads custom agent instructions from Markdown files with YAML frontmatter. Use them to define specialized behavior, tool access, and workflows for your repository.

File Locations

Place custom agent files in these locations based on scope:

1. Repository-wide Instructions

  • File: .github/copilot-instructions.md
  • Scope: Applies to all code generation in the repository
  • Use case: General coding standards, security requirements, testing practices

2. Path-specific Instructions

  • Directory: .github/instructions/
  • Pattern: *.instructions.md (e.g., frontend.instructions.md, backend.instructions.md)
  • Scope: Can target specific directories or file patterns using applyTo in frontmatter
  • Use case: Framework-specific guidelines, component-specific rules

3. Custom Agent Profiles

  • Directory: .github/agents/ or .github/copilot/instructions/
  • Pattern: AGENTS.md, *.md (e.g., readme-creator.md, test-writer.md)
  • Scope: Defines specialized agents with specific capabilities and instructions
  • Use case: Task-specific agents (documentation, testing, refactoring)

4. agentic workflow integration

  • Location: Imported via imports field in workflow frontmatter
  • Pattern: Any markdown files under .github/agents/ directory
  • Scope: Custom agent for specific agentic workflow execution
  • Use case: Workflow-specific agent configuration
  • Important: Only one agent file is allowed per workflow

File Format

Basic Structure

# YAML frontmatter (configuration)
name: agent-name
description: Brief description of agent's purpose

# Markdown body (instructions)

Your natural language instructions for the agent go here.

Complete YAML Frontmatter Schema

# Required fields
name: agent-identifier              # Unique identifier for the agent

# Optional descriptive fields
description: >                      # Multi-line description of agent's purpose
  Agent specializing in specific tasks

# Optional instruction fields
prompt: |                          # Freeform instructions (alternative to markdown body)
  Your instructions here

# Optional tool configuration
tools:                             # List of allowed tools for this agent
  - createFile
  - editFiles
  - codeSearch
  - search

# Optional path targeting (for .instructions.md files)
applyTo:                          # Glob patterns for targeted files/directories
  - "src/frontend/**"
  - "**/*.tsx"

# Optional MCP server configuration (enterprise/org only)
mcp-server:                       # External MCP server configuration
  url: https://my-mcp-server.com
  api-key: ${{ secrets.MCPSERVER_API_KEY }}

# Optional settings
settings:                         # Custom runtime or connection settings
  key: value

Field Descriptions

Core Fields

name (string, required for agent profiles)

  • Unique identifier for the custom agent
  • Used to reference the agent in workflows or assignments
  • Convention: lowercase with hyphens (e.g., readme-creator, test-writer)

description (string, optional)

  • Human-friendly description of the agent's focus and behavior
  • Helps users understand what the agent specializes in
  • Can be multi-line using YAML's > or | syntax

prompt (string, optional)

  • Alternative to using the markdown body for instructions
  • Contains freeform natural language instructions
  • Use YAML's | (literal) or > (folded) for multi-line content
  • If both prompt and markdown body exist, they are typically combined

Tool Configuration

tools (array of strings, optional)

  • List of tools the agent is allowed to use
  • If omitted or set to ["*"], agent has access to all available tools
  • Tool names are case-insensitive
  • Supports both GitHub's standard tool aliases and legacy naming conventions

GitHub Standard Tool Aliases:

GitHub Copilot defines a standardized set of tool aliases for custom agents:

  • read - Access and read contents of files or code
  • edit - Make changes in code files, apply edits or refactoring
  • search - Search codebase for keywords, references, or patterns
  • pr - Create, manage, or update pull requests
  • issue - Create, manage, or update issues

Legacy Tool Names:

For backward compatibility, these legacy tool names are still supported:

  • createFile - Create new files (use edit instead)
  • editFiles - Modify existing files (use edit instead)
  • deleteFiles - Remove files (use edit instead)
  • codeSearch - Semantic code search (use search instead)
  • runCommand - Execute shell commands
  • getFile - Read file contents (use read instead)
  • listFiles - List directory contents (use read instead)

MCP Server Tool Prefixes:

When using Model Context Protocol (MCP) servers, you can specify tool

Полный SKILL.md на GitHub

Установить custom-agents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл custom-agents?

Define and validate GitHub custom agent files, prompts, and examples.

Как установить скилл custom-agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл custom-agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить custom-agents с