30 public GitHub Copilot rules in the HyperPrompt directory
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.
Setup details below were checked against the official GitHub Docs on 2026-11-05. Vendor tools change often; confirm with the linked sources if something behaves differently in your version.
| File or location | Scope | Status |
|---|---|---|
.github/copilot-instructions.md | Repository-wide instructions.The only repository instruction file JetBrains and Xcode use, per GitHub's IDE docs. | current |
.github/instructions/NAME.instructions.md | Path-specific instructions selected by an applyTo glob in front matter.On GitHub.com these apply only to Copilot cloud agent and Copilot code review. | current |
AGENTS.md (anywhere in the repository) | Agent instructions; the nearest AGENTS.md in the directory tree takes precedence.Alternatively, a single CLAUDE.md or GEMINI.md in the repository root. | current |
.github/instructions/typescript.instructions.mdIllustrative example of the documented applyTo front matter.
--- applyTo: "**/*.ts,**/*.tsx" --- - Enable strict TypeScript; avoid any and non-null assertions. - Prefer named exports. - Keep functions small enough to unit test, and add tests with new logic.
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.
Collections with at least one matching public rule.
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 instructions for TypeScript code patterns with unknown narrowing, type guards that check field types, exhaustive unions, purposeful generics and satisfies.
Copilot instructions for Next.js App Router code with awaited params, authenticated Server Actions, typed Route Handlers and explicit caching.
Generate tests with Copilot assistance
Write shell scripts with Copilot
Generate Node.js backend code
Write code that helps Copilot suggest better
Copilot instructions for idiomatic Go services with Go 1.22+ method routing, wrapped errors, slog logging and table-driven httptest tests.
Generate React component code
Generate modern JavaScript patterns
Design RESTful APIs
Generate Webpack configurations
Copilot instructions for Rust 2024 crates covering borrowed parameters, thiserror 2 error enums, non-blocking Tokio code and a justified dependency policy.
Write docs with Copilot assistance
Generate modern CSS code
Migrate JavaScript to TypeScript
Refactor code with Copilot help
Generate Docker configurations
Repository-wide instructions go in .github/copilot-instructions.md. Path-specific instructions go in .github/instructions/*.instructions.md with an applyTo glob. AGENTS.md files are also supported on some surfaces.
No. According to GitHub Docs, VS Code supports all three instruction types, Visual Studio supports repository-wide and path-specific files, and JetBrains and Xcode use .github/copilot-instructions.md only.
Yes. Instruction files committed to the repository apply to everyone using Copilot with that repository on a supported surface.
Generate a Cursor project rule or a cross-tool AGENTS.md from your stack, then adapt it with the file locations above.