Agent skill
generate-typed-client
Generate typed HTTP client with Microsoft Kiota
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-typed-client
SKILL.md
Generate Typed HTTP Client with Microsoft Kiota
Generate a strongly-typed HTTP API client using Microsoft Kiota.
Steps
- Install:
dotnet tool install -g Microsoft.OpenApi.Kiota - Search:
kiota search <api-name> - Generate:
bash
kiota generate -l CSharp -d https://api.example.com/openapi.json -c ExampleApiClient -n MyApp.ApiClients -o ./src/Generated - Add packages:
bash
dotnet add package Microsoft.Kiota.Abstractions dotnet add package Microsoft.Kiota.Http.HttpClientLibrary dotnet add package Microsoft.Kiota.Serialization.Json - Use:
csharp
var authProvider = new AnonymousAuthenticationProvider(); var adapter = new HttpClientRequestAdapter(authProvider); var client = new ExampleApiClient(adapter); var candidates = await client.Api.Candidates.GetAsync();
Supported languages: CSharp, TypeScript, Java, Go, Python, PHP, Ruby, Swift
Arguments
<openapi-spec>: URL or path to OpenAPI specification--namespace=<ns>: Root namespace for generated code--lang=<CSharp|TypeScript|Go|Python>: Target language
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?