ghc-custom-instructions

Guides learners through writing and verifying GitHub Copilot custom instructions for a C# Web API.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill ghc-custom-instructions-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ghc-custom-instructions
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/github-copilot/ghc-custom-instructions
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill ghc-custom-instructions-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often skip writing .github/copilot-instructions.md, so Copilot generates code that ignores team conventions. This Skill teaches learners to write root and scoped instruction files and verify Copilot actually follows the rules. ## Core Features & Use Cases - Root instructions file: Write a .github/copilot-instructions.md with 5-9 concrete, verifiable rules covering style, API conventions, and testing for a .NET 8 Web API. - Scoped instructions with applyTo: Create .instructions.md files with applyTo glob frontmatter targeting specific file patterns like **/*Tests.cs. - Verification workflow: Generate new controllers and tests via Copilot Edit mode, score rule compliance, and refine instructions based on real usage. - Use Case: A learner scaffolds a TodoApi in C#, writes conventions for records, Result<T>, and structured logging, then confirms Copilot follows them when generating a TagsController. ## Quick Start Ask the Mentor to start the ghc-custom-instructions project and scaffold a C# Web API with a root copilot-instructions.md file.

Frequently Asked Questions about ghc-custom-instructions

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

FAQPage Schema
How do I write a copilot-instructions.md file for my repository?

Create `.github/copilot-instructions.md` at the repo root with 5-9 concrete, verifiable rules covering style, API conventions, and testing. Copilot reads this file automatically on every chat in the repo, with no applyTo frontmatter needed at root.

How do I scope Copilot instructions to specific files with applyTo?

Create a `.instructions.md` file under `.github/instructions/` with `applyTo` frontmatter containing a glob pattern like `**/*Tests.cs`. The scoped rules layer on top of root instructions only when the active file matches the glob.

What makes a Copilot instruction rule effective vs ignored?

Effective rules are specific, behavioral, and verifiable, such as "use record types for DTOs." Vague rules like "write clean code" get ignored because Copilot cannot tell when they are satisfied. Keep the file under roughly 50 rules and avoid conflicts.

Why is Copilot not following my custom instructions?

Common causes include rules referencing code that does not exist yet, the active editor file not matching the applyTo glob, or an outdated chat session. Restart the Copilot Chat session, open the matching file, and scaffold referenced types like Result<T>.

When should I use instructions vs agents in GitHub Copilot?

Instructions apply automatically and silently to everything in scope, making them the bedrock for team conventions. Agents are explicit invocations for specialized tasks. Use instructions for always-on conventions and agents for on-demand workflows.