feat: /skill.md agent-optimized service catalog#266
Open
Conversation
… v0.1.13 Add dynamic /skill.md endpoint aggregating all Ready ServiceOffers into structured markdown for AI agent consumption. Includes x402 payment instructions, per-service details, curl examples, and USDC contract refs. - _build_skill_md(): generates markdown from Ready ServiceOffer items - _publish_skill_md(): deploys ConfigMap + busybox httpd + Service + HTTPRoute in openclaw-obol-agent namespace (no ownerRefs, aggregate resource) - Hooked into cmd_process() at all exit paths (no offers, all ready, post-reconcile) - Content-hash annotation triggers pod rollout on content changes - busybox httpd.conf for text/markdown MIME type Also bumps frontend to v0.1.13 (fixes AgentRegistry crash on undefined supported_protocols/supported_trust_models from 8004scan API).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/skill.mdendpoint: Dynamic, agent-optimized markdown document served at the tunnel root, aggregating all Ready ServiceOffers into a structured catalog with x402 payment instructions, per-service details, curl examples, and USDC contract references.Cannot read properties of undefined (reading 'map')crash in AgentRegistry when 8004scan API returns agents with undefinedsupported_protocols/supported_trust_models.How it works
The monetize reconciler (
monetize.py) now publishes/skill.mdon every heartbeat cycle using the proven busybox httpd pattern (ConfigMap + Deployment + Service + HTTPRoute). The document regenerates automatically as ServiceOffers are created/deleted/updated.Resources deployed in
openclaw-obol-agentnamespace:obol-skill-mdConfigMap (markdown content +httpd.conffortext/markdownMIME)obol-skill-mdDeployment (busybox httpd with content-hash annotation for auto-rollout)obol-skill-mdService (ClusterIP)obol-skill-md-routeHTTPRoute (Exact/skill.md, public, no ForwardAuth)No RBAC changes needed — existing
openclaw-monetize-workloadClusterRole covers all resources.Test plan
curl -sI https://<tunnel>/skill.mdreturnsContent-Type: text/markdown