Skip to content
deferredModule 2 — Copilot Best Practices

L2.3: Skills and Prompt Files

This session is not part of today's workshop.

Skills and prompt files are covered briefly in L5.3: Progressive Automation, which introduces the auto-review prompt pattern. A dedicated session on building reusable prompt workflows is planned for a future workshop edition.

What are Skills / Prompt Files?

Prompt files (.github/prompts/<name>.prompt.md) are reusable, version-controlled prompts you can invoke from Copilot Chat by name. They extend an agent's behavior without modifying the agent file itself.

Use prompt files when:

  • You have a multi-step workflow you run repeatedly (e.g., "review this code, check tests, update the spec")
  • You want to share a workflow with your team in a single file
  • You want to trigger a workflow without re-typing instructions every time

Key Difference from Agents

Agents (.github/agents/)Prompt files (.github/prompts/)
PurposeDefine a role/personaDefine a reusable workflow
InvocationSelect from Copilot Chat dropdown#<name> reference or select at @workspace
StatePersists for the sessionRuns once per invocation
Best forCode Reviewer, Testing AdvocateAuto-review loop, spec update, kickoff sequence

Where to Learn More


← Previous: L2.2 Agents and Decision Patterns · Next: L2.4 Plan Mode vs. Agent Mode →

Spec-Driven Development Workshop — structured AI development with GitHub Copilot