Repository navigation
Conversation
allozaur
force-pushed
the
allozaur/feat/ui-local-skills-in-chat
branch
from
November 26, 2026 16:22
9a246a1 to
bb8592f
Compare
allozaur
force-pushed
the
allozaur/feat/ui-local-skills-in-chat
branch
2 times, most recently
from
November 27, 2026 08:51
b1a164a to
a831668
Compare
allozaur
force-pushed
the
allozaur/feat/ui-local-skills-in-chat
branch
from
November 27, 2026 09:04
a831668 to
2ab4cca
Compare
/skill lists the skills of ~/.agents/skills and ~/.claude/skills next to the ones MCP servers publish, each under where it comes from, and the model lists and loads both through list_skills and load_skill. A load asks for the skill in the tool permission card, bound to its content. The tools move from the MCP extension to the core: they read every SkillSource, which grows isAvailable, attach, permission and load. The local source keeps approvals by the SHA-256 of SKILL.md; the MCP source keeps PR 137's digest-set approvals. With llama-server's file tools off, only MCP skills are on offer. Assisted-by: Claude (Opus 5.5 Medium)
allozaur
force-pushed
the
allozaur/feat/ui-local-skills-in-chat
branch
from
November 27, 2026 09:26
2ab4cca to
ce1cb87
Compare
This branch has not been deployed
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.
Overview
The skills on the machine's folders can be used in a chat the way MCP skills are:
/skilllists them next to the MCP servers' ones and attaches the picked one, and the model can list and load either kind, asking the user before a skill is loaded.Additional information
Stacked on the Library skills PR (#141). It joins that PR's local skills with the chat side of the MCP skills PR (#137).
Choices made here:
list_skillsandload_skillare the app's own browser tools and read everySkillSource. The point grows what a chat needs (isAvailable,attach,permission,load), and MCP's source implements them on top of its skills store. The core still does not import the MCP extension. It is the smaller change of the two: the other option, the MCP extension owning tools that also read the folders, would have tied local skills to MCP being on.load_skilltakes a name, andfromonly when two places have a skill of that name. A name only one place has is loaded whateverfromsays. In the browser, a 2B model kept passing the skill's name asfromand looped; the user still sees where the skill is from in the card before anything loads./skillis the user's yes to it, as for MCP skills./skilland the tools offer MCP skills only, and with no MCP server publishing skills/skillis greyed out like/cwd. The listing the model gets no longer says where skills come from in general, only under each place.Still open: how local skills are found.
LocalSkillsServicegoes through llama-server'sfile_glob_searchandread_file; a/skillsendpoint would replace that service only, without touching the chat side. The folders stay~/.agents/skills, then~/.claude/skills(LOCAL_SKILL_FOLDERS).Not in it:
What changed
extensions/points/skills.ts:SkillSourcegrowsoriginKind,isAvailable,attach,permissionandload;SkillEntrygrowsiconUrlandisUnverified; newSkillPermission.services/skill-tools.service.ts(new): the two tool definitions, the listing under each origin, resolving a call to a skill, the call permission and the run.toolsStoreoffers the tools as browser tools while a source offers skills, with the call permission onload_skill; the agentic loop runs them.stores/skills.svelte.ts: the local source attaches a skill as a chip holding its text, asks with its SKILL.md digest, and loads only with the text the user allowed.hasAvailableSourcesgates/skilland the tools./skillis a built-in command now, right after/prompt, withChatFormPickerSkillsover every source;ChatFormPickerPromptOrigindraws a skill's origin too.ChatMessageActionCardSkillDetail: what the permission card shows of a local skill (its description and path, and whether it changed).LocalSkillsService.formatandskillDigest: the text the model gets under a line naming the folder, and the digest an approval is bound to.skills/source.tsimplements the new methods withmcpStore.skills;skills/tools.ts, its/skillcommand andComposerMcpSkillsare gone.Testing
In
ui/apps/chat:npm run checkandnpm run lintclean.from, the approval throughAgenticGateswith each answer kept by the source, a call that names no skill, the tools on and off intoolsStore), the local source in a chat (asks, allow for now and for good, a changed skill asked again, SKILL.md only, attach and a failed attach) and the MCP source's new methods. PR 137'smcp-skill-toolstest is replaced byskill-tools.LFM3-Omni-2B,--agent -c 100000) and the Hugging Face MCP server:/skilllisted the 19 skills of~/.agents/skillsand then the server's; a picked local skill went with the message (4,901 prompt tokens); the model loaded a local skill after "Always allow this skill" in the card and quoted it, and loadedhf-memfrom Hugging Face after "Allow once". Against a llama-server without tools,/skillwas greyed out.Not run: the E2E suite, a production build.
Demo script
Needs a tools model on llama-server (any, at
-c 100000) and no sign-in. The local skills are answered by the script in place of llama-server's file tools, so the video shows the same skills on any machine; the MCP skills are the Hugging Face server's.Requirements
Claude (Opus 5.5 Medium)