prompt-builder

Guides creation of structured GitHub Copilot prompt files through requirement gathering.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/ttnhan18062000/rpg-based-simulation --skill prompt-builder-ttnhan18062000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-builder
Source: https://github.com/ttnhan18062000/rpg-based-simulation/tree/main/.agents/skills/prompt-builder
Command: npx skills add https://github.com/ttnhan18062000/rpg-based-simulation --skill prompt-builder-ttnhan18062000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing effective GitHub Copilot prompt files requires knowledge of frontmatter configuration, tool selection, persona design, and output formatting conventions. This Skill walks you through a structured discovery process so the resulting .prompt.md file follows established best practices instead of ad-hoc guesswork. ## Core Features & Use Cases - Structured Discovery Interview: Asks targeted questions across nine areas including persona definition, task specification, context variables, tools, and validation criteria. - Template Generation: Produces a complete .prompt.md file with proper frontmatter (description, agent mode, tools, model) and organized instruction sections. - Best Practices Enforcement: Ensures prompts include clear structure, error handling, output standards, and validation criteria based on patterns from high-quality existing prompts. - Use Case: You want a reusable Copilot prompt that generates React components following your team's conventions. Answer the guided questions about persona, inputs, and output format, and receive a production-ready prompt file. ## Quick Start Ask the assistant to help you build a new Copilot prompt file and answer its discovery questions starting with the prompt's name and purpose.

Frequently Asked Questions about prompt-builder

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

FAQPage Schema
How do I create a custom GitHub Copilot prompt file?

Create a .prompt.md file with YAML frontmatter defining description, agent mode, and tools, followed by markdown instructions. This Skill guides you through a nine-section discovery process covering persona, task, context variables, and output requirements, then generates the complete file.

What tools can a Copilot prompt file use?

Prompt files can declare tools like codebase, editFiles, search, runCommands, runTests, fetch, githubRepo, and playwright in their frontmatter. Choose tools matching the task: file operations for editing, execution tools for running code, and analysis tools for inspection.

How do I use variables like ${selection} in Copilot prompts?

Reference ${selection} for the user's selected code, ${file} for the current file, and ${input:variableName} to prompt the user for input values. Workspace variables like ${workspaceFolder} are also supported for path references.

What is the difference between agent, ask, and edit modes in prompt files?

The agent mode allows autonomous multi-step task execution with tool use, ask mode handles conversational Q&A, and edit mode focuses on direct code modifications. Set the mode in the prompt file's frontmatter based on the task type.

When should I write a reusable prompt file instead of a one-off chat request?

Write a prompt file when a task recurs across your team, requires consistent conventions, or needs specific tool configurations. One-off exploratory questions are better handled directly in chat without the overhead of a structured prompt.