Repository navigation
Closed
Copy link
Labels
Description
Summary
Today a skill must already exist on disk before a run: the CLI scans .infer/skills/, .agents/skills/, and ~/.infer/skills/, and anything else has to be installed manually with infer skills install <name>. In practice every project ends up vendoring its own copies of the same skills, causing skill sprawl across the GitHub org.
Proposal - dynamic skills via progressive discovery (see this post): let the agent discover and fetch skills at runtime from the centralized catalog (inference-gateway/skills, served at https://registry.inference-gateway.com/skills/) instead of requiring per-project copies.
- When the agent needs a skill it does not have locally, it looks it up in the centralized catalog, downloads it, and activates it on demand.
- Local skills override the catalog: if a skill with the same name already exists in any scanned location, no lookup or download happens. This extends the existing precedence chain (project-local, then open standard, then user-global) with the catalog as the last fallback.
- The centralized skills repo becomes the single source of truth; projects stop vendoring skills unless they intentionally override one.
Acceptance Criteria
- With skills enabled, the agent can discover and fetch a skill from the centralized catalog at runtime when no local skill of that name exists.
- A local skill with the same name short-circuits discovery: no catalog lookup or download is performed.
- Discovery is progressive: only catalog metadata (name, description) is consulted up front; a skill body is fetched only when the skill is actually activated.
- The behavior is configurable, the skills discovery is a feature behind a toggle, disabled by default.
- When skills discovery is enabled, the volatile section about skills explains the agent how to fetch a skill from the registry.
- When skills discovery is disabled, the volatile section doesn't explains how to fetch skills from the registry (YAGNI - tokens saving).
- The functionality for installing skills is re-used for the progressive discovery.
- The dynamic skills are deleted after the session is completed (post cleanup hook) - can be configured but cleanup is done by default.
-
docs/skills.mddocuments the full discovery order including the catalog fallback.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Jul 30, 2026
@infer Can you work on this? use /go /go-concurrency /ponytail:ponytail
inference-gateway-maintainer commentedon Jul 30, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#973
✅ Infer Result: Success
All tasks are complete. Here's a summary of the changes:
Summary
Implemented progressive skill discovery from the centralized skills catalog (
inference-gateway/skills), resolving issue #972.What changed
Config (
config/config.go):SkillsDiscoveryConfigstruct withEnabled(defaultfalse),RegistryURL, andCleanup(defaulttrue) fields toAgentSkillsConfigDomain (
internal/domain/skills.go):SkillScopeCatalogscope for dynamically discovered skillsDiscover(ctx, name)andCleanupDynamic(ctx)methods to theSkillsServiceinterfaceCatalog client (
internal/services/skills/catalog.go- new file):CatalogClientfetches skill metadata from the registry index (index.json) - only name + description up front (progressive)DownloadSkillreuses the existingInstallerto download the full skill body on activationCleanupDynamicremoves downloaded skills from.infer/tmp/skills/after the sessionSkills service (
internal/services/skills/skills.go):Discover(): checks local skills first (short-circuits), then looks up the catalog, downloads on activation, caches in-memoryCleanupDynamic(): gated on config, defaults to cleanup enabledSystem prompt (
internal/agent/agent_utils.go):discovery.enabledis true: addsSKILLS DISCOVERYsection explaining how to fetch skills from the registryContainer (
internal/container/container.go):CleanupDynamicinShutdownfor post-session cleanupDocs (
docs/skills.md):.agents/skills> user-global > plugin > catalog (last fallback)PR: #973 (draft, ready for review)
Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 8m 50sTokens: 11,124,748 in · 15,618 out · 11,140,366 total (51 requests)
Tool calls: 61 total · 92% success rate
Traces
Stats
call_agpqtbap:call_d2t3u91j:call_9khjy3rm:call_uy0lok5v:call_0vaneucf:Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Jul 31, 2026
🎉 This issue has been resolved in version 0.155.0 🎉
The release is available on:
Your semantic-release bot 📦🚀