.github/instructions/copilot-regex-patterns.instructions.md. Downloaded files need to be placed in that repository path.--- applyTo: "**/*" --- Regex creation: 1. Pattern hints 2. Test cases 3. Common patterns 4. Escaping 5. Performance
Copilot instructions for TypeScript project setup covering strict tsconfig flags and their effects, type-only imports, module hygiene and TSDoc for public APIs.
Copilot instructions for React 19 TypeScript components that forward native props, use effects only for synchronization and are tested by role.
Copilot instructions for typed Python with built-in generics, deliberate dataclass options, PEP 257 docstrings, narrow exceptions and pytest tests.
Copilot
patterns
GitHub Copilot reads repository-wide custom instructions from .github/copilot-instructions.md and path-specific instructions from .github/instructions/*.instructions.md files with an applyTo glob. Copilot can also use AGENTS.md files, where the nearest file in the directory tree takes precedence. Which file types are honored depends on the surface: VS Code, Visual Studio, JetBrains, Xcode, Eclipse and GitHub.com differ.
.github/instructions/copilot-regex-patterns.instructions.mdStarting point, not a tested configuration for your repository. Used for files matching applyTo on surfaces that support path-specific instructions. Review the instructions, adapt the file paths and run your project's existing checks.
--- applyTo: "**/*" --- Regex creation: 1. Pattern hints 2. Test cases 3. Common patterns 4. Escaping 5. Performance
Ask for a small change to one matching file. Check the tool's loaded context or instruction view, inspect the diff for the requested convention, and run the relevant build or test. A well-formatted file does not guarantee the model follows every instruction.
Instruction support differs by surface: VS Code supports repository-wide, path-specific and AGENTS.md instructions; Visual Studio supports repository-wide and path-specific; JetBrains and Xcode use .github/copilot-instructions.md. GitHub's documentation describes AGENTS.md files stored anywhere in the repository, with the nearest file in the directory tree taking precedence, or alternatively a single CLAUDE.md or GEMINI.md in the root. Support differs by surface; GitHub's IDE page lists AGENTS.md among the instruction types for VS Code.
Documentation checked 2026-11-05: GitHub Docs: Adding repository custom instructionsGitHub Docs: Repository instructions in your IDE
Copilot instructions for TypeScript project setup covering strict tsconfig flags and their effects, type-only imports, module hygiene and TSDoc for public APIs.
Copilot instructions for React 19 TypeScript components that forward native props, use effects only for synchronization and are tested by role.
Copilot instructions for typed Python with built-in generics, deliberate dataclass options, PEP 257 docstrings, narrow exceptions and pytest tests.