KI

kit-copilot-create-prompt

Scaffolds standard-compliant VS Code Copilot prompt files to help developers automate tasks and define AI behavior.

Install

mkdir -p .claude/skills/kit-copilot-create-prompt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16622" && unzip -o skill.zip -d .claude/skills/kit-copilot-create-prompt && rm skill.zip

Installs to .claude/skills/kit-copilot-create-prompt

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Creates a new Copilot prompt file (.prompt.md) with proper frontmatter, structured body, and context-gathering strategies. Use when user asks to create, scaffold, build, generate, or set up a prompt file, task template, or .prompt.md file.
239 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Create new Copilot prompt files (.prompt.md)
  • Define specific tasks for Copilot chat
  • Gather requirements for prompt automation
  • Scan workspace for existing prompts, agents, and instructions
  • Draft prompt frontmatter and body

How it works

This skill creates a structured Copilot prompt file by interviewing the user for requirements, scanning the workspace for context, and then drafting the YAML frontmatter and body instructions.

Inputs & outputs

You give it
description of a workflow or task to automate with Copilot
You get back
a structured Copilot prompt file (.prompt.md) with frontmatter and body

When to use kit-copilot-create-prompt

  • Create a new automation prompt template
  • Scaffold a VS Code prompt file
  • Define task-specific AI instructions
  • Setup a reusable prompt for frequent requests

About this skill

Create a Copilot Prompt File

What This Skill Does

Creates a properly structured Copilot prompt file (.prompt.md) for VS Code following the prompt files documentation. The generated prompt defines a specific task — a reusable workflow template for Copilot chat and related prompt surfaces.

Prompt files are the simplest customization mechanism: a Markdown file with optional YAML frontmatter that acts as a task shortcut. They're ideal for one-shot workflows that don't require bundled resources, scripts, or cross-platform portability.

Key Concepts: Prompt vs Agent vs Skill vs Instructions

Understanding the separation of concerns is critical for creating effective prompts. Each customization mechanism has a distinct purpose:

ComponentDefinesAnalogyFile Type
Prompt FileWHAT specific task to performA work order or task assignment.prompt.md
Custom AgentWHO the AI is and HOW it behavesThe employee's role, personality, and work style.agent.md
Agent SkillReusable CAPABILITY or multi-step workflowA specialized training module the employee can useSKILL.md in a skill directory
Custom InstructionsWHERE — project context and standardsThe company handbook.instructions.md
<belongs-in-prompt> - A specific, repeatable task with clear inputs and outputs - Task instructions that any agent can follow - Variable placeholders for dynamic input (`${selection}`, `${file}`, `${input:...}`) - Optional agent override to route the task to a specialized agent - Optional tool restrictions to limit capabilities for the task </belongs-in-prompt> <does-not-belong-in-prompt> - Persona definitions (philosophy, behavioral traits) → put these in custom agents (`.agent.md`) - Complex multi-step workflows with bundled scripts/templates → put these in Agent Skills (`SKILL.md`) - Project coding standards → put these in custom instructions (`.instructions.md` or `copilot-instructions.md`) - Tool API documentation → focus on task intent, not tool mechanics </does-not-belong-in-prompt> <escalation-criteria> If during the interview the user's needs exceed what a prompt file handles well, recommend converting to an Agent Skill instead. Signals that a skill is more appropriate:
  • The workflow needs bundled resource files (scripts, templates, examples)
  • The workflow should work across VS Code, CLI, and coding agent (portability)
  • The workflow should auto-trigger based on description matching (not just manual prompt selection)
  • The workflow is complex enough to warrant its own directory with supporting files </escalation-criteria>

Step-by-step Procedure

Step 1: Interview

Before creating anything, gather requirements from the user. Use #tool:vscode/askQuestions if available to batch all clarifying questions in a single structured prompt. Otherwise, ask in chat.

