mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 10:25:13 +00:00
All 5 Go recipes and their markdown docs used incorrect API patterns that don't match the real github.com/github/copilot-sdk/go v0.1.23: - copilot.NewClient() -> copilot.NewClient(nil) (*ClientOptions param) - client.Start() -> client.Start(ctx) (context.Context required) - copilot.SessionConfig -> &copilot.SessionConfig (pointer required) - session.On(func(event copilot.Event)) -> session.On(func(event copilot.SessionEvent)) - Type assertions -> event.Type string check + *event.Data.Content deref - session.WaitForIdle() -> session.SendAndWait(ctx, ...) (WaitForIdle doesn't exist) - copilot.SystemMessage -> copilot.SystemMessageConfig All 5 recipes verified to compile against SDK v0.1.23.
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
- Browse the tool or product folder that matches what you want to build
- Find the recipe that solves your use case
- Copy the code snippet or check the
recipe/subfolder for complete, runnable examples - 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
- Microsoft Copilot Adventures - Interactive adventures and tutorials for learning GitHub Copilot
- GitHub Copilot Chat Cookbook - Official cookbook with Copilot Chat examples and techniques