ark-sdk-development
Regenerate and debug types across the ARK stack (SDK, API, Dashboard). Use when fixing TypeScript type errors in ark-dashboard, updating types after CRD changes, regenerating types.ts from OpenAPI spec, debugging "Property does not exist on type" schema errors, or adding custom SDK functionality via overlays. Covers the full type pipeline from Kubernetes CRDs to TypeScript.
Install
mkdir -p .claude/skills/ark-sdk-development && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6786" && unzip -o skill.zip -d .claude/skills/ark-sdk-development && rm skill.zipInstalls to .claude/skills/ark-sdk-development
About this skill
ARK SDK and Type Development
Type Generation Pipeline
Types flow through the ARK stack:
CRD YAML (ark/config/crd/)
↓ make ark-sdk-build (automatic)
ark-sdk Python types + overlay utilities
↓
ark-api Pydantic models (manual updates if exposing new fields)
↓ make ark-api-build → generates openapi.json
ark-dashboard TypeScript types
↓ npm run generate:api → generates types.ts
ark-sdk: Automatic Type Generation
CRD types are automatically generated from Kubernetes CRD YAML files.
make ark-sdk-build
This runs:
crd_to_openapi.py- converts CRDs to OpenAPI schemaopenapi-generator-cli- generates Python types from schema- Copies overlay files on top of generated code
- Builds wheel package
Adding Custom SDK Functionality (Overlays)
The lib/ark-sdk/gen_sdk/overlay/python/ark_sdk/ directory contains custom Python modules that are copied on top of generated code. This is how utilities like client.py, k8s.py, and executor.py are added.
To add custom SDK functionality:
- Add Python files to
lib/ark-sdk/gen_sdk/overlay/python/ark_sdk/ - Run
make ark-sdk-build
ark-api: Manual Model Updates
The ark-api has manually written Pydantic models in services/ark-api/ark-api/src/ark_api/models/.
When to update ark-api models:
- When exposing new CRD fields via the HTTP API
- When adding new API response types
make ark-api-build
This generates services/ark-api/openapi.json from FastAPI routes and Pydantic models.
Pydantic Model Naming (CRITICAL)
Pydantic model class names MUST be globally unique across all model files. When multiple files define classes with the same name (e.g., ConfigMapKeyRef, Header, ValueFrom), FastAPI generates non-deterministic OpenAPI schema names like ark_api__models__agents__Header-Input. These names depend on import order and cause CI failures when types.ts differs between environments.
Solution: Prefix class names with their domain context:
| File | Naming Pattern | Examples |
|---|---|---|
agents.py | Agent* | AgentHeader, AgentValueFrom, AgentParameter |
mcp_servers.py | MCPServer* | MCPServerHeader, MCPServerValueSource |
queries.py | Query* | QueryParameter, QueryLabelSelector |
models.py | Model* | ModelValueSource |
Safety net: generate_openapi.py fails if any schema name contains __models__, catching collisions at build time.
See: https://github.com/mckinsey/agents-at-scale-ark/issues/656
ark-dashboard: TypeScript Type Generation
cd services/ark-dashboard/ark-dashboard
cp ../../ark-api/openapi.json ../out/
npm run generate:api
npm run build # verify types compile
Debugging Type Errors
When you see:
Property 'SomeSchema' does not exist on type
- Regenerate types.ts from latest openapi.json
- Find the correct schema name:
grep "SomeSchema" services/ark-dashboard/ark-dashboard/lib/api/generated/types.ts - Update service files to use correct schema names
If you see schema names with __models__ pattern (e.g., ark_api__models__agents__Header-Input):
- This indicates a Pydantic model naming collision
- Fix by renaming the Python class to be unique (see naming convention above)
- Do NOT work around by using the
__models__name - fix the root cause
Key Files
| File | Purpose |
|---|---|
ark/config/crd/bases/*.yaml | Source of truth - Kubernetes CRDs |
lib/ark-sdk/gen_sdk/overlay/ | Custom SDK utilities (copied on top of generated) |
services/ark-api/ark-api/src/ark_api/models/ | Manually written Pydantic models |
services/ark-api/ark-api/generate_openapi.py | Generates openapi.json with collision safety net |
services/ark-api/openapi.json | Generated OpenAPI spec from FastAPI |
services/ark-dashboard/out/openapi.json | Copy used for dashboard type generation |
services/ark-dashboard/ark-dashboard/lib/api/generated/types.ts | Generated TypeScript types |
More by mckinsey
View all skills by mckinsey →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversTest apps seamlessly with BrowserStack's testing infrastructure. Verify mobile app functionality, cross-browser issues,
Empower your CLI agents with NotebookLM—connect AI tools for citation-backed answers from your docs, grounded in your ow
ToolFront is a knowledge database software and db management system offering unified access to databases with advanced t
TypeScript Refactoring offers advanced TypeScript/JavaScript code analysis and intelligent refactoring for seamless and
Integrate DuckDuckGo web search into your site with our MCP server, supporting features like Google custom search and ro
Memory Bank: A TypeScript server for persistent, markdown-based project memory management and session context tracking a
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.