Skip to content

[FEATURE] Ship built-in skills with the CLI (seed-if-absent) with a tmux starter skill #827

Description

@edenreich

Problem

Skills are a first-class feature but arrive empty: infer init creates an empty skills dir and users must author or infer skills install everything themselves. There is no way to ship curated skills with the CLI installation. Built-in skills also open the path to shrinking the always-on tool registry (follow-up issue) — instruction skills instead of registered tools, following the existing "no GitHub tool, use gh via Bash" guidance pattern (agent_utils.go:264).

Design

Seed-if-absent embedded builtins — reuse the existing loader end-to-end; no new scope, no new config:

  • Skills live at internal/services/skills/builtins/<name>/SKILL.md, embedded via //go:embed builtins/* → embed.FS in a new file beside skills.go (same pattern as internal/web/server.go:24).
  • seedBuiltins() at the top of Service.Load(): fs.WalkDir the embed FS and write each builtin into ~/.infer/skills/<name>/ only if that dir is absent (mirrors cmd/init.go's seed-if-absent family).
  • Everything downstream is unchanged and free: precedence (project .infer/skills/ and .agents/skills/ shadow the user dir via the existing first-match-wins seen map, skills.go:87-127), per-skill opt-out (agent.skills.disabled_skills), master switch (agent.skills.enabled), prompt roster, Read sandbox carve-out, infer skills list.
  • Deliberate: seed-if-absent, not runtime-merge — a user who edits a seeded builtin keeps their edit. If builtins must self-update later, add a version stamp + reseed then (not now).

Starter builtin: tmux — generalize the TUI-driving recipe into an end-user skill teaching the infer agent to drive interactive terminal programs: session lifecycle (new-session -d -x -y, kill-session), send-keys -l for literal text vs named keys, capture-pane -p -S for reading frames, sleep-before-capture, cleanup discipline. This is the product-side counterpart of the repo-dev drive-tui skill and directly serves the "agent can see and drive TUIs" goal.

Acceptance criteria

  • Fresh HOME: first run seeds ~/.infer/skills/tmux/; infer skills list shows it (user scope); frontmatter validates
  • An existing ~/.infer/skills/tmux/ is never overwritten
  • A project-scope skill of the same name shadows it; disabled_skills removes it from the roster
  • Tests: seeded-when-missing, not-overwritten-when-present, shadowed-by-project-scope, disabled via config

Dependencies

None. Unblocks the tool-to-skill conversion issue.

Activity

  1. added
    enhancement
    on Jul 10, 2026
  2. moved this to Todo in 2026on Jul 10, 2026
  3. moved this from Todo to QA in 2026on Jul 12, 2026
  4. inference-gateway-releaser commented on Jul 12, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.144.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. moved this from QA to Done in 2026on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions