Skip to content

feat(skills): Add Agent Skills discovery#487

Merged
edenreich merged 5 commits into
mainfrom
feat/agent-skills
May 4, 2026
Merged

feat(skills): Add Agent Skills discovery#487
edenreich merged 5 commits into
mainfrom
feat/agent-skills

Conversation

@edenreich
Copy link
Copy Markdown
Contributor

@edenreich edenreich commented May 2, 2026

Summary

  • Adds an Agent Skills system: discovers SKILL.md files (with YAML frontmatter) under .infer/skills/ (project) and ~/.infer/skills/ (user-global), with project scope taking precedence on name collisions.
  • New infer skills list command surfaces discovered skills, their scope, description, and path — plus validation errors for skipped entries — and works regardless of the enable flag.
  • Injects skill metadata (name + description) into the agent system prompt; skill bodies are read on demand by the model via the existing Read tool (progressive disclosure). Disabled by default — enable via agent.skills.enabled or INFER_AGENT_SKILLS_ENABLED=true.

Closes #486

edenreich added 5 commits May 2, 2026 11:57
Discovers SKILL.md files in .infer/skills/ and ~/.infer/skills/ with
YAML frontmatter, exposes them via a new `infer skills list` command,
and injects their metadata into the agent system prompt so the model
can read full skill bodies on demand.
Adds remote install and local uninstall to the Skills feature so users
can pull a skill folder straight from a public GitHub repo and remove it
later, without copying files by hand.

- `infer skills install <github-url>` downloads a single skill folder
  from a `/tree/<ref>/<path>` URL via the GitHub trees API + raw
  content host. Post-validates with the existing loadSkill so what
  installs is what loads; cleans up on failure. Supports --user and
  --overwrite.
- `infer skills uninstall <name>` removes a skill folder. Name is
  regex-validated to prevent path traversal. No confirmation prompt
  (matches npm/brew conventions).
- `/skills` chat shortcut with `list`, `install`, `uninstall`
  subcommands, seeded by `infer init`.
- Flox manifest: prepend $GOPATH/bin to PATH on activate so the binary
  built by `task install` resolves in chat shortcut subprocesses.

Verified end-to-end with anthropics/skills/skills/pdf — installs, shows
up in /skills list, the agent reads SKILL.md on demand via the existing
Read tool, and uninstall cleans up the folder.
@edenreich edenreich changed the title feat(skills): Add Agent Skills discovery and system-prompt injection feat(skills): Add Agent Skills discovery May 4, 2026
@edenreich edenreich merged commit 42dcfbd into main May 4, 2026
5 checks passed
@edenreich edenreich deleted the feat/agent-skills branch May 4, 2026 14:03
inference-gateway-releaser-bot Bot pushed a commit that referenced this pull request May 4, 2026
## [0.109.0](v0.108.0...v0.109.0) (2026-05-04)

### 🚀 Features

* **skills:** Add Agent Skills discovery ([#487](#487)) ([42dcfbd](42dcfbd))

### 🧹 Maintenance

* **deps:** Bump dev dependecies to their latest ([1d873dc](1d873dc))
* **deps:** Bump github.com/fsnotify/fsnotify from 1.9.0 to 1.10.0 ([#489](#489)) ([f2f5056](f2f5056))
* **deps:** Bump go version from 1.26.1 to 1.26.2 ([952f941](952f941))
* **deps:** Bump go.uber.org/zap from 1.27.1 to 1.28.0 ([#488](#488)) ([29787ab](29787ab))
* **nix:** Update package to v0.108.0 ([#484](#484)) ([a76cb90](a76cb90))
@inference-gateway-releaser-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.109.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Implement skills

1 participant