INNER CODE UNIT · TypeScript
body
HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:261
const body = await fs.readFile(skill.path, "utf8").catch(() => null);
if (!body) {
// Don't leak filesystem paths — describe the gap functionally.
return {
content: [
{
type: "text",
text: [
`The skill index references "${args.category}/${args.name}" but its SKILL.md is missing.`,
"This usually means the skill was deleted or moved after the server started.",
"Restart the MCP server, or run `npx agent-skills-standard@latest sync` to reinstall skills.",
].join("\n"),
},
],
};
}
ctx.tracker.record({
via: "get_skill",