Skip to content

GitHub Copilot Formatter

PropertyValue
TierCustom
Main output.github/copilot-instructions.md
Dot directory.github/
SkillsYes (.github/skills/<name>/SKILL.md)
AgentsYes (.github/agents/<name>.md)
CommandsYes (.github/prompts/<name>.prompt.md)
Local filesNo

Output Files

FilePathPurpose
Main instructions.github/copilot-instructions.mdPrimary rule file
Lifecycle hooks.github/hooks/promptscript.jsonCopilot CLI and cloud agent hooks in multifile and full modes
Skills.github/skills/<name>/SKILL.mdReusable skill definitions in full mode
Prompts.github/prompts/<name>.prompt.mdSlash commands
Agents.github/agents/<name>.mdAgent configurations
Agents indexAGENTS.mdTop-level agents file
MCP servers.vscode/mcp.jsonMCP server config in full mode

Supported Features

FeatureSupported
Markdown OutputYes
MDC FormatNo
Code BlocksYes
Mermaid DiagramsYes
Single File OutputYes
Multiple Rule FilesYes
Workflow FilesNo
Nested Directory StructureNo
YAML FrontmatterYes
Description in FrontmatterNo
Globs in FrontmatterYes
Activation TypeNo
Glob Pattern TargetingYes
Always Apply RulesYes
Manual ActivationNo
Auto/Model ActivationNo
Structured ExamplesYes
Character Limit ValidationNo
Content Section SplittingYes
Guard DependenciesYes
Context File InclusionNo
@-MentionsNo
Tool IntegrationNo
Path-Specific RulesYes
Prompt FilesYes
Slash CommandsYes
SkillsYes
Agent InstructionsYes
Local MemoryNo
Nested MemoryNo

Limitations & Quirks

  • Three output modes: simple (single file), multifile (path-specific instructions + prompts), full (+ skills, agents, AGENTS.md)
  • Path-specific instructions use applyTo frontmatter for glob targeting
  • Prompt files (.github/prompts/*.prompt.md) support agent mode with mode: agent and tools list
  • Skills go to .github/skills/<name>/SKILL.md with YAML frontmatter
  • Agents go to .github/agents/<name>.md + top-level AGENTS.md
  • Agent model and specModel values become Copilot model names (display names such as Claude Sonnet 4.5); inherit is omitted, auto becomes Auto, and names outside the catalog pass through unchanged (see Model Catalog)
  • @shortcuts with prompt: true become prompt files; without prompt they become instruction files
  • @hooks uses .github/hooks/promptscript.json for Copilot CLI and cloud agent in multifile and full modes
  • Hook commands use GitHub’s shell-specific bash and powershell fields
  • Hook matcher values match GitHub Copilot tool names and are emitted only for preToolUse, postToolUse, subagentStart, and notification; other targets use different tool-name vocabularies, so a matcher that works here may match nothing elsewhere
  • pre-terminal-command is omitted from the shared Copilot CLI/cloud file with PS4002 because those hosts do not provide one guaranteed repository-level terminal contract
  • notification hooks run in Copilot CLI but do not fire in Copilot cloud agent; PromptScript reports PS4002
  • .github/hooks/promptscript-vscode.json belongs to VS Code Agent integration installed by prs hooks install copilot
  • A vscode target override emits this file separately and uses PascalCase events; pre-terminal-command defaults to run_in_terminal, but VS Code currently ignores matcher values and reports best-effort PS4002
  • When @hooks is removed or no longer emits, the CLI removes a fully PromptScript-owned .github/hooks/promptscript.json and prunes the now-empty .github/hooks/ directory

Example Output

project-root/
├── .github/
│ ├── copilot-instructions.md # Main instructions
│ ├── instructions/
│ │ └── frontend.instructions.md # Path-specific (applyTo globs)
│ ├── prompts/
│ │ └── review.prompt.md # Slash command / prompt
│ ├── skills/
│ │ └── my-skill/
│ │ └── SKILL.md # Skill definition
│ ├── hooks/
│ │ ├── promptscript.json # Copilot CLI/cloud hooks
│ │ └── promptscript-vscode.json # VS Code Agent hooks, when overridden
│ └── agents/
│ └── reviewer.md # Agent config
└── AGENTS.md # Top-level agents file

Official Documentation