xiaohongshu
xiaohongshu
local-skills-mcp-guide
Expert guide for understanding the Local Skills MCP server repository - its structure, architecture, and implementation. Use when exploring this MCP server's codebase, understanding how Local Skills MCP works internally, or contributing to the project.
Full skill instructions
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.
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/
├── 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
What it does: Core MCP server that implements the Model Context Protocol
Key responsibilities:
@modelcontextprotocol/sdkget_skill tool to MCP clientsImportant functions:
What it does: Multi-directory skill aggregation engine
Key responsibilities:
~/.claude/skills/ (personal/Claude-compatible skills)./.claude/skills/ (project-local skills)./skills (Local Skills MCP repository example skills)$SKILLS_DIR (user-defined custom directory)Important functions:
loadSkills() - Main aggregation functionWhat it does: TypeScript type system for Local Skills MCP
Defines:
Skill interface (metadata and content)get_skill toolget_skill tool descriptionget_skill tool with skill name parameterSkills are loaded in this order (later overrides earlier):
~/.claude/skills/./.claude/skills/./skills$SKILLS_DIREach skill must be named SKILL.md with YAML frontmatter:
---
name: skill-name # Required: lowercase, hyphens, max 64 chars
description: Brief desc... # Required: max 200 chars, include trigger keywords
---
Skill instructions in Markdown format...
Validation rules (enforced by skill-loader.ts):
SKILL.md--- delimited YAML frontmattername field is required and must be validdescription field is required (max 200 chars)get_skill) with dynamic skill discoveryQ: Where does Local Skills MCP store skills?
A: It aggregates from multiple locations: ~/.claude/skills/, ./.claude/skills/, ./skills, and $SKILLS_DIR. See skill-loader.ts for implementation.
Q: How does the MCP server communicate with clients?
A: Via the Model Context Protocol over stdio transport. See src/index.ts for the server implementation.
Q: How are SKILL.md files parsed?
A: skill-loader.ts reads files, extracts YAML frontmatter, validates required fields, and caches the parsed content.
Q: How can I modify Local Skills MCP's skill aggregation?
A: Edit the loadSkills() function in src/skill-loader.ts to add new directories or change priority.
Q: What's the build process?
A: TypeScript source in src/ compiles to JavaScript in dist/ using npm run build. The prepare script runs automatically on install.
Q: How does Local Skills MCP achieve context efficiency?
A: Through lazy loading - only skill names and descriptions appear in the get_skill tool description. Full content loads only when a skill is invoked.
Q: What MCP SDK does this use?
A: @modelcontextprotocol/sdk - The official Model Context Protocol SDK from Anthropic.
npm run build # Compile TypeScript to JavaScript
npm run watch # Watch mode for development
src/ filesnpm run buildsrc/src/types.ts if neededREADME.md - Start here for comprehensive documentationQUICK_START.md - Fast setup instructionssrc/index.ts - Understand the MCP server implementationsrc/skill-loader.ts - See how skills are discovered and loadedsrc/types.ts - Review type definitionsskills/ - Example skills included with Local Skills MCPpackage.json - Dependencies and npm scriptsCONTRIBUTING.md - Guidelines for contributing to the projectLocal Skills MCP is unique because:
get_skill with dynamic descriptionsWhen helping users contribute:
CONTRIBUTING.md for guidelinesWhen helping users navigate the Local Skills MCP codebase, always:
src/index.ts:42)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience