[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACPTH72KSFEP6EBQ3NQTCQ":3,"skill-same:01M6ACPTH72KSFEP6EBQ3NQTCQ":97},{"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":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":17,"updatedAt":64,"install":65,"resources":78},"01M6ACPTH72KSFEP6EBQ3NQTCQ","tsfile-cli","tsfile-cli 命令行工具","Use specifically for the project's C++ `tsfile-cli` in cpp\u002Ftools: inspect, preview, export, or create an Apache TsFile; report metadata or per-series counts; or use its explicit single-table CSV write command.","专门用于项目中 cpp\u002Ftools 目录下的 C++ `tsfile-cli`：检查、预览、导出或创建 Apache TsFile；报告元数据或按序列统计数量；或使用其明确的单表 CSV 写入命令。","apache\u002Ftsfile","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACPQYK1HGZFK8G26M498XN",211,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fcpp\u002Ftools\u002Fskills\u002Ftsfile-cli\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRXQPYT60FQ3976GDV4Q","C++ 开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,10,48,49,50],"tsfile","tsfile cli","cli","command","single","for","inspect","series","project","c++","preview","export","use","write","Tools","csv","metadata","report","create","cpp","2026-11-10 10:12:30",false,"---\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n#     http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n# KIND, either express or implied.  See the License for the\n# specific language governing permissions and limitations\n# under the License.\nname: tsfile-cli\ndescription: >-\n  Use specifically for the project's C++ `tsfile-cli` in cpp\u002Ftools: inspect,\n  preview, export, or create an Apache TsFile; report metadata or per-series\n  counts; or use its explicit single-table CSV write command.\n---\n\n# tsfile-cli\n\nSingle pipe-friendly C++ binary to inspect, read, export, and create `.tsfile`\nfiles. Source `cpp\u002Ftools\u002F`. Result data goes to stdout except `export`,\n`sketch -o`, and `write`; diagnostics go to stderr.\n\nReference files:\n\n- `references\u002Fcommands.md`: command syntax and result fields.\n- `references\u002Ferrors.md`: exit-code and failure-handling rules.\n- `references\u002Fexamples.md`: reviewed command recipes.\n\n## Scope\n\nUse this skill only for the C++ `tsfile-cli` binary. Route Java\n`csv2tsfile`\u002F`parquet2tsfile`\u002F`arrow2tsfile` and table point-count metadata\nchecks or backfill to the top-level `tsfile` skill when it is installed.\n\nThe names overlap but the semantics do not: `tsfile-cli count` is a read-only\nper-series report, not the Java table point-count property tool. `tsfile-cli\nwrite` is the C++ binary's narrow one-file\u002Fstream, one-table CSV import; it\ndoes not replace the Java batch and format-aware import tools.\n\n## Binary\n\n- Name `tsfile-cli` (CMake target `tsfile_cli`). Find: `ls cpp\u002Fbuild\u002F*\u002Fbin\u002Ftsfile-cli`.\n- Build only if missing: `cd cpp && bash build.sh -t=Debug`.\n\n## Read\n\n`tsfile-cli \u003Ccmd> [opts] \u003Cfile.tsfile>` · `tsfile-cli --help | --version | help`\n\n| cmd | output | scans pages |\n|---|---|---|\n| `ls` | `model,object` rows for tree devices or table names | no |\n| `schema` | `model,object,column,category,data_type,encoding,compression` | no |\n| `meta` | `size_bytes,format_version,model` | no |\n| `stats` | FIELD statistics with null counts and source | maybe |\n| `count` | object\u002Fcolumn counts; no summary row | maybe |\n| `head` | first N rows (default 10, `-n`) | yes |\n| `cat` | all matching rows (streamed; `table` format buffers) | yes |\n| `sketch` | physical layout text from the bound `printSketch` behavior | no FIELD decode |\n| `export` | writes one object file or a numbered multi-object directory | yes |\n\nPrefer metadata verbs (`ls\u002Fschema\u002Fmeta\u002Fstats\u002Fcount`) before row verbs so the\nfile model, scope, and columns are known.\n\nFor `head` and `cat`, omit `-d\u002F-t` only when the selected model has exactly one\naccessible object. Multi-object files require explicit scope. `export` always\nrequires explicit scope.\n\n```\nopts: -f table|ndjson|csv  (default table)\n      -d \u003Cdevice> | -t \u003Ctable>   (mutually exclusive)\n      -m \u003Ccolumn> repeat for projection or metadata filtering; no comma lists\n      -n N · --offset N · --start \u003Cint64> · --end \u003Cint64> for head\u002Fcat\u002Fexport\n      --tag-filter C OP [V] where OP=eq|neq|regexp|is-null|not-null\n      --tag-match all|any when two or more tag filters are present\nndjson=one JSON object per line · csv=RFC 4180 with header · INT64\u002FTIMESTAMP as decimal strings\nexit: 0 ok · 1 usage · 2 file open\u002Fcorrupt · 3 query\u002Fruntime\n```\n\n```sh\nB=cpp\u002Fbuild\u002FDebug\u002Fbin\u002Ftsfile-cli\n$B meta data.tsfile; $B count -t table1 -f csv data.tsfile\n$B cat -t table1 --tag-filter device eq dev_1 -m temp -f ndjson data.tsfile\n$B cat -m temp --start 1700000000000 -f csv data.tsfile 2>\u002Fdev\u002Fnull | head\n```\n\n## Write\n\n`tsfile-cli write --table \u003Cname> (--tag \u003Cname> STRING)* (--field \u003Cname> \u003CTYPE>)+ [--encoding \u003CTYPE> \u003CENC>] [--compression \u003CTYPE> \u003CCOMP>] (-i \u003Cinput.csv>|--stdin) -o \u003Cout.tsfile> [-v]`\n\nCreates a new single-table, table-model file from strict CSV. The target must\nnot already exist; the command never creates tree-model TsFiles and never\nmodifies an existing TsFile.\n\n```\nTYPE  ∈ { BOOLEAN, INT32, INT64, FLOAT, DOUBLE, STRING, TEXT, TIMESTAMP, DATE, BLOB }\nENC   ∈ bound TsFile encodings such as PLAIN, TS_2DIFF, GORILLA, DICTIONARY\nCOMP  ∈ UNCOMPRESSED, SNAPPY, GZIP, LZO, LZ4, ZSTD, LZMA2\n```\n\n- CSV must contain a unique header with `time` and exactly the declared TAG\u002FFIELD names; rows are mapped by header name, not physical column order.\n- `--encoding` and `--compression` are keyed by declared data type and apply to all declared columns of that type.\n- `DATE` cells are `YYYY-MM-DD`; `TIMESTAMP` and row `time` use strict decimal int64.\n- **timestamps must be strictly increasing per device** (device = tag-column values); rows for\n  different tags may interleave\u002Freuse timestamps. Out-of-order input → error with line number.\n- A failed import deletes its partial output; success is silent unless `-v` is used.\n- `-v` writes one post-commit summary to stderr: `created model=table object=\u003Ctable> rows=\u003Cn> output=\u003Cpath>` plus one line per column with resolved physical settings.\n- exit: `1` usage\u002Fparameter error · `2` CSV\u002Finput problem · `3` target\u002Fwrite\u002Fcommit failure.\n\n```sh\nprintf 'time,id1,s1\\n0,dev,0\\n1,dev,10\\n' \\\n  | tsfile-cli write --table t1 --tag id1 STRING --field s1 INT64 --stdin -o out.tsfile\ntsfile-cli count -f csv out.tsfile\n```\n\nTree-model \u002F JSON \u002F programmatic writes → C++ SDK `cpp\u002Fexamples\u002Fcpp_examples\u002Fdemo_write.cpp`\n(`TsFileTableWriter`\u002F`TsFileWriter` + `Tablet`); Java\u002FPython writers under `java\u002F`, `python\u002F`.\n\n## Caveats\n\n- `head`\u002F`cat`\u002F`export` decode pages; nonzero exit means any produced stdout or files are not complete results.\n- Table results always include all TAG columns before selected FIELD columns.\n- `sketch` follows the bound TsFile `printSketch` text and does not support `-f`.\n","# tsfile-cli\n\nSingle pipe-friendly C++ binary to inspect, read, export, and create `.tsfile`\nfiles. Source `cpp\u002Ftools\u002F`. Result data goes to stdout except `export`,\n`sketch -o`, and `write`; diagnostics go to stderr.\n\nReference files:\n\n- `references\u002Fcommands.md`: command syntax and result fields.\n- `references\u002Ferrors.md`: exit-code and failure-handling rules.\n- `references\u002Fexamples.md`: reviewed command recipes.\n\n## Scope\n\nUse this skill only for the C++ `tsfile-cli` binary. Route Java\n`csv2tsfile`\u002F`parquet2tsfile`\u002F`arrow2tsfile` and table point-count metadata\nchecks or backfill to the top-level `tsfile` skill when it is installed.\n\nThe names overlap but the semantics do not: `tsfile-cli count` is a read-only\nper-series report, not the Java table point-count property tool. `tsfile-cli\nwrite` is the C++ binary's narrow one-file\u002Fstream, one-table CSV import; it\ndoes not replace the Java batch and format-aware import tools.\n\n## Binary\n\n- Name `tsfile-cli` (CMake target `tsfile_cli`). Find: `ls cpp\u002Fbuild\u002F*\u002Fbin\u002Ftsfile-cli`.\n- Build only if missing: `cd cpp && bash build.sh -t=Debug`.\n\n## Read\n\n`tsfile-cli \u003Ccmd> [opts] \u003Cfile.tsfile>` · `tsfile-cli --help | --version | help`\n\n| cmd | output | scans pages |\n|---|---|---|\n| `ls` | `model,object` rows for tree devices or table names | no |\n| `schema` | `model,object,column,category,data_type,encoding,compression` | no |\n| `meta` | `size_bytes,format_version,model` | no |\n| `stats` | FIELD statistics with null counts and source | maybe |\n| `count` | object\u002Fcolumn counts; no summary row | maybe |\n| `head` | first N rows (default 10, `-n`) | yes |\n| `cat` | all matching rows (streamed; `table` format buffers) | yes |\n| `sketch` | physical layout text from the bound `printSketch` behavior | no FIELD decode |\n| `export` | writes one object file or a numbered multi-object directory | yes |\n\nPrefer metadata verbs (`ls\u002Fschema\u002Fmeta\u002Fstats\u002Fcount`) before row verbs so the\nfile model, scope, and columns are known.\n\nFor `head` and `cat`, omit `-d\u002F-t` only when the selected model has exactly one\naccessible object. Multi-object files require explicit scope. `export` always\nrequires explicit scope.\n\n```\nopts: -f table|ndjson|csv  (default table)\n      -d \u003Cdevice> | -t \u003Ctable>   (mutually exclusive)\n      -m \u003Ccolumn> repeat for projection or metadata filtering; no comma lists\n      -n N · --offset N · --start \u003Cint64> · --end \u003Cint64> for head\u002Fcat\u002Fexport\n      --tag-filter C OP [V] where OP=eq|neq|regexp|is-null|not-null\n      --tag-match all|any when two or more tag filters are present\nndjson=one JSON object per line · csv=RFC 4180 with header · INT64\u002FTIMESTAMP as decimal strings\nexit: 0 ok · 1 usage · 2 file open\u002Fcorrupt · 3 query\u002Fruntime\n```\n\n```sh\nB=cpp\u002Fbuild\u002FDebug\u002Fbin\u002Ftsfile-cli\n$B meta data.tsfile; $B count -t table1 -f csv data.tsfile\n$B cat -t table1 --tag-filter device eq dev_1 -m temp -f ndjson data.tsfile\n$B cat -m temp --start 1700000000000 -f csv data.tsfile 2>\u002Fdev\u002Fnull | head\n```\n\n## Write\n\n`tsfile-cli write --table \u003Cname> (--tag \u003Cname> STRING)* (--field \u003Cname> \u003CTYPE>)+ [--encoding \u003CTYPE> \u003CENC>] [--compression \u003CTYPE> \u003CCOMP>] (-i \u003Cinput.csv>|--stdin) -o \u003Cout.tsfile> [-v]`\n\nCreates a new single-table, table-model file from strict CSV. The target must\nnot already exist; the command never creates tree-model TsFiles and never\nmodifies an existing TsFile.\n\n```\nTYPE  ∈ { BOOLEAN, INT32, INT64, FLOAT, DOUBLE, STRING, TEXT, TIMESTAMP, DATE, BLOB }\nENC   ∈ bound TsFile encodings such as PLAIN, TS_2DIFF, GORILLA, DICTIONARY\nCOMP  ∈ UNCOMPRESSED, SNAPPY, GZIP, LZO, LZ4, ZSTD, LZMA2\n```\n\n- CSV must contain a unique header with `time` and exactly the declared TAG\u002FFIELD names; rows are mapped by header name, not physical column order.\n- `--encoding` and `--compression` are keyed by declared data type and apply to all declared columns of that type.\n- `DATE` cells are `YYYY-MM-DD`; `TIMESTAMP` and row `time` use strict decimal int64.\n- **timestamps must be strictly increasing per device** (device = tag-column values); rows for\n  different tags may interleave\u002Freuse timestamps. Out-of-order input → error with line number.\n- A failed import deletes its partial output; success is silent unless `-v` is used.\n- `-v` writes one post-commit summary to stderr: `created model=table object=\u003Ctable> rows=\u003Cn> output=\u003Cpath>` plus one line per column with resolved physical settings.\n- exit: `1` usage\u002Fparameter error · `2` CSV\u002Finput problem · `3` target\u002Fwrite\u002Fcommit failure.\n\n```sh\nprintf 'time,id1,s1\\n0,dev,0\\n1,dev,10\\n' \\\n  | tsfile-cli write --table t1 --tag id1 STRING --field s1 INT64 --stdin -o out.tsfile\ntsfile-cli count -f csv out.tsfile\n```\n\nTree-model \u002F JSON \u002F programmatic writes → C++ SDK `cpp\u002Fexamples\u002Fcpp_examples\u002Fdemo_write.cpp`\n(`TsFileTableWriter`\u002F`TsFileWriter` + `Tablet`); Java\u002FPython writers under `java\u002F`, `python\u002F`.\n\n## Caveats\n\n- `head`\u002F`cat`\u002F`export` decode pages; nonzero exit means any produced stdout or files are not complete results.\n- Table results always include all TAG columns before selected FIELD columns.\n- `sketch` follows the bound TsFile `printSketch` text and does not support `-f`.\n",{"name":5,"description":7},"develop","f2a71ef2546aae53972d236b6857c5f081a74628","cpp\u002Ftools\u002Fskills\u002Ftsfile-cli",112,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile","https:\u002F\u002Ftsfile.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-14 15:44:39",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add apache\u002Ftsfile --skill tsfile-cli",{"tool":71,"command":72},"bunx","bunx skills add apache\u002Ftsfile --skill tsfile-cli",{"tool":74,"command":75},"pnpm","pnpm dlx skills add apache\u002Ftsfile --skill tsfile-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fcpp\u002Ftools\u002Fskills\u002Ftsfile-cli\u002FSKILL.md",true,[79,85,89,93],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"agents\u002Fopenai.yaml","REFERENCE","参考文档",158,"https:\u002F\u002Fgithub.com\u002Ffmal\u002Fdotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fwait-what\u002Fagents\u002Fopenai.yaml",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fcommands.md",2648,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fcpp\u002Ftools\u002Fskills\u002Ftsfile-cli\u002Freferences\u002Fcommands.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ferrors.md",1740,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fcpp\u002Ftools\u002Fskills\u002Ftsfile-cli\u002Freferences\u002Ferrors.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fexamples.md",1663,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fcpp\u002Ftools\u002Fskills\u002Ftsfile-cli\u002Freferences\u002Fexamples.md",[98,133],{"skillNo":99,"name":31,"nameZh":100,"description":101,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":112,"publishedAt":51},"01M6ACPZP3RGPFEZZJ7E82G90R","Apache TsFile 读写与集成","Work with the current Apache TsFile SDKs, tools, and file format. Use for Java, Python, C++, or C reads and writes; Python DataFrame and Arrow batches; Java CSV\u002FParquet\u002FArrow import; file properties; TAG filters; query-by-row and metadata APIs; C++ incomplete-writer recovery and append; static\u002Fshared C++ builds; parallel and TsBlock writes; encoding\u002Fcompression factories; schema design; performance; and cross-language integration. Route operations specific to the C++ tsfile-cli binary to the sibling tsfile-cli skill.","使用当前的 Apache TsFile SDK、工具和文件格式。适用于 Java、Python、C++ 或 C 的读写；Python DataFrame 和 Arrow 批次；Java CSV\u002FParquet\u002FArrow 导入；文件属性；TAG 过滤；按行查询与元数据 API；C++ 未完成写入器（incomplete-writer）的恢复与追加；静态\u002F共享 C++ 构建；并行写入与 TsBlock 写入；编码\u002F压缩工厂；模式设计；性能优化；以及跨语言集成。对于特定于 C++ tsfile-cli 二进制文件的操作，请转交给同级的 tsfile-cli 技能处理。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fskills\u002Ftsfile\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fskills\u002Ftsfile\u002FSKILL.md",[106,109],{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":110,"categoryName":111,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师",[31,113,114,115,116,117,47,118,45,119,120,121,122,123,124,125,126,40,127,128,129,130,10,131,33,132],"filters","java","arrow","parquet","dataframe","file","parallel","work","append","python","schema design","writer","query","route","shared","import","sdks","static","design","performance",{"skillNo":134,"name":5,"nameZh":135,"description":136,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":51},"01M6ACPXCAXABWQKAV6GEA8AVY","C++ tsfile-cli 工具使用","Use specifically for the project's C++ `tsfile-cli` in cpp\u002Ftools: inspect, preview, export, or create an Apache TsFile; report metadata or per-column counts; or use its explicit single-table CSV write command.","专门用于项目中 cpp\u002Ftools 下的 C++ `tsfile-cli`：检查、预览、导出或创建 Apache TsFile；报告元数据或每列计数；或使用其明确的单表 CSV 写入命令。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftsfile\u002Fblob\u002Fdevelop\u002Fskills\u002Ftsfile-cli\u002FSKILL.md",[140,141],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[33,31,32,42,50,49,48,10,47,46,45,34,44,43,41,40,39,143,37,36,35],"column"]