home/productivity/copilot-new-instructions-prompt

Copilot New Instructions.prompt

GPTClaudeDeepSeek··902 copies·updated 2026-07-14
copilot-new-instructions-prompt.prompt
---
description: Scaffold a new scoped custom instructions file (*.instructions.md)
name: New Instructions File
agent: Copilot Customization Builder
tools: ['search', 'edit/editFiles']
---
# New Instructions File

Create a new `*.instructions.md` file with an `applyTo` glob.

## Inputs

- Instructions file slug (filename, without `.instructions.md`): `${input:instructionsSlug}`
- applyTo glob (example: `**/*.py`): `${input:applyToGlob}`
- Short purpose line (what it enforces): `${input:instructionsPurpose}`
- Location (`workspace` or `user`): `${input:instructionsLocation}`

## Instructions file types

VS Code supports multiple types of instructions files:

| Type | Location | Scope |
|------|----------|-------|
| `.github/copilot-instructions.md` | Workspace root | All chat requests |
| `*.instructions.md` | `.github/instructions/` or user profile | File-pattern scoped via `applyTo` |
| `AGENTS.md` | Workspace root (or subfolders with experimental setting) | All agents in workspace |
| `CLAUDE.md` | Workspace root, `.claude/`, or `~/.claude/` | Claude-compatible always-on instructions |
| `.claude/rules/*.md` | Workspace `.claude/rules/` | Claude Rules format (uses `paths` glob array, not `applyTo`) |
## Requirements

1. Create the file at the appropriate location:
   - Workspace: `.github/instructions/${input:instructionsSlug}.instructions.md`
   - User profile: Use the `Chat: New Instructions File` command and select "User profile"
2. Use YAML frontmatter with these fields:
   - `applyTo` (optional): Glob pattern for auto-application (e.g., `**/*.py`). If omitted, must be attached manually.
   - `description` (optional): Short description of the instructions file
   - `name` (optional): Display name in UI (defaults to filename)

fill the variables

This prompt has 4 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{input:instructionsSlug}{input:applyToGlob}{input:instructionsPurpose}{input:instructionsLocation}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo trsdn/github-copilot-agent (MIT). A "Copilot New Instructions.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

trsdn/github-copilot-agent · MIT