Skills Plugins MCP Prompt Model 博客 我的中心

lattice

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.

DeepseekModel 官方收录技能 质量 优秀 · 78 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=yogthos-matryoshka-skills-lattice-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name lattice description 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. Lattice - Large File Analysis 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. When to Use File is larger than 500 lines (for smaller files, use Read directly) You need multiple searches on the same file You're extracting or aggregating structured data (counts, sums, patterns) You're doing exploratory analysis and don't know what you're looking for You want to avoid hallucination on factual queries about file contents Core Workflow 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 contents lattice_close — End the session when done Efficiency Tips Chain operations in sequence rather than making many independent queries. Use RESULTS to refer to the previous result and build a pipeline in a single query session. Start broad, then narrow : grep first, then filter , then count / sum . Only expand when needed : Handle stubs give you counts and previews — expand only when you need to see actual data for decision-making. Prefer (count RESULTS) or (sum RESULTS) over expanding and counting client-side. Nucleus Command Reference Search (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) Transform (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 Aggregate (count RESULTS) ; Count items (returns scalar directly) (sum RESULTS) ; Sum numeric values (auto-extracts numbers) Extract (match str "pattern" 1) ; Extract regex capture group from a string Code & Document Symbols (for .ts, .js, .py, .go, .rs, .md, etc.) (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 identifier Variable Bindings RESULTS — 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. Complete Workflow Example 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() Code Analysis Workflow 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), ...]
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。