github-copilot-prompt-files

Create and validate GitHub Copilot reusable prompt files and slash commands in VS Code.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/schattenspiegel/skill-foundry-skills --skill github-copilot-prompt-files-schattenspiegel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-copilot-prompt-files
Source: https://github.com/schattenspiegel/skill-foundry-skills/tree/main/skills/github-copilot-prompt-files
Command: npx skills add https://github.com/schattenspiegel/skill-foundry-skills --skill github-copilot-prompt-files-schattenspiegel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing GitHub Copilot prompt files that actually work requires knowing the current VS Code prompt schema, valid frontmatter fields, input placeholder syntax, and tool selection rules. This Skill guides the creation, review, and debugging of .prompt.md files so slash commands are discoverable, inputs are consumed, and tools follow least privilege. ## Core Features & Use Cases - Prompt File Authoring: Produces .github/prompts/<name>.prompt.md files with correct frontmatter (name, description, argument-hint, agent, model, tools) and ordered task contracts using ${input:name:placeholder} variables. - Schema-Grounded Review: Inspects the active VS Code prompt schema and available agent/tool identifiers before writing, avoiding hardcoded or undocumented tool identifiers. - Verification Workflow: Validates YAML parsing, unique names, consumed inputs, resolvable links, and behavior with complete, missing, and malformed inputs. - Use Case: A developer repeatedly runs the same read-only code review. Use this Skill to create a /review-boundary slash command that takes a path input, restricts tools to search, and reports defects with file evidence without editing files. ## Quick Start Create a GitHub Copilot prompt file for a repeatable review task with defined inputs, allowed tools, and verification steps.

Frequently Asked Questions about github-copilot-prompt-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub Copilot prompt file in VS Code?▼

Create a .prompt.md file under .github/prompts/ with frontmatter for name, description, argument-hint, agent, and tools, then write an ordered task contract using ${input:name:placeholder} variables. Run it from the editor slash menu and verify the output artifact.

What frontmatter fields does a .prompt.md file support?▼

Supported fields are name, description, argument-hint, agent, model, and tools. The file name is the default slash command name unless a frontmatter name overrides it, and model should be omitted unless the task requires a verified model capability.

When should I use a prompt file instead of a Copilot skill?▼

Use a prompt file for deliberate one-task manual invocation via a slash command. Use a skill when you need automatic discovery, multi-step expertise, scripts, or bundled resources rather than a single focused command.

Why is my Copilot slash command not discoverable in VS Code?▼

Discovery fails when the file is not in .github/prompts/, the YAML frontmatter does not parse, or the name conflicts. Inspect Agent Debug Logs, verify YAML parsing, and confirm the file uses the .prompt.md extension.

How do I limit which tools a Copilot prompt can use?▼

Declare a tools list in the prompt frontmatter with only the needed tool identifiers. A prompt's tools list overrides tools inherited from its selected agent, and unavailable tools can be ignored by the host.