[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BYZYGHWKRC3RAA3A6X9PXA":3,"skill-same:01M6BYZYGHWKRC3RAA3A6X9PXA":87},{"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":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6BYZYGHWKRC3RAA3A6X9PXA","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 结果结构以及默认功能集。","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.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42],"code","language pack","tree sitter","tree sitter language pack extracting code structure","diagnostics","metadata","file","playbook","SET","feature flags","json","syntax","2026-11-10 10:12:30",false,"---\ntype: Playbook\ntitle: Tree Sitter Language Pack Extracting Code Structure\ndescription: 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.\nx-ai-rulez:\n  kind: skill\n  id: tree-sitter-language-pack-extracting-code-structure\n  metadata:\n    name: tree-sitter-language-pack-extracting-code-structure\n---\n\n# Extracting code structure\n\n`ts-pack process \u003Cfile>` runs the code-intelligence pipeline over a source\nfile and prints JSON. Use it when the user wants *structured metadata* —\n\"list the functions\", \"what does this file import\", \"find the exported\nsymbols\", \"pull the docstrings\" — rather than a raw syntax tree.\n\n## Quick recipe\n\n```bash\n# Default features: structure + imports + exports\nts-pack process src\u002Fapp.ts\n\n# Pick features explicitly (only what you ask for is computed)\nts-pack process src\u002Fapp.ts --structure --imports --symbols --docstrings\n\n# Everything\nts-pack process src\u002Fapp.ts --all\n```\n\nWhen no feature flags are given, `process` defaults to\n`--structure --imports --exports`. Passing any single *extraction* flag\n(`--structure --imports --exports --comments --docstrings --symbols\n--diagnostics`) turns off that default set, so list every feature you want.\n`--chunk-size` and `--language` are modifiers, not extraction flags: they do\nnot disable the defaults (e.g. `--chunk-size 500` alone still emits\nstructure+imports+exports and adds chunks).\n\n## Feature flags\n\n| Flag | Extracts |\n| ---- | -------- |\n| `--structure` | Functions, classes, methods, modules (spans, nesting, visibility). |\n| `--imports` | Import statements and their sources. |\n| `--exports` | Exported symbols and their kinds. |\n| `--comments` | Inline and block comments. |\n| `--docstrings` | Docstrings attached to definitions. |\n| `--symbols` | All identifiers (for search\u002Findexing). |\n| `--diagnostics` | Syntax errors and error nodes with positions. |\n| `--all` | Enable every feature above. |\n| `--chunk-size \u003Cbytes>` | Syntax-aware chunks — see `tree-sitter-language-pack-chunking-for-llms`. |\n| `--language \u003Cname>` (`-l`) | Override language (auto-detected from extension otherwise). |\n\n## Result shape\n\n`process` always prints JSON. Top-level keys:\n\n```json\n{\n  \"language\": \"python\",\n  \"metrics\": { \"total_lines\": 0, \"code_lines\": 0, \"comment_lines\": 0, \"blank_lines\": 0, \"total_bytes\": 0, \"node_count\": 0, \"error_count\": 0, \"max_depth\": 0 },\n  \"structure\": [],\n  \"imports\": [],\n  \"exports\": [],\n  \"comments\": [],\n  \"docstrings\": [],\n  \"symbols\": [],\n  \"diagnostics\": [],\n  \"chunks\": []\n}\n```\n\n`metrics` is populated whenever any processing runs. `chunks` appears only\nwhen `--chunk-size` is set. Empty collections are omitted from the JSON\n(the `skip_serializing_if` wire contract), so absent keys mean \"nothing\nfound\", not an error.\n\n### Structure items\n\nEach `structure` entry has `kind` (a capitalized string —\n`\"Function\"`, `\"Class\"`, `\"Method\"`, `\"Module\"`, `\"Struct\"`, `\"Trait\"`,\n…; language-specific kinds serialize as `{\"Other\": \"\u003Ckind>\"}`), `name`,\n`visibility`, and a nested `span` object with `start_byte`\u002F`end_byte` and\n**zero-indexed** `start_line`\u002F`start_column`\u002F`end_line`\u002F`end_column`.\nNesting is expressed via `children` (e.g. methods inside a class), not a\n`parent` pointer. Optional fields: `decorators`, `doc_comment` (the\nattached doc comment), `signature`, and `body_span`.\n\n## Examples\n\n```bash\n# Function and class names with line numbers\nts-pack process src\u002Fservice.py --structure \\\n  | jq '.structure[] | {kind, name, line: .span.start_line}'\n\n# Import sources only\nts-pack process src\u002Fapp.ts --imports \\\n  | jq '.imports[].source'\n\n# Syntax error count (also available via metrics.error_count)\nts-pack process broken.go --diagnostics \\\n  | jq '.diagnostics | length'\n\n# Build a symbol index across a tree of files\nfor f in $(git ls-files '*.rs'); do\n  ts-pack process \"$f\" --symbols | jq -c --arg f \"$f\" '{file: $f, symbols: .symbols}'\ndone\n```\n\n## SDK equivalent\n\n```python\nfrom tree_sitter_language_pack import process, ProcessConfig\n\n# ProcessConfig is a frozen dataclass — set fields in the constructor.\n# structure\u002Fimports\u002Fexports default to True; add the rest you want.\nconfig = ProcessConfig(\"python\", symbols=True, docstrings=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\nThe SDK also exposes the parsed tree (`get_parser(...)` → `Parser`\u002F`Tree`\u002F\n`Node`) for running your own tree-sitter queries, and a `data_extraction`\nconfig flag that pulls a hierarchical key\u002Fvalue tree from data-format files\n(JSON, YAML, TOML, …) into the result's `data` field — neither is exposed\non the CLI.\n\n## When to reach for parse instead\n\nIf the user wants the raw syntax tree rather than extracted metadata, use\n`ts-pack parse` — see the `tree-sitter-language-pack-parsing-source` skill.\n","# Extracting code structure\n\n`ts-pack process \u003Cfile>` runs the code-intelligence pipeline over a source\nfile and prints JSON. Use it when the user wants *structured metadata* —\n\"list the functions\", \"what does this file import\", \"find the exported\nsymbols\", \"pull the docstrings\" — rather than a raw syntax tree.\n\n## Quick recipe\n\n```bash\n# Default features: structure + imports + exports\nts-pack process src\u002Fapp.ts\n\n# Pick features explicitly (only what you ask for is computed)\nts-pack process src\u002Fapp.ts --structure --imports --symbols --docstrings\n\n# Everything\nts-pack process src\u002Fapp.ts --all\n```\n\nWhen no feature flags are given, `process` defaults to\n`--structure --imports --exports`. Passing any single *extraction* flag\n(`--structure --imports --exports --comments --docstrings --symbols\n--diagnostics`) turns off that default set, so list every feature you want.\n`--chunk-size` and `--language` are modifiers, not extraction flags: they do\nnot disable the defaults (e.g. `--chunk-size 500` alone still emits\nstructure+imports+exports and adds chunks).\n\n## Feature flags\n\n| Flag | Extracts |\n| ---- | -------- |\n| `--structure` | Functions, classes, methods, modules (spans, nesting, visibility). |\n| `--imports` | Import statements and their sources. |\n| `--exports` | Exported symbols and their kinds. |\n| `--comments` | Inline and block comments. |\n| `--docstrings` | Docstrings attached to definitions. |\n| `--symbols` | All identifiers (for search\u002Findexing). |\n| `--diagnostics` | Syntax errors and error nodes with positions. |\n| `--all` | Enable every feature above. |\n| `--chunk-size \u003Cbytes>` | Syntax-aware chunks — see `tree-sitter-language-pack-chunking-for-llms`. |\n| `--language \u003Cname>` (`-l`) | Override language (auto-detected from extension otherwise). |\n\n## Result shape\n\n`process` always prints JSON. Top-level keys:\n\n```json\n{\n  \"language\": \"python\",\n  \"metrics\": { \"total_lines\": 0, \"code_lines\": 0, \"comment_lines\": 0, \"blank_lines\": 0, \"total_bytes\": 0, \"node_count\": 0, \"error_count\": 0, \"max_depth\": 0 },\n  \"structure\": [],\n  \"imports\": [],\n  \"exports\": [],\n  \"comments\": [],\n  \"docstrings\": [],\n  \"symbols\": [],\n  \"diagnostics\": [],\n  \"chunks\": []\n}\n```\n\n`metrics` is populated whenever any processing runs. `chunks` appears only\nwhen `--chunk-size` is set. Empty collections are omitted from the JSON\n(the `skip_serializing_if` wire contract), so absent keys mean \"nothing\nfound\", not an error.\n\n### Structure items\n\nEach `structure` entry has `kind` (a capitalized string —\n`\"Function\"`, `\"Class\"`, `\"Method\"`, `\"Module\"`, `\"Struct\"`, `\"Trait\"`,\n…; language-specific kinds serialize as `{\"Other\": \"\u003Ckind>\"}`), `name`,\n`visibility`, and a nested `span` object with `start_byte`\u002F`end_byte` and\n**zero-indexed** `start_line`\u002F`start_column`\u002F`end_line`\u002F`end_column`.\nNesting is expressed via `children` (e.g. methods inside a class), not a\n`parent` pointer. Optional fields: `decorators`, `doc_comment` (the\nattached doc comment), `signature`, and `body_span`.\n\n## Examples\n\n```bash\n# Function and class names with line numbers\nts-pack process src\u002Fservice.py --structure \\\n  | jq '.structure[] | {kind, name, line: .span.start_line}'\n\n# Import sources only\nts-pack process src\u002Fapp.ts --imports \\\n  | jq '.imports[].source'\n\n# Syntax error count (also available via metrics.error_count)\nts-pack process broken.go --diagnostics \\\n  | jq '.diagnostics | length'\n\n# Build a symbol index across a tree of files\nfor f in $(git ls-files '*.rs'); do\n  ts-pack process \"$f\" --symbols | jq -c --arg f \"$f\" '{file: $f, symbols: .symbols}'\ndone\n```\n\n## SDK equivalent\n\n```python\nfrom tree_sitter_language_pack import process, ProcessConfig\n\n# ProcessConfig is a frozen dataclass — set fields in the constructor.\n# structure\u002Fimports\u002Fexports default to True; add the rest you want.\nconfig = ProcessConfig(\"python\", symbols=True, docstrings=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\nThe SDK also exposes the parsed tree (`get_parser(...)` → `Parser`\u002F`Tree`\u002F\n`Node`) for running your own tree-sitter queries, and a `data_extraction`\nconfig flag that pulls a hierarchical key\u002Fvalue tree from data-format files\n(JSON, YAML, TOML, …) into the result's `data` field — neither is exposed\non the CLI.\n\n## When to reach for parse instead\n\nIf the user wants the raw syntax tree rather than extracted metadata, use\n`ts-pack parse` — see the `tree-sitter-language-pack-parsing-source` skill.\n",{"type":48,"title":49,"x-ai-rulez":50,"description":7},"Playbook","Tree Sitter Language Pack Extracting Code Structure",{"id":5,"kind":51,"metadata":52},"skill",{"name":5},"main","c14405493731b34089b4aae085abe5527b5000c7","plugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure",71,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack","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":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-extracting-code-structure",{"tool":69,"command":70},"bunx","bunx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-extracting-code-structure",{"tool":72,"command":73},"pnpm","pnpm dlx skills add xberg-io\u002Ftree-sitter-language-pack --skill tree-sitter-language-pack-extracting-code-structure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure\u002FSKILL.md",true,[77,83],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"agents\u002Fopenai.yaml","REFERENCE","参考文档",144,"https:\u002F\u002Fgithub.com\u002FVolontariapp\u002Fmeta\u002Fblob\u002Fmain\u002F.agents\u002Fplugins\u002Fmatt-pocock\u002Fskills\u002Fwayfinder\u002Fagents\u002Fopenai.yaml",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"index.md",336,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Ftree-sitter-language-pack\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Ftree-sitter-language-pack-extracting-code-structure\u002Findex.md",[88,118,139,157,181,195],{"skillNo":89,"name":90,"nameZh":91,"description":92,"descriptionZh":93,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":100,"publishedAt":43},"01M6BZ48YBWAZH9X1XZ6QVA5TD","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符号\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",[96,97],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8CBEPE1MJTS9ARYEK7J8BH4","代码解析与结构分析",[101,32,33,102,103,104,105,106,31,107,108,109,110,111,112,113,114,115,116,117],"tree sitter language pack","tree","language","pack","rust","writing","llms","cli","node","parser","typescript","io","structure","chunks","imports","parse","when",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":128,"publishedAt":43},"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",[126,127],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},[129,130,101,131,132,32,33,102,103,104,31,108,133,134,135,136,113,137,138,117],"tree sitter language pack using the mcp server","MCP","mcp server","server","detecting","extracting","launcher","auto","source","Tools",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":144,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":149,"publishedAt":43},"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",[147,148],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},[150,151,101,32,33,102,137,103,104,37,41,42,152,153,154,136,155,156,116,117],"parsing","tree sitter language pack parsing source","for","errors","expression","use","reading",{"skillNo":158,"name":159,"nameZh":160,"description":161,"descriptionZh":162,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":163,"categories":164,"keywords":169,"publishedAt":43},"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",[165,166],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":167,"categoryName":168,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[170,171,101,32,33,102,103,104,172,173,174,175,176,152,177,178,179,155,180,117],"parsers","tree sitter language pack managing parsers","ci","init","prefetch","cache","find","inspect","manage","clean","info",{"skillNo":182,"name":5,"nameZh":183,"description":7,"descriptionZh":184,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":189,"publishedAt":43},"01M6BZ3Y1E46H4CPXVJD6SB03D","代码结构提取","当用户需要从源文件获取结构化代码元数据时使用——包括函数、类、导入、导出、符号、文档字符串、注释或语法诊断。涵盖 `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",[187,188],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},[34,101,31,32,33,134,113,102,103,104,190,191,39,42,192,193,137,115,194,117],"extracting code structure","code structure","default","flags","result",{"skillNo":196,"name":197,"nameZh":198,"description":199,"descriptionZh":200,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":201,"categories":202,"keywords":205,"publishedAt":43},"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",[203,204],{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},[206,101,32,33,102,133,103,104,207,37,208,209,210,152,155,211,212,180,116,117],"tree sitter language pack detecting languages","programming language","programming","support","which","functions","with"]