[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BZ0W7C8ZRRKSFCF96BC8KP":3,"skill-same:01M6BZ0W7C8ZRRKSFCF96BC8KP":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":58,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6BZ0W7C8ZRRKSFCF96BC8KP","tree-sitter-language-pack","tree-sitter 多语言代码解析","Parse and extract code intelligence from 371 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure\u002Fimports\u002Fexports\u002Fsymbols\u002Fdocstrings\u002Fcomments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python, Node.js\u002FTypeScript, or the ts-pack CLI. Covers installation, the CLI surface, the SDK surface, and parser-cache management.","使用 tree-sitter 语法解析并提取 371 种编程语言的代码智能。当编写解析源代码、提取结构\u002F导入\u002F导出\u002F符号\u002Fdocstring\u002F注释、检测语言、运行语法诊断或为 LLM 生成语法感知分块的代码时使用——支持 Rust、Python、Node.js\u002FTypeScript 或 ts-pack CLI。涵盖安装、CLI 接口、SDK 接口和解析器缓存管理。","xberg-io\u002Ftree-sitter-language-pack","xberg-io","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F241328462?v=4","01M6BYYMACFMK5WNT338Y71K58","Xberg.io","01M6BYYMEGM63ZCEYZJRTVS9JT",485,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.cursor-plugin\u002Fskills\u002Ftree-sitter-language-pack\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"language pack","tree sitter","tree sitter language pack","pack","language","tree","when","parse","imports","chunks","structure","io","typescript","parser","node","cli","llms","code","writing","rust","2026-11-10 10:12:30",false,"---\ndescription: Parse and extract code intelligence from 371 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure\u002Fimports\u002Fexports\u002Fsymbols\u002Fdocstrings\u002Fcomments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python, Node.js\u002FTypeScript, or the ts-pack CLI. Covers installation, the CLI surface, the SDK surface, and parser-cache management.\nlicense: MIT\nmetadata:\n    author: xberg-io\n    version: \"0.1.0\"\n    repository: https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\nname: tree-sitter-language-pack\n---\n\n\u003C!--\nAI-RULEZ :: GENERATED FILE — DO NOT EDIT\nContent-Hash: blake3:7860f629c0c291cb2e4f9cb034035fadbc4de3b90bace596a2d2348c12b5ec00\nSource-Hash: blake3:fbed630db85ed02cff8e3bc8c836d453724480351ecb0896122f193a21670041\nSchema-Version: v1\n-->\n\n# Tree-Sitter Language Pack\n\ntree-sitter-language-pack is a polyglot code parsing and analysis library\nwith a high-performance Rust core and polyglot bindings for 15 languages —\nPython, Node.js\u002FTypeScript, Ruby, Go, Java, C#, PHP, Elixir, Dart,\nKotlin (Android), Swift, Zig, and WebAssembly, plus a C ABI and JNI. It\ncompiles 371 tree-sitter grammars into efficient parsers and exposes code\nintelligence on top of them.\n\n## Capabilities\n\n- **Parse 371 languages** into concrete syntax trees (s-expression or JSON).\n- **Extract structure** — functions, classes, methods, modules with line\n  and byte spans, child nesting, and visibility.\n- **Extract imports and exports** — statements, sources, exported kinds.\n- **Extract symbols** — all identifiers, for search and indexing.\n- **Extract docstrings and comments** — attached to definitions or standalone.\n- **Language detection** — from a file path, an extension, or content.\n- **Syntax diagnostics** — error nodes and syntax errors with positions.\n- **Syntax-aware chunking** — split source on syntactic boundaries for LLM\n  context windows, not on arbitrary byte offsets.\n- **Custom tree-sitter queries** — run your own query patterns over a tree\n  (SDK only).\n- **Parser cache management** — download, list, inspect, and clean the\n  on-demand parser cache for offline\u002FCI use.\n- **Distribution** — 15 language bindings (including WebAssembly, a C ABI,\n  and JNI) plus the `ts-pack` CLI.\n\nUse this skill when writing code that parses source in any supported\nlanguage, extracts code metadata, chunks code for an LLM, detects a\nlanguage, or validates syntax.\n\n## When to use\n\nReach for tree-sitter-language-pack when you need a real syntax tree or\nstructured code metadata — building a code index, feeding code to an LLM\nin semantically coherent chunks, linting for syntax errors across many\nlanguages, or detecting a file's language. For plain text extraction from\ndocuments (PDF, Office, HTML), use Xberg instead.\n\n## CLI vs SDK\n\n- **CLI (`ts-pack`)** — quick one-shot parsing and extraction over files,\n  parser-cache management, and shell\u002FCI pipelines. `parse` and `process`\n  print to stdout (`process` always emits JSON). Auto-detects the language\n  from the file extension.\n- **SDK** — embed parsing in an application, run custom tree-sitter\n  queries, detect a language from raw content (not just a path), or hold\n  parsers across many calls. Use the Rust core or the Python\u002FNode bindings.\n- **MCP server (`ts-pack mcp`)** — exposes `parse`\u002F`process`\u002F`detect_language`\n  (plus language and cache tools) as agent tools, so an MCP client can parse\n  and analyze code directly with no shell-out.\n  This plugin auto-registers it; see the **tree-sitter-language-pack-using-the-mcp-server** skill.\n\nPrefer the CLI for ad-hoc work in an agent session; prefer the SDK when the\nresult feeds back into a larger program; prefer the MCP server when the agent\nshould call parsing directly as a tool.\n\n## Installation\n\n### CLI\n\n```bash\nbrew install xberg-io\u002Ftap\u002Fts-pack\n# or run without a persistent install (the CLI proxy package self-installs the binary):\nnpx @xberg-io\u002Fts-pack-cli --help\n# or download a prebuilt binary from the latest GitHub release:\n#   https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Freleases\u002Flatest\n# or install from crates.io:\ncargo install ts-pack-cli\n# binary is installed as `ts-pack`\n```\n\n### Python\n\n```bash\npip install tree-sitter-language-pack\n# or: uv add tree-sitter-language-pack\n```\n\n### Node.js \u002F TypeScript\n\n```bash\nnpm install @xberg-io\u002Ftree-sitter-language-pack\n# or: pnpm add @xberg-io\u002Ftree-sitter-language-pack\n```\n\n### Rust\n\n```toml\n# Cargo.toml\n[dependencies]\ntree-sitter-language-pack = { version = \"1\", features = [\"download\"] }\n```\n\nOther bindings: Ruby (`gem install tree_sitter_language_pack`), Go, Java,\nC#, PHP, Elixir, Dart, Kotlin (Android), Swift, Zig, and WebAssembly\n(`npm install @xberg-io\u002Ftree-sitter-language-pack-wasm`). See\n\u003Chttps:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack>.\n\n## CLI surface\n\n`ts-pack` has these subcommands:\n\n| Command | Purpose |\n| ------- | ------- |\n| `parse \u003Cfile>` | Parse a file into a syntax tree (`--format sexp|json`). |\n| `process \u003Cfile>` | Run the code-intelligence pipeline, emit JSON. |\n| `detect`* | No standalone command — `parse`\u002F`process` auto-detect from the extension. Use the SDK for content detection. |\n| `list` | List available languages (`--downloaded`, `--manifest`, `--filter`). |\n| `info \u003Clanguage>` | Show whether a language is known and cached. |\n| `download [langs...]` | Download parser libraries (`--all`, `--groups`, `--fresh`). |\n| `clean` | Remove all cached parser libraries (`--force`). |\n| `cache-dir` | Print the effective cache directory. |\n| `init` | Write a `language-pack.toml` config (`--languages`, `--cache-dir`). |\n| `completions \u003Cshell>` | Generate shell completions. |\n| `mcp` | Start the MCP server (`--transport stdio`). |\n\n\\* Language detection is implicit in `parse`\u002F`process`. There is no\n`detect` or `validate` subcommand; diagnostics come from\n`process --diagnostics`.\n\n### Parse\n\n```bash\nts-pack parse src\u002Fmain.rs                 # s-expression tree (auto-detect)\nts-pack parse src\u002Fmain.rs --format json   # { language, sexp, has_errors }\nts-pack parse - --language python         # read from stdin, explicit language\n```\n\n### Process (code intelligence)\n\n```bash\n# Defaults to structure + imports + exports when no feature flags are given:\nts-pack process src\u002Fapp.ts\n\n# Pick features explicitly:\nts-pack process src\u002Fapp.ts --structure --imports --symbols --docstrings\n\n# Everything:\nts-pack process src\u002Fapp.ts --all\n\n# Syntax-aware chunks (bytes) for an LLM:\nts-pack process src\u002Fapp.ts --chunk-size 2000\n\n# Syntax diagnostics:\nts-pack process src\u002Fapp.ts --diagnostics\n```\n\n`process` always prints JSON. Top-level keys: `language`, `metrics`,\n`structure`, `imports`, `exports`, `comments`, `docstrings`, `symbols`,\n`diagnostics`, and `chunks` (when `--chunk-size` is set).\n\n### SDK quick start\n\n```python\nfrom tree_sitter_language_pack import process, ProcessConfig, detect_language_from_path\n\nconfig = ProcessConfig(\"python\", symbols=True, docstrings=True)  # structure\u002Fimports\u002Fexports default to True\nresult = process(source_code, config)\nfor item in result.structure:                 # ProcessResult is an object, not a dict\n    print(item.kind, item.name, item.span.start_line)\n\n# Path-based detection (use detect_language_from_content for raw text;\n# see the detecting-languages skill):\nlang = detect_language_from_path(\"src\u002Fapp.py\")\n```\n\n```typescript\nimport { process, detectLanguageFromPath } from \"@xberg-io\u002Ftree-sitter-language-pack\";\n\nconst lang = detectLanguageFromPath(\"src\u002Fapp.ts\");\nconst result = process(source, { language: lang ?? \"typescript\", structure: true, imports: true });\n```\n\n## Parser cache\n\nParsers download on demand the first time a language is used and are cached\nlocally. For offline or CI runs, prefetch:\n\n```bash\nts-pack download python rust typescript   # specific languages\nts-pack download --all                    # everything\nts-pack download --groups all             # by group (see manifest_groups())\nts-pack list --downloaded                 # what is cached\nts-pack cache-dir                         # where the cache lives\nts-pack clean --force                     # wipe the cache\n```\n\nSee the `tree-sitter-language-pack-managing-parsers` skill for the full cache workflow.\n\n## Related skills\n\n- `tree-sitter-language-pack-parsing-source` — parse a file into a syntax tree \u002F s-expression.\n- `tree-sitter-language-pack-extracting-code-structure` — `process` with structure\u002Fimports\u002Fexports\u002F\n  symbols\u002Fdocstrings.\n- `tree-sitter-language-pack-chunking-for-llms` — `--chunk-size` syntax-aware splitting.\n- `tree-sitter-language-pack-detecting-languages` — detect by path, extension, or content.\n- `tree-sitter-language-pack-managing-parsers` — download\u002Fclean\u002Flist\u002Finfo parser-cache management.\n- `tree-sitter-language-pack-using-the-mcp-server` — call `parse`\u002F`process`\u002F`detect_language` over MCP\n  instead of the CLI.\n\nFull documentation: \u003Chttps:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack>\n","\u003C!--\nAI-RULEZ :: GENERATED FILE — DO NOT EDIT\nContent-Hash: blake3:7860f629c0c291cb2e4f9cb034035fadbc4de3b90bace596a2d2348c12b5ec00\nSource-Hash: blake3:fbed630db85ed02cff8e3bc8c836d453724480351ecb0896122f193a21670041\nSchema-Version: v1\n-->\n\n# Tree-Sitter Language Pack\n\ntree-sitter-language-pack is a polyglot code parsing and analysis library\nwith a high-performance Rust core and polyglot bindings for 15 languages —\nPython, Node.js\u002FTypeScript, Ruby, Go, Java, C#, PHP, Elixir, Dart,\nKotlin (Android), Swift, Zig, and WebAssembly, plus a C ABI and JNI. It\ncompiles 371 tree-sitter grammars into efficient parsers and exposes code\nintelligence on top of them.\n\n## Capabilities\n\n- **Parse 371 languages** into concrete syntax trees (s-expression or JSON).\n- **Extract structure** — functions, classes, methods, modules with line\n  and byte spans, child nesting, and visibility.\n- **Extract imports and exports** — statements, sources, exported kinds.\n- **Extract symbols** — all identifiers, for search and indexing.\n- **Extract docstrings and comments** — attached to definitions or standalone.\n- **Language detection** — from a file path, an extension, or content.\n- **Syntax diagnostics** — error nodes and syntax errors with positions.\n- **Syntax-aware chunking** — split source on syntactic boundaries for LLM\n  context windows, not on arbitrary byte offsets.\n- **Custom tree-sitter queries** — run your own query patterns over a tree\n  (SDK only).\n- **Parser cache management** — download, list, inspect, and clean the\n  on-demand parser cache for offline\u002FCI use.\n- **Distribution** — 15 language bindings (including WebAssembly, a C ABI,\n  and JNI) plus the `ts-pack` CLI.\n\nUse this skill when writing code that parses source in any supported\nlanguage, extracts code metadata, chunks code for an LLM, detects a\nlanguage, or validates syntax.\n\n## When to use\n\nReach for tree-sitter-language-pack when you need a real syntax tree or\nstructured code metadata — building a code index, feeding code to an LLM\nin semantically coherent chunks, linting for syntax errors across many\nlanguages, or detecting a file's language. For plain text extraction from\ndocuments (PDF, Office, HTML), use Xberg instead.\n\n## CLI vs SDK\n\n- **CLI (`ts-pack`)** — quick one-shot parsing and extraction over files,\n  parser-cache management, and shell\u002FCI pipelines. `parse` and `process`\n  print to stdout (`process` always emits JSON). Auto-detects the language\n  from the file extension.\n- **SDK** — embed parsing in an application, run custom tree-sitter\n  queries, detect a language from raw content (not just a path), or hold\n  parsers across many calls. Use the Rust core or the Python\u002FNode bindings.\n- **MCP server (`ts-pack mcp`)** — exposes `parse`\u002F`process`\u002F`detect_language`\n  (plus language and cache tools) as agent tools, so an MCP client can parse\n  and analyze code directly with no shell-out.\n  This plugin auto-registers it; see the **tree-sitter-language-pack-using-the-mcp-server** skill.\n\nPrefer the CLI for ad-hoc work in an agent session; prefer the SDK when the\nresult feeds back into a larger program; prefer the MCP server when the agent\nshould call parsing directly as a tool.\n\n## Installation\n\n### CLI\n\n```bash\nbrew install xberg-io\u002Ftap\u002Fts-pack\n# or run without a persistent install (the CLI proxy package self-installs the binary):\nnpx @xberg-io\u002Fts-pack-cli --help\n# or download a prebuilt binary from the latest GitHub release:\n#   https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Freleases\u002Flatest\n# or install from crates.io:\ncargo install ts-pack-cli\n# binary is installed as `ts-pack`\n```\n\n### Python\n\n```bash\npip install tree-sitter-language-pack\n# or: uv add tree-sitter-language-pack\n```\n\n### Node.js \u002F TypeScript\n\n```bash\nnpm install @xberg-io\u002Ftree-sitter-language-pack\n# or: pnpm add @xberg-io\u002Ftree-sitter-language-pack\n```\n\n### Rust\n\n```toml\n# Cargo.toml\n[dependencies]\ntree-sitter-language-pack = { version = \"1\", features = [\"download\"] }\n```\n\nOther bindings: Ruby (`gem install tree_sitter_language_pack`), Go, Java,\nC#, PHP, Elixir, Dart, Kotlin (Android), Swift, Zig, and WebAssembly\n(`npm install @xberg-io\u002Ftree-sitter-language-pack-wasm`). See\n\u003Chttps:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack>.\n\n## CLI surface\n\n`ts-pack` has these subcommands:\n\n| Command | Purpose |\n| ------- | ------- |\n| `parse \u003Cfile>` | Parse a file into a syntax tree (`--format sexp|json`). |\n| `process \u003Cfile>` | Run the code-intelligence pipeline, emit JSON. |\n| `detect`* | No standalone command — `parse`\u002F`process` auto-detect from the extension. Use the SDK for content detection. |\n| `list` | List available languages (`--downloaded`, `--manifest`, `--filter`). |\n| `info \u003Clanguage>` | Show whether a language is known and cached. |\n| `download [langs...]` | Download parser libraries (`--all`, `--groups`, `--fresh`). |\n| `clean` | Remove all cached parser libraries (`--force`). |\n| `cache-dir` | Print the effective cache directory. |\n| `init` | Write a `language-pack.toml` config (`--languages`, `--cache-dir`). |\n| `completions \u003Cshell>` | Generate shell completions. |\n| `mcp` | Start the MCP server (`--transport stdio`). |\n\n\\* Language detection is implicit in `parse`\u002F`process`. There is no\n`detect` or `validate` subcommand; diagnostics come from\n`process --diagnostics`.\n\n### Parse\n\n```bash\nts-pack parse src\u002Fmain.rs                 # s-expression tree (auto-detect)\nts-pack parse src\u002Fmain.rs --format json   # { language, sexp, has_errors }\nts-pack parse - --language python         # read from stdin, explicit language\n```\n\n### Process (code intelligence)\n\n```bash\n# Defaults to structure + imports + exports when no feature flags are given:\nts-pack process src\u002Fapp.ts\n\n# Pick features explicitly:\nts-pack process src\u002Fapp.ts --structure --imports --symbols --docstrings\n\n# Everything:\nts-pack process src\u002Fapp.ts --all\n\n# Syntax-aware chunks (bytes) for an LLM:\nts-pack process src\u002Fapp.ts --chunk-size 2000\n\n# Syntax diagnostics:\nts-pack process src\u002Fapp.ts --diagnostics\n```\n\n`process` always prints JSON. Top-level keys: `language`, `metrics`,\n`structure`, `imports`, `exports`, `comments`, `docstrings`, `symbols`,\n`diagnostics`, and `chunks` (when `--chunk-size` is set).\n\n### SDK quick start\n\n```python\nfrom tree_sitter_language_pack import process, ProcessConfig, detect_language_from_path\n\nconfig = ProcessConfig(\"python\", symbols=True, docstrings=True)  # structure\u002Fimports\u002Fexports default to True\nresult = process(source_code, config)\nfor item in result.structure:                 # ProcessResult is an object, not a dict\n    print(item.kind, item.name, item.span.start_line)\n\n# Path-based detection (use detect_language_from_content for raw text;\n# see the detecting-languages skill):\nlang = detect_language_from_path(\"src\u002Fapp.py\")\n```\n\n```typescript\nimport { process, detectLanguageFromPath } from \"@xberg-io\u002Ftree-sitter-language-pack\";\n\nconst lang = detectLanguageFromPath(\"src\u002Fapp.ts\");\nconst result = process(source, { language: lang ?? \"typescript\", structure: true, imports: true });\n```\n\n## Parser cache\n\nParsers download on demand the first time a language is used and are cached\nlocally. For offline or CI runs, prefetch:\n\n```bash\nts-pack download python rust typescript   # specific languages\nts-pack download --all                    # everything\nts-pack download --groups all             # by group (see manifest_groups())\nts-pack list --downloaded                 # what is cached\nts-pack cache-dir                         # where the cache lives\nts-pack clean --force                     # wipe the cache\n```\n\nSee the `tree-sitter-language-pack-managing-parsers` skill for the full cache workflow.\n\n## Related skills\n\n- `tree-sitter-language-pack-parsing-source` — parse a file into a syntax tree \u002F s-expression.\n- `tree-sitter-language-pack-extracting-code-structure` — `process` with structure\u002Fimports\u002Fexports\u002F\n  symbols\u002Fdocstrings.\n- `tree-sitter-language-pack-chunking-for-llms` — `--chunk-size` syntax-aware splitting.\n- `tree-sitter-language-pack-detecting-languages` — detect by path, extension, or content.\n- `tree-sitter-language-pack-managing-parsers` — download\u002Fclean\u002Flist\u002Finfo parser-cache management.\n- `tree-sitter-language-pack-using-the-mcp-server` — call `parse`\u002F`process`\u002F`detect_language` over MCP\n  instead of the CLI.\n\nFull documentation: \u003Chttps:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack>\n",{"name":5,"license":16,"metadata":56,"description":7},{"author":10,"version":57,"repository":58},"0.1.0","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack","main","bfd035e424e17fad1723429f58ca39f81bba3a6d","plugin\u002F.cursor-plugin\u002Fskills\u002Ftree-sitter-language-pack",71,"https:\u002F\u002Fdocs.tree-sitter-language-pack.xberg.io","https:\u002F\u002Fgithub.com\u002Fxberg-io","https:\u002F\u002Fxberg.io","Open-source content intelligence with a Rust core: documents, web, LLMs and code, with native bindings for every major language.","2026-11-15 00:20:30",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack",{"tool":74,"command":75},"bunx","bunx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack",{"tool":77,"command":78},"pnpm","pnpm dlx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.cursor-plugin\u002Fskills\u002Ftree-sitter-language-pack\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"index.md","REFERENCE","参考文档",729,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.cursor-plugin\u002Fskills\u002Ftree-sitter-language-pack\u002Findex.md",[89,100,121,142,166,184],{"skillNo":90,"name":5,"nameZh":91,"description":7,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":99,"publishedAt":51},"01M6BZ48YBWAZH9X1XZ6QVA5TD","tree-sitter 代码智能解析","使用 tree-sitter 语法从 371 种编程语言中解析并提取代码智能信息。适用于编写解析源代码、提取结构\u002F导入\u002F导出\u002F符号\u002F文档字符串\u002F注释、检测语言、运行语法诊断或为大模型（LLM）生成语法感知分块的代码——支持 Rust、Python、Node.js\u002FTypeScript 或 ts-pack CLI。涵盖安装、CLI 接口、SDK 接口以及解析器缓存管理。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CBEPE1MJTS9ARYEK7J8BH4","代码解析与结构分析",[33,31,32,36,35,34,50,49,48,47,46,45,44,43,42,41,40,39,38,37],{"skillNo":101,"name":102,"nameZh":103,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":110,"publishedAt":51},"01M6BZ461Q0A0TZJG56G6J5QF0","tree-sitter-language-pack-using-the-mcp-server","tree-sitter MCP 服务使用","Use when parsing source, extracting code structure, or detecting a language through the tree-sitter-language-pack MCP server's tools, rather than shelling out to the ts-pack CLI. Covers the tool surface, the auto-installing launcher, and when MCP beats the CLI or SDK.","当需要通过 tree-sitter-language-pack 的 MCP 服务器工具来解析源代码、提取代码结构或检测语言（而非调用 ts-pack CLI）时使用。涵盖工具接口、自动安装启动器，以及 MCP 相较于 CLI 或 SDK 的优势场景。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-using-the-mcp-server\u002FSKILL.md",[108,109],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},[111,112,33,113,114,31,32,36,35,34,48,46,115,116,117,118,41,119,120,37],"tree sitter language pack using the mcp server","MCP","mcp server","server","detecting","extracting","launcher","auto","source","Tools",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":131,"publishedAt":51},"01M6BZ437CE3DZQ22GYHMNMMVK","tree-sitter-language-pack-parsing-source","源代码语法树解析","Use when the user wants a tree-sitter syntax tree for a source file — an s-expression dump or JSON tree. Covers `ts-pack parse`, language auto-detection vs `--language`, stdin input, and reading `has_errors`.","当用户需要为源文件生成 tree-sitter 语法树时使用——以 s-表达式转储或 JSON 树的形式呈现。涵盖 `ts-pack parse`、语言自动检测与 `--language` 的对比、标准输入（stdin）输入以及读取 `has_errors`。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-parsing-source\u002FSKILL.md",[129,130],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},[132,133,33,31,32,36,119,35,34,134,135,136,137,138,139,118,140,141,38,37],"parsing","tree sitter language pack parsing source","file","json","syntax","for","errors","expression","use","reading",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":51},"01M6BZ40QMB2C6QF2N09MM15GF","tree-sitter-language-pack-managing-parsers","解析器缓存管理","Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers `ts-pack download`, `list`, `info`, `cache-dir`, `clean`, and `init`.","当用户需要管理 tree-sitter 解析器缓存时使用——为离线或 CI 运行预取解析器、列出已下载内容、检查某种语言、查找缓存目录或清理缓存。涵盖 `ts-pack download`、`list`、`info`、`cache-dir`、`clean` 和 `init`。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-managing-parsers\u002FSKILL.md",[150,151],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":152,"categoryName":153,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[155,156,33,31,32,36,35,34,157,158,159,160,161,137,162,163,164,140,165,37],"parsers","tree sitter language pack managing parsers","ci","init","prefetch","cache","find","inspect","manage","clean","info",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":176,"publishedAt":51},"01M6BZ3Y1E46H4CPXVJD6SB03D","tree-sitter-language-pack-extracting-code-structure","代码结构提取","Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers `ts-pack process` feature flags, the JSON result shape, and the default feature set.","当用户需要从源文件获取结构化代码元数据时使用——包括函数、类、导入、导出、符号、文档字符串、注释或语法诊断。涵盖 `ts-pack process` 的功能开关、JSON 结果结构以及默认功能集。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure\u002FSKILL.md",[174,175],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},[177,33,48,31,32,116,41,36,35,34,178,179,180,136,181,182,119,39,183,37],"tree sitter language pack extracting code structure","extracting code structure","code structure","SET","default","flags","result",{"skillNo":185,"name":186,"nameZh":187,"description":188,"descriptionZh":189,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":190,"categories":191,"keywords":194,"publishedAt":51},"01M6BZ3VAJEY26GESPCWQ2JSXA","tree-sitter-language-pack-detecting-languages","编程语言检测","Use when the user wants to know which programming language a file or snippet is. Covers implicit detection in `ts-pack parse`\u002F`process`, confirming support with `ts-pack list`\u002F`info`, and the SDK detection functions for path, extension, and raw content.","当用户想知道某个文件或代码片段属于哪种编程语言时使用。涵盖 `ts-pack parse`\u002F`process` 中的隐式检测、通过 `ts-pack list`\u002F`info` 确认是否支持某种语言，以及用于路径、扩展名和原始内容的 SDK 检测函数。","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fskills\u002Ftree-sitter-language-pack-detecting-languages\u002FSKILL.md",[192,193],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},[195,33,31,32,36,115,35,34,196,134,197,198,199,137,140,200,201,165,38,37],"tree sitter language pack detecting languages","programming language","programming","support","which","functions","with"]