Files
awesome-copilot/cookbook
Aaron Powell b8d93a0344 feat(website): add samples/cookbook page with recipe browser
Integrates the cookbook/ folder into the website's Samples page:

Data Structure:
- Add cookbook/cookbook.yml manifest defining cookbooks and recipes
- Add .schemas/cookbook.schema.json for validation
- Add COOKBOOK_DIR constant to eng/constants.mjs

Build Integration:
- Add generateSamplesData() to generate samples.json from cookbook.yml
- Include recipe variants with file paths for each language
- Add samples count to manifest.json

Website UI:
- Create samples.ts with FuzzySearch, language/tag filtering
- Replace placeholder samples.astro with functional recipe browser
- Recipe cards with language indicators and action buttons
- Language tabs for switching between implementations
- View Recipe/View Example buttons open modal
- GitHub link for each recipe

Features:
- Search recipes by name/description
- Filter by programming language (Node.js, Python, .NET, Go)
- Filter by tags (multi-select with Choices.js)
- 5 recipes across 4 languages = 20 recipe variants
2026-02-02 15:11:12 +11:00
..

GitHub Copilot Cookbook

A collection of practical recipes and examples for working with GitHub Copilot tools and features. Each recipe provides focused, copy-paste-ready code snippets and real-world examples to help you accomplish common tasks.

What's in the Cookbook

The cookbook is organized by tool or product, with recipes collected by language where applicable:

GitHub Copilot SDK

Ready-to-use recipes for building with the GitHub Copilot SDK across multiple languages.

  • Copilot SDK Cookbook - Recipes for .NET, Go, Node.js, and Python
    • Error handling, session management, file operations, and more
    • Runnable examples for each language
    • Best practices and complete implementation guides

Getting Started

  1. Browse the tool or product folder that matches what you want to build
  2. Find the recipe that solves your use case
  3. Copy the code snippet or check the recipe/ subfolder for complete, runnable examples
  4. Refer to the language-specific documentation for setup and execution instructions

Planned Expansions

The cookbook is designed to grow alongside the GitHub Copilot ecosystem. Future additions may include recipes for:

  • Additional Copilot tools and integrations
  • Advanced patterns and workflows
  • Integration with external services and APIs
  • Language-specific optimizations and best practices

Contributing

Have a recipe to share? We'd love to include it! See CONTRIBUTING.md for guidelines on submitting new recipes.

Resources

Official Documentation

External Cookbooks

Other