-
Notifications
You must be signed in to change notification settings - Fork 1.1k
.NET: Add .NET Anthropic Claude Skills sample #3497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add Agent_Anthropic_Step04_UsingSkills sample demonstrating pptx skill usage - Add integration tests for skills functionality - Update README.md with new sample reference - Update solution file to include new sample project Co-authored-by: rogerbarreto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new .NET sample demonstrating Anthropic Claude Skills support, matching Python sample functionality as requested in Issue #2690. The implementation uses a simplified AsAITool() approach that automatically handles beta flags and container configuration.
Changes:
- Added a new sample
Agent_Anthropic_Step04_UsingSkillsdemonstrating Skills usage (pptx skill) - Added integration tests for Skills functionality in
AnthropicSkillsIntegrationTests.cs - Updated parent README to reference the new sample
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
AnthropicSkillsIntegrationTests.cs |
Integration tests for Anthropic Skills functionality with two test cases |
Agent_Anthropic_Step04_UsingSkills/README.md |
Documentation for the Skills sample with code examples and prerequisites |
Agent_Anthropic_Step04_UsingSkills/Program.cs |
Sample code demonstrating Skills listing, agent creation, and file download |
Agent_Anthropic_Step04_UsingSkills.csproj |
Project configuration file matching existing sample patterns |
agent-framework-dotnet.slnx |
Solution file updated to include the new sample project |
AgentWithAnthropic/README.md |
Updated table of samples to reference the new Skills sample |
Motivation and Context
Adds a sample demonstrating Anthropic Claude Skills support in .NET, matching the Python sample functionality as requested in Issue #2690. Follows Stephen Toub's recommended simplified approach using
AsAITool().Description
Sample
Agent_Anthropic_Step04_UsingSkillsdemonstrates:BetaSkillParams.AsAITool()to add skills (SDK auto-handles beta flags)Key:
AsAITool()auto-handles beta headers and container config - no manualRawRepresentationFactoryneeded!Changes:
Program.cs- Simplified with skills listing and file downloadREADME.md- Updated documentationAnthropicSkillsIntegrationTests.cs- Simplified testsContribution Checklist
The code builds clean without any errors or warnings
The PR follows the Contribution Guidelines
All unit tests pass, and I have added new tests where possible
Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.
Fixes .NET: Claude Skills support #2690