DEV Community

Discussion on: Your API Wasn't Designed for AI Agents. Here Are 5 Fixes.

Collapse
 
klement_gunndu profile image
klement Gunndu

Self-hosted AI OS consuming APIs via skill files is an interesting architecture — you get deterministic routing without the agent guessing which endpoint to call. The retryable boolean and batch endpoints translate directly to that pattern since your skill files can encode the retry logic statically. Curious how you handle schema evolution — when the API adds new fields, do the skill files auto-update or is that a manual sync?

Collapse
 
micelclaw profile image
Victor García

Honestly it's kind of a non-issue by design. Skills describe operations — endpoints, verbs, required body fields — not response schemas. So when the API adds a new field, skills don't care. When a skill does need updating (like adding retryable to the error envelope), we ship it in the same commit since skills and API live in the same monorepo. For third-party skills on our registry, min_claw_version in the frontmatter handles compatibility — the registry flags anything that falls behind. The key thing is that because skills are text instructions for an LLM and not compiled code, an outdated skill still works — it just won't leverage the new capability.