MCP Server Builder
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
Analyze large files (500 lines) using handle-based Nucleus queries for 97% token savings.
$ npx skills add yogthos/Matryoshka --skill lattice -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yogthos/Matryoshka lattice --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/lattice .claude/skills/lattice && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .claude/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yogthos/Matryoshka/tree/main/skills/latticeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yogthos/Matryoshka --skill lattice -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yogthos/Matryoshka lattice --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/lattice .agents/skills/lattice && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .agents/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yogthos/Matryoshka --skill lattice -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yogthos/Matryoshka lattice --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/lattice .cursor/skills/lattice && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .cursor/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yogthos/Matryoshka.git --path skills/lattice--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yogthos/Matryoshka --skill lattice -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yogthos/Matryoshka lattice --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/lattice .gemini/skills/lattice && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .gemini/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yogthos/Matryoshka latticeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yogthos/Matryoshka --skill lattice -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/lattice .github/skills/lattice && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .github/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yogthos/Matryoshka --skill lattice -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yogthos/Matryoshka lattice --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yogthos/Matryoshka.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/lattice .opencode/skills/lattice && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "lattice" agent skill from https://github.com/yogthos/Matryoshka/tree/main/skills/lattice into .opencode/skills/lattice/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lattice", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
latticeAnalyze large files (500 lines) using handle-based Nucleus queries for 97% token savings.
Lattice is an agent skill from yogthos/Matryoshka. Analyze large files (500 lines) using handle-based Nucleus queries for 97% token savings. Use when you need to search, filter, aggregate, or explore documents too large for direct context.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol. The repository describes itself as: MCP server for token-efficient large document analysis via the use of REPL state. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ccf3ca0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are scheme).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Lattice loads about 1.1k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 375 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from yogthos/Matryoshka at commit ccf3ca0, republished under its Apache-2.0 licence (© yogthos). 375 words, ~1,118 tokens.
.claude/skills/lattice/SKILL.md (or your agent's skills folder).Use the Lattice MCP tools to analyze files that are too large to read directly. Lattice stores query results server-side and returns compact handle stubs, achieving 97%+ token savings.
The standard workflow is: load → query → expand → close
lattice_load — Open the file (starts a session)lattice_query — Run Nucleus S-expression commands (returns handle stubs like $res1)lattice_expand — Inspect actual data from a handle when you need to see contentslattice_close — End the session when doneRESULTS to refer to the previous result and build a pipeline in a single query session.grep first, then filter, then count/sum.(count RESULTS) or (sum RESULTS) over expanding and counting client-side.(grep "pattern") ; Regex search — returns handle to matching lines
(fuzzy_search "query" 10) ; Fuzzy match — top N results by relevance
(lines 10 20) ; Get specific line range (start end)(filter RESULTS (lambda x (match x "pattern" 0))) ; Keep matching items
(map RESULTS (lambda x (match x "(\\d+)" 1))) ; Extract regex group from each item(count RESULTS) ; Count items (returns scalar directly)
(sum RESULTS) ; Sum numeric values (auto-extracts numbers)(match str "pattern" 1) ; Extract regex capture group from a string(list_symbols) ; List all functions, classes, methods, headings, etc.
(list_symbols "function") ; Filter by kind: "function", "class", "method", "interface", "type"
(get_symbol_body "funcName") ; Get full source code of a symbol
(find_references "identifier"); Find all usages of an identifierRESULTS — Always points to the last array result. Use this in queries to chain operations._1, _2, _3, ... — Results from turn N. Use to reference older results in queries.$res1, $res2, ... — Handle stubs. Use these ONLY with lattice_expand, NOT in queries.Task: Find and count timeout errors in a log file
Load the document:
lattice_load("/path/to/server.log")→ Loaded: 15,234 lines, 2.1 MB
Search for errors:
lattice_query('(grep "ERROR")')→ $res1: Array(342) [2024-01-15 ERROR: Connection timeout...]
Filter for timeouts:
lattice_query('(filter RESULTS (lambda x (match x "timeout" 0)))')→ $res2: Array(47) [2024-01-15 ERROR: Connection timeout...]
Count them:
lattice_query('(count RESULTS)')→ Result: 47
Inspect a sample if needed:
lattice_expand("$res2", limit=5)→ Shows first 5 actual timeout error lines
Close when done:
lattice_close()Task: Understand a large TypeScript file
Load and list symbols:
lattice_load("/path/to/large-module.ts")
lattice_query('(list_symbols)')→ $res1: Array(45) [function handleRequest, class Router, ...]
Get a specific function:
lattice_query('(get_symbol_body "handleRequest")')→ Returns full source code of the function
Find all references:
lattice_query('(find_references "handleRequest")')→ $res2: Array(8) [line 45: handleRequest(req), ...]
© yogthos, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/lattice of yogthos/Matryoshka.
Open the folder on GitHubat commit ccf3ca0
Lattice next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Lattice this skillyogthos/Matryoshka | 150 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| MCP Server Builderanthropics/skills | 180k | 63 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| MCP Server BuildershareAI-lab/learn-claude-code | 78k | 5 repos | ~1.2k | Automated safety check: Pass | MIT | |
| MCP Integration for Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Crush Configurationcharmbracelet/crush | 29k | — | ~3.7k | Automated safety check: Pass | Custom licence | |
| Context Mode Output Sandboxmksglu/context-mode | 26k | — | ~4.1k | Automated safety check: Pass | Custom licence |
anthropics/skills
Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.
shareAI-lab/learn-claude-code
Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.
anthropics/claude-plugins-official
Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.
charmbracelet/crush
Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
warpdotdev/warp
Migrates the compatible subset of settings and global file-based MCP servers from the Warp desktop app into Warp Agent CLI without exposing credentials or state.
Works with
Categories
Analyze large files (500 lines) using handle-based Nucleus queries for 97% token savings. Lattice is an agent skill from yogthos/Matryoshka. Analyze large files (500 lines) using handle-based Nucleus queries for 97% token savings.
Lattice fits situations like: you need to search; explore documents too large for direct context.
Run `npx skills add yogthos/Matryoshka --skill lattice -a claude-code`. Or copy the skill folder (skills/lattice in yogthos/Matryoshka) into .claude/skills/lattice in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yogthos/Matryoshka --skill lattice -a codex`. Or copy the skill folder (skills/lattice in yogthos/Matryoshka) into .agents/skills/lattice in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yogthos/Matryoshka --skill lattice -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lattice, .gemini/skills/lattice, .github/skills/lattice and .opencode/skills/lattice in your project.
SKILL.md names no scripts, command-line tools or credentials: Lattice is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Lattice is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Lattice: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Crush Configuration (charmbracelet/crush, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yogthos (a GitHub user) maintains it in yogthos/Matryoshka, which has 150 GitHub stars. The repository was last updated on May 17, 2026.
Source: yogthos/Matryoshka on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.