File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,16 +63,16 @@ support MCP prompts (Claude Code, Claude Desktop) load it automatically when con
6363to the server — no separate SKILL.md installation needed.
6464
6565The prompt is read at runtime directly from ` SKILL.md ` bundled inside the package.
66- ` SKILL.md ` is therefore the ** single source of truth** for coaching behaviour: update
67- it once and both the MCP prompt and any separately installed skill reflect the change .
66+ ` SKILL.md ` is the ** single source of truth** for coaching behaviour: update it once
67+ and the change is live for all connected clients on the next server restart .
6868
6969``` python
7070# server.py
7171import importlib.resources
7272
7373@mcp.prompt ()
7474def devcoach_instructions () -> str :
75- return importlib.resources.read_text (" devcoach" , " SKILL.md" )
75+ return importlib.resources.files (" devcoach" ).joinpath( " SKILL.md" ).read_text( encoding = " utf-8 " )
7676```
7777
7878` SKILL.md ` must be declared as package data in ` pyproject.toml ` :
@@ -85,8 +85,8 @@ packages = ["src/devcoach"]
8585"src/devcoach/SKILL.md" = " devcoach/SKILL.md"
8686```
8787
88- For clients that do ** not** support MCP prompts (claude.ai web ), install the
89- ` .skill ` file generated from the same ` SKILL.md ` via the Claude.ai Skills settings.
88+ For claude.ai web (which does not support MCP prompts), copy the content of
89+ ` src/devcoach/ SKILL.md` into the Claude.ai Skills settings manually .
9090
9191---
9292
You can’t perform that action at this time.
0 commit comments