[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0YAJN6777C3VJ3EEMME61":3,"skill-same:01M7F0YAJN6777C3VJ3EEMME61":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F0YAJN6777C3VJ3EEMME61","office-reader",null,"PDF・Excel（.xlsx）・Word（.docx）・DXF 図面を、ライブラリなしの Node スクリプトで読む。結合セル・複数シート・見出し・ページ・図面の文字を保ったまま JSON にする。","indxjp\u002Fagent-workspace","indxjp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F291344172?v=4","01M7F0WC8M8M04EE6T7CM75A41","01M7F0WC98ETZ78FTKAZ3PM8H5",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: office-reader\ndescription: PDF・Excel（.xlsx）・Word（.docx）・DXF 図面を、ライブラリなしの Node スクリプトで読む。結合セル・複数シート・見出し・ページ・図面の文字を保ったまま JSON にする。\n---\n\n# 文書ファイルの読み方\n\nアップロードされたファイルは、保存時には解析されません。このスキルのスクリプトを、読む必要が出たときに\n実行して JSON にします。Node だけで動き、追加のパッケージは不要です。OCR はないので、画像だけの\nPDF（スキャン）の文字は読めません。\n\n`run_skill_script` ツール（`skill`・`script`・`args`）で動かします。結果は標準出力の JSON です。\n読めなかったときは終了コード 1 で、標準エラーに `{\"error\": \"\u003C名前>\", \"message\": \"...\"}` が出ます。\nシェルのある実行では、同じ引数で `scripts\u002F` のファイルを `node` に渡しても同じ結果になります。\n\nWord と DXF は、最後に出力先の JSON ファイル（作業ディレクトリの中）を渡せます。同じ JSON をそのファイルに\n書き、標準出力には `{ \"written\": \"\u003C出力.json>\" }` だけを出します。大きな図面や文書を、モデルを通さずに\n次のステップへ渡すときに使います（フォルダは自動で作られる）。\n\n| 形式 | script | args |\n| --- | --- | --- |\n| PDF | `pdf.mjs` | `[\"\u003Cファイル.pdf>\"]` |\n| Excel | `ooxml.mjs` | `[\"xlsx\", \"\u003Cファイル.xlsx>\"]` |\n| Word | `ooxml.mjs` | `[\"docx\", \"\u003Cファイル.docx>\"]` または `[\"docx\", \"\u003Cファイル.docx>\", \"\u003C出力.json>\"]` |\n| DXF | `dxf.mjs` | `[\"\u003Cファイル.dxf>\"]` または `[\"\u003Cファイル.dxf>\", \"\u003C出力.json>\"]` |\n\n```json\n{ \"skill\": \"office-reader\", \"script\": \"pdf.mjs\", \"args\": [\"\u003Cファイル.pdf>\"] }\n```\n\n## PDF\n\n出力: `{ \"pages\": [{ \"number\": 1, \"text\": \"...\", \"unreadable\": true }] }`\n\n- `text` は1ページ分。文字の並びごとに1行で、表は列ごとの空白区切りになる。\n- `text` が空の `\"\"` のページは、画像だけのページ（スキャン）。文字は読めていないので、内容を推測せず、\n  読めなかったと回答に書く。\n- `unreadable: true` のページは、このスクリプトが解読できない文字（未対応のフィルタ、文字対応表のない\n  日本語フォントなど）を含む。同じように、読めなかったと書く。\n- 失敗の名前: `encrypted_pdf`（パスワード付き。中身は一切読まない。パスワードを推測しない。利用者に\n  パスワードなしの PDF を求める）、`not_a_pdf`、`corrupt_pdf`。\n  大きすぎる／展開すると巨大になるファイルは、読まずに断られる（`file_too_large`、`too_many_objects`、`too_many_pages`、`page_tree_too_deep`、`stream_too_large`、`inflated_too_large`）。\n\n## Excel\n\n出力: `{ \"sheets\": [{ \"name\", \"rows\": [[...]], \"merges\": [\"A1:C1\"], \"cells\": { \"B3\": 1200 } }] }`\n\n- `rows` は結合セルの値を結合範囲全体に埋めた2次元配列。多段見出しを1行に畳むときに使う。\n- `cells` は元のセル番地と値。集計結果に「どのファイルのどのセルか」を残すときは、こちらの番地を使う。\n- 数値は数値のまま。和暦・「千円」などの単位は、表の見出しを読んで判断し、勝手に換算しない。\n- 失敗の名前（Excel と Word 共通）: `archive_too_large`、`too_many_entries`、`entry_too_large`、`corrupt_archive`（zip として読めない）。\n  大きすぎる／展開すると巨大になるファイルは、読まずに断られる。断られたと回答に書く。\n\n## Word\n\n出力: `{ \"paragraphs\": [{ \"style\": \"Heading1\" | null, \"text\": \"...\" }] }`。条項番号は見出しスタイルか、\n本文先頭の「第N条」で判断する。\n\n## DXF（図面）\n\n出力: `{ \"version\", \"codepage\", \"layers\": [...], \"blocks\": [...], \"counts\": { \"LINE\": 120 }, \"texts\": [...], \"inserts\": [...], \"lines\": [...], \"circles\": [...] }`\n\n- `texts` は図面上の文字: `TEXT`・`MTEXT`（書式コードは除去済み）・`ATTRIB`\u002F`ATTDEF`（`tag` が属性名）・\n  `DIMENSION`（`text` が空なら `measurement` の寸法値が表示される）。`layer`・`block`・位置 `x`\u002F`y` 付き。\n  `TEXT`・`MTEXT`・`ATTRIB`・`ATTDEF` には文字の高さ `height` も付く。\n- `lines` は `LINE` の `x1`\u002F`y1`\u002F`x2`\u002F`y2`、`circles` は `CIRCLE` の中心 `x`\u002F`y` と半径 `r`（どちらも `layer`・`block` 付き）。\n  座標を出すのはこの2種類だけで、円弧・ポリライン・ハッチなどは `counts` の個数でしか分からない。\n- `counts` は図形の種類ごとの数。`lines`\u002F`circles` 以外の形は座標が読めていないので、形について答えるときは\n  読めていない種類があることを回答に書く。\n- 失敗の名前: `binary_dxf`（バイナリ DXF。ASCII で書き出し直してもらう）、`unsupported_codepage`、\n  `not_a_dxf`、`file_too_large`（大きすぎる）。\n\n## 書く\n\nスクリプトが作った `{ \"sheets\": [{ \"name\", \"rows\": [[...]] }] }`（Excel）か `{ \"paragraphs\": [{ \"text\" }] }`（Word）の\nJSON ファイルを、`write` で `.xlsx` \u002F `.docx` にする。値と段落のスタイルだけを書き、書式は付かない。\n`outputs\u002F` に書いたファイルは、実行の成果物として呼び出し元に返る。\n\n```json\n{ \"skill\": \"office-reader\", \"script\": \"ooxml.mjs\", \"args\": [\"write\", \"\u003Cbook.json>\", \"outputs\u002F\u003Cファイル名>.xlsx\"] }\n```\n\n## してはいけないこと\n\n- 数値をモデルの頭の中で合計しない。合計・換算は必ずスクリプトで行い、その出力を引用する。\n- 読めなかったシート・ページ・段落を黙って捨てない。読めなかったことを回答に書く。\n","# 文書ファイルの読み方\n\nアップロードされたファイルは、保存時には解析されません。このスキルのスクリプトを、読む必要が出たときに\n実行して JSON にします。Node だけで動き、追加のパッケージは不要です。OCR はないので、画像だけの\nPDF（スキャン）の文字は読めません。\n\n`run_skill_script` ツール（`skill`・`script`・`args`）で動かします。結果は標準出力の JSON です。\n読めなかったときは終了コード 1 で、標準エラーに `{\"error\": \"\u003C名前>\", \"message\": \"...\"}` が出ます。\nシェルのある実行では、同じ引数で `scripts\u002F` のファイルを `node` に渡しても同じ結果になります。\n\nWord と DXF は、最後に出力先の JSON ファイル（作業ディレクトリの中）を渡せます。同じ JSON をそのファイルに\n書き、標準出力には `{ \"written\": \"\u003C出力.json>\" }` だけを出します。大きな図面や文書を、モデルを通さずに\n次のステップへ渡すときに使います（フォルダは自動で作られる）。\n\n| 形式 | script | args |\n| --- | --- | --- |\n| PDF | `pdf.mjs` | `[\"\u003Cファイル.pdf>\"]` |\n| Excel | `ooxml.mjs` | `[\"xlsx\", \"\u003Cファイル.xlsx>\"]` |\n| Word | `ooxml.mjs` | `[\"docx\", \"\u003Cファイル.docx>\"]` または `[\"docx\", \"\u003Cファイル.docx>\", \"\u003C出力.json>\"]` |\n| DXF | `dxf.mjs` | `[\"\u003Cファイル.dxf>\"]` または `[\"\u003Cファイル.dxf>\", \"\u003C出力.json>\"]` |\n\n```json\n{ \"skill\": \"office-reader\", \"script\": \"pdf.mjs\", \"args\": [\"\u003Cファイル.pdf>\"] }\n```\n\n## PDF\n\n出力: `{ \"pages\": [{ \"number\": 1, \"text\": \"...\", \"unreadable\": true }] }`\n\n- `text` は1ページ分。文字の並びごとに1行で、表は列ごとの空白区切りになる。\n- `text` が空の `\"\"` のページは、画像だけのページ（スキャン）。文字は読めていないので、内容を推測せず、\n  読めなかったと回答に書く。\n- `unreadable: true` のページは、このスクリプトが解読できない文字（未対応のフィルタ、文字対応表のない\n  日本語フォントなど）を含む。同じように、読めなかったと書く。\n- 失敗の名前: `encrypted_pdf`（パスワード付き。中身は一切読まない。パスワードを推測しない。利用者に\n  パスワードなしの PDF を求める）、`not_a_pdf`、`corrupt_pdf`。\n  大きすぎる／展開すると巨大になるファイルは、読まずに断られる（`file_too_large`、`too_many_objects`、`too_many_pages`、`page_tree_too_deep`、`stream_too_large`、`inflated_too_large`）。\n\n## Excel\n\n出力: `{ \"sheets\": [{ \"name\", \"rows\": [[...]], \"merges\": [\"A1:C1\"], \"cells\": { \"B3\": 1200 } }] }`\n\n- `rows` は結合セルの値を結合範囲全体に埋めた2次元配列。多段見出しを1行に畳むときに使う。\n- `cells` は元のセル番地と値。集計結果に「どのファイルのどのセルか」を残すときは、こちらの番地を使う。\n- 数値は数値のまま。和暦・「千円」などの単位は、表の見出しを読んで判断し、勝手に換算しない。\n- 失敗の名前（Excel と Word 共通）: `archive_too_large`、`too_many_entries`、`entry_too_large`、`corrupt_archive`（zip として読めない）。\n  大きすぎる／展開すると巨大になるファイルは、読まずに断られる。断られたと回答に書く。\n\n## Word\n\n出力: `{ \"paragraphs\": [{ \"style\": \"Heading1\" | null, \"text\": \"...\" }] }`。条項番号は見出しスタイルか、\n本文先頭の「第N条」で判断する。\n\n## DXF（図面）\n\n出力: `{ \"version\", \"codepage\", \"layers\": [...], \"blocks\": [...], \"counts\": { \"LINE\": 120 }, \"texts\": [...], \"inserts\": [...], \"lines\": [...], \"circles\": [...] }`\n\n- `texts` は図面上の文字: `TEXT`・`MTEXT`（書式コードは除去済み）・`ATTRIB`\u002F`ATTDEF`（`tag` が属性名）・\n  `DIMENSION`（`text` が空なら `measurement` の寸法値が表示される）。`layer`・`block`・位置 `x`\u002F`y` 付き。\n  `TEXT`・`MTEXT`・`ATTRIB`・`ATTDEF` には文字の高さ `height` も付く。\n- `lines` は `LINE` の `x1`\u002F`y1`\u002F`x2`\u002F`y2`、`circles` は `CIRCLE` の中心 `x`\u002F`y` と半径 `r`（どちらも `layer`・`block` 付き）。\n  座標を出すのはこの2種類だけで、円弧・ポリライン・ハッチなどは `counts` の個数でしか分からない。\n- `counts` は図形の種類ごとの数。`lines`\u002F`circles` 以外の形は座標が読めていないので、形について答えるときは\n  読めていない種類があることを回答に書く。\n- 失敗の名前: `binary_dxf`（バイナリ DXF。ASCII で書き出し直してもらう）、`unsupported_codepage`、\n  `not_a_dxf`、`file_too_large`（大きすぎる）。\n\n## 書く\n\nスクリプトが作った `{ \"sheets\": [{ \"name\", \"rows\": [[...]] }] }`（Excel）か `{ \"paragraphs\": [{ \"text\" }] }`（Word）の\nJSON ファイルを、`write` で `.xlsx` \u002F `.docx` にする。値と段落のスタイルだけを書き、書式は付かない。\n`outputs\u002F` に書いたファイルは、実行の成果物として呼び出し元に返る。\n\n```json\n{ \"skill\": \"office-reader\", \"script\": \"ooxml.mjs\", \"args\": [\"write\", \"\u003Cbook.json>\", \"outputs\u002F\u003Cファイル名>.xlsx\"] }\n```\n\n## してはいけないこと\n\n- 数値をモデルの頭の中で合計しない。合計・換算は必ずスクリプトで行い、その出力を引用する。\n- 読めなかったシート・ページ・段落を黙って捨てない。読めなかったことを回答に書く。\n",{"name":5,"description":7},"main","21857b7459f4b6319514c8c8fd5a17bc4985e1c9","packages\u002Fskills-office\u002Foffice-reader",0,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace","https:\u002F\u002Fagentworkspace.indx.jp","https:\u002F\u002Fgithub.com\u002Findxjp","2026-11-14 21:30:51",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add indxjp\u002Fagent-workspace --skill office-reader",{"tool":37,"command":38},"bunx","bunx skills add indxjp\u002Fagent-workspace --skill office-reader",{"tool":40,"command":41},"pnpm","pnpm dlx skills add indxjp\u002Fagent-workspace --skill office-reader","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002FSKILL.md",true,[45,51,55,59,63,67],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fdxf.d.mts","SCRIPT","脚本",1991,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fdxf.d.mts",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fdxf.mjs",9213,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fdxf.mjs",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fooxml.d.mts",1717,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fooxml.d.mts",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fooxml.mjs",18888,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fooxml.mjs",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fpdf.d.mts",943,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fpdf.d.mts",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fpdf.mjs",21223,"https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Fpackages\u002Fskills-office\u002Foffice-reader\u002Fscripts\u002Fpdf.mjs",[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7F0ZNBAJAEB9GT3198N7VFH","ringi-checklist","稟議レビューシートの書式。見出し・指摘の書き方・出典の付け方・「なし」の書き方を定める。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fringi-review\u002Fskills\u002Fringi-checklist\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7F0Z6T263F9Z9QTJG4F4D32","cost-model","板金部品（SS400・SUS304・A5052）の見積原価を、ERP のレートから決まった式で計算する。計算は必ずこのスキルのスクリプトで行う。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fquotation\u002Fskills\u002Fcost-model\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7F0Z3A4DWK5NA00C8J13E8S","eight-d","新規不具合の 8D レポート（D1〜D8）となぜなぜ分析の下書きの書式。過去トラの引用〔過去トラ Q-xxxx〕と 4M 集計の書き方、提出前のチェックスクリプトを定める。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fquality-defect\u002Fskills\u002Feight-d\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7F0Z01PNY83W390TX10YZHK","gijiroku-format","当社の議事録の書式と、アクション項目（担当・期限）の書き方。相対日付は scripts\u002Fdates.mjs で YYYY-MM-DD に直す。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fmeeting-minutes\u002Fskills\u002Fgijiroku-format\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M7F0YXA86B20NAYQKMTA52VA","cite-answer","社内マニュアルに基づく回答の書き方。出典の書式と「該当なし」の基準を定める。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fmanual-search\u002Fskills\u002Fcite-answer\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M7F0YSJZBV943QXGAZHE6YP8","one-step-diagnosis","現場の若手技術者を、安全確認から始めて1ターンに1手順ずつ故障診断へ導く書き方。出典の書式、エスカレーションと解決の定型文を定める。","https:\u002F\u002Fgithub.com\u002Findxjp\u002Fagent-workspace\u002Fblob\u002Fmain\u002Ftests\u002Fgallery\u002Fmaintenance-troubleshooting\u002Fskills\u002Fone-step-diagnosis\u002FSKILL.md",[],[]]