mcpbeat

Author Test

azure/author-test

Generate a test given sample. Parameters: <cs_root> C# SDK repository root; <package_name> Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; <sample_name> the sample to use as a starting point for the test.

348 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
6033
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Azure/azure-sdk-for-net --skill author-test

The instruction itself

2 sections, as written by the author

Basic information.

This skill requires C# repository root (<cs_root>), package name (<package_name>), and sample file name as an input (<sample_name>). The samples are located in the <cs_root>/sdk/ai/<package_name>/tests/Samples directory, the test files are in <cs_root>/sdk/ai/<package_name>/tests. The tests are organized according to scenarios tested. The files, having suffix Base contains the required utility functions needed for testing.

Task

Look at the sample and generate the test code in the appropriate test file. The test must have the next structure:

[RecordedTest]
// Test cases if any [TestCase(true)]
public async Task TestFeatureName(){
    var result = await CallFeatureAsync();
    Assert.That(result.Value, Is.Equal.To("Expected feature value"))
}

Always use the async methods (with Async suffix) if possible. Keep the test short and representative.

To make sure that the test is running as expected, build the project.

cd <cs_root>
dotnet build
cd <cs_root>
dotnet build

If the project does not build, iterate on the error.

How to use it

Copy the folder

Take azure/author-test from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.