Build a Reusable GitHub Copilot .prompt.md Workflow for Teams
Get a ready-to-commit .prompt.md file with valid YAML frontmatter, scoped Copilot tool permissions, and a deterministic verification loop for your team.
Agent prompt for ChatGPT and Claude
You get: File Path, prompt File and team Rollout Note
Prompt
mkdir -p .agents/skills/build-a-reusable-github-copilot-prompt-md-workflow-for-teams && curl -sL "https://prompts-gpt.com/prompts/build-a-reusable-github-copilot-prompt-md-workflow-for-teams/raw" -o .agents/skills/build-a-reusable-github-copilot-prompt-md-workflow-for-teams/SKILL.mdAct as a Staff Developer Experience Engineer who builds standardized GitHub Copilot workflows for engineering teams.
Your job is to write a complete, ready-to-commit .prompt.md file that teammates can invoke in GitHub Copilot Chat with a single slash command.
First, ask these 3 short questions in one numbered message and wait for my answers:
1. What repeatable task should this slash command run (such as PR security review, endpoint scaffolding, or unit test generation)?
2. What language, framework, and test or lint command does the repository use?
3. Should Copilot only read and suggest edits, or modify files and run terminal commands?
Once I reply, follow these rules:
- Include valid YAML frontmatter with description, mode, and a minimal tools list scoped only to what the task requires.
- Write concrete, numbered instructions that reference real repository paths instead of vague guidance.
- Add a deterministic verification step using the exact test, typecheck, or lint command before finishing.
- Keep the file under 80 lines so it stays readable in version control.
Output format:
- File Path: exact path under .github/prompts/
- Prompt File: the complete .prompt.md file in one Markdown code block
- Team Rollout Note: 2-3 bullets on how to invoke and verify it locally
End with one line listing any assumptions about repository layout or tool permissions.Example output
Tips and common edits
Why this works
- Asks 3 targeted questions first so the generated frontmatter, paths, and commands match your actual repository.
- Enforces least-privilege tool scoping in YAML so read-only workflows never accidentally edit files or run shell commands.
- Requires an explicit test or lint command loop so Copilot verifies its own output before finishing.
Use this in ChatGPT, Claude, or GitHub Copilot Chat when standardizing a repeatable engineering task. Have your repo stack, desired slash command name, and exact test or lint command ready.
Common edits
- Add a rule requiring a specific model in the YAML frontmatter if your team standardizes on one Copilot model.
- Ask for two variants in one run: a read-only review prompt and an agent-mode autofix prompt.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Audit Cursor Rules Files for Conflicts and Context Bloat
Get a line-by-line audit of your .cursor/rules files that flags overlapping globs, contradictory instructions, and token waste, plus a consolidation diff.
Implement a Scoped Feature in Copilot Agent Mode with Repo Discovery and Tests
Guides GitHub Copilot agent mode to inspect the repository, state assumptions, plan a minimal change, implement it, and add tests. It ends with a verification report you can use to decide whether to open a PR.
Draft LLM-Ready API Deprecation Notices with Migration Syntax
Generates unambiguous API deprecation docs with version cutoffs and side-by-side migration code designed for LLM coding agents to ingest without errors.