/ama-sdk:create-sdkfrom ama-sdk
Generates a TypeScript SDK from an OpenAPI specification, either as a standalone project or inside an Angular/Nx monorepo.
Ships in ama-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a TypeScript SDK from an OpenAPI specification — standalone or within a monorepo.
angular.json or nx.json)Before running commands, check the working directory:
angular.json or nx.json exists → monorepo workflow (Step A)ng add @ama-sdk/schematics
ng generate @ama-sdk/schematics:typescript-shell --name=my-sdk
This creates a library project (e.g., libs/my-sdk/) with package.json, tsconfig.json, and the source directory structure.
ng generate @ama-sdk/schematics:typescript-core --spec-path=./path/to/openapi.yaml
Run from inside the SDK library directory, or pass the project name if supported by your workspace.
ng generate @ama-sdk/schematics:typescript-mock
tsconfig.base.json (e.g., "@my-org/my-sdk": ["libs/my-sdk/src/index.ts"])When the OpenAPI spec changes:
ng generate @ama-sdk/schematics:typescript-core --spec-path=./path/to/updated-spec.yaml
This regenerates src/api/ and src/models/base/ while preserving custom core models.
From a local spec file:
npm create @ama-sdk typescript @scope/my-sdk -- --spec-path ./path/to/openapi.yaml
From an npm package containing the spec:
npm create @ama-sdk typescript @scope/my-sdk -- --spec-package-name @scope/my-spec --spec-package-registry https://registry.example.com
| Option | Description |
|---|---|
--spec-path | Path to a local OpenAPI spec file |
--spec-package-name | npm package name containing the spec |
--spec-package-registry | Custom npm registry URL for the spec package |
--spec-package-path | Path within the npm package to the spec file |
--spec-package-version | Specific version of the spec package |
--package-manager | Package manager to use (npm or yarn) |
--exact-o3r-version | Pin exact Otter framework versions |
--dry-run | Preview without writing files |
my-sdk/
├── package.json
├── tsconfig.json
├── src/
│ ├── api/ # Generated API classes (one per tag/path group)
│ ├── models/ # Generated TypeScript interfaces and revivers
│ │ ├── base/ # Base models (direct from spec)
│ │ └── core/ # Core models (extended with runtime features)
│ ├── fixtures/ # Mock data for testing
│ └── spec/ # Copy of the source specification
└── testing/
└── index.ts # Mock API exports
npx schematics @ama-sdk/schematics:typescript-core --spec-path ./path/to/updated-spec.yaml
This overwrites src/api/ and src/models/base/ but preserves custom extensions in src/models/core/.
npx schematics @ama-sdk/schematics:typescript-mock
npm run build
| Schematic | Alias | Purpose |
|---|---|---|
typescript-shell | ama-typescript-shell | Scaffold SDK project structure |
typescript-core | ama-typescript-core | Generate SDK code from OpenAPI spec |
typescript-mock | ama-typescript-mock | Generate mock API implementations |
api-extension | ama-api-extension | Generate custom spec extensions |
migrate | ama-migrate | Execute migration scripts between versions |
For schematic options, see: https://github.com/AmadeusITGroup/otter/blob/main/packages/@ama-sdk/schematics/collection.json
@ama-sdk/client-fetch, @ama-sdk/client-angular, or @ama-sdk/client-beacon) — see use-sdk skilltypescript-mock schematicSDK_CONTEXT.md and configure the MCP server) — see sdk-mcp-setup skillWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/sdk-mcp-setupInstall and configure the @ama-sdk/mcp server so AI assistants can read SDK_CONTEXT.md from installed SDK packages. Use when the get_sdk_context tool is unavailable, or the user asks to "set up the ama-sdk mcp" or "configure sdk context server"./sdk-pluginsUse and create @ama-sdk plugins for request transformation, authentication, resilience, and response processing. Use when user asks about SDK plugins, wants to add auth/retry/timeout, needs to create a custom plugin, or wants to transform requests before sending, wrap the fetch call itself (logging, metrics, circuit-breaking), or process/transform responses./use-sdkInstall, configure, and use a TypeScript SDK generated with @ama-sdk. Use when user wants to call APIs, set up a client (fetch, Angular, beacon), or understand how to use an existing SDK package.npx claudepluginhub amadeusitgroup/otter --plugin ama-sdkOther plugins' skills for the same job