Add Skills as Tools reference implementation (Approach 3)#15
Draft
Add Skills as Tools reference implementation (Approach 3)#15
Conversation
Minimal TypeScript and Python MCP servers demonstrating the Skills as Tools pattern: exposing agent skills via list_skills and read_skill tools with progressive disclosure, path traversal protection, file size limits, and safe YAML parsing. Includes two sample skills (git-commit-review, code-review) and pattern documentation in examples/skills-as-tools/README.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
erain
reviewed
Feb 8, 2026
|
|
||
| Exposes two tools: | ||
| - list_skills: Returns skill names and descriptions (progressive disclosure) | ||
| - read_skill: Returns the full SKILL.md content for a named skill |
Contributor
There was a problem hiding this comment.
I think read_skill need to return all content in the skill folder given a skill can get pretty complex.
Also we can think about whether it should be read or install here.
Contributor
There was a problem hiding this comment.
Actually when I looked at your PR about adding skills as resources, that solved this problem very well with the file hierarchy!
Thanks for driving all these and they will be good discussion points.
8 tasks
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.
Summary
examples/skills-as-tools/with minimal TypeScript and Python MCP servers demonstrating the Skills as Tools pattern (Approach 3)list_skillsandread_skilltools with progressive disclosuregit-commit-review,code-review) shared across both implementationsexamples/skills-as-tools/README.mdTest plan
cd examples/skills-as-tools/typescript && npm install && npm run buildnpx @modelcontextprotocol/inspector node dist/index.js ../sample-skillscd examples/skills-as-tools/python && pip install -e .npx @modelcontextprotocol/inspector -- python -m skills_as_tools.server ../sample-skillslist_skillsreturns both sample skillsread_skillreturns full SKILL.md contentread_skillwith invalid name returns error with available names🦉 Generated with Claude Code