Skip to content

[WIP] Improving prompts for .NET scenarios#217

Open
JonathanCrd wants to merge 15 commits into
mainfrom
JonathanCrd/net-skills-validations
Open

[WIP] Improving prompts for .NET scenarios#217
JonathanCrd wants to merge 15 commits into
mainfrom
JonathanCrd/net-skills-validations

Conversation

@JonathanCrd
Copy link
Copy Markdown
Collaborator

Here are some improvements to the existing prompts for .NET and also included new scenarios.

✨AI Summary:

This pull request adds new prompt templates and refines existing ones for .NET SDK usage across Azure services, focusing on real-world developer scenarios and improving clarity. The changes include several new intermediate and advanced prompt files for App Configuration, Cosmos DB, Event Hubs, and Key Vault, as well as significant improvements to existing prompts for CRUD operations, authentication, and pagination patterns. The most important changes are summarized below:

New Prompt Templates for Advanced Scenarios:

  • Added a prompt for integrating Azure App Configuration with ASP.NET Core using the configuration provider, covering dynamic refresh and the sentinel key pattern. (prompts/app-configuration/data-plane/dotnet/aspnet-provider.prompt.md)
  • Added a prompt for managing feature flags in Azure App Configuration, including both storage (via FeatureFlagConfigurationSetting) and evaluation (via Microsoft.FeatureManagement). (prompts/app-configuration/data-plane/dotnet/feature-flags.prompt.md)
  • Added a prompt for consuming the Cosmos DB change feed using the .NET SDK, focusing on the change feed processor pattern and lease management. (prompts/cosmos-db/data-plane/dotnet/change-feed.prompt.md)
  • Added a prompt for using Azure Schema Registry with Event Hubs and Avro serialization in .NET, explaining schema registration, serialization, and deserialization. (prompts/event-hubs/data-plane/dotnet/schema-registry.prompt.md)
  • Added a prompt for managing certificates (CRUD) in Azure Key Vault with the .NET SDK, including LRO patterns and importing certificates. (prompts/key-vault/data-plane/dotnet/crud-certificates.prompt.md)

Improvements to Existing Prompts (Clarity, Focus, and Realism):

  • Refined prompts for App Configuration CRUD and feature flag operations to focus on practical usage patterns, removing unnecessary steps and clarifying error handling expectations. [1] [2]
  • Updated Cosmos DB CRUD and pagination prompts to reflect more realistic usage: assuming pre-existing containers, focusing on common query and pagination scenarios, and clarifying the use of FeedIterator and continuation tokens. [1] [2] [3]
  • Improved Event Hubs send/receive prompt to highlight checkpointing, disposal patterns, and realistic producer/consumer setup.

Authentication and Identity Guidance Enhancements:

  • Clarified authentication prompts for DefaultAzureCredential, Managed Identity, and Service Principal, with a focus on troubleshooting, best practices, and real-world deployment scenarios. [1] [2] [3]

Key Vault Usage Patterns and Pagination:

  • Updated Key Vault secret CRUD and pagination prompts to focus on secret rotation, purging, and efficient enumeration of large secret sets using AsyncPageable<T> and AsPages(). [1] [2]

These changes collectively improve the coverage, accuracy, and developer relevance of prompt templates for Azure .NET SDK usage.

@JonathanCrd JonathanCrd self-assigned this Apr 6, 2026
@JonathanCrd JonathanCrd changed the title Improving prompts for .NET scenarios [WIP] Improving prompts for .NET scenarios Apr 9, 2026
@JonathanCrd
Copy link
Copy Markdown
Collaborator Author

I'll revisit this PR based on the latest strategy adjustments discussed on the meeting.

Comment thread prompts/app-configuration/data-plane/dotnet/aspnet-provider.prompt.md Outdated
Comment thread prompts/app-configuration/data-plane/dotnet/aspnet-provider.prompt.md Outdated
Comment thread prompts/app-configuration/data-plane/dotnet/aspnet-provider.prompt.md Outdated
Comment thread prompts/app-configuration/data-plane/dotnet/aspnet-provider.prompt.md Outdated
Comment thread prompts/app-configuration/data-plane/dotnet/feature-flags.prompt.md Outdated
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