Skip to content

Migrating SDK cookbook over#632

Merged
aaronpowell merged 12 commits into
mainfrom
copilot-sdk-cookbook
Feb 2, 2026
Merged

Migrating SDK cookbook over#632
aaronpowell merged 12 commits into
mainfrom
copilot-sdk-cookbook

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, agent, or skill file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, or skill with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New collection file.
  • New skill file.
  • Update to existing instruction, prompt, agent, collection or skill.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings February 1, 2026 22:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a comprehensive cookbook section to the awesome-copilot repository, containing practical recipes and runnable examples for the GitHub Copilot SDK across four programming languages (Python, Node.js/TypeScript, Go, and .NET/C#). Each recipe demonstrates common SDK usage patterns including error handling, session management, file operations, and GitHub PR visualization.

Changes:

  • Added cookbook structure with 5 recipes per language (error handling, multiple sessions, managing local files, PR visualization, persisting sessions)
  • Added runnable code examples in recipe/ subdirectories for each language
  • Updated main README to include the new cookbook section and changed repository title from "Awesome GitHub Copilot Customizations" to "Awesome GitHub Copilot"

Reviewed changes

Copilot reviewed 53 out of 55 changed files in this pull request and generated 17 comments.

Show a summary per file
File Description
README.md Updated repository title and added cookbook link to main navigation
cookbook/README.md Top-level cookbook overview with links to SDK recipes
cookbook/copilot-sdk/README.md SDK cookbook hub linking all language-specific recipes
cookbook/copilot-sdk/{python,nodejs,go,dotnet}/README.md Language-specific recipe indexes
cookbook/copilot-sdk/{python,nodejs,go,dotnet}/*.md Recipe documentation for each pattern
cookbook/copilot-sdk/{python,nodejs,go,dotnet}/recipe/* Runnable example implementations
cookbook/copilot-sdk/nodejs/recipe/package*.json Node.js dependencies and scripts
cookbook/copilot-sdk/python/recipe/requirements.txt Python dependencies
cookbook/copilot-sdk/go.sum Go module dependencies
Files not reviewed (1)
  • cookbook/copilot-sdk/nodejs/recipe/package-lock.json: Language not supported

session.send(prompt=user_input)
session.wait_for_idle()

client.stop()

Copilot AI Feb 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code example in the documentation is missing the session.destroy() call before client.stop(). The actual runnable example file includes this call at line 157, but the documentation omits it. This inconsistency could lead users to forget proper cleanup when following the documentation.

Copilot uses AI. Check for mistakes.
Comment thread cookbook/copilot-sdk/nodejs/README.md Outdated

## Contributing

Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in [CONTRIBUTING.md](../../CONTRIBUTING.md).

Copilot AI Feb 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path to CONTRIBUTING.md is incorrect. From cookbook/copilot-sdk/nodejs/README.md, the path should be ../../../CONTRIBUTING.md (three levels up to reach the repository root), not ../../CONTRIBUTING.md.

Suggested change
Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in [CONTRIBUTING.md](../../CONTRIBUTING.md).
Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in [CONTRIBUTING.md](../../../CONTRIBUTING.md).

Copilot uses AI. Check for mistakes.

## Local SDK Development

The `package.json` references the local Copilot SDK using `"file:../../.."`. This means:

Copilot AI Feb 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation states that package.json references the local SDK using "file:../../.." but the actual package.json uses "*" which resolves to "file:../../src" (as seen in package-lock.json). The documentation should be updated to accurately reflect either the wildcard approach or the correct file path.

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment thread cookbook/copilot-sdk/python/pr-visualization.md Outdated
Comment thread cookbook/copilot-sdk/go/README.md Outdated
Comment thread cookbook/copilot-sdk/dotnet/README.md Outdated
Comment thread cookbook/copilot-sdk/README.md Outdated
Comment thread cookbook/copilot-sdk/nodejs/README.md
Comment thread cookbook/copilot-sdk/go/README.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 53 out of 55 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • cookbook/copilot-sdk/nodejs/recipe/package-lock.json: Language not supported

Comment thread README.md
Comment thread cookbook/copilot-sdk/nodejs/recipe/managing-local-files.ts
Comment thread cookbook/copilot-sdk/python/recipe/requirements.txt Outdated
Comment thread cookbook/copilot-sdk/python/recipe/README.md Outdated

Copilot AI commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

@aaronpowell I've opened a new pull request, #633, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

@aaronpowell I've opened a new pull request, #634, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 5 commits February 2, 2026 03:34
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Fix Prerequisites description in Python cookbook README
Fix misleading comment in Python recipe requirements.txt
@aaronpowell
aaronpowell merged commit 7feee42 into main Feb 2, 2026
6 checks passed
@aaronpowell
aaronpowell deleted the copilot-sdk-cookbook branch February 2, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants