local-skills-mcp-guide
Repository implementation guide for the local-skills-mcp codebase. Use when asked: how src/index.ts and src/skill-loader.ts work together; where MCP tool…

Установить local-skills-mcp-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
You are an expert guide specifically for the Local Skills MCP server repository (kdpa-llc/local-skills-mcp).
Your task is to help users understand this specific MCP server's repository structure, implementation details, and how to navigate and work with the Local Skills MCP codebase.
What is Local Skills MCP?
Local Skills MCP is a universal Model Context Protocol (MCP) server that enables any LLM or AI agent to access expert skills from the local filesystem. It uses the SKILL.md format with YAML frontmatter and implements lazy loading for context efficiency.
Repository: https://github.com/kdpa-llc/local-skills-mcp
Local Skills MCP Project Structure
local-skills-mcp/
├── src/ # TypeScript source code
│ ├── index.ts # Main MCP server implementation
│ ├── skill-loader.ts # Skill loading and aggregation logic
│ └── types.ts # TypeScript type definitions
├── skills/ # Example skills included with the server
│ ├── local-skills-mcp-guide/
│ ├── skill-creator/
│ └── mcp-setup-helper/
├── dist/ # Compiled JavaScript output (generated)
├── package.json # npm package configuration
├── tsconfig.json # TypeScript compiler configuration
├── README.md # Comprehensive project documentation
├── QUICK_START.md # Quick setup guide
├── CONTRIBUTING.md # Contribution guidelines
├── CHANGELOG.md # Version history
├── SECURITY.md # Security policy
└── LICENSE # MIT License
Key Components of Local Skills MCP
1. MCP Server Implementation (src/index.ts)
What it does: Core MCP server that implements the Model Context Protocol
Key responsibilities:
- Initializes the MCP server using the
@modelcontextprotocol/sdk - Exposes
get_skill,validate_skill, andevaluate_skilltools to MCP clients - Handles skill discovery by aggregating skill metadata
- Dynamically updates tool descriptions with current available skills
- Implements request handlers for tool invocation
- Manages server lifecycle and stdio transport
Important functions:
- Server initialization and tool registration
- Dynamic tool description generation (includes skill list)
- Skill invocation handler
2. Skill Loading System (src/skill-loader.ts)
What it does: Multi-directory skill aggregation engine
Key responsibilities:
- Discovers skills from multiple configured directories:
~/.claude/skills/(personal/Claude-compatible skills)./.claude/skills/(project-local skills)./skills(Local Skills MCP repository example skills)$SKILLS_DIR(user-defined custom directory)
- Parses SKILL.md files with YAML frontmatter
- Validates skill format (name, description requirements)
- Reads skill content fresh from disk on every request, so edits to a SKILL.md take effect without restarting the server. Only the registry (skill name -> directory) is held in memory; skill content is never cached.
- Resolves skill name conflicts (later directories override earlier)
Important functions:
getAllSkillsDirectories()insrc/index.ts- builds the directory list and its priority orderSkillLoader.discoverSkills()- scans those directories and rebuilds the name -> directory registrySkillLoader.loadSkill()- reads and parses one SKILL.md, fresh each callSkillLoader.getSkillLocation()- registry lookup without parsing, used byvalidate_skillandevaluate_skillso a malformed file can still be inspected
3. Type Definitions (src/types.ts)
What it does: TypeScript type system for Local Skills MCP
Defines:
Skillinterface (metadata and content)- MCP tool definitions
- Configuration types
How Local Skills MCP Works
Startup Sequence
- Server starts via stdio transport
- Skill loader aggregates skills from all configured directories
- Skill names are validated and recorded in the in-memory registry (content is not cached)
- MCP server initializes and registers the skill tools
get_skilldescription is generated with current skill list and metadata
Skill Discovery (Lazy Loading)
- MCP client queries available tools
- Local Skills MCP returns a tool list (including
get_skill) get_skilldescription includes names and brief descriptions of all available skills- Context efficiency: Only ~50 tokens per skill at this stage
Skill Invocation
- User requests a skill (e.g., "use the skill-creator skill")
- AI invokes
get_skilltool with skill name parameter - Local Skills MCP loads full skill content from cache
- Full skill instructions returned to AI
- AI applies the expert instructions
Skill Aggregation Priority
Skills are loaded in this order (later overrides earlier):
~/.claude/skills/./.claude/skills/./skills$SKILLS_DIR
SKILL.md Format Used by Local Skills MCP
Each skill must be named SKILL.md with YAML
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл local-skills-mcp-guide?
Repository implementation guide for the local-skills-mcp codebase. Use when asked: how src/index.ts and src/skill-loader.ts work together; where MCP tool handlers are defined and registered; how getAllSkillsDirectories priority and override behavior works; how local-skills-mcp discovers skills and merges metadata across directories; where validate_skill and evaluate_skill are implemented in this repository; or how integration tests are structured in this local-skills-mcp project.
Как установить скилл local-skills-mcp-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл local-skills-mcp-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
