4.1 KiB
icon
| icon |
|---|
| lucide/workflow |
Skill Usage Mechanics
Purpose
This page describes how clients discover and load personal-mcp skills published by the FastMCP Skills Provider.
Skills are MCP resources. The client remains responsible for selecting guidance, loading only useful supporting material, and applying it to the current workspace.
Published Skill Surface
Each directory beneath docs/skills/ publishes:
skill://<name>/SKILL.mdfor primary instructionsskill://<name>/_manifestfor file discovery and integrity metadataskill://<name>/{path*}for supporting files
The server uses supporting_files="template". Main files and manifests appear in resources/list; supporting files stay behind per-skill wildcard templates so the resource list remains compact.
The manifest contains every skill-relative path, byte size, and SHA256 hash. References do not have synthetic ids or a separate catalog record.
Prompts are available through native MCP prompt discovery and rendering.
Discovery Workflow
Use this bounded sequence:
- List resources or call FastMCP
list_skills(). - Compare skill names and descriptions.
- Read one selected
skill://<name>/SKILL.md. - Read
skill://<name>/_manifestonly when supporting material may be useful. - Fetch the minimum supporting paths needed for the task.
- Reconcile the guidance with the actual repository code before making changes.
Do not load every skill or every supporting file up front.
FastMCP Client Utilities
FastMCP provides native utilities in fastmcp.utilities.skills:
list_skills(client)discovers main skill resources.get_skill_manifest(client, name)parses a generated manifest.download_skill(client, name, target_dir)downloads one skill.sync_skills(client, target_dir)downloads all advertised skills.
These utilities operate directly on the native skill:// contract and require no repository-specific adapter.
Copilot Invocation
In VS Code, skills can arrive through:
- explicit attachment from
Add Context > MCP ResourcesorMCP: Browse Resources - a slash-command prompt that names a specific native skill URI
Instructions can steer retrieval, but they do not guarantee automatic resource attachment in every chat surface.
A reliable prompt is:
Browse personal-mcp resources and select the best matching skill://.../SKILL.md resource. Read one selected skill, inspect its _manifest only if supporting detail is needed, and reconcile the guidance with this workspace.
Thin Shim Pattern
Consumer repositories can bind file scopes to native skill resources with short .github/instructions/*.instructions.md files.
applyTo scope |
Companion docs | Primary skill resource |
|---|---|---|
**/*.md |
Authoring Guide | skill://zensical-docs/SKILL.md |
tests/** |
Testing | skill://pytesting/SKILL.md |
.vscode/** |
VS Code Configuration | skill://vscode-configuration/SKILL.md |
Minimal shape:
---
name: <scope name>
description: Route <path scope> edits to a personal-mcp skill.
applyTo: '<glob>'
---
Load `skill://<skill-name>/SKILL.md` first. Read `_manifest` and supporting files only when the task needs deeper detail. Apply the guidance to the current repository rather than treating it as generated output.
Failure Recovery
When no skill is an obvious match:
- compare the available main-resource descriptions again
- select at most two candidates
- read their main files, not all supporting files
- ask one clarifying question if the choice remains ambiguous
When a supporting path fails, refresh _manifest; file paths are the public supporting-resource identifiers.
Runtime Checklist
- Confirm MCP connectivity.
- Confirm at least one
skill://<name>/SKILL.mdresource is listed. - Read its
_manifestand verifySKILL.mdappears with a SHA256 hash. - Read one supporting file through its manifest path.
- Keep loaded context bounded to the selected skill and relevant files.