create-skill-sample
Installation
SKILL.md
Create a New GitHub Copilot Skill Sample
This skill guides creating new custom skill samples for the pnp/copilot-prompts repository. These samples live inside samples/skills/ and represent reusable instruction files (SKILL.md) that teach GitHub Copilot how to perform specific, repeatable tasks.
Before Starting
Critical: Always ask the user for the following information before scaffolding:
- Skill name — a short, descriptive name for the skill (e.g., "Code Review for C#", "API Documentation Generator", "Unit Test Scaffolder")
- Skill purpose — a clear description of what the skill does. What task does it teach GitHub Copilot to perform?
- Trigger phrases — 3–5 example phrases a user might say to activate the skill (e.g., "review my C# code", "generate API docs")
- Inputs needed — what information the skill needs from the user before it can proceed (e.g., a source file, a framework version, a language)
- Output format — what the skill produces (e.g., a Markdown report, generated code files, a checklist)
- Steps — the high-level steps the skill follows (3–7 steps). Each step should be a discrete action.
- Rules — any hard constraints the skill must always follow (e.g., "never modify source files directly")
- Author name — the contributor's full name
- Author GitHub username — the contributor's GitHub handle
If the user doesn't provide all details upfront, ask for the missing ones before proceeding.