<questions> 1. **Purpose**: What specific task or workflow should this prompt automate? What problem does it solve? 2. **Audience**: Who will use this prompt? (e.g., junior dev, reviewer, DevOps engineer, any team member) 3. **Inputs**: What data should the prompt accept? (selection, active file, custom parameters via `${input:...}`) 4. **Output**: What format should the result take? (code, report, checklist, diff, documentation) 5. **Agent mode**: Should it use the default agent, or route to a specific custom agent? (check existing agents in the workspace) 6. **Tool access**: Should the prompt have full tool access, read-only access, or restricted access?

Do NOT proceed to drafting until you have clear answers to at least questions 1, 3, and 4. If the user provides a clear enough description, infer reasonable defaults for the rest and confirm. </questions>

Step 2: Workspace Scan

Before generating the prompt, scan the workspace for context.

<context-gathering> 1. **Check existing prompts** — Search `.github/prompts/` for existing `.prompt.md` files to avoid naming conflicts and maintain consistency with established patterns. 2. **Check existing agents** — Search `.github/agents/` for `.agent.md` files. If the prompt should route to a specific agent, verify the agent exists. 3. **Check existing instructions** — Search for `.instructions.md` and `copilot-instructions.md` files. Ensure the prompt doesn't duplicate guidance that's already in project instructions. 4. **Check existing skills** — Search for `SKILL.md` files in `.github/skills/`. Ensure the prompt doesn't duplicate a capability that's already a skill.

Report any findings to the user: "I found X existing prompts. Your new prompt complements/overlaps with [specific prompt]." </context-gathering>

Step 3: Draft

Using the interview answers, compose the prompt.

Frontmatter:

Build the YAML metadata block using the field-by-field decision guide in the reference section below.

<template name="frontmatter"> ```yaml --- name: <kebab-case-name> description: "<One-line summary of what this prompt does (30-60 chars)>" agent: <agent-mode> argument-hint: "<Guidance text shown in chat input>" tools: [<tool-list>] --- ``` </template>

Body:

Use the bundled prompt-template.md as the structural starting point. Fill in the following sections:

<template name="body-sections"> 1. `## Goal` — State what the prompt accomplishes in 1-2 sentences. 2. `## Inputs & Context Gathering` — List variables, workspace files to scan, and clarification strategies. 3. `## Protocol` (or a task-specific name like "## Review Protocol", "## Generation Protocol") — Break the task into numbered steps with reasoning checkpoints. 4. `## Expected Output Format` — Provide a concrete template or example of the deliverable. 5. `## Guidance` (optional) — Edge cases, quality standards, collaboration cues. </template>

Present the complete draft to the user for review before generating.

Step 4: Generate

Once confirmed:

<rules> 1. Create the `.prompt.md` file in `.github/prompts/` (default location). 2. Ensure the YAML frontmatter is valid and properly delimited with `---`. 3. Ensure the Markdown body follows the section structure. 4. Do NOT paste the content as a code block in chat — create the actual file. </rules>

Step 5: Validate

Before reporting completion, iterate through every check below.

<validation> - [ ] YAML frontmatter is valid (properly closed `---` delimiters) - [ ] `name` field follows `kebab-case` convention - [ ] `description` is present, 30-60 characters, clearly states what the prompt does - [ ] `agent` field is set correctly (see Agent Mode Decision Guide) - [ ] `tools` field is appropriate for the task (omitted for full access, restricted for limited tasks) - [ ] File is saved as `.github/prompts/<name>.prompt.md` - [ ] Task scope is clear and achievable - [ ] Output format section is concrete and actionable - [ ] No tech-stack assumptions unless explicitly required - [ ] Variable syntax is correct (`${input:name:hint}`, `${selection}`, `${file}`) - [ ] References to tools use `#tool:<tool-name>` syntax where applicable </validation>

After validation, display this message to the user:

<user-message> **How to use your new prompt:** 1. Open Copilot Chat and choose `<prompt-name>` from your available prompts 2. Provide any requested input 3. Run it with the agent specified in the prompt frontmatter, or your current agent if none is set

The prompt works with any agent mode. To verify it loads correctly, check Diagnostics (right-click in Chat view → Diagnostics). </user-message>

Suggest related customizations that would complement the new prompt (agents, instructions, skills).

YAML Frontmatter Reference

