AgentSkillsCN

agent-file-specs

收录了AI编码助手自定义文件的完整规范,包括智能体、技能、提示词与操作指南。适用于GitHub Copilot、Claude Code、Codex、OpenCode以及其他相关工具。在需要参考正确的文件格式、必填字段、支持的属性、文件存储路径,或VS Code的任何自定义文件设置时,可调用此技能。遵循Agent Skills开放标准(agentskills.io)。

SKILL.md
--- frontmatter
name: agent-file-specs
description: Contains the complete specifications for AI coding assistant customization files including agents, skills, prompts, and instructions. Works with GitHub Copilot, Claude Code, Codex, OpenCode, and other providers. Use this skill when you need to reference the correct file format, required fields, supported attributes, file locations, or VS Code settings for any customization file. Follows the Agent Skills open standard (agentskills.io).

AI Coding Assistant Customization File Specifications

This skill provides the authoritative, up-to-date specifications for all AI coding assistant customization file types. Each file type has its own dedicated reference document with complete attribute tables, validation rules, examples, and best practices.

Standard: These specs align with the Agent Skills open standard and the VS Code Copilot customization documentation.

How to Use This Skill

  1. Read the Quick Reference below to identify the file type you need.
  2. Follow the link to the dedicated reference document for full details.
  3. Use the File Locations reference when you need to know where files go for a specific provider.
  4. Use the Settings reference for VS Code configuration.

Important: Detailed specifications live in the references/ folder — not in this file. This keeps the main skill file lightweight for efficient context loading per the progressive disclosure model.


Quick Reference

TypeExtensionPurposeReference
Agent.agent.md / .mdCustom AI personas with specialized behaviors, tool restrictions, and handoff workflowsAGENTS.md
SkillSKILL.md (directory-based)Reusable, portable capabilities with scripts and resources — follows the Agent Skills open standardSKILLS.md
Prompt.prompt.mdReusable prompt templates invoked as slash commandsPROMPTS.md
Instruction.instructions.mdContextual guidance applied automatically by file type or descriptionINSTRUCTIONS.md
File LocationsProvider folder mapping, directory structure, naming conventionsFILE-LOCATIONS.md
VS Code SettingsSettings that control customization file discovery and behaviorSETTINGS.md

Provider Support

These specifications work across multiple AI coding assistant providers. Each provider uses its own base folder but the file formats are consistent:

ProviderBase Folder
GitHub Copilot.github/
Claude Code.claude/
Codex.codex/
OpenCode.config/opencode/

See FILE-LOCATIONS.md for the complete directory structure and provider-specific details.


File Type Selection Guide

Use this decision tree to choose the right file type:

  • "I want coding standards applied everywhere" → Use always-on instructions (.github/copilot-instructions.md or AGENTS.md). See INSTRUCTIONS.md.

  • "I want different rules for different file types" → Use file-based instructions (.instructions.md with applyTo patterns). See INSTRUCTIONS.md.

  • "I have a reusable task I run repeatedly" → Use a prompt file (.prompt.md) invoked as a slash command. See PROMPTS.md.

  • "I need a multi-step workflow with scripts and resources" → Use an Agent Skill (directory with SKILL.md). Portable across tools. See SKILLS.md.

  • "I need a specialized AI persona with tool restrictions" → Use a custom agent (.agent.md). Supports handoffs for multi-step workflows. See AGENTS.md.


Authoritative Sources