Repository navigation
refactor: expose reusable Skill module - #10397
Closed
lloydrichards wants to merge 2 commits into
Closed
lloydrichards wants to merge 2 commits into
lloydrichards wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: ecf51ad The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
lloydrichards
marked this pull request as ready for review
November 5, 2026 08:52
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
This was referenced Nov 14, 2026
Merged
Contributor
Author
|
Without any interaction here, not even from bot, this feel like its just gotten lost. I'm gonna close this and move discussion over to the issue instead. Not worth constantly fixing merge conflicts |
This branch is waiting to be 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.
Type
Description
On the slow march towards building an agentic framework within effect; we have
Tools✅, we haveMcpClient✅, next we needSkills. There was already skills added to McpServer as part of the extension, but this is only usable with Mcp, what I want to expose here is just the Skill type so it can be used standalone alongside theLanguageModelto read and load skills through toolcalls.Creating an immutable local snapshot with instructions and supporting files is simple enough:
This can then be read locally or publish that snapshot through MCP:
Everything is typed so known file keys give direct reads autocomplete and typo checking:
Skill.fromFilesalso retains known keys. Dynamic bundles accept string paths and keep runtime validation.Skill.manifestuses Effect'sDigestservice to describe exact file bytes, sizes and MIME types. Existing raw MCP registration remains supported.This should gives future local agent integrations and skill catalogues a shared value to consume. Manifests can support change detection or approval records. Loaders, execution and approval policies remain application concerns. This PR does not add them, but you can imagine something like:
skills.instructionswould add the available descriptions and explain how to load them.skills.toolkitwould provide the loading and file-reading tools. Its handlerLayerwould use the scopedMcpClient.Related