agentleFS
MicrosoftKnown publishermicrosoft/GHCP-Lab/.github/copilot-instructions.md

GHCP-Lab

Copilot instructions45 starsChanged 14 months agoMITView on GitHub

Always reference these instructions first and fallback to search or additional context gathering only when you encounter unexpected information that does not match the info here. This is an educational repository for learning GitHub Copilot, NOT a traditional software project. The repository contains intentionally incomplete code designed for hands-on learning experiences. CRITICAL WARNING: This repository contains intentionally incomplete code. Build failures are EXPECTED and BY DESIGN. CRITICAL: Do NOT validate by building or running applications. This lab validates learning through…

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

23 rules. About 0 are common, 22 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always reference these instructions first and fallback to search or additional context gathering only when you encounter unexpected …

    line 3
  2. Distinctive:

    Follow the guided tour steps using Next/Previous buttons

    line 27
  3. Distinctive:

    NEVER attempt to make incomplete code compile during the lab

    line 37
  4. Distinctive:

    DO NOT attempt to create Makefiles or build systems

    line 48
  5. Distinctive:

    CRITICAL: Do NOT validate by building or running applications.

    line 60
  6. Distinctive:

    Verify GitHub Copilot completions appear when typing in incomplete code sections

    line 64
  7. Distinctive:

    Test chat and inline chat functionality with sample prompts

    line 65
  8. Distinctive:

    Start CodeTour from Explorer panel

    line 71
  9. Distinctive:

    Test GitHub Copilot completion in an incomplete code section

    line 73
  10. Distinctive:

    Test GitHub Copilot chat with a simple question about the code

    line 74
  11. Distinctive:

    Verify proper syntax highlighting and IntelliSense

    line 75
  12. Distinctive:

    DO NOT fix compilation errors during learning

    line 99
  13. Very specific:

    Ensure vsls-contrib.codetour extension is installed

    line 103
  14. Distinctive:

    Look for "CODETOUR" section in Explorer panel

    line 104
  15. Distinctive:

    Verify extensions are installed and authenticated

    line 109
  16. Distinctive:

    Check GitHub Copilot subscription status

    line 110
  17. Distinctive:

    Test with simple prompts in chat first

    line 112
  18. Distinctive:

    Do NOT test application functionality - there is no running application

    line 121
  19. Distinctive:

    Do NOT validate by building or compiling code

    line 122
  20. Distinctive:

    Do NOT create additional test files or test frameworks

    line 123
  21. Distinctive:

    Do NOT attempt to fix intentional compilation errors

    line 124
  22. Distinctive:

    Stop if spending more than 30 minutes total without progress

    line 128
  23. Distinctive:

    Always remember: The goal is learning GitHub Copilot, not creating working software.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Lab Repository

Always reference these instructions first and fallback to search or additional context gathering only when you encounter unexpected information that does not match the info here.

Working Effectively

This is an educational repository for learning GitHub Copilot, NOT a traditional software project. The repository contains intentionally incomplete code designed for hands-on learning experiences.

Essential Setup Steps

  • Install VS Code with these critical extensions:
    • github.copilot - GitHub Copilot completions
    • github.copilot-chat - GitHub Copilot Chat
    • vsls-contrib.codetour - CodeTour (MANDATORY for lab navigation)
    • ms-dotnettools.csharp - C# support (for .NET track)
    • ms-dotnettools.csdevkit - C# Dev Kit (for .NET track)
  • Open the appropriate workspace file for your chosen track:
    • Typescript/GHCP-Typescript.code-workspace - TypeScript track
    • dotNet/GHCP-dotNet.code-workspace - .NET/C# track
    • cpp/GHCP-cpp.code-workspace - C++ track
  • Start the CodeTour:
    • Navigate to Explorer panel in VS Code
    • Find "CODETOUR" section at bottom
    • Click the Play button next to the tour name
    • Follow the guided tour steps using Next/Previous buttons

Build and Development Commands

CRITICAL WARNING: This repository contains intentionally incomplete code. Build failures are EXPECTED and BY DESIGN.

.NET Track (dotNet folder)

  • dotnet --version - Verify .NET 8.0+ is installed
  • dotnet restore dotNet.sln - Restore dependencies (~1 second)
  • dotnet build dotNet.sln - WILL FAIL - code is intentionally incomplete for learning
  • NEVER attempt to make incomplete code compile during the lab

TypeScript Track (Typescript folder)

  • node --version && npm --version - Verify Node.js and npm availability
  • tsc --version - Verify TypeScript compiler (requires 5.0+)
  • tsc --noEmit *.ts - Type check without compilation - WILL FAIL, intentionally incomplete
  • tsc models.ts && node models.js - Compile and run complete files only

C++ Track (cpp folder)

  • g++ --version - Verify C++ compiler availability
  • g++ -c <file>.cpp - Compile individual files - WILL FAIL, code intentionally incomplete
  • DO NOT attempt to create Makefiles or build systems

Expected Timing and Timeouts

  • Lab completion time: 60 minutes maximum (stop at 30 minutes if not progressing)
  • CodeTour navigation: Instant
  • .NET restore: 1-2 seconds - NEVER CANCEL, use timeout of 60+ seconds
  • TypeScript type checking: 1-2 seconds - NEVER CANCEL, use timeout of 60+ seconds
  • Reading documentation: 5-10 minutes per track

Validation Scenarios

CRITICAL: Do NOT validate by building or running applications. This lab validates learning through CodeTour completion.

After Making Changes

  • Navigate through CodeTour steps to ensure guidance is clear
  • Verify GitHub Copilot completions appear when typing in incomplete code sections
  • Test chat and inline chat functionality with sample prompts
  • Confirm all three tracks' workspaces open correctly with proper color themes

Manual Testing Steps

  1. Open workspace for chosen track
  2. Install recommended extensions when prompted
  3. Start CodeTour from Explorer panel
  4. Navigate through at least 3 tour steps
  5. Test GitHub Copilot completion in an incomplete code section
  6. Test GitHub Copilot chat with a simple question about the code
  7. Verify proper syntax highlighting and IntelliSense

Key Projects and Structure

Repository Organization

  • README.md - Main lab introduction and participation instructions
  • Typescript/ - TypeScript learning track with models for alert processing
  • dotNet/ - C# learning track with alert processing exercises
  • cpp/ - C++ learning track with alert processing exercises
  • .github/prompts/ - Sample prompts for GitHub Copilot Chat exercises
  • assets/ - Images and documentation assets

Learning Tracks Overview

Each track contains:

  • Models/Data: Alert and user event data structures
  • Completions exercises: Practice with ghost text suggestions
  • Inline Chat exercises: Practice with embedded chat interface
  • Chat exercises: Practice with sidebar chat interface
  • CodeTour files: Step-by-step guided learning experience

Common Issues and Solutions

"Build Failed" Errors

  • Expected behavior - code is intentionally incomplete
  • DO NOT fix compilation errors during learning
  • Focus on using GitHub Copilot features, not making code compile

CodeTour Not Starting

  • Ensure vsls-contrib.codetour extension is installed
  • Look for "CODETOUR" section in Explorer panel
  • Click refresh icon if tours don't appear
  • Restart VS Code if extension issues persist

GitHub Copilot Not Working

  • Verify extensions are installed and authenticated
  • Check GitHub Copilot subscription status
  • Restart VS Code and re-authenticate if needed
  • Test with simple prompts in chat first

Learning Validation

Primary validation: Successful completion of CodeTour steps for chosen track Secondary validation: Ability to generate code completions and use chat features Success criteria: Understanding differences between completions, inline chat, and chat

What NOT to Test

  • Do NOT test application functionality - there is no running application
  • Do NOT validate by building or compiling code
  • Do NOT create additional test files or test frameworks
  • Do NOT attempt to fix intentional compilation errors

Time Management

  • Spend maximum 20 minutes per track if doing multiple tracks
  • Stop if spending more than 30 minutes total without progress
  • Focus on hands-on experience with GitHub Copilot features, not code completion

Always remember: The goal is learning GitHub Copilot, not creating working software.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.