[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACF9G52NYHXQ0BVSJ3VH6E":3,"skill-same:01M6ACF9G52NYHXQ0BVSJ3VH6E":76},{"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":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":17,"updatedAt":61,"install":62,"resources":75},"01M6ACF9G52NYHXQ0BVSJ3VH6E","tika-eval-h2-query","tika-eval H2 数据库查询","Query the tika-eval H2 database directly for counts and joins the canned reports do not compute — connection gotchas, key tables, example queries. Use when the xlsx\u002Fsummary.md reports are not enough.","直接查询 tika-eval 的 H2 数据库，获取现成报告无法计算的统计数据和表连接——包括连接注意事项、关键表和示例查询。当 xlsx\u002Fsummary.md 报告不够用时调用。","apache\u002Ftika","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACEMPJD6J74AGZBFFEGEYV",4145,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fdevs\u002Ftika-eval-h2-query\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TK1MPB82068236GSXDE","文档处理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"tika","tika eval h2 query","eval","query","queries","when","for","tables","connection","compute","summary","do","xlsx","reports","example","use","database","2026-11-10 10:12:30",false,"---\nname: tika-eval-h2-query\ndescription: >\n  Query the tika-eval H2 database directly for counts and joins the canned\n  reports do not compute — connection gotchas, key tables, example queries.\n  Use when the xlsx\u002Fsummary.md reports are not enough.\n---\n\n\u003C!--\nLicensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements.  See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License.  You may obtain a copy of the License at\n\n    http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n\nLocal override: `$TIKA_SKILLS_LOCAL\u002Ftika-eval-h2-query\u002FLOCAL.md` (default `~\u002F.tika-skills`),\nread after this file, wins on conflict.\n\n# Query the tika-eval H2 database directly\n\n`tika-eval` (Compare \u002F Profile \u002F Report) stores everything in an **H2** database\n— the `-d \u003Cname>` you pass to `Compare` produces `\u003Cname>.mv.db`. The xlsx\u002F`summary.md`\nreports only surface pre-canned views; for anything else (exact counts, custom\njoins, \"better vs worse\" tallies the reports don't compute) connect to the H2 db\nand run SQL.\n\n## Connecting (the part that trips people up)\n\ntika-eval creates the db with **no username and no password** (`H2Util` calls\n`DriverManager.getConnection(url)` with no creds). So:\n\n- **URL:** `jdbc:h2:\u003Cabsolute-path-without-the-.mv.db-suffix>`\n- **user \u002F password: empty.** `-user sa` (H2's old default) **fails** with\n  \"Wrong user name or password\" — the db wasn't created with `sa`.\n- Add `;IFEXISTS=TRUE` so a typo opens nothing instead of silently creating a new\n  empty db, and `;ACCESS_MODE_DATA=r` for a safe read-only open.\n- **H2 is single-writer**: don't query while a `Compare`\u002F`Profile`\u002F`Report` run\n  has the db open (file lock). Query after the run finishes.\n\nUse the `h2-*.jar` that ships with tika-eval-app (in its `target\u002Fdependency\u002F` or\nthe unzipped runtime `lib\u002F`).\n\n### One-shot query (H2 Shell)\n\n```bash\nH2=path\u002Fto\u002Fh2-*.jar\nDB='jdbc:h2:path\u002Fto\u002Feval;IFEXISTS=TRUE;ACCESS_MODE_DATA=r'   # note: no .mv.db\njava -cp \"$H2\" org.h2.tools.Shell -url \"$DB\" -user '' -password '' \\\n  -sql \"SHOW TABLES\"\n```\n\nPass the SQL as a **single line** to `-sql` (a multi-line arg confuses the Shell;\nit then waits on stdin and appears to hang).\n\n## Key tables\n\n| table | what's in it |\n|---|---|\n| `PROFILES_A` \u002F `PROFILES_B` | one row per extracted file: `FILE_NAME`, `MD5`, `MIME_ID`, `CONTAINER_ID`, `EMBEDDED_FILE_PATH`, `LENGTH`, `NUM_PAGES`, … (A = \"before\"\u002F-a, B = \"after\"\u002F-b) |\n| `CONTENTS_A` \u002F `CONTENTS_B` | text profile per file (join on `ID`): `OOV`, `LANGUAGENESS`, `NUM_TOKENS`, `NUM_COMMON_TOKENS`, `LANG_ID_1`\u002F`LANG_ID_PROB_1`, `TOKEN_ENTROPY_RATE`, … |\n| `ENCODINGS_A` \u002F `ENCODINGS_B` | detected-encoding per file (join on `ID`): `DETECTED_ENCODING`, `ENCODING_DETECTOR`, `DECLARED_METADATA`. **`DETECTED_ENCODING` lives HERE, not on `PROFILES` — moved out in the encodings-table refactor; querying `PROFILES_*.DETECTED_ENCODING` now errors \"Column not found\".** A file with no detected encoding has no row. |\n| `CONTENT_COMPARISONS` | per-file A↔B comparison (`ID`): `DICE_COEFFICIENT`, `OVERLAP`, top token diffs |\n| `MIMES` | `MIME_ID` → `MIME_STRING` |\n| `CONTAINERS` | container id → input file path |\n| `*_COMPARED` (`EXCEPTIONS_COMPARED`, `PARSE_TIME_COMPARED`) | pre-joined A\u002FB summaries |\n\n## Example queries\n\nDetected charset distribution in the \"after\" run (fast):\n\n```sql\nSELECT m.MIME_STRING, COUNT(*) n\nFROM PROFILES_B p JOIN MIMES m ON p.MIME_ID = m.MIME_ID\nGROUP BY m.MIME_STRING ORDER BY n DESC LIMIT 20;\n```\n\nWorst content divergences (already A\u002FB-paired, fast):\n\n```sql\nSELECT ID, DICE_COEFFICIENT FROM CONTENT_COMPARISONS\nWHERE DICE_COEFFICIENT \u003C 0.5 ORDER BY DICE_COEFFICIENT;\n```\n\nOOV \u002F languageness better-vs-worse tally. **A and B are paired by `id`** — the\nsame row `id` is the same file in both runs (this is exactly how tika-eval's own\nreports join: `join profiles_b pb on pa.id = pb.id`). Join on `id`, never on\ncontainer\u002Fpath — that's a fast PK join:\n\n```sql\nSELECT SUM(CASE WHEN cb.OOV \u003C ca.OOV THEN 1 ELSE 0 END) AS oov_better,\n       SUM(CASE WHEN cb.OOV > ca.OOV THEN 1 ELSE 0 END) AS oov_worse\nFROM CONTENTS_A ca JOIN CONTENTS_B cb ON ca.ID = cb.ID;\n```\n\nNet common-tokens A vs B — the headline \"more real text recovered\" metric (a big\npositive delta is the usual sign of better charset\u002Fextraction in B):\n\n```sql\nSELECT SUM(ca.NUM_COMMON_TOKENS) AS common_a,\n       SUM(cb.NUM_COMMON_TOKENS) AS common_b,\n       SUM(cb.NUM_COMMON_TOKENS) - SUM(ca.NUM_COMMON_TOKENS) AS delta\nFROM CONTENTS_A ca JOIN CONTENTS_B cb ON ca.ID = cb.ID;\n```\n\nTo bring in mime\u002Fpath, join `PROFILES_A pa ON pa.ID = ca.ID` (and `pb`\u002F`cc`\nlikewise on the same `id`) — all on `id`.\n\nDetected-encoding queries — `DETECTED_ENCODING` is on `ENCODINGS_A`\u002F`ENCODINGS_B`\n(join on `ID`), NOT `PROFILES`. CJK count in B (LOWER() — `REGEXP` is case-sensitive,\nsee below):\n\n```sql\nSELECT COUNT(*) FROM ENCODINGS_B\nWHERE LOWER(DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949';\n```\n\nEncoding flips A→B by direction (what changed between runs):\n\n```sql\nSELECT ea.DETECTED_ENCODING a_enc, eb.DETECTED_ENCODING b_enc, COUNT(*) n\nFROM ENCODINGS_A ea JOIN ENCODINGS_B eb ON ea.ID = eb.ID\nWHERE ea.DETECTED_ENCODING \u003C> eb.DETECTED_ENCODING\nGROUP BY a_enc, b_enc ORDER BY n DESC;\n```\n\nMap a flipped file back to its source file — `PROFILES_*.FILE_NAME` is the content\nhash (the input file is `\u003Ccorpus>\u002F\u003Cfirst-2-hex>\u002F\u003CFILE_NAME>`); join `CONTENTS` for OOV:\n\n```sql\nSELECT pb.FILE_NAME, ea.DETECTED_ENCODING a_enc, eb.DETECTED_ENCODING b_enc,\n       ca.OOV oov_a, cb.OOV oov_b\nFROM ENCODINGS_A ea JOIN ENCODINGS_B eb ON ea.ID = eb.ID\n  JOIN PROFILES_B pb ON ea.ID = pb.ID\n  JOIN CONTENTS_A ca ON ea.ID = ca.ID JOIN CONTENTS_B cb ON ea.ID = cb.ID\nWHERE LOWER(eb.DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949'\n  AND NOT (LOWER(ea.DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949');\n```\n\n## Gotcha: `REGEXP` is case-sensitive (silent wrong results)\n\nH2's `REGEXP` operator is **case-sensitive**, so `DETECTED_ENCODING REGEXP\n'big5|gb|euc'` does **not** match `Big5-HKSCS` or `GB18030` — and it fails\n*silently*, quietly dropping\u002Fkeeping the wrong rows instead of erroring. Always\neither lowercase the column or use the inline case-insensitive flag:\n\n```sql\n-- right:\nWHERE LOWER(DETECTED_ENCODING) REGEXP 'big5|gb|euc|shift|jis|2022|949'\n-- or:\nWHERE DETECTED_ENCODING REGEXP '(?i)big5|gb|euc|shift|jis|2022|949'\n-- wrong (misses Big5-HKSCS, GB18030, Shift_JIS, ...):\nWHERE DETECTED_ENCODING REGEXP 'big5|gb|euc|shift|jis|2022|949'\n```\n\n(`DETECTED_ENCODING` is on `ENCODINGS_A`\u002F`ENCODINGS_B` — join to `PROFILES`\u002F`CONTENTS`\non `ID` — populated from `tk:detected-encoding`.)\n\n## Tip\n\nFor a quick interactive session, drop `-sql` and you get an H2 prompt; `SHOW\nCOLUMNS FROM \u003Ctable>;` lists a table's columns.\n","\u003C!--\nLicensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements.  See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the \"License\"); you may not use this file except in compliance with\nthe License.  You may obtain a copy of the License at\n\n    http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-->\n\nLocal override: `$TIKA_SKILLS_LOCAL\u002Ftika-eval-h2-query\u002FLOCAL.md` (default `~\u002F.tika-skills`),\nread after this file, wins on conflict.\n\n# Query the tika-eval H2 database directly\n\n`tika-eval` (Compare \u002F Profile \u002F Report) stores everything in an **H2** database\n— the `-d \u003Cname>` you pass to `Compare` produces `\u003Cname>.mv.db`. The xlsx\u002F`summary.md`\nreports only surface pre-canned views; for anything else (exact counts, custom\njoins, \"better vs worse\" tallies the reports don't compute) connect to the H2 db\nand run SQL.\n\n## Connecting (the part that trips people up)\n\ntika-eval creates the db with **no username and no password** (`H2Util` calls\n`DriverManager.getConnection(url)` with no creds). So:\n\n- **URL:** `jdbc:h2:\u003Cabsolute-path-without-the-.mv.db-suffix>`\n- **user \u002F password: empty.** `-user sa` (H2's old default) **fails** with\n  \"Wrong user name or password\" — the db wasn't created with `sa`.\n- Add `;IFEXISTS=TRUE` so a typo opens nothing instead of silently creating a new\n  empty db, and `;ACCESS_MODE_DATA=r` for a safe read-only open.\n- **H2 is single-writer**: don't query while a `Compare`\u002F`Profile`\u002F`Report` run\n  has the db open (file lock). Query after the run finishes.\n\nUse the `h2-*.jar` that ships with tika-eval-app (in its `target\u002Fdependency\u002F` or\nthe unzipped runtime `lib\u002F`).\n\n### One-shot query (H2 Shell)\n\n```bash\nH2=path\u002Fto\u002Fh2-*.jar\nDB='jdbc:h2:path\u002Fto\u002Feval;IFEXISTS=TRUE;ACCESS_MODE_DATA=r'   # note: no .mv.db\njava -cp \"$H2\" org.h2.tools.Shell -url \"$DB\" -user '' -password '' \\\n  -sql \"SHOW TABLES\"\n```\n\nPass the SQL as a **single line** to `-sql` (a multi-line arg confuses the Shell;\nit then waits on stdin and appears to hang).\n\n## Key tables\n\n| table | what's in it |\n|---|---|\n| `PROFILES_A` \u002F `PROFILES_B` | one row per extracted file: `FILE_NAME`, `MD5`, `MIME_ID`, `CONTAINER_ID`, `EMBEDDED_FILE_PATH`, `LENGTH`, `NUM_PAGES`, … (A = \"before\"\u002F-a, B = \"after\"\u002F-b) |\n| `CONTENTS_A` \u002F `CONTENTS_B` | text profile per file (join on `ID`): `OOV`, `LANGUAGENESS`, `NUM_TOKENS`, `NUM_COMMON_TOKENS`, `LANG_ID_1`\u002F`LANG_ID_PROB_1`, `TOKEN_ENTROPY_RATE`, … |\n| `ENCODINGS_A` \u002F `ENCODINGS_B` | detected-encoding per file (join on `ID`): `DETECTED_ENCODING`, `ENCODING_DETECTOR`, `DECLARED_METADATA`. **`DETECTED_ENCODING` lives HERE, not on `PROFILES` — moved out in the encodings-table refactor; querying `PROFILES_*.DETECTED_ENCODING` now errors \"Column not found\".** A file with no detected encoding has no row. |\n| `CONTENT_COMPARISONS` | per-file A↔B comparison (`ID`): `DICE_COEFFICIENT`, `OVERLAP`, top token diffs |\n| `MIMES` | `MIME_ID` → `MIME_STRING` |\n| `CONTAINERS` | container id → input file path |\n| `*_COMPARED` (`EXCEPTIONS_COMPARED`, `PARSE_TIME_COMPARED`) | pre-joined A\u002FB summaries |\n\n## Example queries\n\nDetected charset distribution in the \"after\" run (fast):\n\n```sql\nSELECT m.MIME_STRING, COUNT(*) n\nFROM PROFILES_B p JOIN MIMES m ON p.MIME_ID = m.MIME_ID\nGROUP BY m.MIME_STRING ORDER BY n DESC LIMIT 20;\n```\n\nWorst content divergences (already A\u002FB-paired, fast):\n\n```sql\nSELECT ID, DICE_COEFFICIENT FROM CONTENT_COMPARISONS\nWHERE DICE_COEFFICIENT \u003C 0.5 ORDER BY DICE_COEFFICIENT;\n```\n\nOOV \u002F languageness better-vs-worse tally. **A and B are paired by `id`** — the\nsame row `id` is the same file in both runs (this is exactly how tika-eval's own\nreports join: `join profiles_b pb on pa.id = pb.id`). Join on `id`, never on\ncontainer\u002Fpath — that's a fast PK join:\n\n```sql\nSELECT SUM(CASE WHEN cb.OOV \u003C ca.OOV THEN 1 ELSE 0 END) AS oov_better,\n       SUM(CASE WHEN cb.OOV > ca.OOV THEN 1 ELSE 0 END) AS oov_worse\nFROM CONTENTS_A ca JOIN CONTENTS_B cb ON ca.ID = cb.ID;\n```\n\nNet common-tokens A vs B — the headline \"more real text recovered\" metric (a big\npositive delta is the usual sign of better charset\u002Fextraction in B):\n\n```sql\nSELECT SUM(ca.NUM_COMMON_TOKENS) AS common_a,\n       SUM(cb.NUM_COMMON_TOKENS) AS common_b,\n       SUM(cb.NUM_COMMON_TOKENS) - SUM(ca.NUM_COMMON_TOKENS) AS delta\nFROM CONTENTS_A ca JOIN CONTENTS_B cb ON ca.ID = cb.ID;\n```\n\nTo bring in mime\u002Fpath, join `PROFILES_A pa ON pa.ID = ca.ID` (and `pb`\u002F`cc`\nlikewise on the same `id`) — all on `id`.\n\nDetected-encoding queries — `DETECTED_ENCODING` is on `ENCODINGS_A`\u002F`ENCODINGS_B`\n(join on `ID`), NOT `PROFILES`. CJK count in B (LOWER() — `REGEXP` is case-sensitive,\nsee below):\n\n```sql\nSELECT COUNT(*) FROM ENCODINGS_B\nWHERE LOWER(DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949';\n```\n\nEncoding flips A→B by direction (what changed between runs):\n\n```sql\nSELECT ea.DETECTED_ENCODING a_enc, eb.DETECTED_ENCODING b_enc, COUNT(*) n\nFROM ENCODINGS_A ea JOIN ENCODINGS_B eb ON ea.ID = eb.ID\nWHERE ea.DETECTED_ENCODING \u003C> eb.DETECTED_ENCODING\nGROUP BY a_enc, b_enc ORDER BY n DESC;\n```\n\nMap a flipped file back to its source file — `PROFILES_*.FILE_NAME` is the content\nhash (the input file is `\u003Ccorpus>\u002F\u003Cfirst-2-hex>\u002F\u003CFILE_NAME>`); join `CONTENTS` for OOV:\n\n```sql\nSELECT pb.FILE_NAME, ea.DETECTED_ENCODING a_enc, eb.DETECTED_ENCODING b_enc,\n       ca.OOV oov_a, cb.OOV oov_b\nFROM ENCODINGS_A ea JOIN ENCODINGS_B eb ON ea.ID = eb.ID\n  JOIN PROFILES_B pb ON ea.ID = pb.ID\n  JOIN CONTENTS_A ca ON ea.ID = ca.ID JOIN CONTENTS_B cb ON ea.ID = cb.ID\nWHERE LOWER(eb.DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949'\n  AND NOT (LOWER(ea.DETECTED_ENCODING) REGEXP 'gb|big5|euc|shift|jis|2022|949');\n```\n\n## Gotcha: `REGEXP` is case-sensitive (silent wrong results)\n\nH2's `REGEXP` operator is **case-sensitive**, so `DETECTED_ENCODING REGEXP\n'big5|gb|euc'` does **not** match `Big5-HKSCS` or `GB18030` — and it fails\n*silently*, quietly dropping\u002Fkeeping the wrong rows instead of erroring. Always\neither lowercase the column or use the inline case-insensitive flag:\n\n```sql\n-- right:\nWHERE LOWER(DETECTED_ENCODING) REGEXP 'big5|gb|euc|shift|jis|2022|949'\n-- or:\nWHERE DETECTED_ENCODING REGEXP '(?i)big5|gb|euc|shift|jis|2022|949'\n-- wrong (misses Big5-HKSCS, GB18030, Shift_JIS, ...):\nWHERE DETECTED_ENCODING REGEXP 'big5|gb|euc|shift|jis|2022|949'\n```\n\n(`DETECTED_ENCODING` is on `ENCODINGS_A`\u002F`ENCODINGS_B` — join to `PROFILES`\u002F`CONTENTS`\non `ID` — populated from `tk:detected-encoding`.)\n\n## Tip\n\nFor a quick interactive session, drop `-sql` and you get an H2 prompt; `SHOW\nCOLUMNS FROM \u003Ctable>;` lists a table's columns.\n",{"name":5,"description":7},"main","9f8b48425fea3630020924f6ae96e98eabb9ce12",".skills\u002Fdevs\u002Ftika-eval-h2-query",1039,"https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika","https:\u002F\u002Ftika.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-13 08:35:47",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add apache\u002Ftika --skill tika-eval-h2-query",{"tool":68,"command":69},"bunx","bunx skills add apache\u002Ftika --skill tika-eval-h2-query",{"tool":71,"command":72},"pnpm","pnpm dlx skills add apache\u002Ftika --skill tika-eval-h2-query","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fdevs\u002Ftika-eval-h2-query\u002FSKILL.md",true,[],[77,113,140,173,204,223],{"skillNo":78,"name":79,"nameZh":80,"description":81,"descriptionZh":82,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":83,"categories":84,"keywords":89,"publishedAt":48},"01M6ACFKZR081Z7QX5XB1ZA2R2","file-to-markdown","任意文件转 Markdown","Turn almost any file into Markdown plus metadata — PDF, Office, HTML, email, archives, images, audio\u002Fvideo, 1000+ formats — powered by Apache Tika, either via the tika-app CLI (zero setup, one file) or a running tika-server (curl, warm process, many calls). Leads with rmeta (structured, embedded-item-aware output) as the default operation rather than flat concatenated text, since you can't tell whether a file has embedded content from its extension. Covers metadata-only triage, type and language detection, OCR, and output-size discipline for agent context. Use whenever a task involves reading the content of a file whose format you don't want to hand-parse.","将几乎任何文件转换为 Markdown 并附带元数据 — PDF、Office、HTML、电子邮件、压缩包、图片、音频\u002F视频、1000 多种格式 — 由 Apache Tika 驱动，可通过 tika-app CLI（零配置、单文件）或运行中的 tika-server（curl、常驻进程、适合多次调用）使用。默认以 rmeta（结构化、可感知嵌入项的输出）作为默认操作，而非扁平拼接的文本，因为你无法从文件扩展名判断文件是否包含嵌入内容。涵盖仅元数据分类、类型与语言检测、OCR，以及针对智能体上下文的输出大小控制。当任务涉及读取你不想手动解析的文件内容时使用。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fusers\u002Ffile-to-markdown\u002FSKILL.md",[85,86],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":87,"categoryName":88,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",[90,91,92,93,94,10,95,96,97,98,31,99,100,101,102,103,104,105,106,107,108,109,110,111,112],"file to markdown","markdown","file","PDF","cli","triage","setup","content","metadata","images","Video","app","ocr","Audio","parse","default","only","either","you","hand","text","server","discipline",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":125,"publishedAt":48},"01M6ACFHJR3612ZE6RNX1P5WG9","file-to-markdown-docker","Docker 版 Tika 文件转 Markdown","Run Apache Tika as a Docker container when you need guaranteed OCR (scanned PDFs, images) or geospatial raster support with zero local install — `apache\u002Ftika:\u003Cversion>-full` bundles Tesseract, GDAL, ImageMagick, and fonts. Also covers the minimal image, port\u002Fvolume\u002Fmemory conventions, the path-identity mount gotcha, and how to confirm OCR actually ran rather than silently returning no text. Powered by Apache Tika. Use when a local `tika-app`\u002F`tika-server` doesn't have Tesseract installed, or you want a disposable, self-contained parsing environment. Companion to the `file-to-markdown` skill, which covers the parsing calls themselves once a server is up.","当你需要确保可用的 OCR（扫描 PDF、图像）或地理空间栅格支持且无需本地安装时，将 Apache Tika 作为 Docker 容器运行——apache\u002Ftika:\u003Cversion>-full 捆绑了 Tesseract、GDAL、ImageMagick 和字体。还涵盖最小镜像、端口\u002F卷\u002F内存约定、路径一致性挂载陷阱，以及如何确认 OCR 确实运行而非静默返回空文本。由 Apache Tika 驱动。当本地 tika-app\u002Ftika-server 未安装 Tesseract，或你想要一个一次性的自包含解析环境时使用。是 file-to-markdown 技能的配套技能，后者在服务器启动后负责具体的解析调用。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fusers\u002Ffile-to-markdown-docker\u002FSKILL.md",[121,122],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[126,127,90,91,92,10,128,129,130,131,132,31,99,101,102,133,134,135,136,137,36,108,138,110,139],"file to markdown docker","docker","support","memory","image","run","identity","which","volume","up","local","how to","fonts","self",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":154,"publishedAt":48},"01M6ACFE1684DE184VE0D7PQVY","file-forensics","文件取证分析","Examine what a file claims about itself and what it actually contains — powered by Apache Tika. True content-based type detection (extensions lie), provenance claims (authors, dates, creating application), revision and tamper signals (PDF incremental updates, tracked changes, hidden slides, zip integrity), hidden and embedded content (attachments, macros), risk indicators (PDF JavaScript actions, encryption), and content digests. Evidence gathering, not verdicts: Tika reports what the file asserts and what parsing observed; it does not attribute authorship or validate signatures. Use for triaging suspicious files, provenance questions, e-discovery-style review, or \"is this file what it claims to be.\"","检查文件自我声明的信息与其实际包含的内容——由 Apache Tika 驱动。基于内容的真实类型检测（扩展名可能说谎）、来源声明（作者、日期、创建应用）、修订和篡改迹象（PDF 增量更新、修订痕迹、隐藏幻灯片、zip 完整性）、隐藏和嵌入内容（附件、宏）、风险指标（PDF JavaScript 动作、加密）以及内容摘要。收集证据而非下达结论：Tika 报告文件的声明内容与解析观察到的内容；它不归属作者身份，也不验证签名。用于可疑文件分类、来源溯源问题、电子发现式审查，或判断'这个文件是否名副其实'。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fusers\u002Ffile-forensics\u002FSKILL.md",[148,151],{"categoryNo":149,"categoryName":150,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":152,"categoryName":153,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程",[155,92,156,157,158,93,10,159,97,160,31,161,162,163,164,165,44,166,167,168,169,170,171,172],"file forensics","forensics","javascript","suspicious","validate","review","actions","signatures","files","updates","encryption","claims","signals","revision","integrity","zip","evidence","risk",{"skillNo":174,"name":175,"nameZh":176,"description":177,"descriptionZh":178,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":179,"categories":180,"keywords":185,"publishedAt":48},"01M6ACFB92SPADF0FY4490B847","update-site-for-release","Tika 发布网站更新","Update\u002Fpublish the Apache Tika website (tika-site SVN repo) for a release — step 17 of the Release Process. Handles the 4.x track (Changes page + aggregate javadoc + Antora docs branch) vs the 3.x maintenance track (full per-version apt docs + javadoc). Use for \"update the site\", \"publish the site for X.Y.Z\", \"the website part of the release\".","为发布而更新\u002F发布 Apache Tika 网站（tika-site SVN 仓库）——发布流程的第 17 步。处理 4.x 分支（Changes 页面 + 聚合 javadoc + Antora 文档分支）与 3.x 维护分支（完整的逐版本 apt 文档 + javadoc）。用于'更新网站'、'发布 X.Y.Z 的网站'、'发布中的网站部分'。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fdevs\u002Fupdate-site-for-release\u002FSKILL.md",[181,182],{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":183,"categoryName":184,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[186,187,188,37,189,10,190,191,31,192,193,194,195,196,197,198,199,200,46,201,202,203],"update","release","update site for release","site","release process","docs","branch","publish","track","website","svn","full","apt","page","repo","version","changes","maintenance",{"skillNo":205,"name":206,"nameZh":207,"description":208,"descriptionZh":209,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":210,"categories":211,"keywords":214,"publishedAt":48},"01M6ACF7V56CCWHNVR614VBNX5","tika-eval-encoding-regression","Tika 编码检测回归排查","Condensed tika-eval pattern for charset-detector regression hunts (\"A picks encoding X, B picks Y\") using one build and two configs — encoding-pair flip queries, OOV\u002Flanguageness\u002FFFFD signals, per-file detector attribution.","精简版 tika-eval 模式，用于排查字符集检测器回归问题（如'A 选择编码 X，B 选择 Y'），使用单一构建和两套配置——编码对翻转查询、OOV\u002F语言性\u002FFFFD 信号，以及逐文件检测器归因。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fdevs\u002Ftika-eval-encoding-regression\u002FSKILL.md",[212,213],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[215,31,216,33,217,37,218,92,35,167,219,220,221,222],"tika eval encoding regression","regression","encoding","attribution","build","detector","pattern","pair",{"skillNo":224,"name":225,"nameZh":226,"description":227,"descriptionZh":228,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":229,"categories":230,"keywords":233,"publishedAt":48},"01M6ACF53J5MJCDNAEMCBV0RPP","tika-eval-compare","Tika 提取结果对比","Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for \"compare before\u002Fafter extracts\", \"eval this change against the corpus\".","比较两个 Tika 构建版本在语料库上的提取结果，以检测内容、编码、异常和嵌入文档处理方面的回归问题。用于'对比前后提取结果'、'用语料库评估此变更'。","https:\u002F\u002Fgithub.com\u002Fapache\u002Ftika\u002Fblob\u002Fmain\u002F.skills\u002Fdevs\u002Ftika-eval-compare\u002FSKILL.md",[231,232],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[234,31,33,235,236,97,37,46,237,238,217,239],"tika eval compare","compare","change","document","detect","embedded"]