SkilldexAll articles

Give skills tool errors they can recover from

Model validation failures, timeouts, authorization denials, and ambiguous results as distinct recovery paths.

When a tool replies with an undifferentiated error, the skill has to guess whether a request was invalid, blocked, or possibly applied. A stable error contract gives the workflow enough evidence to identify the next safe step and describe the state accurately to the user.

Keep the machine signal independent of prose

Return a consistent reason code, a short human explanation, and actionable details when they can be disclosed. Validation errors can identify an incorrect field. A permission denial can identify the missing operation or scope without exposing hidden records. An unknown create outcome can carry a request ID for status lookup.

For HTTP-facing services, Problem Details defines an envelope that can carry a stable type alongside an explanation. At a model tool boundary, preserve those semantics through the adapter. A generic transport-success wrapper around every tool result can otherwise hide application failures.

Decide which errors can move forward

Invalid input may need one field corrected. An unavailable dependency may be retryable under a shared deadline. An authorization failure usually requires the application’s permission flow. A timeout after a mutation needs an authoritative status check before repeating the operation.

Make the recovery paths testable

Keep a fixture for each error code your skill handles. Score the final status and tool behavior together so a superficially helpful explanation cannot mask repeated invalid calls. Record error categories in telemetry without collecting raw private inputs.

Sources