openapi-anthropic

Update the anthropic_sdk_dart package from Anthropic OpenAPI specification changes.

Updated May 23, 2026
One-click install
npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill openapi-anthropic-kiranimmadi2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi-anthropic
Source: https://github.com/kiranimmadi2/promptforge-ai/tree/main/ai_clients_dart/packages/anthropic_sdk_dart/.agents/skills/openapi-anthropic
Command: npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill openapi-anthropic-kiranimmadi2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Keeping a hand-written Dart SDK in sync with the evolving Anthropic OpenAPI specification is error-prone: new content blocks, built-in tools, and beta-gated resources are easy to miss or wire incorrectly. This Skill provides a repeatable fetch-review-scaffold-verify workflow so spec changes are detected, implemented, and validated systematically. ## Core Features & Use Cases - Spec Fetch & Review: Downloads the latest Anthropic OpenAPI spec, compares it against the pinned hash, and reports what changed via the shared api-toolkit CLI. - Scaffolding & Implementation Guidance: Generates model scaffolds and provides package-specific patterns for built-in tool routing, input/output content block pairing, and enum round-trip fidelity. - Verification & Documentation: Runs coverage and export checks, then guides updates to examples, README, and llms.txt before opening a PR. - Use Case: When Anthropic ships a new built-in tool in the API spec, run the fetch and review commands, scaffold the new schema, wire it into BuiltInTool and ToolDefinition, then verify and update docs. ## Quick Start Ask the AI to fetch the latest Anthropic OpenAPI spec and review what changed for the anthropic_sdk_dart package.

Frequently Asked Questions about openapi-anthropic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update a Dart SDK from an OpenAPI spec change?

Run the api-toolkit fetch command with the skill's config directory to download the latest spec, then run review to see changes. Scaffold new schemas, promote the spec into the package's specs directory, and update the pinned_hash in config/specs.json.

How do I add a new built-in tool to the Anthropic Dart SDK?

Adding a built-in tool requires three touch points: the tool class file, a convenience factory and fromJson dispatch case on the BuiltInTool sealed class, and a type prefix entry in ToolDefinition._isBuiltInType so deserialization routes correctly.

Does the workflow require Anthropic API authentication?

No authentication environment variables are required. The spec is fetched from a public URL, and the toolkit commands only need python3 and the config directory path.

Why does fetch still report outdated after promoting the spec?

The pinned_hash in config/specs.json was not updated to the new spec hash. Copy the latest_hash value from the fetch output into pinned_hash so subsequent fetches recognize the spec as current.

What verification steps run before opening a PR?

Run the toolkit verify command with all checks and scope, then run dart analyze with fatal infos, dart format with set-exit-if-changed, and the unit tests. Documentation artifacts including examples, README, and llms.txt must also be updated.