Integration
Contract-test adapters for portable AI skills
Verify how each host maps tool schemas, errors, and authorization before treating a skill as portable.
A shared skill folder can travel between hosts while the behavior of its tools changes underneath it. Tool names, output wrappers, schema dialects, and authorization flows can differ. A small adapter test suite makes these assumptions visible and portable in practice.
Define the host-independent contract
Write down the operations the skill needs and the minimum semantics each must preserve. The contract should say what identifiers mean, which fields may be absent, and how authorization or unavailability appears. Describe behavior at the boundary the skill actually consumes, even if the backing API has a richer interface.
OpenAPI can document HTTP endpoints while MCP describes callable tools. The adapter can expose a narrower operation shaped for the task. Verify required fields and semantics in both directions, especially when a provider supports only a subset of JSON Schema.
Run identical fixtures on each host
Test normal outputs, pagination, validation errors, timeout, cancellation, and denial. Assert equivalent outcomes even if the serialized wrappers differ. For contract changes, preserve both fixtures until downstream clients have migrated.
Expose missing capabilities clearly
If a host provides search but lacks a required write, report the capability gap before committing to the workflow. Make supported alternatives explicit in the adapter and check them against the same policy. This gives users a clear outcome without having the skill improvise new destinations or actions.