26 Downloads

README

skills — Agent Skills for LM Studio, routed by jev

Exposes the SKILL.md skills under ~/.agents/skills to any model in LM Studio chat.

  • Auto-routing: on every message, TypeSafe jev scores each skill; skills above the threshold (default 0.6, max 2) are injected into the prompt.
  • Explicit: start a message with /skill-name task… (or $skill-name) to force a skill.
  • Tools: list_skills, read_skill_file, list_skill_files — read-only, path-jailed.
  • Fallback: if jev is unavailable, the message passes through with an <available_skills> list.

Setup

  • npm install, then lms dev in this directory.
  • In the plugin settings, paste your TypeSafe API key into Jev API key (or leave it blank and set JEV_API_KEY in the environment LM Studio is launched from).
  • Adjust threshold / max skills as needed; global setting Skills root changes the scan directory.

Scripts inside skills are never executed by this plugin. Use the shell plugin's shell_run tool.

Settings

SettingScopeDefaultMeaning
Jev API keyper chat(empty)TypeSafe API key for routing. Leave blank to use JEV_API_KEY.
Routing thresholdper chat0.6Minimum jev probability to auto-apply a skill.
Max skills per messageper chat2Upper bound on injected skills; 0 disables auto-injection (hint list only).
History turns for routingper chat4Recent messages sent to jev as context (each truncated to 500 chars).
Max injected charactersper chat12000Cap on an injected SKILL.md body; the rest is available via read_skill_file.
Show available skills when nothing matchedper chatoffAppend the <available_skills> list even when jev ran and matched nothing.
Skills rootglobal~/.agents/skillsDirectory whose subfolders contain SKILL.md files. ~ is expanded; empty means the default.

How skills are chosen

Every skill folder is listed by list_skills and can be activated explicitly with /name, but only routable skills are sent to jev. A skill is not auto-routed when its frontmatter sets disable-model-invocation: true, when it has no description, when its frontmatter or SKILL.md cannot be read, when its name duplicates an earlier skill's, or when its name is not activatable (names must match [A-Za-z0-9][A-Za-z0-9_-]*; an invalid frontmatter name falls back to the folder name). Such skills still appear in list_skills with a note. At most 40 skills are routed per message, preferring the most recently modified SKILL.md. Jev has a 6 s deadline; on timeout or error the message passes through with the <available_skills> list and the reason is shown in the status.

Development

  • npm test — vitest, no network (in-memory fs, fake judge and controller).
  • npm run typecheck — tsc --noEmit for src/ plus tsc -p tsconfig.test.json for the tests.
  • lms dev — run the plugin against a local LM Studio.