agentleFS
MicrosoftKnown publishermicrosoft/CopilotAdventures/.github/copilot-instructions.md

CopilotAdventures

Copilot instructions586 starsChanged 16 months agoMITView on GitHub

CopilotAdventures is an educational repository containing adventure-themed coding challenges designed to teach developers GitHub Copilot's different interaction modes (Agent, Ask, and Edit). The core concept is fantasy-themed programming puzzles that demonstrate specific Copilot capabilities. JavaScript/Python Standalone Pattern: - Individual self-contained files per adventure - Direct execution: node filename.js or python filename.py - No shared runner - each file is completely independent JavaScript/Python Solutions:

  • In this repositoryOne other file it gives its agents.

The file

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

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No shared runner - each file is completely independent

    line 25
  2. Very specific:

    Create adventure class with Run() method

    line 51
  3. Very specific:

    Add case to Program.cs switch statement

    line 52
  4. Distinctive:

    Use fantasy-themed class names matching adventure locations

    line 53
  5. Distinctive:

    Console-based: All I/O through console for simplicity

    line 75
  6. Distinctive:

    Self-contained: No external dependencies beyond standard libraries

    line 78
  7. Distinctive:

    Follow the established markdown template structure

    line 119
  8. Distinctive:

    Use descriptive variable names that align with adventure themes

    line 128
  9. Distinctive:

    When creating new content, maintain the whimsical fantasy theme while ensuring technical challenges are appropriate for the target …

    line 145

≈ “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 Instructions for CopilotAdventures

Project Overview

CopilotAdventures is an educational repository containing adventure-themed coding challenges designed to teach developers GitHub Copilot's different interaction modes (Agent, Ask, and Edit). The core concept is fantasy-themed programming puzzles that demonstrate specific Copilot capabilities.

Architecture & Data Flow

Adventure Organization

  • Adventures/Agent/ - Autonomous AI agent mode challenges (multi-file, project creation)
  • Adventures/Ask/ - Interactive chat mode challenges (step-by-step collaboration)
  • Difficulty hierarchy: 1-Beginner/, 2-Intermediate/, 3-Advanced/
  • Parallel adventure variants: each has both -Agent.md and -Ask.md versions

Solutions Architecture

C# Centralized Runner Pattern:

  • Solutions/CSharp/Program.cs - Main entry point with switch-case adventure selector
  • Each adventure = separate class with mandatory Run() method
  • Adventure classes follow PascalCase naming (e.g., Tempora, Algora)
  • Console arguments or user input selects which adventure to execute

JavaScript/Python Standalone Pattern:

  • Individual self-contained files per adventure
  • Direct execution: node filename.js or python filename.py
  • No shared runner - each file is completely independent

Data Dependencies

  • Data/scrolls.txt - Shared data for Eldoria adventure (contains secrets in {*...*} format)
  • Images/ - 1456x832 landscape artwork for each adventure location
  • Adventure-specific assets in themed subdirectories

Development Workflows

Running Solutions

C# Solutions:

cd Solutions/CSharp
dotnet run [adventure-name]  # e.g., dotnet run tempora

JavaScript/Python Solutions:

cd Solutions/JavaScript
node The-Clockwork-Town-of-Tempora.js

cd Solutions/Python  
python The-Clockwork-Town-of-Tempora.py

Adding New C# Adventures

  1. Create adventure class with Run() method
  2. Add case to Program.cs switch statement
  3. Use fantasy-themed class names matching adventure locations

MCP Architecture (Advanced Adventures)

Knowledge Cartographer adventure demonstrates proper MCP integration:

  • MCP tools handle external operations (web scraping via FireCrawl, file system via File System MCP)
  • Applications read MCP results from structured files (entities.json, relationships.json, sources.json)
  • Clean separation: MCP → Files → Application (not direct MCP → Application)
  • See Solutions/JavaScript/README-Knowledge-Cartographer.md for reference architecture

Adventure Development Patterns

Standard Adventure Structure

  1. Hero image (width: 830px) - landscape 1456x832 format
  2. Background story - fantasy context and world-building
  3. Objective - clear task definition with learning outcomes
  4. Prerequisites - VS Code setup, Copilot mode selection
  5. Specifications - technical requirements with sample data
  6. High-level Tasks - solution approach breakdown
  7. Mode-specific guidance - Agent vs Ask prompting patterns

Code Organization Requirements

  • Single-file solutions: Complete adventure in one executable file
  • Console-based: All I/O through console for simplicity
  • Educational comments: Show Copilot interaction patterns and prompts used
  • Fantasy variable naming: Align with adventure themes (clockTimes, grandClockTime, scrollSecrets)
  • Self-contained: No external dependencies beyond standard libraries

Naming Conventions

  • Adventure files: The-[Name]-of-[Location]-[Mode].md
  • Solution files: The-[Name]-of-[Location].[ext]
  • C# classes: PascalCase matching adventure names
  • Adventure themes use fantasy locations (Tempora, Algora, Lumoria, etc.)

Key Integration Patterns

GitHub Copilot Mode Specialization

  • Agent Mode: High-level task delegation, autonomous problem-solving, multi-file coordination
    • Prompt: "Create a complete [adventure] system that [comprehensive requirements]"
    • Agent breaks down, implements, tests, and iterates independently
  • Ask Mode: Step-by-step collaboration, learning-focused interaction
    • Prompt: "Help me understand how to [specific concept] for [adventure context]"
    • Interactive guidance with explanation and code examples

Common Algorithm Patterns

  • Time synchronization (Tempora): Parse time strings, calculate minute differences
  • Sequence prediction (Chamber of Echoes): Pattern recognition in number arrays
  • Data filtering (Eldoria): Extract secrets from noise using regex {*...*} patterns
  • Grid simulation (Mythos): 2D array manipulation for game mechanics
  • Rock-paper-scissors logic (Stonevale): Conditional game rule implementation

Data Processing Examples

// Tempora pattern: time difference calculation
const timeDifference = (clockTime, grandClockTime) => {
    const [clockHour, clockMinute] = clockTime.split(":").map(Number);
    return (clockHour - grandClockHour) * 60 + (clockMinute - grandClockMinute);
};

// Eldoria pattern: secret extraction from Data/scrolls.txt
const extractSecrets = (text) => text.match(/{\\*(.+?)\\*}/g)?.map(match => 
    match.replace(/{\\*|\\*}/g, '')) || [];

Contributing Guidelines

New Adventure Requirements

  • Follow the established markdown template structure
  • Include landscape image (1456x832 pixels)
  • Provide solution in at least one language in Solutions/
  • Adventure should demonstrate specific Copilot features or techniques
  • Include both Agent and Ask mode variants

Code Style

  • Prioritize readability and educational value over optimization
  • Include extensive comments showing Copilot interaction
  • Use descriptive variable names that align with adventure themes
  • For C#: Add new adventures to the Program.cs switch statement

Common Adventure Patterns

Algorithm Types

  • Sequence prediction (Tempora, Chamber of Echoes)
  • Pattern matching (Algora, Stonevale)
  • Data parsing/filtering (Eldoria scrolls)
  • Game mechanics simulation (Mythos grid, celestial alignment)

Data Structures

  • Most adventures use arrays/lists as primary data structures
  • Time-based adventures work with time parsing and arithmetic
  • Grid-based adventures use 2D arrays or coordinate systems
  • String processing adventures focus on parsing and pattern extraction

When creating new content, maintain the whimsical fantasy theme while ensuring technical challenges are appropriate for the target difficulty level.

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.