FieldRequiredNotes
nameNo (inferred from filename)Explicit name overrides the filename. Use kebab-case.
descriptionRecommendedShown in prompt-selection surfaces. Write 30-60 chars that help users identify this prompt quickly.
agentNoControls which agent mode processes the prompt. See Agent Mode Decision Guide below.
argument-hintNoPlaceholder text shown in the chat input after the user selects this prompt. Guide them on what input to provide.
toolsNoRestrict available tools. Omit for full access. See Tool Restriction Patterns below.

Agent Mode Decision Guide

<decision-guide name="agent-mode"> The `agent` field determines which agent processes the prompt. Choose based on the task:
ValueWhen to useExample
agent (default)General-purpose tasks that benefit from full Copilot capabilitiesCode generation, refactoring, analysis
<custom-agent-name>Tasks that should be handled by a specific persona with specialized expertiseagent: kit-backend-engineer for API tasks
(omit)Let the user choose the agent mode when invokingPrompts that work differently per agent
<rules> - Avoid `ask` and `edit` modes — they limit capabilities. Use `tools` field restrictions instead to constrain the agent while keeping the full agent mode. - When referencing a custom agent, verify it exists in the workspace (`.github/agents/`). - If the prompt creates or modifies files, use `agent` (not a read-only agent). </rules> </decision-guide>

Tool Restriction Patterns

<decision-guide name="tool-restrictions"> Use the `tools` field to limit what the agent can do when processing this prompt. Common patterns:
Task typeToolsRationale
Read-only analysistools: [read/readFile, search, read/problems]Prevents accidental edits during review/audit tasks
Code generationtools: [edit/createFile, edit/editFiles, edit/createDirectory, search, read/readFile]Full file CRUD without terminal access
Full capability(omit tools)All tools availab

Content truncated.

When not to use it

  • When defining persona definitions or behavioral traits for an AI
  • When creating complex multi-step workflows with bundled scripts or templates

Limitations

  • A prompt file defines a specific task, not a persona definition.
  • A prompt file is not suitable for complex multi-step workflows with bundled resources.

How it compares

This skill automates the creation of a structured, task-specific Copilot prompt file, ensuring adherence to best practices and proper context gathering, unlike manual prompt writing.

Compared to similar skills

kit-copilot-create-prompt side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
kit-copilot-create-prompt (this skill)04moNo flagsIntermediate
prompt-optimize139moNo flagsAdvanced
ai-cost-optimizer95moCautionIntermediate
self-improving-agent121moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

prompt-optimize

YYH211

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

13113

ai-cost-optimizer

ScientiaCapital

Save 40-70% on AI costs with intelligent multi-LLM routing. Automatically selects the optimal model based on task complexity across 40+ models from 8 providers.

990

self-improving-agent

alirezarezvani

Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extract recurring solutions into reusable skills. Use when: (1) reviewing what Claude has learned about your project, (2) graduating a pattern from notes to enforced rules, (3) turning a debugging solution into a skill, (4) checking memory health and capacity.

128

ccs-delegation

kaitranntt

Auto-activate CCS CLI delegation for deterministic tasks. Parses user input, auto-selects optimal profile (glm/kimi/custom) from ~/.ccs/config.json, enhances prompts with context, executes via `ccs {profile} -p "task"` or `ccs {profile}:continue`, and reports results. Triggers on "use ccs [task]" patterns, typo/test/refactor keywords. Excludes complex architecture, security-critical code, performance optimization, breaking changes.

210

skill-from-notebook

GBSOSS

Extract methodologies from documents or examples to create executable skills

28

prompt-factory

alirezarezvani

World-class prompt powerhouse that generates production-ready mega-prompts for any role, industry, and task through intelligent 7-question flow, 69 comprehensive presets across 15 professional domains (technical, business, creative, legal, finance, HR, design, customer, executive, manufacturing, R&D, regulatory, specialized-technical, research, creative-media), multiple output formats (XML/Claude/ChatGPT/Gemini), quality validation gates, and contextual best practices from OpenAI/Anthropic/Google. Supports both core and advanced modes with testing scenarios and prompt variations.

45

Search skills

Search the agent skills registry